/* ==========================================================================
   Online Ernährungsberatung (online-ernaehrungsberatung.net) — Stylesheet
   Fonts (Raleway/Open Sans) lokal in assets/fonts/ eingebunden (kein
   Google-Fonts-CDN, DSGVO-unkritisch). Variable Fonts, ein File pro
   Schriftfamilie deckt alle Schnitte ab. Farbschema: Teal/Gold/Navy,
   übernommen von der Marke „Ernährungsberatung Donauwörth"
   (siehe 00 Business DNA/design.md).
   ========================================================================== */

@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf8f2;
  --bg-alt: #f1ece0;
  --card-bg: #ffffff;
  --card-bg-hover: #faf6ec;
  --border: #e4dfd3;
  --text: #1f2d3d;
  --text-muted: #5b6b7a;
  --text-faint: #7c8a97;
  --teal: #22817d;
  --teal-hover: #1c6b68;
  --teal-tint: #e4f0ef;
  --gold: #f2ba32;
  --gold-hover: #e9aa0f;
  --navy: #1f2d3d;
  --on-teal: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 20px 50px -24px rgba(43, 62, 82, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.accent { color: var(--gold); }

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 14px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

@media (max-width: 420px) {
  .btn { padding: 13px 18px; font-size: 0.88rem; }
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: var(--on-teal);
}
.btn-primary:hover { background: var(--teal-hover); color: var(--on-teal); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { flex: none; display: block; height: 84px; width: auto; }
@media (max-width: 480px) {
  .brand-logo { height: 60px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.btn) {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.2rem;
}
.nav-links a:not(.btn):hover { color: var(--teal); }
.nav-links .btn {
  font-size: 1.1rem;
  padding: 15px 28px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 1080px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
}

/* ============ HERO ============ */
.hero { padding: 64px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.hero-meta .item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.94rem; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

.media-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--teal-tint), var(--bg-alt));
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.ai-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(31, 45, 61, 0.75);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--navy);
  padding: 16px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.trust-bar span {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
}

/* ============ SECTIONS ============ */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* ============ PAIN POINTS ============ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-item {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.pain-item .mark {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.pain-item p { color: var(--text-muted); font-size: 0.96rem; }

.pivot {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 0;
  font-size: 1.08rem;
  color: var(--navy);
}
.pivot span { color: var(--teal); font-weight: 700; }

/* ============ CARDS / LEISTUNGEN ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 24px; height: 24px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.card ul li { color: var(--text-muted); font-size: 0.92rem; padding-left: 20px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card-link { margin-top: auto; align-self: flex-start; }

.note-box {
  margin-top: 32px;
  background: var(--teal-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured { border-color: var(--teal); border-width: 2px; }
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card .price-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 6px 0 2px;
}
.price-card .price-value span:not(.amount) { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.price-card ul li { color: var(--text-muted); font-size: 0.92rem; padding-left: 20px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.price-card .btn { margin-top: auto; white-space: nowrap; padding-left: 18px; padding-right: 18px; }

/* ============ USP ============ */
.usp-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .usp-wrap { grid-template-columns: 1fr; } }

.usp-list { display: flex; flex-direction: column; gap: 26px; }
.usp-list .row { display: flex; gap: 18px; }
.usp-list .num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
}
.step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 320px; margin: 0 auto; }
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quote-block {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--teal-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
}

.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.credential-chip {
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question .plus { color: var(--teal); font-size: 1.2rem; flex: none; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--text-muted); }

.faq-more { text-align: center; margin-top: 28px; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--navy);
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lead { color: #cfd8df; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { margin-top: 26px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  color: var(--navy);
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--teal); }
.contact-list li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.contact-list svg { width: 16px; height: 16px; flex: none; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* ============ LEGAL CONTENT (eRecht24-Rechtstexte) ============ */
.legal-body > *:first-child { margin-top: 0; }
.legal-body h1 { font-size: 2rem; margin-bottom: 28px; }
.legal-body h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-body h4, .legal-body h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin: 18px 0 6px;
}
.legal-body p { margin-bottom: 14px; color: var(--text-muted); line-height: 1.7; }
.legal-body ul, .legal-body ol { margin: 0 0 14px 22px; color: var(--text-muted); }
.legal-body li { margin-bottom: 4px; }
.legal-body a { text-decoration: underline; }
