/* =============================
   SchlemmerRouten – style.css
   Design: gradient_modern (flex-only)
   ============================= */

/* ---------- CSS RESET / NORMALIZE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #1a1a1a; background-color: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #7A1F1F; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover, a:focus { color: #5e1717; text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid rgba(46,110,77,0.4); outline-offset: 2px; }

/* ---------- ROOT TOKENS ---------- */
:root {
  --color-primary: #7A1F1F;  /* Weinrot */
  --color-secondary: #2E6E4D;/* Waldgrün */
  --color-accent: #F2EDE3;   /* Creme */
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-border: rgba(0,0,0,0.1);
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 { font-family: Georgia, 'Times New Roman', serif; color: #111111; line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
.subheadline { font-size: 16px; color: var(--color-muted); max-width: 60ch; }
strong { color: #111111; }

/* ---------- LAYOUT BASICS (FLEX-ONLY) ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.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; flex-direction: column; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ffffff; color: #111111; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure native sections have air */
section { margin-bottom: 60px; padding: 40px 0; }

/* ---------- HEADER / NAV ---------- */
header { background-color: #ffffff; background-image: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0)); border-bottom: 1px solid rgba(0,0,0,0.06); position: relative; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { padding: 10px 8px; border-radius: var(--radius-sm); color: #111111; font-weight: 600; }
.main-nav a:hover { background-color: var(--color-accent); text-decoration: none; }
.main-nav .cta { background-color: var(--color-primary); background-image: linear-gradient(135deg, rgba(122,31,31,1), rgba(122,31,31,0.9)); color: #fff; padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.main-nav .cta:hover { background-color: #5e1717; transform: translateY(-1px); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; color: var(--color-primary); border: 1px solid rgba(122,31,31,0.25); border-radius: 12px; background-color: #fff; }
.mobile-menu-toggle:hover { background-color: var(--color-accent); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: #ffffff; display: flex; flex-direction: column; gap: 20px; transform: translateX(100%); transition: transform .35s ease; z-index: 1100; padding: 18px; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.show, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; font-size: 26px; line-height: 1; color: var(--color-primary); background: #fff; border: 1px solid rgba(122,31,31,0.25); width: 40px; height: 40px; border-radius: 10px; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--color-accent); color: #111111; font-weight: 600; }
.mobile-nav a:hover { background: #e9e4d9; text-decoration: none; }

/* Show desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero { background-color: var(--color-accent); /* fallback */ background-image: linear-gradient(135deg, rgba(122,31,31,0.12), rgba(46,110,77,0.12)); }
.hero .container { align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 32px; }
.hero .cta-row { margin-top: 8px; }

/* ---------- CTA BUTTONS ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; font-weight: 700; letter-spacing: .2px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn-primary { background-color: var(--color-primary); background-image: linear-gradient(135deg, rgba(122,31,31,1), rgba(122,31,31,0.9)); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background-color: #ffffff; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-accent); }

/* ---------- BADGES / TRUST ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: flex; align-items: center; gap: 8px; background-color: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 999px; padding: 8px 12px; box-shadow: var(--shadow-sm); color: #111111; }
.badge img { width: 18px; height: 18px; }

/* ---------- TEXT SECTIONS ---------- */
.text-section { display: flex; flex-direction: column; gap: 16px; max-width: 70ch; }
.text-section a.btn-secondary { align-self: flex-start; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; box-shadow: var(--shadow-sm); color: #111; }

/* Lists aesthetics */
ul li, ol li { margin-bottom: 8px; }
ul li::marker { color: var(--color-secondary); }
ol { counter-reset: item; }

/* ---------- TESTIMONIALS ---------- */
/* Ensure high readability: dark text on light background */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--color-muted); }

/* ---------- FOOTER ---------- */
footer { background-color: #5e1717; /* fallback */ background-image: linear-gradient(180deg, #5e1717, #4a1313); color: #ffffff; margin-top: 40px; }
footer .container { padding-top: 32px; padding-bottom: 32px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer-columns > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
footer h3 { color: #ffffff; font-size: 18px; margin-bottom: 6px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #ffffff; opacity: 0.92; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer address { font-style: normal; opacity: 0.95; }
.copy { margin-top: 8px; opacity: 0.8; }

/* ---------- CARDS (GENERIC) ---------- */
.card h3 { margin-bottom: 8px; }
.card .card-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ---------- UTILITIES ---------- */
.muted { color: var(--color-muted); }
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .subheadline { font-size: 18px; }
}
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .cta-row { gap: 14px; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
}

/* ---------- BUTTON VARIATIONS ---------- */
.btn-ghost { background: transparent; color: #111111; border: 2px solid #dddddd; padding: 12px 18px; border-radius: 999px; }
.btn-ghost:hover { background: #f7f7f7; }

/* ---------- LINK REFINEMENTS ---------- */
header a, .mobile-nav a, footer a { text-underline-offset: 3px; }

/* ---------- PAGE-SPECIFIC POLISH ---------- */
/* Hero headings more breathing room where present */
.hero h1 + .subheadline { margin-top: -4px; }

/* Sections: ensure content doesn't overlap and keeps air */
.container + .container { margin-top: 0; }

/* ---------- MOBILE MENU ACCESSIBILITY BACKDROP (optional) ---------- */
/* If desired, toggle on body.menu-open to disable scroll */
body.menu-open { overflow: hidden; }

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #ffffff; color: #111111; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 12px 28px rgba(0,0,0,0.18); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 1200; transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show, .cookie-banner.active, body.cookie-open .cookie-banner { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .cookie-actions .btn-primary { background-image: none; }
.cookie-banner .cookie-actions .btn-secondary { border-color: var(--color-secondary); color: var(--color-secondary); }
.cookie-banner .cookie-actions .btn-ghost { border-color: #dddddd; color: #333333; }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1300; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal.open, .cookie-modal.active, body.cookie-modal-open .cookie-modal { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content { background: #ffffff; border-radius: 16px; width: 100%; max-width: 640px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.22); border: 1px solid var(--color-border); }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 12px; background: #fafafa; }
.cookie-modal .cookie-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }

/* Toggle switch for cookie categories */
.toggle { position: relative; width: 44px; height: 26px; background: #cccccc; border-radius: 999px; transition: background .2s ease; display: inline-flex; align-items: center; padding: 3px; }
.toggle::after { content: ""; width: 20px; height: 20px; background: #ffffff; border-radius: 50%; transition: transform .2s ease; box-shadow: var(--shadow-sm); }
.toggle.on { background: var(--color-secondary); }
.toggle.on::after { transform: translateX(18px); }

/* ---------- ACCESSIBLE TABLE-LIKE BLOCKS VIA FLEX (if needed) ---------- */
.flex-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- GRADIENT MODERN TOUCHES ---------- */
/* Subtle gradient accents on sections via pseudo background bands */
.section-gradient, .band-gradient { background-color: #ffffff; background-image: linear-gradient(90deg, rgba(122,31,31,0.06), rgba(46,110,77,0.06)); }

/* ---------- IMAGE / MEDIA WRAPPERS ---------- */
.media { display: flex; align-items: center; justify-content: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }

/* ---------- FORMS (general polish if forms are added later) ---------- */
input, select, textarea { font-family: inherit; font-size: 16px; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; background: #ffffff; color: #1a1a1a; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(46,110,77,0.15); outline: none; }
label { font-weight: 600; margin-bottom: 6px; display: inline-block; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- SAFETY: PREVENT OVERLAP AND ENSURE SPACING ---------- */
.content-wrapper > * + * { margin-top: 0; }
.trust-badges, .testimonial-card, .card, .text-section, .footer-columns { margin-top: 0; }

/* ---------- PRINT BASICS ---------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
