/* ============================================================
   Zahlenfuchs — Website Styles
   ============================================================ */

/* --- Web Fonts (self-hosted, SIL Open Font License, see assets/fonts/) --- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/lora-v37-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/lora-italic-v37-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-v32-latin.woff2') format('woff2');
}

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  --color-fuchsrot:        #C0603A;
  --color-fuchsrot-dark:   #A8512E;
  --color-fuchsrot-deep:   #8F4426;
  --color-fuchsrot-light:  #e8927a;
  --color-waldgruen:       #5C7A4E;
  --color-waldgruen-text:  #4F6B43;
  --color-waldgruen-light: #7a9e6a;
  --color-bienenwachs:     #F2D77E;
  --color-bienenwachs-light: #faedb6;
  --color-birkenweiss:     #FAF7F0;
  --color-holzbraun:       #6B4C35;
  --color-steingrau:       #9A9087;
  --color-steingrau-light: #c8c0b8;
  /* Text colours that reach WCAG AA (4.5:1) on Birkenweiss, the warm sections and white.
     Steingrau, Fuchsrot and Waldgrün stay for lines, areas and large titles. */
  --color-text-muted:      #756B62;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;

  --container-max: 1080px;
  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   2rem;
  --spacing-lg:   4rem;
  --spacing-xl:   6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-birkenweiss);
  color: var(--color-holzbraun);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-fuchsrot-dark);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-holzbraun);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* Keep linked headings clear of the sticky header */
h2[id], h3[id] {
  scroll-margin-top: 6rem;
}

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-holzbraun);
  line-height: 1.75;
}

/* --- Site Header --- */
.site-header {
  background: var(--color-birkenweiss);
  border-bottom: 1px solid rgba(107, 76, 53, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-sm) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-holzbraun);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Sechs Navigationspunkte plus CTA: etwas engere Abstände als --spacing-md,
   damit die Leiste bei 1280 px auf einer Zeile bleibt. */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-holzbraun);
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-fuchsrot-dark);
  opacity: 1;
}

.nav-cta {
  background: var(--color-fuchsrot-dark);
  color: var(--color-birkenweiss) !important;
  padding: 0.5rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  touch-action: manipulation;
}

.nav-cta:hover {
  background: var(--color-fuchsrot-deep);
  opacity: 1 !important;
}

/* --- Hamburger toggle button --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-holzbraun);
  touch-action: manipulation;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Buttons ---
   One box for every button: filled and outlined share the 2px border, so two
   buttons side by side are the same height. Two sizes: .btn and .btn-large. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: var(--color-fuchsrot-dark);
  border-color: var(--color-fuchsrot-dark);
  color: var(--color-birkenweiss);
}

.btn-primary:hover {
  background: var(--color-fuchsrot-deep);
  border-color: var(--color-fuchsrot-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--color-holzbraun);
  border-color: var(--color-holzbraun);
}

.btn-secondary:hover {
  background: rgba(107, 76, 53, 0.08);
}

.btn-large {
  font-size: 1.1rem;
  padding: 0.9rem 2.25rem;
}

/* Buttons side by side: same height, centred on one line, wrapping on a phone */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* --- Hero Section --- */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    135deg,
    var(--color-birkenweiss) 0%,
    rgba(242, 215, 126, 0.18) 100%
  );
  border-bottom: 1px solid rgba(107, 76, 53, 0.08);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

/* A hero without illustration (/lehrpersonen, /vergleich, /ueber-uns) uses the
   full width for its text instead of squeezing the title into the left half. */
.hero .container:not(:has(.hero-illustration)) {
  grid-template-columns: 1fr;
}

.hero .container:not(:has(.hero-illustration)) .hero-content {
  max-width: 760px;
}

.hero-content h1 {
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding-inline: 1.25rem;
}

.hero-hint {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fox-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* A fixed width, so neither the bubble's font nor the image's loading state
     changes the scene's size and moves the picture (layout shift). */
  width: 100%;
  max-width: 560px;
}

/* The picture spans the scene and centres the image, so its box has the same size
   before and after the image has loaded. */
.fox-scene > picture {
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.fox-scene-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(107, 76, 53, 0.18);
  display: block;
}

.fox-speech-bubble {
  position: relative;
  background: var(--color-bienenwachs);
  color: var(--color-holzbraun);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(107, 76, 53, 0.18);
  /* Fixed rather than shrink-to-fit: the fallback font is narrower than Lora,
     and a width that follows the text would jump when Lora arrives. */
  width: 100%;
  max-width: 360px;
  text-align: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(107, 76, 53, 0.1);
}

.fox-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--color-bienenwachs);
  filter: drop-shadow(0 2px 1px rgba(107,76,53,0.1));
}

/* --- So sieht Üben aus (echte App-Aufnahmen) --- */
.section-demo {
  background: var(--color-birkenweiss);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(107, 76, 53, 0.08);
}

.demo-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.demo-title {
  margin-bottom: var(--spacing-xs);
}

.demo-subtitle {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Two cut-outs of the app, each shown at a size where its text stays legible:
   the task with the fox's hint (portrait) beside the forest (landscape). */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.demo-shot {
  margin: 0;
}

.demo-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-birkenweiss);
  border: 1px solid rgba(107, 76, 53, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(107, 76, 53, 0.1);
}

.demo-shot figcaption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 0.6rem;
}

/* --- Sections --- */
.section {
  padding: var(--spacing-xl) 0;
}

.section-warm {
  background: rgba(242, 215, 126, 0.15);
  border-top: 1px solid rgba(107, 76, 53, 0.08);
  border-bottom: 1px solid rgba(107, 76, 53, 0.08);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: var(--spacing-lg);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* --- Cards ---
   One card style for the whole site: Birkenweiss, a fine border, no coloured
   bar and no icon. Feature, audience and principle cards, the trust cards on
   /eltern and the cards on /vergleich all use it. */
.feature-card,
.audience-card,
.principle,
.trust-badge {
  background: var(--color-birkenweiss);
  border: 1px solid rgba(107, 76, 53, 0.14);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- Principles (Kopf / Herz / Hand) --- */
.principles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.principle h3 {
  color: var(--color-holzbraun);
  margin-bottom: var(--spacing-xs);
}

.principle p {
  font-size: 0.95rem;
  color: var(--color-holzbraun);
}

/* --- Brand Quote --- */
.brand-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-holzbraun);
  border-left: 4px solid var(--color-bienenwachs);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
  max-width: 720px;
  background: rgba(242, 215, 126, 0.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Audience Grid --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.audience-card h3 {
  margin-bottom: var(--spacing-xs);
}

.audience-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- CTA Section --- */
.section-cta {
  background: var(--color-holzbraun);
  text-align: center;
}

.section-cta h2 {
  color: var(--color-birkenweiss);
  margin-bottom: var(--spacing-sm);
}

.section-cta p {
  color: rgba(250, 247, 240, 0.8);
  max-width: 500px;
  margin: 0 auto var(--spacing-md);
  font-size: 1.05rem;
}

.section-cta .btn-secondary {
  color: var(--color-birkenweiss);
  border-color: var(--color-birkenweiss);
}

.section-cta .btn-secondary:hover {
  background: rgba(250, 247, 240, 0.12);
}

.section-cta .cta-privacy-note {
  max-width: 640px;
  margin: var(--spacing-md) auto 0;
  font-size: 0.95rem;
}

.section-cta .cta-privacy-note a {
  color: var(--color-birkenweiss);
  text-decoration: underline;
}

/* --- Newsletter Section --- */
.section-newsletter {
  background: var(--color-bienenwachs-light);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1 1 280px;
}

.newsletter-text h2 {
  margin-bottom: var(--spacing-xs);
}

.newsletter-text p {
  color: var(--color-holzbraun);
  opacity: 0.85;
  max-width: 380px;
}

.newsletter-form-wrap {
  flex: 1 1 320px;
}

.newsletter-form {
  width: 100%;
}

.newsletter-fields {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 440px;
}

.newsletter-input-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.newsletter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-holzbraun);
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.newsletter-fields input[type="email"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(107, 76, 53, 0.25);
  border-radius: var(--radius-sm);
  background: var(--color-birkenweiss);
  color: var(--color-holzbraun);
  min-height: 44px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.newsletter-fields input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.newsletter-fields input[type="email"]:focus {
  border-color: var(--color-waldgruen);
  box-shadow: 0 0 0 3px rgba(92, 122, 78, 0.15);
}

.newsletter-submit {
  flex-shrink: 0;
  white-space: nowrap;
}

.newsletter-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.newsletter-message--success {
  color: var(--color-waldgruen-text);
}

.newsletter-message--error {
  color: var(--color-fuchsrot-dark);
}

/* Success state */
.newsletter-success {
  flex: 1 1 320px;
  background: var(--color-birkenweiss);
  border: 2px solid var(--color-waldgruen);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
}

.newsletter-success-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-waldgruen);
  color: var(--color-birkenweiss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 auto 0.75rem;
}

.newsletter-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-holzbraun);
  margin: 0 0 0.4rem;
}

.newsletter-success-body {
  font-size: 0.95rem;
  color: var(--color-holzbraun);
  margin: 0 0 0.75rem;
  opacity: 0.85;
}

.newsletter-spam-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(154, 144, 135, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin: 0;
}

/* Screen-reader only utility (reused if not already defined) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .newsletter-inner {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .newsletter-text,
  .newsletter-form-wrap,
  .newsletter-success {
    flex: 0 0 auto;
    width: 100%;
  }

  .newsletter-fields {
    flex-direction: column;
  }

  .newsletter-fields input[type="email"],
  .newsletter-fields .btn,
  .newsletter-submit {
    width: 100%;
  }

  .newsletter-input-group {
    width: 100%;
    flex: none;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-birkenweiss);
  border-top: 1px solid rgba(107, 76, 53, 0.12);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-icon {
  height: 40px;
  width: auto;
}

.footer-logo .logo-wordmark {
  font-size: 1.1rem;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.5rem;
}

.footer-nav a:hover {
  color: var(--color-fuchsrot-dark);
  opacity: 1;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-climate {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}
.footer-climate a {
  color: var(--color-waldgruen-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-climate a:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   NEW SECTIONS — Aus proposal-ZAH-162
   ═══════════════════════════════════════════════════════════ */

/* ── New-section label ── */
.new-section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fuchsrot-dark);
  background: rgba(192, 96, 58, 0.1);
  border: 1px solid rgba(192, 96, 58, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

/* ── SEKTION 1: Für die Schweizer Schule gemacht ── */
.section-swiss {
  background: var(--color-birkenweiss);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.section-swiss::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 90% 50%, rgba(242, 215, 126, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(92, 122, 78, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.section-swiss .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.swiss-text {
  max-width: 480px;
}

.swiss-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-waldgruen-text);
  margin-bottom: 1.25rem;
}
.swiss-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-waldgruen);
  border-radius: 2px;
}

.swiss-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-holzbraun);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.swiss-title em {
  font-style: italic;
  color: var(--color-fuchsrot-dark);
}

.swiss-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.swiss-description {
  font-size: 1.05rem;
  color: var(--color-holzbraun);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.swiss-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-gruen {
  background: rgba(92, 122, 78, 0.12);
  color: var(--color-waldgruen-text);
  border: 1.5px solid rgba(92, 122, 78, 0.25);
}
.badge-wachs {
  background: rgba(242, 215, 126, 0.35);
  color: var(--color-holzbraun);
  border: 1.5px solid rgba(242, 215, 126, 0.6);
}
.badge-rot {
  background: rgba(192, 96, 58, 0.1);
  color: var(--color-fuchsrot-dark);
  border: 1.5px solid rgba(192, 96, 58, 0.2);
}

/* ── App-Screenshot (Gerätefassung um die echte Aufnahme) ── */
.app-mock-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.app-mock {
  background: var(--color-birkenweiss);
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 76, 53, 0.14);
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 2px 0 rgba(107,76,53,0.06),
    0 8px 32px rgba(107,76,53,0.1);
}

/* ── SEKTION 3: Werbefrei ── */
.section-adsfree {
  background: var(--color-birkenweiss);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.section-adsfree::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(92, 122, 78, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(242, 215, 126, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.adsfree-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.adsfree-badges-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.trust-badge {
  width: 100%;
  max-width: 380px;
}

.trust-badge h3 {
  margin-bottom: var(--spacing-xs);
}
.trust-badge p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.werbefrei-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.werbefrei-shield {
  width: 80px;
  height: 88px;
  margin-bottom: 1.5rem;
  position: relative;
}

.werbefrei-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-holzbraun);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.werbefrei-title em {
  font-style: italic;
  color: var(--color-waldgruen-text);
}

.werbefrei-desc {
  font-size: 1.05rem;
  color: var(--color-holzbraun);
  line-height: 1.8;
  opacity: 0.85;
  max-width: 420px;
}

.werbefrei-stamp {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--color-waldgruen);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
/* The header needs about 940 px for logo, six links and «Anmelden» on one line.
   Below that (phones, iPad upright) the links move into the menu behind the button. */
@media (max-width: 960px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
  }

  .logo { flex: 1; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) 0;
    border-top: 1px solid rgba(107, 76, 53, 0.1);
    margin-top: var(--spacing-xs);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(107, 76, 53, 0.06);
  }

  .main-nav .nav-cta {
    margin-top: var(--spacing-xs);
    padding: 0.6rem 1.25rem;
    justify-content: center;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3.5rem;
    --spacing-lg: 2.5rem;
  }

  .hero .container { grid-template-columns: 1fr; }
  .hero-illustration { display: flex; }
  .fox-scene-img { max-width: 320px; }
  .principles-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .section-swiss .container,
  .adsfree-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .swiss-text { max-width: 100%; }
  .app-mock-wrapper { order: -1; }
  .demo-grid { grid-template-columns: 1fr; max-width: 520px; }
  .trust-badge { max-width: 100%; }
  .werbefrei-hero { align-items: flex-start; }
}

/* «Datenschutzerklärung» or «Auftragsbearbeitungsvertrag» is wider than a small
   phone: let long words hyphenate there instead of pushing the page sideways */
main {
  overflow-wrap: break-word;
}

/* Below about 400 px Lora breaks the bubble's line in two, the narrower fallback
   font does not: reserve both lines, so the picture stays put when Lora arrives. */
@media (max-width: 400px) {
  .fox-speech-bubble {
    min-height: calc(3em + 1.7rem + 4px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  h1 {
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .features-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .section-swiss,
  .section-adsfree {
    padding: 4rem 0 3.5rem;
  }
}

/* --- Focus / Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-fuchsrot);
  outline-offset: 3px;
}

/* ── Preissektion ── */
.section-preise {
  background: var(--color-birkenweiss);
  padding: 5rem 0 4rem;
  border-top: 1px solid rgba(107,76,53,0.08);
}

.preise-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.preise-col {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.preise-col .btn {
  align-self: flex-start;
}

.preise-col--gratis {
  background: var(--color-birkenweiss);
  border: 1px solid rgba(107, 76, 53, 0.14);
}

.preise-col--plus {
  background: #fff8f0;
  border: 1.5px solid var(--color-fuchsrot);
}

.preise-col--support {
  background: var(--color-birkenweiss);
  border: 1px solid rgba(107, 76, 53, 0.14);
}

.preise-col-label--support { color: var(--color-text-muted); }

.preise-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.preise-col-label--gratis { color: var(--color-waldgruen-text); }
.preise-col-label--plus   { color: var(--color-fuchsrot-dark); }

.preise-col-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-holzbraun);
  margin-bottom: 0.2rem;
}

.preise-col-price {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(107,76,53,0.1);
}
.preise-col--plus .preise-col-price {
  color: var(--color-holzbraun);
  font-weight: 600;
}

.preise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.preise-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}
.preise-list li::before {
  content: '✓';
  color: var(--color-waldgruen-text);
  font-weight: 700;
  flex-shrink: 0;
}
.preise-list li.preise-list-dim {
  color: var(--color-text-muted);
}
.preise-list li.preise-list-dim::before {
  content: '—';
  color: var(--color-steingrau-light);
}

.preise-note {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.preise-aktivieren-hinweis {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

/* ── Häufige Fragen (FAQ-Accordion) ── */
.section-faq {
  background: var(--color-birkenweiss);
  border-top: 1px solid rgba(107, 76, 53, 0.08);
}

.section-faq .section-intro {
  margin-bottom: var(--spacing-md);
}

.faq-list {
  max-width: 760px;
  border: 1px solid rgba(107, 76, 53, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-birkenweiss);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(107, 76, 53, 0.1);
}

.faq-item[open] {
  background: rgba(242, 215, 126, 0.15);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: 1.15rem var(--spacing-md);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-holzbraun);
  cursor: pointer;
  list-style: none;
  overflow-wrap: break-word;
  transition: color var(--transition), background-color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

.faq-question:hover {
  color: var(--color-fuchsrot-dark);
}

.faq-item[open] > .faq-question {
  color: var(--color-fuchsrot-dark);
}

/* Dezentes Chevron */
.faq-question::after {
  content: '';
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-right: 2px solid var(--color-steingrau);
  border-bottom: 2px solid var(--color-steingrau);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--transition), border-color var(--transition);
}

.faq-question:hover::after,
.faq-item[open] > .faq-question::after {
  border-color: var(--color-fuchsrot);
}

.faq-item[open] > .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 0.6rem;
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-fuchsrot);
  outline-offset: -4px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 var(--spacing-md) 1.35rem;
  animation: faq-reveal 200ms ease both;
}

.faq-answer p {
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .faq-list {
    border-radius: var(--radius-sm);
  }

  .faq-question {
    padding: 1rem var(--spacing-sm);
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 var(--spacing-sm) 1.15rem;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a, .nav-cta, .footer-nav a { transition: none; }
  .faq-question, .faq-question::after { transition: none; }
  .faq-answer { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   Topic pages (/rechnen-mit-geld): explanation, coins and an
   exercise on the page
   ═══════════════════════════════════════════════════════════ */

.prose {
  max-width: 720px;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: var(--spacing-sm);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  color: var(--color-holzbraun);
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a:not(.btn),
.feature-card a,
.faq-answer a,
.swiss-description a:not(.btn),
.section-intro a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose h3 {
  margin-top: var(--spacing-md);
}

/* A hero that carries the exercise right below the title */
.hero--compact {
  padding: var(--spacing-lg) 0;
}

.hero--compact .hero-content h1 {
  margin-bottom: var(--spacing-sm);
}

.hero--compact h2 {
  font-size: 1.4rem;
  margin: var(--spacing-md) 0 0.25rem;
}

.exercise-hint {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.exercise-app {
  margin-top: var(--spacing-sm);
}

/* All coins in a row with their names */
.coin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-md) var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

/* The coins stand on one line, whatever the length of their captions */
.coin-row figure {
  display: grid;
  grid-template-rows: 108px auto;
  justify-items: center;
  align-items: end;
  row-gap: 0.4rem;
  width: 112px;
  text-align: center;
}

.coin-row figcaption {
  align-self: start;
}

.coin-row img {
  width: calc(var(--coin) * 1px);
  height: auto;
}

.coin-row figcaption {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.coin-row figcaption strong {
  display: block;
  color: var(--color-holzbraun);
}

/* Banknotes as plain labelled chips, deliberately no picture of a note */
.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: var(--spacing-sm) 0 var(--spacing-md);
}

.note-list li {
  min-width: 5.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(107, 76, 53, 0.18);
  border-left: 6px solid var(--note);
  background: var(--color-birkenweiss);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-holzbraun);
}

.note-list li span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* A plain table: ways to write the same amount */
.plain-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin: var(--spacing-sm) 0 var(--spacing-md);
  font-size: 0.98rem;
}

.plain-table th,
.plain-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(107, 76, 53, 0.14);
  vertical-align: top;
}

.plain-table th {
  font-family: var(--font-serif);
  font-weight: 600;
}

.plain-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
}

/* The exercise on the page */
.exercise {
  max-width: 720px;
  /* The tasks are drawn by script: keep their room, so nothing below jumps */
  min-height: 320px;
  background: var(--color-birkenweiss);
  border: 1px solid rgba(107, 76, 53, 0.14);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.exercise-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.exercise-question {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.25rem 0 var(--spacing-sm);
}

.exercise-coins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 112px;
  margin-bottom: var(--spacing-sm);
}

.exercise-coins img {
  width: calc(var(--coin) * 0.85px);
  height: auto;
}

.exercise-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.exercise-form label {
  font-weight: 700;
}

.exercise-form input {
  width: 7.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 1.1rem;
  text-align: right;
  color: var(--color-holzbraun);
  background: #fff;
  border: 2px solid var(--color-steingrau-light);
  border-radius: var(--radius-sm);
}

.exercise-form input:focus-visible {
  outline: 2px solid var(--color-fuchsrot);
  outline-offset: 1px;
  border-color: var(--color-fuchsrot);
}

.exercise-feedback {
  margin-top: var(--spacing-sm);
  text-align: center;
}

.exercise-feedback:empty {
  display: none;
}

.exercise-feedback p {
  font-weight: 700;
}

.exercise-feedback .is-right {
  color: var(--color-waldgruen-text);
}

.exercise-way {
  display: inline-block;
  text-align: left;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(242, 215, 126, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.exercise-way li {
  list-style: none;
}

.exercise-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--spacing-sm);
}

.exercise-actions:empty {
  display: none;
}

@media (max-width: 600px) {
  .coin-row { gap: var(--spacing-sm) 0.5rem; }
  .coin-row figure {
    width: calc((100% - 1rem) / 3);
    grid-template-rows: 86px auto;
  }
  .coin-row img { width: calc(var(--coin) * 0.8px); }
  .plain-table th, .plain-table td { padding: 0.5rem 0.4rem; }
  .exercise { padding: var(--spacing-sm); min-height: 380px; }
}
