/* Gestaltung wie KI Lernlabor und Tutorials (Wunsch 18.11.2026): Geist und Geist Mono, Papier, Linien statt Flächen,
   ein Akzent, Mono-Labels in Großbuchstaben. Die alten Namen der Variablen bleiben, damit app.js und die Regeln unten passen. */
:root {
  --grund: #ffffff; --flaeche: #f2f2f2; --tinte: #171717; --tinte-2: #424242; --leise: #75757d; --linie: #dededf;
  --akzent: #4649e1; --akzent-text: #ffffff; --akzent-farbe: #4649e1; --akzent-hauch: #d0d1f7;
  --warn: #8a3b12; --warn-grund: #f7e6d6; --ok: #2f6b3a;
  --schrift: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lese: var(--schrift);
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --kopf: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #171717; --flaeche: #262626; --tinte: #ffffff; --tinte-2: #c9c9ce; --leise: #a3a3ab; --linie: #3a3a3e;
    --akzent: #9ea0f3; --akzent-text: #171717; --akzent-farbe: #9ea0f3; --akzent-hauch: #2a2b55;
    --warn: #ffb68a; --warn-grund: #3a2414; --ok: #8fd19b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #171717; --flaeche: #262626; --tinte: #ffffff; --tinte-2: #c9c9ce; --leise: #a3a3ab; --linie: #3a3a3e;
  --akzent: #9ea0f3; --akzent-text: #171717; --akzent-farbe: #9ea0f3; --akzent-hauch: #2a2b55;
  --warn: #ffb68a; --warn-grund: #3a2414; --ok: #8fd19b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 16px/1.5 var(--schrift); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--akzent-farbe); text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--akzent-farbe); outline-offset: 2px; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: var(--flaeche); padding: .5rem 1rem; z-index: 9; }
.leise { color: var(--leise); }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; font-weight: 500; }
.label { font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Kopfzeile wie im KI Lernlabor */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--grund); border-bottom: 1px solid var(--linie); }
.top-in { height: var(--kopf); display: flex; align-items: center; gap: 20px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.unter-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; min-height: 44px; border-top: 1px solid var(--linie);
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
.uni { flex: none; display: block; background: #478bff; }
.uni-logo { height: 34px; width: auto; display: block; }
.infau { flex: none; display: block; color: var(--tinte); margin-right: -6px; }
.infau .logo { height: 26px; width: auto; display: block; }
.marke { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--tinte); text-decoration: none;
  padding-left: 14px; border-left: 1px solid var(--linie); font: 500 12px/26px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.marke-logo { display: block; width: 26px; height: 26px; flex: none; }
.wahl { flex: 0 1 19rem; min-width: 0; }
.wahl select { width: 100%; font: 400 13px/1.3 var(--mono); color: var(--tinte); background: var(--grund); border: 1px solid var(--linie); border-radius: 0; padding: 5px 8px; }
.wahl select:hover { border-color: var(--akzent-farbe); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.kopf nav a { font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); text-decoration: none; padding: 6px 0 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.kopf nav a:hover { color: var(--akzent-farbe); }
.kopf nav a[aria-current="page"] { color: var(--tinte); border-color: var(--akzent-farbe); }
.top-right { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--linie); color: var(--tinte-2); background: none; cursor: pointer;
  font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.theme-btn:hover { border-color: var(--akzent-farbe); color: var(--akzent-farbe); }
.theme-btn svg { width: 15px; height: 15px; }
.lang-sw b { font-weight: 700; color: var(--akzent-farbe); }
@media (max-width: 880px) { .marke-wort { display: none; } }
@media (max-width: 760px) { .infau { display: none; } .marke { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) {
  .uni-logo { height: min(22px, 5.3vw); } .infau .logo { height: min(20px, 4.8vw); } .top-in { gap: 12px; }
  .infau { display: none; } .marke { padding-left: 0; border-left: 0; } .theme-btn .t-txt { display: none; } .lang-sw { padding: 7px 6px; }   /* wie im Lernlabor: InfAU weicht DE / EN */
  .wahl { flex-basis: 100%; } .kopf nav { margin-left: 0; gap: 4px 16px; }
}
@media (max-width: 400px) { .marke { display: none; } }

.band { background: var(--warn-grund); color: var(--warn); padding: .75rem clamp(1rem, 4vw, 3rem); }
.band a { color: inherit; font-weight: 600; }

main { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 4rem; max-width: 1400px; margin: 0 auto; }
main:focus { outline: none; }
.fuss { border-top: 1px solid var(--linie); margin-top: 48px; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font: 400 12px/18px var(--mono); letter-spacing: .02em; color: var(--leise); }
.fuss p { margin: .2rem 0; }

/* Übersicht */
.einstieg { max-width: 46rem; margin-bottom: 2rem; }
.einstieg p { font: 400 1.2rem/1.55 var(--lese); margin: 0; }
.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin-bottom: 1rem; }
.filter label { display: grid; gap: .25rem; font-size: .85rem; color: var(--leise); }
input, select { font: inherit; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 0; padding: .55rem .7rem; width: 100%; }
.treffer { color: var(--leise); margin: 0 0 1.25rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.25rem; }
.kachel { color: var(--tinte); text-decoration: none; display: grid; gap: .5rem; }
.kachel img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--flaeche); border-radius: 0; }
.kachel:hover img { outline: 2px solid var(--akzent); outline-offset: 3px; }
.kachel .zeile { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.kachel .auszug { font: 400 1rem/1.4 var(--lese); color: var(--leise); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.marke-gepostet { color: var(--ok); }
.leer { font: 400 1.2rem/1.5 var(--lese); max-width: 40rem; }

/* Einzelansicht */
.einzel-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.zurueck { display: inline-block; }
.blaettern { display: flex; align-items: baseline; gap: 1rem; font-variant-numeric: tabular-nums; }
.blaettern a, .blaettern .aus { white-space: nowrap; }
.blaettern .aus { color: var(--leise); opacity: .45; }
.variante { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bildfolge { display: grid; gap: .75rem; }
.bildfolge img { width: 100%; border-radius: 0; background: var(--flaeche); }
/* Bühne mit festem Seitenverhältnis: die Pfeile stehen bei jedem Bild an derselben Stelle (Nutzer 14.11.2026) */
.buehne { position: relative; aspect-ratio: 3 / 2; border-radius: 0; background: var(--flaeche); overflow: hidden; }
.buehne #hauptbild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: none; }
.bild-pfeil { position: absolute; top: 50%; translate: 0 -50%; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--linie); border-radius: 50%; background: color-mix(in srgb, var(--flaeche) 82%, transparent); color: var(--tinte);
  cursor: pointer; }
.bild-pfeil.links { left: .5rem; }
.bild-pfeil.rechts { right: .5rem; }
.bild-pfeil:hover { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.bild-zahl { position: absolute; right: .6rem; bottom: .5rem; padding: .05rem .45rem; border-radius: 0; font-size: .8rem; color: var(--leise);
  background: color-mix(in srgb, var(--flaeche) 82%, transparent); font-variant-numeric: tabular-nums; }
.daumen { display: flex; gap: .5rem; flex-wrap: wrap; }
.daumen button { padding: 0; border: 2px solid transparent; border-radius: 0; background: none; cursor: pointer; }
.daumen button[aria-pressed="true"] { border-color: var(--akzent); }
.daumen img { width: 72px; height: 54px; object-fit: cover; }
.buehne #hauptbild, .post-bilder img { cursor: zoom-in; }
/* Bericht und offene Befunde unter den Bildern (Nutzer 15.11.2026) */
.bericht { margin-top: 1.25rem; font-size: .95rem; }
.bericht h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.bericht p { margin: 0 0 .7rem; max-width: 46rem; }
.bericht .befunde-titel { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.befund-summe { font-size: .85rem; }
.befund-gruppe { margin-top: 1rem; }
.befund-gruppe h4 { font-size: .95rem; margin: 0 0 .3rem; }
.befund-gruppe h4 .leise { font-weight: 400; font-size: .85rem; margin-left: .35rem; }
.befund-liste { margin: .2rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.befund-liste li { margin: .15rem 0; overflow-wrap: anywhere; }
.befund-liste.fehler li::marker { color: var(--warn); }
.befund-liste.hinweis { color: var(--leise); }
.bericht details.mehr { margin-top: .3rem; }
/* Großansicht: immer dunkel, unabhängig vom Farbschema */
html.lupe-offen { overflow: hidden; }
.lupe { position: fixed; inset: 0; z-index: 1000; background: #0b0d0c; color: #f2f4f1; }
.lupe-feld { position: absolute; inset: 0; display: flex; overflow: auto; overscroll-behavior: contain; }
.lupe-feld img { display: block; margin: auto; max-width: 100vw; max-height: 100vh; width: auto; height: auto; cursor: zoom-in; }
.lupe-feld.voll img { max-width: none; max-height: none; cursor: zoom-out; }
.lupe-zu, .lupe-pfeil { position: absolute; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%; background: rgba(20, 24, 22, .7); color: #f2f4f1; cursor: pointer; }
.lupe-zu { top: .75rem; right: .75rem; }
.lupe-pfeil { top: 50%; translate: 0 -50%; }
.lupe-pfeil.links { left: .75rem; }
.lupe-pfeil.rechts { right: .75rem; }
.lupe-zu:hover, .lupe-pfeil:hover, .lupe-zu:focus-visible, .lupe-pfeil:focus-visible { background: #4649e1; border-color: #4649e1; }
.lupe-zahl { position: absolute; left: 50%; bottom: .6rem; translate: -50% 0; padding: .1rem .55rem; border-radius: 0; font-size: .8rem;
  background: rgba(20, 24, 22, .7); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.stimmen { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.stimmen button, .reiter button { font: 500 12px/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--tinte-2); background: transparent;
  border: 1px solid var(--linie); border-radius: 0; padding: .35rem .9rem; cursor: pointer; }
.stimmen button:hover, .reiter button:hover { border-color: var(--akzent-farbe); color: var(--akzent-farbe); }
.stimmen button[aria-pressed="true"], .reiter button[aria-pressed="true"] { background: var(--akzent-hauch); color: var(--akzent-farbe); border-color: var(--akzent-farbe); }
.laengen { display: flex; gap: 1rem; margin-bottom: .75rem; font-size: .9rem; }
.laengen button { font: inherit; background: none; border: 0; padding: 0 0 .1rem; color: var(--leise); cursor: pointer; border-bottom: 2px solid transparent; }
.laengen button[aria-pressed="true"] { color: var(--tinte); border-color: var(--tinte); }
.post-stand { margin: 0 0 1.25rem; color: var(--leise); font-size: .95rem; }
.post-stand.gepostet { color: var(--tinte); font-weight: 600; }
.post-stand.gepostet a { font-weight: 400; }
.vormerkung { margin: -.5rem 0 1.25rem; padding: .55rem .8rem; border-radius: 0; background: var(--warn-grund); color: var(--warn); font-size: .95rem; }
details.mehr.entfernen p { font-size: .92rem; max-width: 40rem; }
details.mehr.entfernen .knopf { background: var(--warn); color: var(--warn-grund); }
.stimme-name { color: var(--leise); margin: 0 0 .75rem; font-size: .95rem; }
.dichtung { font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.55 var(--lese); white-space: pre-line; max-width: 34em; margin: 0; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 2rem 0 0; font-size: .92rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; }
.beschreibung { font: 400 1.05rem/1.55 var(--lese); color: var(--leise); max-width: 40em; white-space: pre-line; }
.downloads { margin-top: 2rem; }
.downloads h2 { font-size: 1rem; margin: 0 0 .5rem; }
.downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.downloads li { display: flex; flex-wrap: wrap; gap: 0 .6rem; align-items: baseline; }
details.mehr { margin-top: 1rem; }
details.mehr summary { cursor: pointer; color: var(--leise); font-size: .92rem; }
.daten.klein { font-size: .85rem; margin-top: .75rem; }
.abschnitt { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--linie); }
.reiter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.vermerk { margin-top: 3rem; font-size: .9rem; color: var(--leise); }

/* Post-Vorschau */
.vorschau-feld { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1rem; }
.post { background: #fff; color: #14171a; border: 1px solid #dfe3e6; border-radius: 10px; overflow: hidden; font-size: .92rem; }
.post-kopf { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; font-weight: 600; }
.post-kopf .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #2443c9, #5e8c4a); }
.post-kopf small { font-weight: 400; color: #657786; }
.post-bilder { display: grid; gap: 2px; background: #f0f2f4; }
.post-bilder.mehr { grid-template-columns: 1fr 1fr; }
.post-bilder img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.post-bilder.einzeln img { aspect-ratio: auto; object-fit: contain; }
.post-zaehler { font-size: .8rem; color: #657786; padding: .4rem .9rem 0; }
.post-text { padding: .75rem .9rem 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.post-titel { font-weight: 700; padding: .75rem .9rem 0; }
.post.instagram .post-text, .post.threads .post-text { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.post.linkedin .post-kopf .avatar { border-radius: 4px; }
.post.pinterest { border-radius: 18px; }
.vorschau-info { font-size: .92rem; }
.vorschau-info p { margin: 0 0 .6rem; }

/* Status */
.zustand { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 2rem; max-width: 46rem; }
.zustand dt { color: var(--leise); }
.zustand dd { margin: 0; }
.warnungen { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .5rem; max-width: 52rem; }
.warnungen li { background: var(--warn-grund); color: var(--warn); padding: .6rem .9rem; border-radius: 0; }
details.plattform { border-top: 1px solid var(--linie); padding: .9rem 0; max-width: 60rem; }
details.plattform summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
details.plattform summary h3 { margin: 0; display: inline; }
.postliste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.postliste li { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: center; }
.postliste img { width: 64px; height: 48px; object-fit: cover; border-radius: 0; }
.postliste .fehler { color: var(--warn); }
.aus { color: var(--leise); font-size: .9rem; }

/* Projekt */
.projekt { max-width: 44rem; }
.projekt p, .projekt li { font: 400 1.15rem/1.6 var(--lese); }
.projekt h2 { margin-top: 2.5rem; }

/* Sammlung */
.projekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem 2rem; }
.projektkachel h2 { margin: .9rem 0 .15rem; }
.projektkachel h2 a { color: var(--tinte); text-decoration: none; }
.projektkachel h2 a:hover { text-decoration: underline; }
.projektkachel p { margin: .15rem 0 .5rem; }
.projektbild { display: block; aspect-ratio: 3 / 2; background: var(--linie); overflow: hidden; }
.projektbild img { width: 100%; height: 100%; object-fit: cover; }
.projektlinks { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; margin: .5rem 0; }
.alle { margin-top: 2.5rem; }
.klein { font-size: .82rem; }

/* Reiter der Projektseite */
.seitenreiter { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--linie); margin-bottom: 1.5rem; }
.seitenreiter a { color: var(--leise); text-decoration: none; font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .6rem 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.seitenreiter a[aria-current="page"] { color: var(--tinte); border-color: var(--akzent); }
.kette { font-size: .95rem; }
.kette button { font: inherit; color: var(--akzent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.legende { max-width: 46rem; font-size: .92rem; }
.einstieg.kompakt { margin-bottom: 1rem; }
.einstieg.kompakt h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .25em; }
.einstieg.kompakt p { font-size: 1.05rem; }
.einstieg.kompakt .projektlinks { font-family: var(--schrift); font-size: .92rem; margin-top: .25rem; }
.karten-suche { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-bottom: .75rem; }
.karten-suche input { font: inherit; flex: 1 1 18rem; max-width: 30rem; padding: .45rem .7rem; border: 1px solid var(--linie); border-radius: 0; background: var(--flaeche); color: var(--tinte); }
.karten-suche .treffer { margin: 0; }
.kartenabschnitt { margin-top: 1rem; }
.kartenabschnitt + .legende, .legende { margin-top: .75rem; }

/* Karte: Graukarton mit feinem Raster, wie ein Modellbrett */
.karte-kopf { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-bottom: .5rem; }
.karte-info { margin: 0; font-size: .92rem; min-height: 1.4em; }
.knoepfe { display: flex; gap: .3rem; }
.knoepfe button { font: inherit; font-size: .92rem; min-width: 2.25rem; min-height: 2.25rem; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 0; padding: 0 .6rem; cursor: pointer; }
.karte { position: relative; height: min(76vh, 56rem); overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 0; touch-action: none; cursor: grab; }
.karte.zieht { cursor: grabbing; }
.karte-innen { position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background-image: linear-gradient(to right, var(--linie) 1px, transparent 1px), linear-gradient(to bottom, var(--linie) 1px, transparent 1px); }
.feld { position: absolute; display: block; padding: 2px; }
.feld img { width: 100%; height: 100%; object-fit: cover; background: var(--grund); -webkit-user-drag: none; user-select: none; }
.feld:hover, .feld:focus-visible { z-index: 2; outline: 2px solid var(--akzent); outline-offset: 0; }
.feld.blass img { opacity: .5; }
.feld.gepostet::after, .zelle a.gepostet::after { content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 1.5px var(--flaeche); }
.karte.sucht .feld img { opacity: .13; }
.karte.sucht .feld.treffer { z-index: 1; outline: 2px solid var(--akzent); }
.karte.sucht .feld.treffer img { opacity: 1; }

/* Typen-Atlas */
.atlas-wahl { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: .75rem; font-size: .92rem; color: var(--leise); }
.atlas-wahl select { font: inherit; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 0; padding: .3rem .4rem; margin-left: .35rem; }
.atlas-wahl .knoepfe { margin-left: auto; }
.atlas-rahmen { position: relative; overflow: auto; max-height: 80vh; touch-action: pan-x pan-y; border: 1px solid var(--linie); border-radius: 0; background: var(--flaeche); }
.atlas { border-collapse: collapse; font-size: .85rem; }
.atlas th { position: sticky; background: var(--flaeche); color: var(--leise); font-weight: 600; padding: .4rem .6rem; text-align: left; white-space: nowrap; z-index: 1; }
.atlas thead th { top: 0; border-bottom: 1px solid var(--linie); }
.atlas tbody th { left: 0; border-right: 1px solid var(--linie); }
.atlas td { border: 1px solid var(--linie); padding: 4px; vertical-align: top; min-width: 7.5rem; }
.leerzelle { background-image: repeating-linear-gradient(45deg, transparent 0 6px, var(--linie) 6px 7px); }
.zelle { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; }
.zelle a { position: relative; display: block; }
.zelle img { width: 44px; height: 44px; object-fit: cover; }
.zelle a.gepostet::after { right: 3px; top: 3px; width: 7px; height: 7px; }
.mehr-link { display: grid !important; place-items: center; width: 44px; height: 44px; background: var(--grund); font-weight: 600; text-decoration: none; }

/* Projektblock und Post now */
.projektblock { max-width: 52rem; }
.projektblock h2 a { color: inherit; }
.knopf { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--akzent-farbe); background: var(--akzent-hauch);
  border: 1.5px solid var(--akzent-farbe); text-decoration: none; padding: 12px 16px; }
.handpost { margin-top: 1.25rem !important; }

/* Intake log */
.einstieg-text { font: 400 1.15rem/1.55 var(--lese); max-width: 46rem; }
.ein-filter { grid-template-columns: repeat(2, minmax(0, 16rem)); }
.eingang { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.eingangszeile { border-top: 1px solid var(--linie); padding: .8rem 0; }
.eingangszeile.abgelehnt { border-left: 4px solid var(--warn); padding-left: .85rem; background: var(--warn-grund); }
.eingang-kopf { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.statusmarke { font: 500 11px/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: .05rem .5rem; border-radius: 0; border: 1px solid currentColor; color: var(--leise); }
.s-postbar { color: var(--ok); }
.s-abgelehnt, .s-doppelt { color: var(--warn); }
.gruende { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--warn); }
.verlauf { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .9rem; color: var(--leise); }
.vorrat { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .25rem; }
.about-projekt { margin-bottom: 2rem; }
.about-projekt .daten { font: 400 .95rem/1.5 var(--schrift); margin-top: .5rem; }
.about-projekt p.projektlinks { font: 400 .95rem/1.5 var(--schrift); }

@media (max-width: 900px) {
  .variante, .vorschau-feld { grid-template-columns: 1fr; }
  .filter { grid-template-columns: 1fr 1fr; }
  .filter label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .raster { grid-template-columns: 1fr 1fr; gap: 1.25rem .75rem; }
  .kachel .auszug { display: none; }
  .daten, .zustand { grid-template-columns: 1fr; }
  .daten dd, .zustand dd { margin-bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Bilderwand */
.wand-art { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .75rem; font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.wand-art select { font: 400 14px/1.3 var(--mono); text-transform: none; letter-spacing: 0; color: var(--tinte); background: var(--grund); border: 1px solid var(--linie); border-radius: 0; padding: .45rem .6rem; width: auto; min-width: 0; flex: 1 1 12rem; max-width: 100%; }
.wand-art select:hover { border-color: var(--leise); }
.karte.wand { cursor: default; }
.karte.wand.greift { cursor: grab; }
.karte.wand.zieht { cursor: grabbing; }
.wand-innen { width: 0; height: 0; background: none; }
.wand-bild { position: absolute; max-width: none; left: 0; top: 0; display: block; object-fit: contain; background: #fff; cursor: zoom-in; -webkit-user-drag: none; user-select: none; will-change: transform; }
.wand-bild:hover, .wand-bild:focus-visible { outline: 2px solid var(--akzent); outline-offset: 0; z-index: 2; }
.wand-bild.aktiv { outline: 3px solid var(--akzent); z-index: 2; }
.wand-box { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: rgba(0, 0, 0, .86); color: #fff; outline: none; }
.wand-box figure { margin: 0; max-width: min(92vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.wand-box figure img { max-width: 100%; max-height: 82vh; background: #fff; }
.wand-box figcaption { font-size: .95rem; text-align: center; display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: center; }
.wand-box a { color: #fff; }
.wand-box .leise { color: #c9c9ce; }
.wand-pfeil, .wand-zu { font: inherit; font-size: 2rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 0; min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; }
.wand-pfeil:hover, .wand-zu:hover { background: rgba(255, 255, 255, .25); }
.wand-zu { position: absolute; right: 1rem; top: 1rem; }
@media (max-width: 40rem) { .wand-box { flex-wrap: wrap; } .wand-pfeil { order: 2; } .wand-box figure { order: 1; width: 100%; } }

/* Webspace-Betrieb: Befehl statt GitLab-Knopf („Post now“, „Remove variant“) */
pre.befehl { margin: .5rem 0; padding: .6rem .8rem; border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte); font: 400 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* ── Adventskalender (Reinhard 25.11.2026): letzter, unauffälliger Reiter; Kalender wie gedruckt, Türen über dem Bild ── */
.seitenreiter a.neben { margin-left: auto; opacity: .75; }
.seitenreiter a.neben[aria-current="page"] { opacity: 1; }
.advent { max-width: 1100px; }
.advent-einleitung { max-width: 46rem; }
.advent-kalender { margin: 2.2rem 0 0; }
.advent-kalender figcaption h3 { font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 0 0 .6rem; }
.advent-flaeche { position: relative; overflow: hidden; background: #1b2230; border: 1px solid var(--linie); }
.advent-hg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; max-width: none; }
.advent-tueren { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(58px, 8.2vw, 92px);
  grid-auto-flow: dense; gap: clamp(8px, 1.4vw, 16px); padding: clamp(12px, 2.4vw, 28px); }
.advent-tuer { position: relative; display: grid; place-items: center; min-width: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden;
  border: 2px solid rgba(255, 248, 232, .88); border-radius: 3px; background: rgba(255, 252, 245, .07); color: #fffaf0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .18), 0 6px 18px rgba(0, 0, 0, .22);
  backdrop-filter: saturate(1.15); perspective: 600px; font: inherit; }
.advent-tuer.form-g { grid-column: span 2; grid-row: span 2; }
.advent-tuer.form-b { grid-column: span 2; }
.advent-tuer.form-h { grid-row: span 2; }
.advent-tuer .zahl { position: relative; z-index: 2; font: 500 clamp(18px, 2.6vw, 30px)/1 var(--schrift); letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 10px rgba(0, 0, 0, .45); }
.advent-tuer.form-g .zahl { font-size: clamp(26px, 4.4vw, 52px); }
.advent-tuer .fluegel { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; background: rgba(255, 252, 245, .05);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.advent-tuer .fluegel.links { left: 0; border-right: 1px solid rgba(255, 248, 232, .75); transform-origin: left center; }
.advent-tuer .fluegel.rechts { right: 0; transform-origin: right center; }
.advent-tuer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.advent-tuer.offen .fluegel.links { transform: rotateY(-78deg); background: rgba(255, 248, 232, .55); }
.advent-tuer.offen .fluegel.rechts { transform: rotateY(78deg); background: rgba(255, 248, 232, .55); }
.advent-tuer.offen .zahl { position: absolute; left: 6px; top: 4px; font-size: clamp(13px, 1.6vw, 17px); padding: 1px 6px; background: rgba(0, 0, 0, .55); text-shadow: none; }
.advent-tuer:hover:not(.zu) { border-color: #fff; background: rgba(255, 252, 245, .16); }
.advent-tuer.zu { cursor: default; }
.advent-tuer:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }
.advent-bildhinweis { margin: .5rem 0 0; font-size: .82rem; color: var(--leise); }
.advent-hinweis { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 50; margin: 0; padding: .55rem 1rem;
  background: var(--tinte); color: var(--grund); font: 500 13px/1.3 var(--mono); letter-spacing: .03em; opacity: 0; pointer-events: none; transition: opacity .2s; }
.advent-hinweis.zeigen { opacity: 1; }
.advent-dialog { width: min(92vw, 760px); max-height: 92vh; padding: 1.2rem 1.4rem 1.4rem; border: 1px solid var(--linie); background: var(--grund); color: var(--tinte); }
.advent-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.advent-dialog h2 { font-size: 1.2rem; margin-right: 2.5rem; }
.advent-dialog img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: var(--flaeche); }
.advent-dialog-zu { position: absolute; top: .6rem; right: .6rem; margin: 0; }
.advent-dialog-zu button { width: 2.4rem; height: 2.4rem; font-size: 1.4rem; line-height: 1; cursor: pointer; border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte); }
.advent-spruch { font: 400 1.08rem/1.5 var(--lese); font-style: italic; margin: .9rem 0 .3rem; max-width: 40rem; }
.advent-block figure { margin: .8rem 0 0; }
.advent-block img { max-width: 360px; width: 100%; }
@media (max-width: 700px) {
  .advent-tueren { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 64px; }
  .seitenreiter { flex-wrap: wrap; row-gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) { .advent-tuer .fluegel { transition: none; } }
/* Türen verstreut über dem ganzen Bild (Reinhard 25.11.2026): feste Lage in Prozent, Bild im Seitenverhältnis, auch mobil;
   geschlossene Türen zurückhaltend (dünner Rahmen, leichter Schatten, kaum Füllung), die Mittellinie bleibt */
.advent-flaeche.frei { aspect-ratio: 1440 / 966; container-type: inline-size; }
.advent-flaeche.frei .advent-hg { object-position: center; }
.advent-flaeche.frei .advent-tueren { position: absolute; inset: 0; display: block; padding: 0; }
.advent-flaeche.frei .advent-tuer { position: absolute; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 2px; background: rgba(255, 255, 255, .03);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(0, 0, 0, .12); backdrop-filter: none; }
.advent-flaeche.frei .advent-tuer .fluegel { background: transparent; }
.advent-flaeche.frei .advent-tuer .fluegel.links { border-right: 1px solid rgba(255, 255, 255, .7); }
.advent-flaeche.frei .advent-tuer .zahl { font-size: clamp(11px, 2.5cqw, 30px); text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .5); }
.advent-flaeche.frei .advent-tuer.gross .zahl { font-size: clamp(15px, 4cqw, 48px); }
.advent-flaeche.frei .advent-tuer.offen .fluegel.links, .advent-flaeche.frei .advent-tuer.offen .fluegel.rechts { background: rgba(255, 255, 255, .5); }
.advent-flaeche.frei .advent-tuer.offen .zahl { left: 2px; top: 2px; font-size: clamp(9px, 1.3cqw, 15px); padding: 0 4px; }
.advent-flaeche.frei .advent-tuer:hover:not(.zu) { background: rgba(255, 255, 255, .12); border-color: #fff; }
@media (max-width: 700px) { .advent-flaeche.frei .advent-tuer { border-width: 1px; } }
