/* 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, 
main, 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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F7F9FA;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1B4466;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: #1B4466;
  transition: color 0.2s cubic-bezier(0.45,0,0.55,1);
}
a:hover, a:focus {
  color: #38A67A;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
main ul, main ol {
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1B4466;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin-bottom: 18px;
  text-transform: uppercase;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.18;
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.24;
  margin-bottom: 12px;
  text-transform: none;
}
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1164px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(27,68,102,0.07);
}
@media (max-width: 600px) {
  .section {
    padding: 32px 6px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* HEADER ---------------------------*/
header {
  background: #fff;
  border-bottom: 4px solid #DFE6F2;
  width: 100%;
  position: relative;
  z-index: 11;
  box-shadow: 0 3px 14px 0 rgba(27,68,102,0.05);
}
header .container {
  min-height: 78px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.025em;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 4px;
  width: 0;
  background: #38A67A;
  transition: width 0.25s;
  position: absolute;
  left: 0; bottom: 0;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: inline-block;
  background: #1B4466;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border-radius: 8px;
  box-shadow: 0 3px 10px 0 rgba(27,68,102,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.12s;
  cursor: pointer;
  margin-left: 16px;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #38A67A;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(56,166,122,0.13);
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 980px) {
  header .container {
    flex-direction: row;
    gap: 18px;
    padding: 0 10px;
  }
  header nav {
    gap: 18px;
  }
  .cta-btn {
    padding: 10px 19px;
    font-size: 1rem;
    margin-left: 8px;
  }
}
@media (max-width: 720px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 0 4px;
  }
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 120;
  width: 44px;
  height: 44px;
  background: #1B4466;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.12s;
  box-shadow: 0 4px 14px 0 rgba(27,68,102,0.13);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #38A67A;
  outline: none;
}
@media (max-width: 880px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav,
  .cta-btn {
    display: none !important;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(27,68,102,0.88);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.76,0,0.24,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  border: none;
  margin: 28px 32px 4px 0;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 302;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #38A67A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 88vw;
  max-width: 360px;
  margin-right: 20px;
  gap: 0;
  margin-top: 40px;
}
.mobile-nav a {
  width: 100%;
  padding: 18px 0 18px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.17);
  transition: background 0.21s, color 0.21s;
  letter-spacing: 0.05em;
  text-align: left;
  border-radius: 0 7px 7px 0;
  margin-bottom: 0.4rem;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #38A67A;
  color: #fff;
  outline: none;
}
@media (max-width: 480px) {
  .mobile-nav {
    width: 98vw;
    max-width: 97vw;
    margin-right: 3px;
    font-size: 1rem;
  }
  .mobile-menu-close {
    margin-right: 12px;
    margin-top: 11px;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(107deg, #DFE6F2 80%, #38A67A 220%);
  border-radius: 24px;
  box-shadow: 0 4px 28px 0 rgba(27,70,106,0.10);
  margin-top: 34px;
  margin-bottom: 60px;
  padding: 40px 0;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
.hero .content-wrapper {
  max-width: 630px;
}
.hero h1 {
  color: #1B4466;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.16rem;
  margin-bottom: 24px;
}
.hero .cta-btn {
  background: #38A67A;
  color: #fff;
  margin-left: 0;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #1B4466;
}
@media (max-width: 950px) {
  .hero {
    margin-top: 14px;
    padding: 38px 0 22px 0;
  }
  .hero .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 20px 0;
    margin-bottom: 26px;
  }
  .hero .content-wrapper {
    max-width: 100%;
  }
}

/* --- FLEXBOX CARDS & FEATURES --- */
.feature-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature,
.card {
  flex: 1 1 280px;
  min-width: 230px;
  background: #fff;
  border: 2px solid #DFE6F2;
  border-radius: 18px;
  padding: 32px 22px 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px 0 rgba(27,68,102,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border-color 0.24s;
}
.feature:hover,
.card:hover {
  border-color: #38A67A;
  box-shadow: 0 14px 40px 0 rgba(56,166,122,0.15);
}
.feature img {
  height: 52px;
  width: auto;
  margin-bottom: 20px;
}
.feature h3, .feature h2 {
  font-size: 1.24rem;
  color: #1B4466;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* Testimonial Flex Card */
.testimonial-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #DFE6F2;
  border-radius: 14px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px 0 rgba(27,68,102,0.06);
  overflow-x: auto;
}
.testimonial-slider {
  background: #fff;
  border-radius: 12px;
  padding: 22px 28px;
  min-width: 260px;
  max-width: 380px;
  box-shadow: 0 2px 10px 0 rgba(27,68,102,0.06);
  margin-right: 16px;
  border-left: 6px solid #38A67A;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1B4466;
}
.testimonial-slider p {
  font-size: 1rem;
  color: #1B4466;
}
.stars {
  color: #38A67A;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.customer-name {
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1B4466;
}
@media (max-width: 820px) {
  .testimonial-card {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider {
    margin-right: 0;
    width: 95%;
    padding: 18px 10px;
    min-width: auto;
    max-width: 99vw;
  }
}


/* MODULAR FLEX SECTIONS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- FAQ LIST --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.faq-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(27,68,102,0.04);
  padding: 16px 20px;
  font-size: 1rem;
  color: #1B4466;
  transition: box-shadow 0.14s, border 0.14s;
  border-left: 4px solid #1B4466;
  margin-bottom: 10px;
  list-style-type: none;
}
.faq-list li strong {
  color: #38A67A;
}

/* --- CONTACT SECTION ICONS --- */
.text-section ul li img {
  height: 22px;
  width: 22px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}
.text-section ul li {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.04rem;
}

/* --- FOOTER ------------------------- */
footer {
  width: 100%;
  background: #1B4466;
  color: #fff;
  padding: 36px 0 24px 0;
  border-top: 4px solid #38A67A;
  box-shadow: 0 -2px 26px 0 rgba(27,68,102,0.08);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #38A67A;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.footer-contact {
  max-width: 270px;
  font-size: 0.97rem;
  color: #fff;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer-contact {
    margin: 0 auto;
  }
}

/* --- BUTTONS GENERAL --- */
button,
input[type=button],
input[type=submit] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #1B4466;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(27,68,102,0.05);
  transition: background 0.18s, color 0.18s, box-shadow 0.21s;
}
button:hover, button:focus {
  background: #38A67A;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(56,166,122,0.13);
}

/* --- FORMS --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid #DFE6F2;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #38A67A;
  outline: none;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  width: 100vw;
  background: #fff;
  border-top: 4px solid #38A67A;
  box-shadow: 0 -6px 32px 0 rgba(27,68,102,0.13);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px 18px 18px 18px;
  font-size: 1.01rem;
  animation: cookie-bounce-in 0.7s both;
}
@keyframes cookie-bounce-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.96); }
  80% { opacity: 1; transform: translateY(-8px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-banner .cookie-text {
  color: #1B4466;
  max-width: 440px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  padding: 9px 23px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  background: #DFE6F2;
  color: #1B4466;
  box-shadow: none;
  transition: background 0.13s, color 0.17s;
}
.cookie-banner button.accept {
  background: #38A67A;
  color: #fff;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #1B4466;
  color: #fff;
}
.cookie-banner button.reject {
  background: #DFE6F2;
  color: #1B4466;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #1B4466;
  color: #fff;
}
.cookie-banner button.settings {
  background: #fff;
  border: 2px solid #1B4466;
  color: #1B4466;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #DFE6F2;
  color: #38A67A;
  border-color: #38A67A;
}
@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 7px 16px 7px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-text {
    max-width: 99vw;
    text-align: center;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 410;
  background: rgba(27,68,102,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-overlay-fade 0.28s both;
}
@keyframes cookie-overlay-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  border: 2px solid #38A67A;
  min-width: 320px;
  max-width: 98vw;
  padding: 38px 32px 28px 32px;
  box-shadow: 0 8px 54px 0 rgba(27,68,102,0.15);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: cookie-modal-bounce 0.5s both;
}
@keyframes cookie-modal-bounce {
  0% { opacity:0; transform:scale(0.95); }
  70% { opacity:1; transform:scale(1.05); }
  100% { opacity:1; transform:scale(1); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: #1B4466;
  margin-bottom: 16px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #DFE6F2;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 1.07rem;
}
.cookie-category label {
  font-weight: 600;
  color: #1B4466;
}
.cookie-category input[type=checkbox] {
  accent-color: #38A67A;
  width: 21px; height: 21px;
}
.cookie-category.essential label::after {
  content: " (immer aktiviert)";
  color: #38A67A;
  font-size: 0.95em;
  margin-left: 9px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  min-width: 90px;
}
@media (max-width: 520px) {
  .cookie-modal {
    border-radius: 12px;
    padding: 18px 10px 17px 10px;
    min-width: 98vw;
    font-size: 0.97rem;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* --- ANIMATION UTILITIES --- */
.fade-in {
  animation: fadein 0.7s cubic-bezier(0.52,0,0.48,1);
}
@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- GEOMETRIC STRUCTURED DECOR --- */
.section, .feature, .card, .testimonial-slider, .cookie-modal {
  /* Implied by border-radius, strong box-shadows, strict padding -- geometric accents */
}
.hero {
  background-image: linear-gradient(107deg, #DFE6F2 80%, #38A67A 220%), url('/assets/bg-grid.svg');
  background-repeat: no-repeat;
  background-size: cover, auto;
}

/* --- ACCESSIBILITY UTILITIES --- */
:focus {
  outline: 2px solid #38A67A;
  outline-offset: 2px;
}

/* --- VISUAL HIERARCHY AND SPACING --- */
main section {
  margin-bottom: 60px;
}
main section:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  main section {
    margin-bottom: 32px;
  }
}
.text-section {
  margin-bottom: 24px;
  margin-top: 12px;
  font-size: 1.1rem;
  line-height: 1.72;
  color: #1B4466;
}

/* --- UTILITIES + HELPERS --- */
.hide {
  display: none !important;
}

/* --- GEOMETRIC STRUCTURED BUTTONS --- */
button, .cta-btn {
  border-radius: 8px 18px 8px 18px;
  /* angle corners for sharpness */
  box-shadow: 0 2px 8px 0 rgba(27,68,102,0.06);
  transition: background 0.16s, color 0.16s, transform 0.12s, box-shadow 0.17s;
}

/* --- GEOMETRIC STRUCTURED HEADINGS --- */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-style: normal;
  font-variant: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
h3 {
  text-transform: none;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 11; }
.mobile-menu { z-index: 300; }
.cookie-banner { z-index: 400; }
.cookie-modal-overlay { z-index: 410; }

/* --- NO ABSOLUTE POSITIONING FOR CONTENT --- */
/* (Absolute used only for decorative BG, not content!) */

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .testimonial-slider { padding: 9px 6px; }
  .feature, .card { padding: 13px 6px 11px 6px; border-radius: 9px; }
}
