/* Start – Variante A „Kachelwand“ (Torrees Wahl 26.10.2026), Farben wie die Cockpits (design.py) */
:root { --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; --sans:-apple-system,"SF Pro Text","Segoe UI",Inter,sans-serif;
  --page:#f5f2ec; --surface:#fffefb; --ink:#1f1d19; --ink-2:#6b665c; --grid:#e7e3da; --muted:#a09a8e;
  --schatten:0 1px 2px rgba(60,45,25,.05), 0 6px 18px rgba(60,45,25,.06); --ok:#4f9a63; --rot:#c74e3c; --gelb:#d0a040; --gross:1; }
@media (prefers-color-scheme: dark) { :root { --page:#141311; --surface:#201f1b; --ink:#f0ece4; --ink-2:#a9a398; --grid:#302e29; --muted:#6e695f;
  --schatten:0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.25); } }
:root.gross { --gross:1.15; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--page); color:var(--ink); font-family:var(--sans); font-size:calc(15px * var(--gross)); line-height:1.4; -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom); }
button { font:inherit; color:inherit; }
header { padding:calc(18px + env(safe-area-inset-top)) 16px 10px; max-width:1180px; margin:0 auto; }
.eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); display:flex; align-items:center; gap:8px; }
.eyebrow i { width:9px; height:9px; border-radius:50%; background:#7c776d; }
.aplus { margin-left:auto; border:1px solid var(--grid); background:var(--surface); border-radius:99px; padding:3px 10px; font-size:12px; font-weight:700; letter-spacing:0; cursor:pointer; color:var(--ink-2); }
h1 { font-family:var(--serif); font-weight:600; font-size:calc(30px * var(--gross)); letter-spacing:-.015em; margin:4px 0 2px; }
.sub { color:var(--ink-2); font-size:.93em; margin:0 0 12px; }
.sub .rot { color:var(--rot); font-weight:650; }
.suche { display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--grid); border-radius:14px; padding:11px 14px; box-shadow:var(--schatten); }
.suche svg { width:18px; height:18px; stroke:var(--ink-2); fill:none; stroke-width:2; flex:none; }
.suche input { border:0; background:none; font:inherit; font-size:16px; color:var(--ink); width:100%; outline:none; -webkit-appearance:none; }
.suche input::placeholder { color:var(--muted); }
main { max-width:1180px; margin:0 auto; padding:0 16px 40px; }
section { margin-top:22px; }
section > h2 { display:flex; align-items:center; gap:9px; font-family:var(--serif); font-weight:600; font-size:1.27em; padding-bottom:8px; margin:0 0 12px; border-bottom:1px solid var(--grid); }
section > h2::before { content:''; width:4px; height:18px; border-radius:2px; background:var(--bf); flex:none; }
section > h2 .lock { margin-left:auto; font-size:12px; font-weight:600; color:var(--ink-2); font-family:var(--sans); }
.raster { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
@media (min-width:700px) { .raster { grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; } header, main { padding-left:28px; padding-right:28px; } }
@media (min-width:1000px) { .raster { grid-template-columns:repeat(4, minmax(0,1fr)); } }
.raster > * { min-width:0; }
.kachel { position:relative; background:var(--surface); border-radius:16px; box-shadow:var(--schatten); overflow:hidden; border-left:5px solid var(--bf); display:flex; flex-direction:column; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.kachel:active { transform:scale(.985); }
.kachel.weg { opacity:.55; }
.bild { aspect-ratio:16/10; background:color-mix(in srgb, var(--bf) 13%, var(--surface)); position:relative; overflow:hidden; display:grid; place-items:center; }
.bild img.foto { width:100%; height:100%; object-fit:cover; object-position:top; display:block; }
.bild img.symbol { width:31%; max-width:76px; aspect-ratio:1; border-radius:22%; box-shadow:0 4px 14px rgba(0,0,0,.14); }
.bild .sym { font-size:38px; line-height:1; color:var(--bf); font-family:var(--serif); }
.bild .sperre { position:absolute; left:8px; top:8px; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.9); color:#3a3630; display:grid; place-items:center; font-size:11px; }
.bild .marke { position:absolute; right:8px; top:8px; background:var(--ok); color:#fff; font-size:11px; font-weight:700; border-radius:99px; padding:2px 8px; }
.bild .marke.rot { background:var(--rot); } .bild .marke.bau { background:var(--gelb); }
.text { padding:9px 10px 8px; flex:1; }
.text b { display:block; font-size:1em; font-weight:650; line-height:1.25; }
.text small { display:block; color:var(--ink-2); font-size:.85em; margin-top:3px; line-height:1.3; }
.fuss { display:flex; align-items:center; gap:6px; padding:0 8px 8px 10px; }
.status { width:8px; height:8px; border-radius:50%; background:var(--muted); flex:none; }
.status.ok { background:var(--ok); } .status.rot { background:var(--rot); } .status.bau { background:var(--gelb); }
.url { min-width:0; font-size:11px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.knopf { width:32px; height:32px; border-radius:50%; border:1px solid var(--grid); background:var(--surface); color:var(--ink-2); display:grid; place-items:center; font-size:13px; font-weight:700; flex:none; cursor:pointer; padding:0; }
.knopf svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; }
.favs { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.favs::-webkit-scrollbar { display:none; }
.pill { flex:none; display:inline-flex; align-items:center; gap:7px; padding:8px 14px 8px 11px; border-radius:99px; border:1px solid var(--grid); background:var(--surface); font-size:.9em; font-weight:600; text-decoration:none; color:var(--ink); white-space:nowrap; cursor:pointer; }
.pill::before { content:''; width:9px; height:9px; border-radius:50%; background:var(--bf); }
.pill.an { border-color:var(--ink-2); }
.leer { color:var(--ink-2); font-size:.93em; }
.mac { margin-top:28px; color:var(--ink-2); font-size:13px; border-top:1px solid var(--grid); padding-top:12px; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; }
.mac button { border:1px solid var(--grid); background:var(--surface); border-radius:99px; padding:5px 12px; font-size:12.5px; font-weight:600; cursor:pointer; color:var(--ink-2); }
/* Anmeldung */
.anmeldung { max-width:420px; margin:10px auto 40px; padding:0 16px; }
.anmeldung p { color:var(--ink-2); }
.anmeldung label { display:block; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); }
.anmeldung input { display:block; width:100%; margin-top:6px; font:inherit; font-size:17px; padding:12px 14px; border-radius:12px; border:1px solid var(--grid); background:var(--surface); color:var(--ink); }
.anmeldung button { margin-top:14px; width:100%; padding:13px; border-radius:12px; border:0; background:var(--ink); color:var(--page); font-weight:650; font-size:16px; cursor:pointer; }
.anmeldung .fehler { color:var(--rot); min-height:1.4em; }
/* „?“-Blatt */
.blatt { position:fixed; inset:0; background:rgba(0,0,0,.38); display:flex; align-items:flex-end; justify-content:center; z-index:9; }
.blatt > div { position:relative; background:var(--surface); color:var(--ink); border-radius:18px 18px 0 0; padding:20px 18px calc(26px + env(safe-area-inset-bottom)); width:100%; max-width:520px; max-height:88vh; overflow:auto; box-shadow:0 -6px 30px rgba(0,0,0,.2); }
@media (min-width:700px) { .blatt { align-items:center; } .blatt > div { border-radius:18px; } }
.blatt .zu { position:absolute; right:12px; top:12px; width:32px; height:32px; border-radius:50%; border:1px solid var(--grid); background:var(--surface); cursor:pointer; color:var(--ink-2); }
.blatt h3 { margin:0 40px 4px 0; font-family:var(--serif); font-size:1.33em; }
.blatt .was { color:var(--ink-2); font-size:.87em; margin-bottom:10px; overflow-wrap:anywhere; }
.blatt p { margin:0 0 12px; }
.blatt .zeile, .blatt .auswahl { display:flex; gap:8px; flex-wrap:wrap; }
.blatt .auswahl { margin-bottom:12px; }
.blatt .auswahl:empty { display:none; }
.blatt .zeile a, .blatt .zeile button, .blatt .auswahl button { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:99px; border:1px solid var(--grid); background:var(--surface); color:var(--ink); font-size:.93em; font-weight:600; text-decoration:none; cursor:pointer; }
.blatt .zeile a::before, .blatt .zeile button::before, .blatt .auswahl button::before { content:''; width:9px; height:9px; border-radius:50%; background:var(--bf, #7c776d); }
.hinweis { position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom)); transform:translateX(-50%); background:var(--ink); color:var(--page); padding:10px 16px; border-radius:12px; font-size:14px; z-index:10; box-shadow:var(--schatten); max-width:calc(100% - 32px); }
