/* PauschPilot – Website. Farben wie App und Logo-Paket. Keine externen Ressourcen. */

/* Inter (SIL Open Font License, siehe fonts/OFL.txt), variable Schrift, vom eigenen Server */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}

:root {
  --navy: #0B2146;
  --navy-2: #13305F;
  --gelb: #FFBE00;
  --gelb-dunkel: #EBAE00;
  --gelb-hell: #FFF3CC;
  --blau: #1F5FAF;
  --blau-hell: #E5EEF9;
  --papier: #F1F4F8;
  --weiss: #FFFFFF;
  --text: #0B2146;
  --grau: #4F5D70;
  --linie: #D2DAE4;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(11, 33, 70, .06), 0 12px 32px -12px rgba(11, 33, 70, .22);
  --breite: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--breite), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gelb); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 33, 70, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kopf .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marke { display: block; flex: none; }
.marke img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: #DCE5F2; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.cta { background: var(--gelb); color: var(--navy); font-weight: 700; margin-left: 6px; }
.nav a.cta:hover { background: var(--gelb-dunkel); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gelb); border-radius: 0; }
@media (max-width: 900px) {
  .kopf { position: static; }
  .kopf .wrap { flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  html { scroll-padding-top: 12px; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gelb { background: var(--gelb); color: var(--navy); }
.btn-gelb:hover { background: var(--gelb-dunkel); color: var(--navy); }
.btn-hell { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-hell:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-rand { border-color: var(--linie); background: var(--weiss); color: var(--navy); }
.btn-rand:hover { border-color: var(--navy); color: var(--navy); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(31, 95, 175, .55), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 190, 0, .12), transparent 70%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gelb); }
.hero .lead { font-size: 1.2rem; color: #DCE5F2; max-width: 36em; margin-bottom: 28px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gelb); margin-bottom: 14px; }
.punkte { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #C9D6EA; font-size: .95rem; }
.punkte li { display: flex; align-items: center; gap: 8px; }
.punkte li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--gelb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B2146' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.hero-bild { position: relative; }
.hero-bild .fenster { transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.hero-bild .pilot { position: absolute; width: 38%; max-width: 210px; left: -12%; bottom: -60px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
.hero-bild .mobil { position: absolute; right: -4%; bottom: -40px; width: 26%; max-width: 160px; border-radius: 18px; border: 5px solid #0A1A36; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 72px; }
  .hero-bild { margin: 0 6% 0 10%; }
  .hero-bild .fenster { transform: none; }
}

/* Browserfenster um Screenshots */
.fenster { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(11, 33, 70, .1); }
.fenster::before {
  content: ""; display: block; height: 26px;
  background:
    radial-gradient(circle at 16px 13px, #FF5F57 5px, transparent 5.5px),
    radial-gradient(circle at 34px 13px, #FEBC2E 5px, transparent 5.5px),
    radial-gradient(circle at 52px 13px, #28C840 5px, transparent 5.5px),
    #E8ECF2;
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 96px 0; }
.abschnitt.weiss { background: var(--weiss); }
.abschnitt.dunkel { background: var(--navy); color: #fff; }
.abschnitt.dunkel h2, .abschnitt.dunkel h3 { color: #fff; }
.abschnitt.dunkel p { color: #C9D6EA; }
.kopfzeile { max-width: 760px; margin-bottom: 48px; }
.kopfzeile.mitte { margin-inline: auto; text-align: center; }
.kopfzeile p { color: var(--grau); font-size: 1.1rem; }
.abschnitt.dunkel .kopfzeile p { color: #C9D6EA; }
@media (max-width: 700px) { .abschnitt { padding: 64px 0; } }

/* Geschichte */
.story { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.story img { width: 100%; max-width: 300px; }
.story blockquote { margin: 0; font-size: 1.3rem; line-height: 1.55; font-weight: 500; }
.story blockquote p { margin-bottom: .9em; }
.story .zitat-gross { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.story footer { margin-top: 20px; font-size: 1rem; color: var(--grau); }
.story footer strong { color: var(--navy); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; gap: 24px; } .story img { max-width: 200px; } }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.schritte li { background: var(--weiss); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--schatten); position: relative; counter-increment: s; }
.schritte li::before { content: counter(s); position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: 2.2rem; color: var(--blau-hell); line-height: 1; }
.schritte img { height: 72px; width: auto; margin-bottom: 16px; }
.schritte p { color: var(--grau); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .schritte { grid-template-columns: 1fr; } }

/* Funktionen */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.karte { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px; }
.abschnitt:not(.weiss) .karte { background: var(--weiss); }
.karte p { color: var(--grau); margin: 0; font-size: .97rem; }
.karte .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.karte .ico svg { width: 24px; height: 24px; stroke: var(--gelb); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 961px) { .raster > .karte:last-child:nth-child(3n+1) { grid-column: 2; } }
@media (max-width: 960px) { .raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .raster { grid-template-columns: 1fr; } }

/* Screenshots */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.galerie figure { margin: 0; }
.galerie a { display: block; text-decoration: none; }
.galerie a:hover .fenster { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), 0 0 0 3px var(--gelb); }
.galerie figcaption { margin-top: 14px; color: var(--grau); font-size: .97rem; }
.galerie figcaption strong { color: var(--navy); display: block; font-size: 1.05rem; }
.galerie .breit { grid-column: 1 / -1; }
.galerie-mobil { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.galerie-mobil figure { margin: 0; width: 220px; text-align: center; }
.galerie-mobil img { border-radius: 22px; border: 6px solid var(--navy); box-shadow: var(--schatten); }
.galerie-mobil figcaption { margin-top: 12px; color: var(--grau); font-size: .93rem; }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr; } }

/* Zwei Spalten mit Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.umgekehrt > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.umgekehrt > :first-child { order: 0; } }
.liste { list-style: none; padding: 0; margin: 0 0 1.4em; }
.liste li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--linie); }
.abschnitt.dunkel .liste li { border-color: rgba(255, 255, 255, .12); color: #DCE5F2; }
.liste li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--gelb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B2146' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.pdf-bild { max-width: min(440px, 92%); margin-inline: auto; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-2deg); }

/* Rollen-Tabelle und Tabellen */
.tabelle-huelle { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--weiss); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #F8FAFC; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ja { color: #157A3B; font-weight: 700; }
.nein { color: #8A97A8; }

/* Kennzahlen */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.zahl-karte { background: var(--weiss); border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten); }
.zahl-karte b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.zahl-karte span { color: var(--grau); font-size: .93rem; }
@media (max-width: 800px) { .zahlen { grid-template-columns: 1fr 1fr; } }

/* Download */
.download { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.download .box { background: var(--navy-2); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(255, 255, 255, .1); }
.download .box h3 { margin-bottom: .7em; }
pre { margin: 0 0 1em; background: #071631; color: #E6EDF7; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
p code, li code { background: var(--blau-hell); color: var(--navy); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.abschnitt.dunkel p code, .abschnitt.dunkel li code { background: rgba(255, 255, 255, .1); color: #fff; }
.hinweis { font-size: .93rem; color: #9FB1CB; }
@media (max-width: 900px) { .download { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blau); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--grau); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Spenden */
.spenden { background: linear-gradient(135deg, var(--gelb) 0%, #FFD24D 100%); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.spenden h2 { margin-bottom: .3em; }
.spenden p { margin: 0; max-width: 40em; }
.spenden .knopfreihe { justify-content: flex-end; }
.spenden .btn-navy { background: var(--navy); color: #fff; }
.spenden .btn-navy:hover { background: var(--navy-2); color: #fff; }
.spenden .btn-weiss { background: #fff; color: var(--navy); }
.spenden small { display: block; margin-top: 14px; font-size: .85rem; color: #4A3A00; }
@media (max-width: 800px) { .spenden { grid-template-columns: 1fr; padding: 32px 24px; } .spenden .knopfreihe { justify-content: flex-start; } }

/* ---------- Unterseiten ---------- */
.seitenkopf { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.seitenkopf h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.seitenkopf p { color: #C9D6EA; margin: 12px 0 0; font-size: 1.1rem; max-width: 46em; }
.brotkrumen { font-size: .88rem; margin-bottom: 14px; color: #9FB1CB; }
.brotkrumen a { color: #C9D6EA; }
.dokument { padding: 56px 0 96px; }
.dokument .text { max-width: 820px; }
.dokument section { margin-bottom: 36px; }
.dokument h2 { font-size: 1.45rem; margin-top: 0; }
.dokument h3 { font-size: 1.1rem; margin-top: 1.4em; }
.dokument address { font-style: normal; }
.dokument .stand { color: var(--grau); font-size: .93rem; }
.dokument ul { padding-left: 1.2em; }
.dokument li { margin-bottom: .35em; }
.infobox { background: var(--gelb-hell); border-left: 4px solid var(--gelb); padding: 16px 20px; border-radius: 8px; margin: 0 0 28px; }
.infobox p:last-child { margin: 0; }
.suchfeld-hinweis { color: var(--grau); font-size: .93rem; }
.inhalt-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.inhalt-nav a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; font-size: .9rem; color: var(--navy); }
.inhalt-nav a:hover { border-color: var(--navy); }

/* ---------- Fuß ---------- */
.fuss { background: #071631; color: #9FB1CB; padding: 56px 0 40px; font-size: .95rem; }
.fuss .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.fuss img { height: 28px; width: auto; margin-bottom: 14px; }
.fuss h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { color: #DCE5F2; text-decoration: none; }
.fuss a:hover { color: var(--gelb); text-decoration: underline; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .fuss .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* 404 */
.fehlerseite { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.fehlerseite img { width: 200px; margin: 0 auto 20px; }

/* Rasterspalten dürfen schmaler als ihr Inhalt werden (verhindert seitliches Scrollen am Handy) */
.split > *, .download > *, .story > *, .hero .wrap > *, .spenden > *, .fuss .wrap > * { min-width: 0; }
tbody th[scope="row"] { font-weight: 500; }
tbody tr:nth-child(even) th { background: #F8FAFC; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
.dokument .inhalt-nav { padding: 0; }

/* Ausklappbare Tabelle (Auslandspauschalen) */
.aufklapp { margin: 0 0 1em; }
.aufklapp > summary {
  cursor: pointer; list-style: none; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 56px 16px 20px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700;
}
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary span { font-weight: 500; color: #C9D6EA; font-size: .93rem; }
.aufklapp > summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--gelb); border-bottom: 2.5px solid var(--gelb); transform: rotate(45deg); transition: transform .2s;
}
.aufklapp[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
.aufklapp[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.aufklapp > summary:hover { background: var(--navy-2); }
.aufklapp > .suchfeld-hinweis { margin: 12px 0; }
.aufklapp .tabelle-huelle { border-radius: 0 0 var(--radius) var(--radius); }

/* Screenshots per Klick vergrößern (ohne JavaScript: der Link setzt #zoom-…, :target zeigt die Ebene) */
.galerie a, .galerie-mobil a, a:has(> .pdf-bild) { cursor: zoom-in; }
.galerie-mobil a { display: block; }
.galerie-mobil a:hover img, .galerie-mobil a:focus-visible img { box-shadow: 0 0 0 3px var(--gelb), var(--schatten); }
.zoom { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(7, 22, 49, .92); padding: 4vh 4vw; place-items: center; }
.zoom:target { display: grid; animation: zoom-ein .2s ease; }
.zoom-hinter { position: absolute; inset: 0; cursor: zoom-out; }
.zoom figure { position: relative; margin: 0; pointer-events: none; text-align: center; }
.zoom img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #fff; }
.zoom-hoch img { border-radius: 14px; }
.zoom figcaption { color: #DCE5F2; margin-top: 14px; font-weight: 600; }
.zoom-zu { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--gelb); color: var(--navy); font-size: 2rem; line-height: 46px; text-align: center; text-decoration: none; font-weight: 400; }
.zoom-zu:hover { background: var(--gelb-dunkel); color: var(--navy); }
@keyframes zoom-ein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zoom:target { animation: none; } }

/* Augenzwinkernder Hinweis im Fußbereich */
.fuss .beipackzettel { flex-basis: 100%; font-style: italic; color: #7F93B0; }
