/* ------------------------
   CSS RESET & NORMALIZE
-------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.5;
  background: #F2F2F2;
  color: #22405A;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  word-break: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #22405A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FDCB57;
}
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
input, button, textarea, select {
  font: inherit;
  margin: 0;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------------------------------
   FONT IMPORTS & TYPOGRAPHY SCALE
----------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #22405A;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
}
p, .text-section {
  font-size: 1rem;
  line-height: 1.7;
  color: #22405A;
  margin-bottom: 18px;
}
.text-section {
  margin-bottom: 18px;
}

/* Font size scale */
@media (min-width: 601px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  p, .text-section { font-size: 1.125rem; }
}

/* ----------------------------------
   FLEXBOX LAYOUT PATTERNS
-----------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(34,64,90,0.08), 0 0.5px 0.5px rgba(34,64,90,0.04);
}
/* If you want section backgrounds to alternate for extra geometry: */
.section:nth-of-type(even) {
  background: #F8F9FA;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(34,64,90,0.08);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(34,64,90,0.18);
  transform: translateY(-4px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F9FA;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(34,64,90,0.07);
}
.testimonial-card img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Flex Adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* Feature Grid: for Hauptseite - Unsere Stärken */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(34,64,90,0.06);
  flex: 1 1 250px;
  min-width: 200px;
  max-width: 340px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px rgba(34,64,90,0.13);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

/* --------------------------------------
   HEADER & NAVIGATION: Desktop & Mobile
---------------------------------------*/
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(34,64,90,0.07);
  z-index: 101;
  position: relative;
}
nav {
  display: flex;
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  justify-content: space-between;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  list-style-type: none;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #22405A;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
  background: #FDCB57;
  color: #22405A;
}
nav img {
  height: 38px;
}
.cta-button {
  background: #22405A;
  border-radius: 8px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 22px;
  margin-left: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  outline: none;
  display: inline-block;
  transition: background 0.16s, transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 6px rgba(34,64,90,0.08);
  cursor: pointer;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #FDCB57;
  color: #22405A;
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 4px 16px rgba(34,64,90,0.12);
}

@media (max-width: 991px) {
  nav ul {
    gap: 10px;
  }
  .cta-button {
    margin-left: 8px;
    padding: 9px 16px;
  }
}

/* Burger Menu */
.mobile-menu-toggle {
  display: none;
  background: #FDCB57;
  color: #22405A;
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s;
  z-index: 104;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #22405A;
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 64, 90, 0.93);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.82,.11,.28,.98);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FDCB57;
  font-size: 2.1rem;
  color: #22405A;
  border-radius: 8px;
  border: none;
  margin-right: 26px;
  margin-top: 32px;
  margin-bottom: 10px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #22405A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  margin-top: 38px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 12px 4px 12px 0;
  border-radius: 8px;
  width: 100%;
  display: block;
  margin-bottom: 2px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FDCB57;
  color: #22405A;
}

/* Hide Desktop Nav, Show Burger (Mobile) */
@media (max-width: 900px) {
  nav ul, nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Main logo for nav responsive */
@media (max-width: 480px) {
  nav img {
    height: 30px;
  }
}

/* -----------------------------------
   HERO 
------------------------------------*/
.hero {
  background: #22405A;
  color: #fff;
  padding: 55px 0 35px 0;
  border-radius: 0 0 40px 40px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero .container, .hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  letter-spacing: 0.012em;
}
.hero p {
  color: #FDCB57;
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-family: 'Roboto', Arial, sans-serif;
}
.hero .cta-button {
  background: #FDCB57;
  color: #22405A;
}
.hero .cta-button:hover, .hero .cta-button:focus {
  background: #fff;
  color: #22405A;
}
@media (min-width: 601px) {
  .hero h1 { font-size: 2.9rem; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 20px 0; }
  .hero h1 { font-size: 1.5rem; }
}

/* ----------------------------------
   BUTTONS
----------------------------------- */
button, .cta-button, input[type="submit"], input[type="button"] {
  transition: background 0.14s, color 0.14s, box-shadow 0.18s, transform 0.14s;
}
button:active, .cta-button:active {
  transform: scale(0.96);
}

/* ----------------------------------
   CARDS
----------------------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* -------------------------------------
   TESTIMONIALS
-------------------------------------- */
.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1.5px 9px rgba(34,64,90,0.09);
  color: #22405A;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #22405A;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card strong {
  color: #22405A;
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card img {
  margin-right: 0;
}

/* Ensure sections/cards do not overlap */
.section, .testimonial-card, .card {
  margin-bottom: 24px;
}

/* -----------------------------------
   FOOTER
------------------------------------*/
footer {
  background: #22405A;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  padding: 50px 0 28px 0;
}
footer .container {
  align-items: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  width: 100%;
}
footer nav {
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 10px 26px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  line-height: 1.7;
}
footer nav a {
  color: #FDCB57;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 8px;
}
footer nav a:hover, footer nav a:focus {
  background: #FDCB57;
  color: #22405A;
  transition: background 0.16s, color 0.16s;
}
footer img {
  height: 32px;
  margin-bottom: 10px;
}
footer a {
  transition: color 0.14s;
}
footer div {
  color: #fff;
  font-size: 1rem;
  margin-top: 0;
}

@media (min-width: 701px) {
  footer .content-wrapper {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
  }
}
@media (max-width: 580px) {
  footer .content-wrapper {
    gap: 16px;
  }
  footer nav {
    font-size: 0.95rem;
  }
  footer img {
    height: 28px;
  }
}

/* -----------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #22405A;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(34,64,90,0.16);
  padding: 22px 15px 17px 15px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: banner-in 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FDCB57;
  color: #22405A;
  font-weight: 700;
  outline: none;
  border: none;
  margin-top: 0;
  cursor: pointer;
  min-width: 125px;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #22405A;
}
.cookie-banner .banner-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Cookie Modal Overlay */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,64,90,0.78);
  z-index: 1004;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-in 0.45s cubic-bezier(.42,1.45,.48,1);
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #22405A;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(34,64,90,0.18);
  min-width: 320px;
  max-width: 98vw;
  padding: 36px 34px 30px 34px;
  position: relative;
  z-index: 1005;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-popup 0.37s cubic-bezier(.18,1.07,.44,1);
}
@keyframes modal-popup {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #22405A;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal-category label {
  font-size: 1.05rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #FDCB57;
  width: 18px; height: 18px;
  margin-right: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal button {
  background: #22405A;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 22px;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #FDCB57;
  color: #22405A;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 24px;
  top: 20px;
  background: #FDCB57;
  color: #22405A;
  font-size: 1.7rem;
  border-radius: 8px;
  border: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #22405A;
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-modal {
    min-width: 0;
    padding: 23px 10px 18px 10px;
  }
}

/* -------------------------------------------
   GEOMETRIC STRUCTURED DECORATIVE ELEMENTS
---------------------------------------------*/
.section, .card, .testimonial-card, .feature-grid > div, .cookie-modal, .cookie-banner, .hero {
  /* Geometric border radius, for on-brand structure */
  border-radius: 18px;
}

hr {
  border: none;
  height: 2px;
  background: #FDCB57;
  width: 120px;
  border-radius: 3px;
  margin: 28px 0;
}

/* Subtle geometric shapes (decorative, optional) for background accents */
.geometric-accent {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.20;
  background: #FDCB57;
  width: 140px;
  height: 140px;
  clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
}

/* ----------------------------------
   GENERAL LAYOUT/UTILITY CLASSES
------------------------------------*/
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }

/* ----------------------------------
   FORMS (if any)
-----------------------------------*/
input[type="text"], input[type="email"],textarea {
  border: 1.5px solid #CCD2D8;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  background: #F8F9FA;
  color: #22405A;
  outline: none;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #22405A;
  background: #fff;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

/* ----------------------------------
   MISCELLANEOUS
-----------------------------------*/
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #e1e1e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: #f6f6f6; }

::selection {
  background: #FDCB57;
  color: #22405A;
}

/* Images next to text, e.g. phone icon */
.text-section img, p img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 3px;
  width: 1.2em; height: 1.2em;
}

/* Accessibility: Focus highlight */
a:focus-visible, button:focus-visible, .cta-button:focus-visible {
  outline: 2.5px solid #FDCB57;
  outline-offset: 3px;
}

/* ----------------------------------
   PRINT
-----------------------------------*/
@media print {
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  body { background: #fff; color: #22405A !important; }
}

/* ----------------------------------
   BRAND-DRIVEN: COLOR UTILITIES
-----------------------------------*/
.bg-primary    { background: #22405A !important; }
.bg-secondary  { background: #F2F2F2 !important; }
.bg-accent     { background: #FDCB57 !important; }
.text-primary  { color: #22405A !important; }
.text-accent   { color: #FDCB57 !important; }

/* ----------------------------------
   ENSURE FLEX WRAPS ON SMALL SCREENS
-----------------------------------*/
@media (max-width: 650px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px !important;
  }
  .feature-grid > div,
  .card {
    width: 100%;
    min-width: unset;
    max-width: unset;
  }
}

/* ----------------------------------
   VISUAL HIERARCHY / SPACING
-----------------------------------*/
.section {
  margin-bottom: 60px !important;
  padding-top: 40px;
  padding-bottom: 40px;
}

.card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px !important;
}

/* Ensure minimum 20px on content wrappers */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* ----------------------------------
   GEOMETRIC STRUCTURED BUTTON SHAPES
------------------------------------*/
.cta-button, .cookie-banner button, .cookie-modal button, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  border-radius: 8px 18px 8px 18px;
}

/* ----------------------------------
   MICRO-ANIMATIONS
-----------------------------------*/
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.19s cubic-bezier(.38,1.2,.82,.61),
              transform 0.21s cubic-bezier(.31,1.48,.54,1.01);
}
.card:active, .feature-grid > div:active {
  transform: scale(0.98);
}

/* ----------------------------------
   Z-INDEX MANAGEMENT
-----------------------------------*/
header, .mobile-menu { z-index: 101; }
footer { z-index: 99; }
.cookie-banner { z-index: 1001; }
.cookie-modal-backdrop { z-index: 1004; }

/* ----------------------------------
   SPECIAL STRUCTURED TYPOGRAPHY
-----------------------------------*/
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}
h1 {
  text-shadow: 1px 2px 0 #FDCB57, 0 1px 8px rgba(34,64,90,0.16);
  /* Subtle 3D effect */
}

h2 {
  border-left: 7px solid #FDCB57;
  padding-left: 12px;
  background: linear-gradient(90deg, #F2F2F2, #fff);
  border-radius: 12px;
}

/* END OF STYLE CSS */
