/* === 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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FFFDF8;
  color: #21302B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === VARIABLES (WITH FALLBACKS) === */
:root {
  --primary: #113B5A;
  --secondary: #1C7C8C;
  --accent: #FFE6B0;
  --success: #6BBB6B;
  --earth: #9C8D73;
  --clay: #C2B280;
  --paper: #F3F1E7;
  --shadow: rgba(34, 44, 24, 0.08);
  --border-radius: 1.2em;
  --header-height: 80px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
  color: var(--secondary);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--secondary);
}

p, li, ul, ol {
  color: #274539;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--primary);
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 20px;
  list-style: disc inside;
}

.text-section ul {
  margin-bottom: 0;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.card-container, .card-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--paper);
  border-radius: var(--border-radius);
  padding: 30px 26px;
  box-shadow: 0 8px 32px -12px var(--shadow);
}
.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;
  background: var(--paper);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 14px -6px var(--shadow);
  padding: 24px 20px 22px 20px;
  margin-bottom: 20px;
  min-width: 200px;
  flex: 1 1 200px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f3ed;
  padding: 7px;
  box-shadow: 0 2px 10px -5px var(--shadow);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 32px -8px var(--shadow);
  transform: translateY(-3px) scale(1.017);
}
/* === SECTION SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 36px 36px 20px 20px/44px 44px 12px 12px;
  background: #FAF9F5;
  box-shadow: 0 0px 10px -6px var(--shadow);
}
@media (max-width: 768px) {
  section {
    padding: 32px 8px;
    margin-bottom: 38px;
    border-radius: 22px 22px 18px 18px/30px 30px 8px 8px;
  }
}
.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;
  background: #FFFDF7;
  border-radius: 36px;
  box-shadow: 0 4px 24px -10px var(--shadow);
  margin-bottom: 22px;
  font-size: 1.04rem;
  color: #253020;
  min-width: 230px;
  max-width: 520px;
  flex: 1 1 320px;
  position: relative;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 700;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 960px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, #F7F3E9 80%, var(--accent) 100%);
  border-radius: 0 0 60px 60px/0 0 38px 38px;
  padding-top: 48px;
  text-align: left;
  margin-bottom: 54px;
  box-shadow: 0 6px 45px -28px var(--shadow);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary);
}
.hero .subheadline {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}
.hero .btn-primary {
  margin-top: 18px;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #F7F3E9;
  box-shadow: 0 6px 25px -12px var(--shadow);
  padding: 0;
  height: var(--header-height);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  justify-content: space-between;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.btn-primary {
  background: var(--secondary);
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 22px;
  padding: 12px 28px;
  font-size: 1.14rem;
  font-weight: 700;
  box-shadow: 0 4px 15px -8px var(--shadow);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  margin-left: 12px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  box-shadow: 0 8px 25px -10px var(--shadow);
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1201;
  background: var(--secondary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 2px 18px -8px var(--shadow);
  cursor: pointer;
  transition: background 0.16s, transform 0.12s;
}
.mobile-menu-toggle:active {
  background: var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: rgba(255, 252, 242, 0.98);
  box-shadow: 0 8px 64px -16px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-104vw);
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1.12);
  padding: 36px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  font-weight: 600;
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 1210;
  box-shadow: 0 2px 12px -8px var(--shadow);
  cursor: pointer;
  transition: background 0.16s, transform 0.12s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 58px;
  width: 100%;
  padding-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  font-size: 1.34rem;
  font-weight: 600;
  padding: 14px 0;
  display: block;
  border-bottom: 1px solid #F0ECD8;
  width: 95%;
  text-decoration: none;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary);
  background: var(--accent);
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 7px;
  }
  .main-nav {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  .main-nav,
  .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 761px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === FOOTER === */
footer {
  background: #F7F3E9;
  padding: 36px 0 0 0;
  border-top: 1px solid #ece5cb;
  box-shadow: 0 -2px 42px -18px var(--shadow);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  transition: text-decoration 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  text-decoration: underline;
  color: var(--primary);
}
.contact-info {
  color: #374931;
  font-size: 0.97rem;
  margin-top: 12px;
}
.contact-info a {
  color: var(--secondary);
  text-decoration: underline;
}
@media (max-width: 820px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* === FACT LISTS, QUICK FACTS, ETC === */
.facts-list, .about-team, .features-special {
  background: #F6F6EF;
  border-radius: 36px 36px 20px 20px/44px 44px 12px 12px;
}
.facts-items, .latest-topics ul, .quick-facts ul, .fun-facts ul, .did-you-know ul, .numbers-facts ul {
  margin-bottom: 12px;
  margin-left: 22px;
  list-style-type: disc inside;
}
.facts-items li, .latest-topics ul li, .quick-facts ul li, .fun-facts ul li, .did-you-know ul li, .numbers-facts ul li {
  margin-bottom: 8px;
  font-size: 1.01rem;
}
.facts-list .quick-facts, .fun-facts, .did-you-know {
  background: #edf2ec;
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: 12px;
  color: #284837;
  font-size: 1rem;
}

/* === NUMBERS & PREVIEWS === */
.numbers-facts {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-top: 18px;
}
.numbers-facts ul {
  padding-left: 0;
}
@media (max-width: 768px) {
  .numbers-facts {
    flex-direction: column;
    gap: 8px;
  }
}

/* === ABOUT & TEAM === */
.about-preview, .about-team {
  background: #F6F6F6;
}
.text-section {
  background: #FAF9F5;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 2px 12px -6px var(--shadow);
  margin: 0 0 16px 0;
}
.text-section a {
  font-weight: 600;
  color: var(--secondary);
}
.text-section a:hover, .text-section a:focus {
  color: var(--primary);
}

/* === CALL TO ACTION (CTA) === */
.call-to-action {
  background: linear-gradient(120deg, var(--accent) 65%, #F3F1E7 100%);
  border-radius: 28px 28px 18px 18px/35px 35px 8px 8px;
  box-shadow: 0 4px 32px -10px var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
}
.call-to-action .container, .call-to-action .content-wrapper {
  align-items: center;
  text-align: center;
}
.call-to-action h2 {
  color: var(--primary);
  margin-bottom: 16px;
}
.call-to-action .btn-primary {
  margin: 12px 0 0 0;
  min-width: 220px;
}

/* === LEGAL, DATENSCHUTZ ETC. === */
.legal {
  background: #F9FAF4;
  border-radius: 36px 36px 22px 22px/44px 44px 12px 12px;
}
.legal h1, .legal h2 {
  color: var(--primary);
}
.legal .text-section {
  font-size: 1.04rem;
  margin-bottom: 0;
}

/* === CONFIRMATION & THANK-YOU === */
.confirmation .text-section {
  background: #e8f7ec;
  border: 2px solid var(--success);
  color: #1A3B24;
  border-radius: 22px;
}
.confirmation .btn-primary {
  margin: 18px 0 0 0;
}

/* === CONTACT DETAILS === */
.contact-details .text-section {
  padding: 24px 22px;
}
.contact-details img {
  width: 22px;
  margin-right: 9px;
  vertical-align: middle;
  opacity: 0.8;
  position: relative;
  top: -2px;
}
.location-map {
  margin-top: 13px;
  font-size: 0.96rem;
  color: #456949;
  background: #F2F8ED;
  border-radius: 14px;
  padding: 12px 18px;
}

/* === SPACING CORRECTNESS === */
section + section {
  margin-top: 0;
}
.card + .card, .feature-item + .feature-item, .testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* === FLEXBOX RESPONSIVENESS === */
@media (max-width: 1024px) {
  .card-container,
  .content-grid,
  .feature-grid,
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .call-to-action, .call-to-action .container, .call-to-action .content-wrapper {
    align-items: stretch;
  }
}

/* === SHADOWS, ROUNDED CORNERS, ORGANIC SHAPES === */
.card, .feature-item, .testimonial-card, section, .text-section, .footer-nav, .btn-primary {
  border-radius: var(--border-radius);
}

/* === INTERACTIVE ELEMENTS === */
.btn-primary,
.main-nav a,
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-nav a {
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.18s;
}
.btn-primary:active,
.main-nav a:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active,
.mobile-nav a:active {
  transform: scale(0.98);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  background: #f3f1e7;
  width: 8px;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #B8BFAC;
  border-radius: 4px;
}

/* === ICONS INSIDE BUTTONS, etc. === */
.btn-primary svg, .main-nav svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: 7px;
  vertical-align: middle;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbea;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 36px -18px var(--shadow);
  padding: 24px 3vw 24px 3vw;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 1.04rem;
  animation: slideUpFadeIn 0.7s cubic-bezier(.77,0,.18,1.15);
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(112px);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: left;
    padding: 16px 8px 16px 8px;
    gap: 18px;
    font-size: 0.98rem;
  }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  margin: 0;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .accept {
  background: var(--success);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #54a754;
}
.cookie-banner .reject {
  background: #c6816b;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #a15739;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--clay);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f6e09e;
  color: var(--secondary);
}

.cookie-modal-bg {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 10001;
  background: rgba(20,30,10,0.38);
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s;
}
.cookie-modal-bg.open {
  display: flex;
  animation: fadeIn 0.45s;
}
.cookie-modal {
  background: #fffef5;
  border-radius: 28px;
  padding: 36px 28px 30px 28px;
  box-shadow: 0 8px 54px -12px var(--shadow);
  min-width: 320px;
  max-width: 92vw;
  z-index: 10002;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.03rem;
  animation: slideDownFadeIn 0.57s cubic-bezier(.77,0,.19,1.12);
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .category label {
  font-weight: 600;
  margin-right: 10px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--secondary);
  margin-right: 5px;
}
.cookie-modal .essential {
  color: #375631;
  font-weight: 600;
  font-size: 1.05em;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1.3em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.cookie-modal .close-modal:active {
  background: var(--secondary);
}
.cookie-modal .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 8px 22px 8px;
    border-radius: 18px;
  }
  .cookie-modal h2 {
    font-size: 1.19rem;
  }
}
@keyframes slideUpFadeIn {
  0% {transform: translateY(90px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
@keyframes slideDownFadeIn {
  0% {transform: translateY(-60px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* === ACCESSIBILITY & FOCUS === */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
button:focus {
  outline: 2px solid var(--secondary);
}

/* === UTILITY CLASSES === */
.hide,
[hidden] {
  display: none !important;
}

/* === PRINT FRIENDLY === */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  * {
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    color: #000 !important;
  }
}
