/*
 * ============================================================
 * GO:BETTER — Legacy Utilities (Reset + Sektions-Layout)
 * style.css · schlank nach Cleanup 04/2026
 *
 * Zweck: das, was nach der GO:BETTER-Migration noch aktiv
 * benutzt wird — Reset, section/container/wide-Layouts, Legal-
 * Seiten-Klassen, .tag/.fade/.plan-features und die FAQ-Details.
 *
 * ENTFERNT wurde alles was durch das neue Design-System abgelöst
 * ist: Design-Tokens (jetzt in tokens.css), Manrope-Font-Aliase
 * (jetzt Geist), Legacy-Nav (jetzt gb-shell.css), Legacy-Buttons
 * (jetzt web.css/gb-btn), Legacy-Footer (jetzt gb-shell.css),
 * Light/Dark-Theme-Toggle inkl. .theme-fab und body/nav/footer-
 * Transitions — der User will kein Theme-Wechsel mehr im neuen
 * Design.
 * ============================================================
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 112.5%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
section { padding: 7rem 2rem; }
.container { max-width: 900px; margin: 0 auto; }
.wide { max-width: 1120px; margin: 0 auto; }

/* Legal-Seiten Main-Content (agb, impressum, datenschutz) */
main.legal { max-width: 680px; margin: 0 auto; padding: 8rem 2rem 6rem; }
main.legal h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
main.legal h2 { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin: 2.5rem 0 0.8rem; font-family: var(--font-mono); border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
main.legal h2:first-of-type { border-top: none; padding-top: 0; }
main.legal p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 0.8rem; line-height: 1.75; }
main.legal p strong { color: var(--color-text); font-weight: 500; }
main.legal ul { margin: 0.5rem 0 0.8rem 1.2rem; }
main.legal ul li { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 0.3rem; line-height: 1.65; }
main.legal a { color: var(--color-accent); text-decoration: none; }
main.legal a:hover { text-decoration: underline; }
.page-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.5rem; display: block; }
.updated { font-family: var(--font-mono); font-size: 0.65rem; color: var(--color-text-muted); margin-bottom: 2.5rem; display: block; }

/* ── Common Components ── */

/* Tag / Eyebrow — kleine Mono-Zeile mit vorangestellter Linie */
.tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.4rem; }
.tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--color-accent); }

/* Color-Utility für kleine Highlight-Spans in Fließtext-Headlines */
.n { color: var(--color-accent); }
.b { color: var(--color-accent); }

/* Scroll-Reveal-Animation (JS hängt .in nach IntersectionObserver an) */
.fade { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* Accordion / Details — allgemein für ausklappbare Info-Boxen */
details { margin-top: 1rem; }
details summary { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); width: 100%; transition: color 0.2s; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+'; font-size: 1rem; color: var(--color-accent); line-height: 1; transition: transform 0.2s; display: inline-block; width: 14px; }
details[open] summary::before { transform: rotate(45deg); }
details summary:hover { color: var(--color-text); }
details .detail-body { padding-top: 1.2rem; }
details .detail-body p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.8rem; }
details .detail-body p:last-child { margin-bottom: 0; }
details .detail-body strong { color: var(--color-text); font-weight: 500; }

/* FAQ-Sektion-Overrides — Fragen im Sans-Fließtext, Icon rechts */
#faq details { margin-top: 0; }
#faq details summary { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-text); display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1.2rem 0; border-bottom: none; gap: 1rem; }
#faq details summary::before { display: none; }
#faq details summary .faq-icon { font-family: var(--font-mono); font-size: 1rem; color: var(--color-accent); flex-shrink: 0; transition: transform 0.25s; }
#faq details[open] summary .faq-icon { transform: rotate(45deg); }
#faq details[open] { border-bottom: 1px solid var(--color-border); }
#faq details summary:hover { color: var(--color-text); }

/* ── Pricing-Plan-Cards (plaene.html, plaene-beta.html) ── */
.plan-price { margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); min-height: 7rem; }
.plan-features { list-style: none; flex: 1; margin-bottom: 2rem; }
.plan-features li { font-size: 0.78rem; color: var(--color-text-muted); padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); line-height: 1.45; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--color-accent); font-size: 0.75rem; font-family: var(--font-mono); padding-right: 7px; }
.plan-features li.off { color: var(--color-text-disabled); }
.plan-features li.off::before { content: '–'; color: var(--color-text-disabled); }
.plan-features li strong { color: var(--color-text); font-weight: 500; }
.plan-features li:has(details)::before { display: none; }

/* Compare-Tabelle — versteckter Scrollbar für horizontales Scrollen */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.compare-table-wrap::-webkit-scrollbar { display: none; }

/* Email-Form Success-Message — versteckt bis JS sie einblendet */
.form-success { display: none; font-family: var(--font-sans); font-size: 0.85rem; padding: 1rem 0; color: var(--color-accent); }

/* ── Responsive ── */
@media (max-width: 720px) {
  section { padding: 4rem 1.25rem; }
}
