/* ===============================
   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, menu, 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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #39444d;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}

/* ===============================
   CSS VARIABLES
=============================== */
:root {
  --color-primary: #235474;
  --color-secondary: #87B37A;
  --color-accent: #F8F6F0;
  --color-pink: #F7D6E0;
  --color-mint: #D6F5EB;
  --color-blue: #BDE2F4;
  --color-lila: #D9C7F2;
  --color-light-yellow: #FFF6D1;
  --color-text: #39444d;
  --color-heading: #284258;
  --color-bg: #F8F6F0;
  --color-card: #ffffff;
  --color-shadow: rgba(35, 84, 116, 0.07);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-main: 0 4px 24px var(--color-shadow);
  --shadow-soft: 0 2px 10px rgba(35, 84, 116, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.18s cubic-bezier(0.57, 0.52, 0.4, 1);
}

/* ===============================
   BASE TYPOGRAPHY
=============================== */
body {
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem; /* 18px */
}

p, li, ul, ol {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}
.subheadline {
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

blockquote {
  font-style: italic;
  color: var(--color-primary);
  background: var(--color-blue);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 10px;
}

strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ===============================
   LAYOUT: CONTAINER & SECTIONS
=============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  box-shadow: var(--shadow-main);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-soft);
  padding: 26px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 4px 24px rgba(35, 84, 116, 0.13);
  transform: translateY(-3px) scale(1.015);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(35, 84, 116, 0.11);
  margin-bottom: 20px;
  border: 1px solid #f1e9ea;
  transition: var(--transition);
}
.testimonial-card p {
  color: #205065;
  font-size: 1.08rem;
  font-family: var(--font-display);
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 0.99rem;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(35, 84, 116, 0.14);
  transform: translateY(-3px) scale(1.012);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----- Brandful feature grid ----- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}
.feature-card {
  background: var(--color-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  padding: 26px 20px 21px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: var(--transition);
  margin-bottom: 20px;
}
.feature-card img {
  width: 55px;
  margin-bottom: 8px;
}
.feature-card h3 {
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 1.14rem;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(135, 179, 122, 0.16);
  background: var(--color-mint);
  transform: translateY(-3px) scale(1.015);
}

/* ===============================
   HEADER & MAIN NAVIGATION
=============================== */
header {
  background: linear-gradient(92deg, #F8F6F0 85%, #F7D6E0 100%);
  box-shadow: 0 2px 10px rgba(35, 84, 116, 0.04);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--color-primary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.main-nav a.cta {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 28px;
  margin-left: 14px;
  box-shadow: 0 2px 10px rgba(135,179,122,0.08);
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.main-nav a.cta:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(35, 84, 116, 0.10);
  transform: translateY(-2px);
}
.main-nav a:not(.cta):hover {
  color: var(--color-secondary);
  background: var(--color-blue);
}

/* ===============================
   MOBILE NAVIGATION
=============================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,246,240, 0.95);
  box-shadow: 0 4px 32px 0 rgba(35,84,116,0.11);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: var(--transition);
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2.1rem;
  margin: 20px 24px 0 0;
  padding: 7px 16px 7px 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0 0 36px;
}
.mobile-nav a {
  padding: 14px 0px 14px 6px;
  font-size: 1.18rem;
  color: var(--color-primary);
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: var(--transition);
}
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-blue);
}

/**** Hide desktop nav on mobile, show menu ****/
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================
   HERO SECTIONS & CTA
=============================== */
.hero {
  background: linear-gradient(130deg, #FFF6D1 70%, #F7D6E0 100%);
  padding: 56px 0 44px 0;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 4px 44px 0 rgba(189,226,244,0.16);
  margin-bottom: 36px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 10px;
}
.hero h1 {
  color: var(--color-primary);
  background: linear-gradient(90deg, #235474 60%, #87B37A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
}
.hero .subheadline {
  margin-bottom: 8px;
}
.hero .cta {
  margin-top: 8px;
}

.cta {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.13rem;
  padding: 14px 36px;
  border-radius: 28px;
  box-shadow: 0 2px 18px rgba(135,179,122,0.11);
  transition: var(--transition);
  margin-top: 4px;
  cursor: pointer;
  letter-spacing: 0.01em;
  border: none;
}
.cta:focus,
.cta:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(35,84,116,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* ===============================
   INFO- & CALLOUT BOXES
=============================== */
.info-box {
  background: var(--color-pink);
  color: var(--color-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(247,214,224,0.13);
  margin-bottom: 14px;
}

/**** Legal/confirmation pages ****/
.legal, .confirmation {
  margin-bottom: 60px;
  padding: 38px 20px 40px 20px;
  background: var(--color-mint);
  border-radius: var(--radius-lg);
}
.legal h1, .confirmation h1 {
  color: var(--color-primary);
  font-size: 2.2rem;
}
.confirmation nav {
  margin-top: 32px;
  display: flex;
  gap: 28px;
}
.confirmation nav a {
  color: var(--color-primary);
  font-size: 1rem;
  padding: 7px 16px;
  background: var(--color-blue);
  border-radius: 16px;
  transition: var(--transition);
}
.confirmation nav a:hover {
  background: var(--color-mint);
  color: var(--color-secondary);
}

/* ===============================
   TEAM & ABOUT
=============================== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.team-member {
  background: var(--color-lila);
  padding: 24px 20px 20px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(217,199,242,0.13);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}
.team-member h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
}
.team-member p {
  color: var(--color-secondary);
  font-weight: 600;
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #F8F6F0;
  border-top: 1px solid #eee;
  margin-top: 70px;
  box-shadow: 0 -2px 20px rgba(181, 216, 186, 0.04);
  padding: 0 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px 0 20px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: var(--color-primary);
  opacity: 0.85;
  font-size: 1.02rem;
  transition: var(--transition);
  padding: 6px 14px;
  border-radius: 10px;
}
.footer-menu a:hover {
  background: var(--color-blue);
  color: var(--color-secondary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
}
.contact-info img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===============================
   RESPONSIVENESS
=============================== */
@media (max-width: 1140px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .team-list, 
  .card-container, 
  .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  header .container {
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: 62px;
  }

  .feature-grid, .team-list, .content-grid, .card-container, .footer-menu {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
  }
  .hero .container, .hero .content-wrapper {
    padding: 0;
    margin: 0;
  }
  .hero {
    padding: 36px 0 18px 0;
    border-radius: 0 0 26px 26px;
    margin-bottom: 18px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 32px;
  }
  .team-member, .feature-card, .card {
    min-width: 0;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 6px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.28rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cta {
    font-size: 0.97rem;
    padding: 12px 18px;
  }
  .hero {
    padding: 18px 0 12px 0;
  }
}

/* ===============================
   SPACING COMPONENTS (MANDATORY)
=============================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================
  FORMS & CONTACT
=============================== */
.kontaktformular a, .kontakt-info a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color .18s;
}
.kontaktformular a:hover, .kontakt-info a:hover, .kontaktformular a:focus {
  color: var(--color-primary);
}

.kontakt-info ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 13px;
}
.kontakt-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.03rem;
  background: var(--color-mint);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}
.kontakt-info img {
  width: 19px;
  margin-right: 3px;
}

/* ===============================
  UTILITY CLASSES
=============================== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 18px; }

/* ===============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -2px 24px rgba(35, 84, 116, 0.13);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1.06rem;
  color: var(--color-text);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  margin: 0;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(135,179,122,0.10);
}
.cookie-banner button:not(.active):hover, .cookie-banner button:not(.active):focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--color-blue);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: var(--transition);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--color-mint);
  color: var(--color-secondary);
}

/* COOKIE MODAL (overlay) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(57, 68, 77, 0.13);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 24px 20px 24px;
  box-shadow: 0 8px 36px rgba(35, 84, 116, 0.18);
  min-width: 340px;
  max-width: 95vw;
  animation: cookieModalAnim 0.28s cubic-bezier(0.57, 0.52, 0.4, 1);
}
@keyframes cookieModalAnim {
  from { transform: scale(0.96) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 14px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-mint);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 1.06rem;
  font-family: var(--font-body);
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  display: flex;
  align-items: center;
  background: #EAF8E5;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 6px;
}
.cookie-toggle input {
  appearance: none;
  width: 46px;
  height: 26px;
  background: none;
  margin: 0;
}
.cookie-toggle .toggle-dot {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(135, 179, 122, 0.11);
  transition: left 0.2s, background 0.18s;
}
.cookie-toggle input:checked + .toggle-dot {
  left: 23px;
  background: var(--color-secondary);
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 17px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 1px 8px rgba(135,179,122,0.10);
}
.cookie-modal .modal-actions button:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===============================
   ANIMATIONS & INTERACTIONS
=============================== */
@media (hover: hover) {
  .button, .cta, .feature-card, .main-nav a, .confirmation nav a {
    transition: var(--transition);
  }
}

:focus {
  outline: 2px dotted var(--color-secondary) !important;
  outline-offset: 3px;
}

a:active, button:active {
  transform: scale(0.98);
}

/* ===============================
   SCROLLBAR STYLING (pastel look)
=============================== */
::-webkit-scrollbar {
  width: 12px;
  background: #F7D6E0;
}
::-webkit-scrollbar-thumb {
  background: #BDE2F4;
  border-radius: 6px;
}

/* ===============================
   END OF CSS
=============================== */
