/* SwiftAppsBavaria — eine Datei für alle Seiten. Keine Webfonts, keine Skripte, nichts von außen:
   die Apps sagen „keine Verbindung, keine Analyse“ zu, die Website hält dieselbe Linie. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --badge-bg: #e8f0fb;
  --badge-text: #0b4f9c;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161617;
    --bg-soft: #1f1f21;
    --text: #f5f5f7;
    --text-soft: #a1a1a6;
    --line: #38383c;
    --accent: #4da3ff;
    --badge-bg: #1d2a3a;
    --badge-text: #9cc7ff;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg: #161617; --bg-soft: #1f1f21; --text: #f5f5f7; --text-soft: #a1a1a6; --line: #38383c;
  --accent: #4da3ff; --badge-bg: #1d2a3a; --badge-text: #9cc7ff;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
header.site .brand { font-weight: 600; color: var(--text); }
header.site nav a { margin-left: 20px; font-size: 15px; color: var(--text-soft); }
header.site nav a:hover { color: var(--text); text-decoration: none; }
header.site nav > a[aria-current] { color: var(--text); font-weight: 600; }   /* Zweig Mac/Windows (2026-10-19) */

/* Startseite */
.banner { margin: 32px 0 8px; }  /* Rundung und Rand trägt das Bild selbst (transparente Ecken) */
.lead { font-size: 21px; color: var(--text-soft); margin: 20px 0 8px; }
h2.section { font-size: 28px; margin: 48px 0 16px; letter-spacing: -.01em; }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-card {
  display: flex; gap: 14px; padding: 16px; border-radius: 14px;
  background: var(--bg-soft); color: var(--text); position: relative;
}
/* Seit 2026-09-25 ist die Karte ein <div>: der Name trägt den Kartenlink und spannt ihn über die ganze Karte,
   damit der Handbuch-Link darin ein eigener Link sein kann (ein Link im Link ist kein gültiges HTML). */
.app-card .kartenlink { color: inherit; }
.app-card .kartenlink::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.app-card .kartenlink:hover { text-decoration: none; }
.app-card:has(.kartenlink):hover { box-shadow: var(--shadow); }
.app-card p.hilfelink { margin: 8px 0 0; font-size: 14px; position: relative; z-index: 1; }
.app-card img { width: 64px; height: 64px; flex: none; }
.app-card h3 { margin: 0 0 4px; font-size: 17px; }
.app-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-soft); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 8px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-text);
  margin: 0 0 6px;
}

/* App-Seite */
.hero { display: flex; gap: 24px; align-items: center; margin: 40px 0 24px; }
.hero img { width: 128px; height: 128px; flex: none; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.hero .subtitle { font-size: 22px; color: var(--text-soft); margin: 6px 0 10px; }
.promo { font-size: 21px; line-height: 1.45; margin: 0 0 32px; }

.shots { display: grid; gap: 20px; margin: 8px 0 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; box-shadow: var(--shadow); }
.shots figcaption { font-size: 14px; color: var(--text-soft); margin-top: 8px; text-align: center; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 32px; margin: 16px 0; }
.features h3 { font-size: 19px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--text-soft); }

.facts { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-soft); font-size: 15px; }
.note { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.note p { margin: 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; font-size: 13px; color: var(--text-soft); }
footer.site a { color: var(--text-soft); margin-right: 16px; }
footer.site p { margin: 8px 0 0; }

.legal h1 { font-size: 32px; margin: 40px 0 16px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.todo { background: #fff3cd; color: #664d03; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero img { width: 96px; height: 96px; }
  .hero h1 { font-size: 34px; }
  header.site nav a { margin-left: 12px; }
}

/* Sprachwähler: <details>, kein JavaScript */
header.site nav { display: flex; align-items: center; }
details.sprache { position: relative; margin-left: 20px; font-size: 15px; }
details.sprache summary { cursor: pointer; color: var(--text-soft); list-style: none; }
details.sprache summary::-webkit-details-marker { display: none; }
details.sprache summary::after { content: " ▾"; }
details.sprache[open] summary { color: var(--text); }
details.sprache > div {
  position: absolute; right: 0; top: 30px; z-index: 10; min-width: 200px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 6px 0; display: flex; flex-direction: column;
}
details.sprache > div a { margin: 0; padding: 6px 14px; color: var(--text); }
details.sprache > div a:hover { background: var(--bg-soft); text-decoration: none; }
details.sprache > div a[aria-current] { font-weight: 600; }

/* Store-Beschreibung auf der App-Seite */
.beschreibung { max-width: 760px; margin: 32px 0; }
.beschreibung h2.kapitel {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); margin: 32px 0 8px;
}
.beschreibung p { margin: 0 0 12px; }
.beschreibung ul { margin: 0 0 12px; padding-left: 22px; }
.beschreibung li { margin: 2px 0; }
.storelink { font-weight: 600; }

/* Hilfe — Inhalt aus dem HelpBook (sCollect) bzw. aus HelpView.swift (sName2Date).
   Die Klassen sind die des HelpBooks; hier auf Website-Maß gebracht. */
.hilfelink { margin: 10px 0 0; font-size: 17px; }
.zurueck { margin: 24px 0; font-size: 15px; }
.hilfe { max-width: 760px; }
.hilfe h1 { font-size: 36px; line-height: 1.15; margin: 8px 0 8px; letter-spacing: -.01em; }
.hilfe h2 { font-size: 24px; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hilfe h3 { font-size: 19px; margin: 24px 0 8px; }
.hilfe p { margin: 10px 0; }
.hilfe ul, .hilfe ol { margin: 10px 0 10px 24px; padding: 0; }
.hilfe li { margin: 4px 0; }
.hilfe .subtitle { font-size: 19px; color: var(--text-soft); margin: 0 0 20px; }
.hilfe .notiz { color: var(--text-soft); font-size: 15px; }
.hilfe .toc { background: var(--bg-soft); border-radius: 12px; padding: 16px 20px; margin: 16px 0 24px; }
.hilfe .toc h2 { font-size: 17px; margin: 0 0 8px; border: none; padding: 0; }
.hilfe .toc ol { margin: 0 0 0 20px; }
.hilfe aside, .hilfe .tip { background: var(--bg-soft); border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
/* Nur das Etikett steht auf eigener Zeile, Fettes im Satz bleibt im Fließtext (30.10.2026, wie die App-Hilfen). */
.hilfe aside > strong:first-child, .hilfe .tip > strong:first-child { display: block; margin-bottom: 4px; }
.hilfe kbd {
  display: inline-block; padding: 1px 6px; font: 14px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px;
}
.hilfe code { font-family: "SF Mono", Menlo, monospace; font-size: 14px; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
.hilfe table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.hilfe th, .hilfe td { text-align: left; padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.hilfe th { background: var(--bg-soft); font-weight: 600; }
.hilfe .shortcut-table td:first-child { white-space: nowrap; width: 200px; }
.hilfe img.icon { width: 16px; height: 16px; display: inline; vertical-align: -2px; }
.hilfe .steps { counter-reset: step; }
.hilfe .step { counter-increment: step; margin: 12px 0; padding-left: 34px; position: relative; }
.hilfe .step::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  background: var(--accent); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700;
  text-align: center; line-height: 22px;
}
@media (max-width: 600px) { .hilfe table { display: block; overflow-x: auto; } .hilfe .shortcut-table td:first-child { width: auto; } }

/* Einladung zur Hilfe, nach der Beschreibung */
a.einladung {
  display: block; max-width: 760px; margin: 8px 0 32px; padding: 22px 24px; border-radius: 14px;
  background: var(--badge-bg); color: var(--text);
}
a.einladung:hover { text-decoration: none; box-shadow: var(--shadow); }
a.einladung strong { display: block; font-size: 22px; margin-bottom: 6px; letter-spacing: -.01em; }
a.einladung span { display: block; color: var(--text-soft); }
a.einladung .knopf {
  display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
}

/* Werbefilm auf YouTube: nur ein Link mit eigenem Vorschaubild — die Seite lädt nichts von YouTube */
a.film {
  position: relative; display: block; max-width: 760px; margin: 0 0 32px; border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); color: #fff;
}
a.film:hover { text-decoration: none; }
a.film img { display: block; width: 100%; height: auto; }
a.film::after {   /* Abspielknopf */
  content: ""; position: absolute; left: 50%; top: 42%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(0,0,0,.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='white'/%3E%3C/svg%3E")
    center / 44px no-repeat;
}
a.film:hover::after { background-color: rgba(0,0,0,.75); }
a.film span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-weight: 600; font-size: 17px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
/* Werbefilm und Short nebeneinander: der Film doppelt so breit; schmal untereinander */
.filme { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 32px; }
.filme a.film { flex: 2 1 0; min-width: 0; margin: 0; }
.filme a.film.kurz { flex: 1 1 0; }
.filme a.film.kurz:only-child { flex: none; width: calc((100% - 20px) / 3); min-width: 260px; }   /* Short ohne Werbefilm: so groß wie daneben */
/* Short: kleines Bild, der Text steht darunter (über dem Bild verdeckte er es in den langen Sprachen) */
a.film.kurz { overflow: visible; border-radius: 0; box-shadow: none; color: var(--text); }
a.film.kurz img { border-radius: 14px; box-shadow: var(--shadow); }
a.film.kurz::after { top: 0; margin: 0; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='26' fill='black' fill-opacity='.55'/%3E%3Cpath d='M20 15v22l18-11z' fill='white'/%3E%3C/svg%3E")
    center / 52px no-repeat; left: 0; }
a.film.kurz:hover::after { background-color: rgba(0,0,0,.12); }
a.film.kurz span { position: static; display: block; padding: 10px 2px 0; font-size: 15px; background: none; }
@media (max-width: 600px) { .filme { flex-direction: column; } .filme a.film, .filme a.film.kurz, .filme a.film.kurz:only-child { flex: none; width: 100%; } }
/* Fotografenfilme (29.10.2026): eigener Abschnitt, Kurzfassung und ausführlich nebeneinander, je so klein wie die Short-Karte */
.fotografen h2 { margin: 0 0 12px; }
.filme.foto a.film.kurz, .filme.foto a.film.kurz:only-child { flex: none; width: calc((100% - 40px) / 3); min-width: 240px; }
@media (max-width: 600px) { .filme.foto a.film.kurz, .filme.foto a.film.kurz:only-child { width: 100%; } }

/* Handbuch in allen Sprachen: Flaggen (07.11.2026; build.py sprachleiste, Flaggen assets/flags/, flag-icons MIT).
   Nur die Flagge ist der Link, der Sprachname steht im Tooltip; bricht mit der Fensterbreite um. */
.hilfelink.mit-flaggen > a { margin-right: 10px; }                 /* Flaggen gleich daneben, brechen einzeln um */
.hilfelink.mit-flaggen .flaggen { display: inline; }
.hilfelink.mit-flaggen .flaggen a { display: inline-block; vertical-align: middle; margin: 3px 4px 3px 0; }
.flaggen { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flaggen a { display: block; line-height: 0; border-radius: 3px; }
.flaggen img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: transform .1s; }
.flaggen a:hover img { transform: scale(1.2); }
.flaggen a[aria-current] { outline: 2px solid currentColor; outline-offset: 2px; }
.sprachleiste { margin: 18px 0; font-size: 15px; }
.sprachleiste > span:first-child { display: block; font-weight: 600; margin-bottom: 6px; }

.hero .flaggen img { width: 24px; height: 18px; }   /* nicht wie das App-Symbol (.hero img) vergrößern */
