/* --- CSS RESET & BASELINE --- */
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, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #2C2F38;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: #007E63;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F2D3B1;
  outline-offset: 2px;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #eee;
}
:root {
  --primary: #2C2F38;
  --secondary: #F2D3B1;
  --accent: #007E63;
  --accent-dark: #006149;
  --white: #fff;
  --bg-bright: #FFE9C6;
  --shadow: rgba(44,47,56,0.15);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: bold;
  letter-spacing: -0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

.text-section p + p {
  margin-top: 12px;
}
.text-section ul, .text-section ol {
  margin-top: 4px;
  margin-bottom: 21px;
}
.text-section a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 6px 12px -4px var(--shadow);
}
header .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: var(--white);
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 7px 0 9px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.22s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}
.cta-btn {
  background: var(--accent);
  color: var(--white);
  border-radius: 24px;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 30px;
  margin-left: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.13s;
  border: none;
  text-transform: uppercase;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--secondary);
  background: transparent;
  border-radius: 8px;
  line-height: 1;
  padding: 3px 14px 0 14px;
  transition: background 0.16s;
  z-index: 1002;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--white);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0.2,0.3,1);
  box-shadow: -4px 0 32px -10px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 36px 28px 32px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  color: var(--secondary);
  border-radius: 50%;
  margin-top: 19px;
  margin-bottom: 28px;
  transition: background 0.18s, color 0.15s;
  padding: 0 11px;
  line-height: 1;
  border: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {  background: var(--accent); color: var(--white);}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--secondary);
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: bold;
  padding: 7.5px 0 7.5px 0;
  transition: color 0.16s;
  letter-spacing: 0.03em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: var(--bg-bright);
  padding: 60px 0 56px 0;
  box-shadow: 0 10px 28px -6px var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px;
}
.hero h1 {
  color: var(--accent);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-top: 10px;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 #f9dcb5, 0px 2px 2px var(--shadow);
}
.hero p {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 13px;
  font-weight: 600;
}
.hero .cta-btn {
  margin-top: 9px;
  box-shadow: 0 6px 16px var(--shadow);
}

/* --- FEATURE GRID --- */
.features, .services {
  background: var(--white);
}
.features .content-wrapper, .services .content-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.feature-grid > div {
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 30px 22px 22px 22px;
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 210px;
  transition: box-shadow 0.18s, transform 0.17s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 32px var(--shadow);
  transform: translateY(-8px) scale(1.02);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px #fbc26099);
}
.feature-grid h3 {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.18rem;
}
.feature-grid p {
  color: #333;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

/* --- TEXT / IMAGE SECTION --- */
.text-section {
  margin-top: 10px;
}
.trust-indicators {
  display: flex;
  gap: 32px;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-indicators span {
  background: #f1faf6;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  padding: 10px 22px 10px 12px;
  font-size: 1rem;
  box-shadow: 0 1px 5px var(--shadow);
  margin-bottom: 8px;
}
.trust-indicators img {
  width: 22px; height: 22px;
}

/* --- ABOUT / INFO / LEGAL SECTIONS --- */
.about, .legal, .contact, .confirmation {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
}
.about h2, .legal h1, .legal h2, .contact h2, .confirmation h1 {
  color: var(--accent);
}
.text-section strong {
  color: var(--accent);
  font-weight: 700;
}
/* --- TESTIMONIALS --- */
.testimonials {
  background: var(--bg-bright);
  border-radius: 16px;
  padding-top: 36px;
  padding-bottom: 34px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.testimonials h2 {
  color: var(--accent);
  text-align: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  background: var(--white);
  color: #222;
  border-radius: 20px;
  box-shadow: 0 6px 20px var(--shadow);
  padding: 20px 26px 16px 24px;
  margin-bottom: 20px;
  max-width: 500px;
  min-width: 250px;
  border-left: 6px solid var(--accent);
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #18191f;
  font-weight: 600;
}
.testimonial-card span {
  color: #74613a;
  font-size: 1rem;
  font-style: italic;
}

/* --- CARDS & CARD CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: 0 3px 15px var(--shadow);
  border-radius: 15px;
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 10px 32px var(--shadow);
  transform: translateY(-4px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}

/* --- SECTION SPACING & UTILITIES --- */
.section,
.about,
.legal,
.contact,
.confirmation,
.features,
.services {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section,
  .about,
  .legal,
  .contact,
  .confirmation,
  .features,
  .services {
    padding: 20px 8px;
    margin-bottom: 36px;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 38px 0 24px 0;
  box-shadow: 0 -8px 32px -12px var(--shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-logo img {
  height: 46px; width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  opacity: 0.87;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  font-weight: bold;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-size: 0.98rem;
  opacity: 0.88;
}
.footer-contact img {
  width: 16px; height:16px;
  margin-right: 4px;
}
.footer-social {
  display: flex;
  gap: 17px;
}
.footer-social a img {
  width: 28px; height:28px;
  transition: filter 0.17s, transform 0.12s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(1.1) saturate(1.6) drop-shadow(0 0 8px #00d19477);
  transform: scale(1.08);
}
.footer-impressum,
.footer-newsletter {
  color: #e9e1d7;
  font-size: 0.93rem;
  margin-top: 4px;
}
.footer-newsletter span {
  font-style: italic;
}

@media (max-width: 768px) {
  footer .container, .footer-contact {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 8px;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  width: 100vw;
  background: #fffbe6;
  color: var(--primary);
  border-top: 5px solid var(--accent);
  box-shadow: 0 -2px 18px #3331;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 22px 10vw 22px 6vw;
  font-size: 1rem;
  transition: transform 0.34s cubic-bezier(0.7,0.2,0.3,1);
}
.cookie-banner.hidden {
  transform: translateY(110%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 28px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.01rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 20px;
  border: none;
  box-shadow: 0 2px 8px var(--shadow);
  margin-right: 8px;
  transition: background 0.13s, transform 0.13s;
  font-weight: 700;
  text-transform: uppercase;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-dark);
  transform: scale(1.05);
}
.cookie-btn.settings {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #444652;
}

/* Cookie Modal Styles */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(36,39,54,0.36);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #fff;
  padding: 34px 38px 28px 38px;
  border-radius: 24px;
  box-shadow: 0 12px 44px #2225;
  max-width: 410px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: fadeInModal 0.31s cubic-bezier(.89,.36,0,.93) 1;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.94) translateY(36px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  color: var(--accent);
  font-size: 1.18rem;
  margin-bottom: 13px;
  font-family: 'Merriweather', serif;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  background: transparent;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s;
  z-index: 2;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--bg-bright);
}
.cookie-category {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
}
.cookie-category.label-disabled label {
  color: #999; filter: grayscale(1) opacity(0.5); pointer-events: none;
}
.cookie-modal .cookie-actions {
  margin-top: 17px;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 21px 12px 21px 9px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 19px 9px 19px 11px;
    max-width: 97vw;
  }
}

/* --- MEDIA QUERIES: RESPONSIVE --- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width:992px) {
  .feature-grid {
    gap: 17px;
  }
}
@media (max-width: 860px) {
  .feature-grid > div {
    min-width: 160px; max-width: 100%;
    flex: 1 1 220px;
  }
  .trust-indicators {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.56rem; }
  h2 { font-size: 1.15rem; }
  .hero {
    padding: 32px 0;
  }
  .hero .container {
    padding: 0 8px;
  }
  .hero h1 {
    font-size: 1.54rem;
    margin-bottom: 6px;
  }
  .hero .content-wrapper {
    gap: 15px;
    padding: 0 2px;
  }
  .footer-logo img {
    height: 32px;
  }
  .feature-grid {
    gap: 13px;
  }
  .feature-grid > div {
    padding: 19px 10px 14px 11px;
    min-width: 100px;  max-width: 100%;
    font-size: 0.97rem;
  }
  .section {
    padding: 13px 4px 19px 4px;
    margin-bottom: 30px;
  }
  .testimonial-card {
    padding: 12px 13px 10px 12px;
  }
  .footer-contact span {
    font-size: 0.97rem;
  }
  .about, .legal, .contact, .confirmation {
    padding: 18px 10px;
  }
  .confirmation .cta-btn {
    font-size: 0.95rem;
    padding: 9px 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
/* Allow column layout for text-image-section on desktop, but stack on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- INTERACTIVITY / MICRO-INTERACTIONS --- */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.18s, transform 0.13s, background 0.19s, color 0.17s;
}
.card:active, .cta-btn:active, .feature-grid > div:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar { width: 10px; background: #f5f5f5; }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #fec685; }

/* Hide scrollbars for mobile menu, allow scroll*/
.mobile-menu {
  overflow-y: auto;
}

/* --- COLORS --- */
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-secondary { background: var(--secondary); }
.bg-bright { background: var(--bg-bright); }

/* --- UTILS --- */
.mt-24 { margin-top: 24px; }
.mb-18 { margin-bottom: 18px; }
.gap-20 { gap: 20px; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- ACCESSIBILITY FOREFIELD --- */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 1.5px;
}

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