/* Bausteine fuer Laender-Einzelseiten (Klartext Auswandern).
   ENTWURF — gehoert bei Freigabe in public/styles.css, nicht als eigene Datei ausliefern.
   Ergaenzt das bestehende Design-System (--navy, --amber, --paper ...), definiert nichts neu. */

  /* --- Neue Bausteine für Länder-Einzelseiten. Gehören später in styles.css. --- */
  .land-hero { background: var(--navy); color: #fff; padding: 40px 0 34px; }
  .land-hero h1 { color: #fff; margin-bottom: 10px; }
  .land-hero .lead { color: rgba(255,255,255,.86); max-width: 46rem; }
  .land-flagge { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 12px; }

  .zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
        background: rgba(255,255,255,.2); border-radius: var(--radius); overflow: hidden; margin-top: 26px; }
  .zahl { background: var(--navy-dark); padding: 14px 16px; }
  .zahl b { display: block; font-size: 1.5rem; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.2; }
  .zahl span { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.4; display: block; margin-top: 2px; }

  .land-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
  /* Grid-Kinder duerfen unter ihre Inhaltsbreite schrumpfen, sonst schiebt eine Tabelle die ganze Seite auf */
  .land-layout > * { min-width: 0; }
  @media (max-width: 860px) { .land-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .land-toc { position: static !important; } }

  .land-toc { position: sticky; top: 90px; font-size: .92rem; }
  .land-toc .foot-head { margin-bottom: 10px; }
  .land-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line);
          color: var(--muted); text-decoration: none; }
  .land-toc a:hover { color: var(--navy); border-left-color: var(--amber); }

  .kapitel { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
  .kapitel:last-child { border-bottom: 0; }
  .kapitel h2 { font-size: 1.42rem; margin-bottom: 6px; }
  .kapitel .kap-sub { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
  .kapitel h3 { font-size: 1.03rem; margin: 22px 0 6px; }

  .frist { display: inline-flex; align-items: baseline; gap: 8px; background: rgba(232,161,61,.13);
       border: 1px solid rgba(232,161,61,.4); border-radius: 6px; padding: 4px 10px;
       font-size: .84rem; font-weight: 600; color: var(--amber-dark); margin-bottom: 12px; }

  .vergleich { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 16px 0; }
  .vergleich th, .vergleich td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .vergleich thead th { background: var(--paper); font-size: .78rem; text-transform: uppercase;
              letter-spacing: .06em; color: var(--muted); }
  .vergleich td.z { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tabelle-scroll { overflow-x: auto; }

  .klartext-box { border-left: 3px solid var(--warn); background: #fff; padding: 14px 18px;
          border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; box-shadow: var(--shadow); }
  .klartext-box b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
            color: var(--warn); margin-bottom: 5px; }

  .checkliste { list-style: none; padding: 0; margin: 14px 0; }
  .checkliste li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
  .checkliste li:last-child { border-bottom: 0; }
  .checkliste li::before { content: "☐"; position: absolute; left: 4px; color: var(--amber-dark); font-size: 1.1rem; }

  .geprueft { font-size: .82rem; color: var(--muted); margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }

  /* ============================================================
     FARBWELT PRO LAND
     Jede Laenderseite setzt --land und --land-hell auf <body class="land-xx">.
     Struktur, Schrift und Bausteine bleiben identisch — nur die Farbe wechselt.
     So bleibt die Seitenfamilie erkennbar und wirkt trotzdem bunt.
     ============================================================ */

  body { --land: var(--navy); --land-hell: #eef3f6; }

  body.land-at { --land: #c8102e; --land-hell: #fdeef0; }  /* Rot-Weiss-Rot */
  body.land-ch { --land: #b8232f; --land-hell: #fdeeef; }  /* Schweizer Rot */
  body.land-es { --land: #d97706; --land-hell: #fdf3e6; }  /* Sonne, Ocker */
  body.land-pt { --land: #1a7a5e; --land-hell: #e8f5f0; }  /* Azulejo-Gruen */
  body.land-nl { --land: #e07b39; --land-hell: #fdf1e8; }
  body.land-fr { --land: #3b5fa8; --land-hell: #eef2fa; }
  body.land-it { --land: #2e8b57; --land-hell: #eaf6ef; }

  /* Der Kopf uebernimmt die Landesfarbe statt des Marken-Navy */
  .land-hero { background: linear-gradient(160deg, var(--land) 0%, color-mix(in srgb, var(--land) 74%, #10334a) 100%); }
  .zahl { background: color-mix(in srgb, var(--land) 82%, #0b2435); }
  .land-toc a:hover { border-left-color: var(--land); }
  .kapitel h2 { color: var(--land); }

  /* ============================================================
     BILDER
     ============================================================ */

  /* Grosses Kopfbild ueber dem Titel */
  .land-bild-kopf { position: relative; height: clamp(220px, 34vw, 380px); overflow: hidden; background: var(--land); }
  .land-bild-kopf img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .land-bild-kopf::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(11,36,53,.15) 0%, rgba(11,36,53,.55) 100%);
  }

  /* Bild innerhalb eines Kapitels */
  .kapitel-bild { margin: 18px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--land-hell); }
  .kapitel-bild img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
  .kapitel-bild figcaption { font-size: .84rem; color: var(--muted); padding: 9px 14px; background: #fff; }

  /* Zwei Bilder nebeneinander, z. B. Erwartung und Wirklichkeit */
  .bild-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
  .bild-paar > * { min-width: 0; margin: 0; }
  @media (max-width: 620px) { .bild-paar { grid-template-columns: 1fr; } }

  /* Schmales Band quer ueber die Inhaltsspalte */
  .bild-band { margin: 22px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .bild-band img { width: 100%; height: auto; display: block; aspect-ratio: 21 / 9; object-fit: cover; }

  /* Farbiger Kapitel-Trenner mit Symbol */
  .kapitel > h2 { display: flex; align-items: baseline; gap: 10px; }
  .kapitel > h2 .sym { font-size: 1.1em; line-height: 1; flex: none; }

  /* Farbiger Zahlenkasten im Fliesstext */
  .zahl-inline {
    display: inline-flex; flex-direction: column; gap: 2px; background: var(--land-hell);
    border: 1px solid color-mix(in srgb, var(--land) 30%, transparent); border-radius: var(--radius);
    padding: 10px 16px; margin: 4px 8px 4px 0; min-width: 120px;
  }
  .zahl-inline b { font-size: 1.3rem; color: var(--land); font-variant-numeric: tabular-nums; line-height: 1.1; }
  .zahl-inline span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
  .zahl-reihe { display: flex; flex-wrap: wrap; margin: 16px 0; }

  /* Tabellenkopf in der Landesfarbe */
  .vergleich thead th { background: var(--land-hell); color: color-mix(in srgb, var(--land) 80%, #000); }

  /* ============================================================
     ERGAENZUNGEN 02.09.2026 — zehn Laenderseiten, Vergleichstabelle,
     Community. Additiv, nichts oben wurde geaendert.
     ============================================================ */

  body.land-us { --land: #2f4e8a; --land-hell: #eaeffa; }  /* Blau, ohne Flaggen-Kitsch */
  body.land-ca { --land: #b3261e; --land-hell: #fceeed; }  /* Ahorn */
  body.land-au { --land: #b8741a; --land-hell: #fbf1e3; }  /* Ocker, Outback */
  body.land-th { --land: #1f6e8c; --land-hell: #e7f2f6; }  /* Golf von Thailand */

  .land-hero .hinweis-recht { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 10px; max-width: 46rem; }
  .land-hero .brotkrumen { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
  .land-hero .brotkrumen a { color: rgba(255,255,255,.85); }

  .btn-hell { border-color: #fff !important; color: #fff !important; }
  .btn-hell:hover { background: rgba(255,255,255,.12); }

  /* Kapitel „Fuer wen passt es“ */
  .fuer-wen { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0; }
  .fuer-wen > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .fuer-wen h3 { margin: 0 0 10px !important; font-size: 1rem !important; }
  .fuer-wen ul { list-style: none; padding: 0; margin: 0; }
  .fuer-wen li { padding: 5px 0 5px 24px; position: relative; font-size: .95rem; }
  .fuer-wen .ja li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
  .fuer-wen .nein li::before { content: "✕"; position: absolute; left: 2px; color: var(--warn); font-weight: 800; }
  @media (max-width: 620px) { .fuer-wen { grid-template-columns: 1fr; } }

  /* Kostenbeispiel: Summenzeile */
  .vergleich tr.summe td { font-weight: 700; border-top: 2px solid var(--land); background: var(--land-hell); }

  /* FAQ innerhalb eines Kapitels */
  .kapitel details { padding: 14px 18px; }
  .kapitel details summary { font-size: .98rem; }

  /* Laender-Uebersicht: Vergleichstabelle + Filter */
  .filter-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 10px; }
  .filter-leiste .filter-label { font-size: .85rem; color: var(--muted); margin-right: 4px; }
  .filter-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
  .filter-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .filter-chip:hover { border-color: var(--navy); }
  .filter-hinweis { font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }

  .land-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .land-tabelle th, .land-tabelle td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .land-tabelle thead th { background: var(--paper); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
  .land-tabelle th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; text-transform: inherit; letter-spacing: inherit; }
  .land-tabelle th button::after { content: " ↕"; opacity: .5; }
  .land-tabelle tbody tr:last-child td { border-bottom: 0; }
  .land-tabelle tbody tr[hidden] { display: none; }
  .land-tabelle td.z { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .land-tabelle td.name { font-weight: 700; white-space: nowrap; }
  .land-tabelle td.name a { color: var(--navy); text-decoration: none; }
  .land-tabelle td.name a:hover { text-decoration: underline; }
  .land-tabelle .index-balken { display: inline-block; height: 8px; border-radius: 4px; background: var(--amber); vertical-align: middle; margin-right: 6px; }
  .pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
  .pill.eu { background: #e8f1f7; color: var(--ok); border-color: #c6dbe8; }
  .pill.visum-keins { background: #e9f5ee; color: #1f6b43; border-color: #bfe0cc; }
  .pill.visum-mittel { background: #fdf3e3; color: var(--amber-dark); border-color: #ecd3a8; }
  .pill.visum-hoch { background: #fbe9e4; color: var(--warn); border-color: #f0c8bb; }
  .tabellen-quelle { font-size: .8rem; color: var(--muted); margin-top: 10px; }

  /* Navigation: neun Punkte muessen zwischen 920 und 1120 px noch in eine Zeile passen */
  @media (min-width: 921px) and (max-width: 1120px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: .88rem; }
    .nav-links a.btn { padding: 8px 12px; }
  }

  /* Inhaltsverzeichnis-Ueberschrift war weiss (Footer-Klasse) und damit auf hellem Grund unsichtbar */
  .land-toc .foot-head { color: var(--muted); }
