/* ===== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F7EE;
  color: #225E44;
  font-size: 16px;
}
a {
  color: #225E44;
  background: transparent;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #547F9E;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === BRAND VARIABLES (with fallbacks) === */
:root {
  --color-primary: #225E44;
  --color-primary-light: #368d64;
  --color-secondary: #547F9E;
  --color-secondary-dark: #3d4f6b;
  --color-accent: #F4F7EE;
  --color-white: #fff;
  --color-grey: #E6E9E6;
  --color-shadow: rgba(34,94,68,0.09);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-soft: 0 4px 24px var(--color-shadow);
  --radius: 14px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.375rem;
}

p, ul, ol, li, blockquote, table, input, label {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
p, ul, ol, blockquote {
  margin-bottom: 16px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
blockquote {
  border-left: 4px solid var(--color-secondary);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 16px 24px;
  margin-bottom: 16px;
  font-style: italic;
}

/* === GLOBAL CONTAINER LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
}
/* Remove background for hero sections */
.section:first-of-type {
  background: none;
  padding-top: 32px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.text-section {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* === NAVIGATION HEADER === */
header {
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 0;
  position: relative;
  z-index: 10;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: flex-start;
  padding: 16px 0;
}
.main-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-white);
  color: var(--color-primary);
}
.main-nav img {
  height: 38px;
  width: auto;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: block;
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2rem;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 4px 14px;
  border-radius: 9px;
  border: none;
  z-index: 109;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 380px;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: -8px 0 32px rgba(34,94,68,0.14);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 38px;
  padding-bottom: 48px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 12px;
  top: 18px;
  font-size: 2rem;
  color: var(--color-primary);
  background: var(--color-grey);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 22px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  padding: 9px 8px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-white);
  background: var(--color-primary);
}

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

/* === HERO (home/top sections) === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--color-accent);
}
section:first-of-type {
  background: linear-gradient(110deg, var(--color-secondary) 0%, var(--color-primary) 99%);
  color: var(--color-white);
  box-shadow: 0 10px 40px var(--color-shadow);
  padding-top: 64px;
  padding-bottom: 64px;
}
section:first-of-type h1,
section:first-of-type p {
  color: var(--color-white);
}

/* === CARDS & FLEX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  min-width: 230px;
  transition: box-shadow 0.19s, transform 0.16s;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card:hover {
  box-shadow: 0 6px 32px var(--color-shadow);
  transform: translateY(-6px) scale(1.012);
}

.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #222;
  border-left: 6px solid var(--color-primary);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(34,94,68,0.07);
  margin-bottom: 20px;
  max-width: 600px;
  transition: box-shadow 0.24s;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card blockquote {
  color: #2B3647;
  background: none;
  border: none;
  margin-bottom: 0;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card p {
  color: var(--color-secondary-dark);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* === LIST & ICONS === */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
ul li img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--color-accent);
  padding: 3px;
}

/* === BUTTONS === */
.cta-btn, .btn, .cookie-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, var(--color-primary) 40%, var(--color-secondary) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 2px 18px var(--color-shadow);
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.11s;
  text-decoration: none;
}
.cta-btn:focus, .cta-btn:hover,
.btn:focus, .btn:hover,
.cookie-btn:focus, .cookie-btn:hover {
  background: linear-gradient(100deg, var(--color-secondary) 20%, var(--color-primary) 98%);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px var(--color-shadow);
  outline: none;
}

/* Topic Tag */
.topic-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.94em;
  padding: 2px 12px;
  border-radius: 7px;
  margin-left: 7px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, var(--color-primary) 70%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 26px 0 10px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 20px var(--color-shadow);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F4F7EE;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.18s;
}
.footer-nav a:hover, .footer-nav a.active {
  background: var(--color-accent);
  color: var(--color-primary);
}
.impressum {
  text-align: center;
  font-size: 0.92rem;
  color: #e4e6de;
  margin-bottom: 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.43rem;
  }
  section, .section {
    padding: 25px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 9px;
    align-items: center;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .card, .testimonial-card {
    padding: 15px 8px;
  }
  .cta-btn {
    padding: 10px 14px;
    font-size: 0.99rem;
  }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #225E44;
  box-shadow: 0 -2px 24px rgba(34,94,68,0.13);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 36px;
  font-size: 1rem;
  max-width: 100vw;
  transition: transform 0.23s cubic-bezier(.77,0,.18,1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(110%);
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 300px;
  min-width: 0;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 6px;
  margin: 0 2px;
}
.cookie-btn.cookie-accept {
  background: linear-gradient(90deg, var(--color-primary) 50%, var(--color-secondary) 100%);
  color: var(--color-white);
}
.cookie-btn.cookie-reject {
  background: var(--color-grey);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-white);
}

.cookie-btn:focus, .cookie-btn:hover {
  box-shadow: 0 0 0 2px var(--color-secondary);
  outline: none;
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 8px;
  }
  .cookie-banner .cookie-banner-actions {
    gap: 8px;
    justify-content: flex-start;
  }
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(44, 53, 69, 0.62);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  transition: background 0.26s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(34,94,68,0.17);
  max-width: 430px;
  width: 98vw;
  padding: 34px 28px 28px 28px;
  color: #27372c;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: cookieFadeIn 0.36s;
}
@keyframes cookieFadeIn {
  from { transform: translateY(60px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.7rem;
  color: var(--color-secondary-dark);
  background: var(--color-accent);
  border: none;
  border-radius: 40px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal-content h2 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.28rem;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-grey);
}
.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 18px;
  border: 2px solid var(--color-secondary);
  border-radius: 22px;
  background: var(--color-grey);
  outline: none;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}
.cookie-category input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.cookie-category input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}
.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.cookie-modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* === MICRO-INTERACTIONS === */
section, .section, .card, .testimonial-card, .cta-btn, .btn, .cookie-btn {
  transition: box-shadow 0.18s, background 0.2s, transform 0.13s, color 0.18s;
}

/* === MISC === */
::-webkit-scrollbar {
  width: 10px;
  background: #E6E9E6;
}
::-webkit-scrollbar-thumb {
  background: #b2cebb;
  border-radius: 5px;
}

/* Form Fields Style */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--color-grey);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 20px;
  transition: border 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
}

/* Ensure visual separation on stacked cards */
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* For Accessibility (Focus States) */
a:focus-visible, .btn:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* END OF STYLE.CSS */
