/* =====================================================================
 * tombrawand.ch – neues Design (Nov. 2026), Vorschau unter /neu.php
 * Aufbau: unscharfes Foto als Glas-Rand, darin eine dunkle Flaeche mit
 * tuerkiser Linie (Radius 24px, 10px Abstand) – der Inhalt scrollt in
 * dieser Flaeche. Schriften selbst gehostet: Archivo (Logo und Titel),
 * Inter (Text, aus brawone-mark) und Sansation (Rueckfall).
 * ===================================================================== */
@font-face { font-family: 'FT Archivo'; src: url('../fonts/Archivo-ExpandedBlack.woff') format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Archivo Titel'; src: url('../fonts/Archivo-Titel.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'TB Inter'; src: url('../brawone-mark/fonts/Inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Sansation'; src: url('../fonts/Sansation-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
    --fam: 27.8px;
    --accent: #3fb8c9;
    --accent-text: #3fb8c9;
    --bg: #050505;
    --fg: #edeae3;
    --mute: #9a968e;
    --linie: #26251f;
    --karte: #121210;
    --rand: 10px;
}
html.licht-an {
    --accent-text: #0b6470;
    --bg: #f3f0ea;
    --fg: #141412;
    --mute: #45423d;
    --linie: #c4bfb4;
    --karte: #ebe7df;
    color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #050505; }
body {
    overflow: hidden;
    color: var(--fg);
    font-family: 'TB Inter', 'Sansation', system-ui, sans-serif;
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Glas-Rand: das aktuelle Foto, unscharf, hinter allem ------------- */
.glas {
    position: fixed; inset: -10%; z-index: 0;
    background: #1e1d1a center / cover no-repeat;
    filter: blur(40px) saturate(1.3);
    transition: background-image .6s ease;
}
/* --- Innenflaeche: scrollt, mit der tuerkisen Linie darueber ----------- */
.innen {
    position: fixed; z-index: 1;
    inset: calc(var(--rand) + var(--fam)) var(--rand) var(--rand);
    overflow-y: auto; overflow-x: hidden;
    background: var(--bg);
    border-radius: 24px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    transition: background-color .3s ease;
}
.rahmen-linie {
    position: fixed; z-index: 3; pointer-events: none;
    inset: calc(var(--rand) + var(--fam)) var(--rand) var(--rand);
    border: 1px solid var(--accent); border-radius: 24px;
}
@media (prefers-reduced-motion: reduce) { .innen { scroll-behavior: auto; } .glas { transition: none; } }

/* --- Familienleiste: Masse wie auf der bisherigen Seite (zentral) ------ */
.familie {
    display: flex; justify-content: center; align-items: center;
    position: fixed; top: 0; left: 0; right: 0; height: calc(8px + var(--fam));
    z-index: 10004;
    font-size: 0.72rem; letter-spacing: .5px; text-transform: none;
    background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.12) 70%, rgba(0,0,0,0));
}
.familie ul { list-style: none; margin: 0; padding: 0 30px; display: flex; justify-content: safe center; gap: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.familie ul::-webkit-scrollbar { display: none; }
.familie-trenn { flex: none; width: 1px; align-self: stretch; margin: 1px 0; background: rgba(255, 255, 255, 0.35); }
.familie a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.62); text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75); transition: color 0.2s; }
.familie a:hover, .familie a:focus-visible { color: #ffffff; outline: none; }
.familie a[aria-current="page"] { color: #ffffff; }
.familie a[aria-current="page"]::before { box-shadow: 0 0 6px rgba(63, 184, 201, 0.8); }
.familie { --fb-bg: #111111; --fb-accent: #3fb8c9; --fb-neu-bg: #a8e6ee; }
.familie-label { display: flex; align-items: center; flex: none; font-size: .9em; color: rgba(255,255,255,.5); text-shadow: 0 1px 4px rgba(0,0,0,.75); pointer-events: none; }
:root { --ft-bg: rgba(8,8,12,.94); --ft-fg: #fff; --ft-mute: rgba(255,255,255,.7); --ft-line: rgba(63,184,201,.55); --ft-akzent: #3fb8c9; --ft-font: 'Sansation','UbuntuSans',sans-serif; --ft-radius: 13px; --ft-ls: .02em; }
@media (prefers-reduced-motion: reduce) { .familie a { transition: none; } }
@media (max-width: 700px) {
    .familie { font-size: 0.64rem; letter-spacing: .4px; }
    .familie ul { justify-content: flex-start; gap: 18px; padding: 0 18px; }
}

/* --- Kopf -------------------------------------------------------------- */
.kopf, .held, .block, .fuss { max-width: 1360px; margin: 0 auto; padding-left: clamp(18px, 3.5vw, 44px); padding-right: clamp(18px, 3.5vw, 44px); }
.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 26px; padding-bottom: 24px; }
/* Kopf bleibt beim Scrollen oben stehen (wie die Familienleiste), ueber die ganze
 * Breite der Innenflaeche, leicht durchscheinend. Nach dem ersten Scrollen etwas
 * flacher (Klasse sg-klein vom Scroll-Gefuehl, sonst per neu.js). */
.kopf {
    position: sticky; top: 0; z-index: 5;
    max-width: none;
    padding-left: max(clamp(18px, 3.5vw, 44px), calc((100% - 1360px) / 2 + clamp(18px, 3.5vw, 44px)));
    padding-right: max(clamp(18px, 3.5vw, 44px), calc((100% - 1360px) / 2 + clamp(18px, 3.5vw, 44px)));
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: padding .3s ease, border-color .3s ease, background-color .3s ease;
}
.kopf.sg-klein { padding-top: 14px; padding-bottom: 12px; border-bottom-color: var(--linie); }
.kopf.sg-klein .logo { font-size: clamp(20px, 2vw, 24px); }
.logo { transition: font-size .3s ease; }
.block { scroll-margin-top: 80px; }
@media (max-width: 760px) { .kopf.sg-klein .kopf-nav .licht { display: none; } }
.logo { margin: 0; font-family: 'FT Archivo', 'Sansation', sans-serif; font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: .01em; }
.logo a { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); scroll-margin-top: 0; }
.logo-linse { width: .82em; height: .82em; margin: 0 .04em; transform: translateY(-.02em); color: var(--accent); overflow: visible; }
.logo-linse .ll-punkt { fill: var(--fg); }
.logo-linse circle { transform-box: fill-box; transform-origin: center; }
.logo a:hover .ll-punkt, .logo a:focus-visible .ll-punkt { animation: ll-blende .9s cubic-bezier(.5, 0, .3, 1) both; }
.logo a:hover .ll-ring, .logo a:focus-visible .ll-ring { animation: ll-ring .9s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes ll-blende { 0% { transform: scale(1); } 22%, 40% { transform: scale(.2); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ll-ring { 0% { transform: scale(1); } 22%, 40% { transform: scale(.86); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.logo-tom { color: var(--accent-text); }
.kopf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
.kopf-nav a { text-decoration: none; transition: color .2s; }
.kopf-nav a:hover { color: var(--accent-text); }
.licht { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linie); border-radius: 999px; background: transparent; cursor: pointer; transition: border-color .2s; }
.licht:hover { border-color: var(--accent); }
.licht svg { width: 16px; height: 16px; }

/* --- Grossbild als Karte ---------------------------------------------- */
.held-karte {
    position: relative; margin: 0; height: min(680px, 72vh); min-height: 380px;
    border: 1px solid var(--accent); border-radius: 24px; overflow: hidden;
    background: #1e1d1a; display: flex; align-items: flex-end;
}
.held-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.held-karte img.laedt { opacity: .35; }
.held-text {
    position: relative; width: 100%; padding: clamp(22px, 4vw, 48px);
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #f2efe8;
}
.held-titel { margin: 0; font-family: 'Archivo Titel', 'Sansation', sans-serif; font-weight: 800; font-size: clamp(36px, 6vw, 84px); line-height: .95; letter-spacing: -.02em; }
.held-unter { margin: 14px 0 0; font-size: 19px; color: #e4e0d7; }
.held-steuer { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.held-knoepfe { display: flex; align-items: center; gap: 10px; }
.held-bildtext { margin: 0; font-size: 14px; color: #e4e0d7; text-align: right; }
.rund { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.22); color: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.rund:hover { border-color: var(--accent); background: rgba(0,0,0,.4); }
.rund svg { width: 18px; height: 18px; }
.zufall { height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: #0b0b0a; font-weight: 600; cursor: pointer; transition: filter .2s; }
.zufall:hover { filter: brightness(1.1); }
.neu-pill { position: absolute; top: 16px; left: 16px; z-index: 2; padding: .4rem .75rem; border-radius: 999px; background: var(--accent); color: #0b0b0a; font-size: .7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.anfrage { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(5,5,5,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.anfrage:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0a; }
.anfrage svg { width: 18px; height: 18px; }

/* --- Bloecke ----------------------------------------------------------- */
.block { padding-top: clamp(72px, 10vw, 120px); scroll-margin-top: 0; }
.block h2 { margin: 0; font-family: 'Archivo Titel', 'Sansation', sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.block-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.block-kopf p { margin: 0; color: var(--mute); }

.serien { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.serie { display: block; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; }
.serie-bild { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--karte); }
.serie-bild img, .kachel-bild img, .print-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.serie:hover img, .kachel:hover img { transform: scale(1.04); }
.serie-fuss { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.serie-fuss h3 { margin: 0; font-family: 'Archivo Titel', 'Sansation', sans-serif; font-weight: 800; font-size: 22px; }
.serie-fuss span { font-size: 14px; color: var(--mute); }

/* --- Filter und Raster ------------------------------------------------- */
.filter-kasten { margin: 22px 0 28px; padding: 18px 20px; border: 1px solid var(--linie); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.filter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-name { width: 100px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.filter-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pill .zahl { opacity: .6; }
.pill.farbe { padding-left: 8px; }
.farbe-punkt { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
html.licht-an .farbe-punkt { box-shadow: inset 0 0 0 1px rgba(31,29,26,.3); }
.filter-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.link-knopf { padding: 0; min-height: 44px; border: 0; background: none; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-knopf:hover { color: var(--accent-text); }
.leer { margin: 0 0 24px; padding: 40px; text-align: center; color: var(--mute); background: var(--karte); border-radius: 8px; }
.raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.kachel { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.kachel-bild { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--karte); }
.kachel-bild .neu-pill { top: 10px; left: 10px; font-size: .62rem; padding: .32rem .6rem; }
.kachel-fuss { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; }
.kachel-titel { font-weight: 500; font-size: 15px; line-height: 1.3; }
.kachel-ort { display: block; font-weight: 400; font-size: 13px; color: var(--mute); }
.kachel-punkte { display: flex; gap: 4px; padding-top: 4px; flex: none; }
.kachel-punkte i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* --- Prints & Karten --------------------------------------------------- */
.prints { border-top: 1px solid var(--linie); padding-top: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.prints-text { flex: 1 1 300px; }
.prints-text p { color: var(--mute); max-width: 420px; }
.vorspann { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-text) !important; }
.link-pfeil { display: inline-block; margin-top: 8px; color: var(--fg); text-underline-offset: 3px; }
.link-pfeil:hover { color: var(--accent-text); }
.prints-karten { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-items: start; }
.print { background: var(--karte); border-radius: 8px; padding: 16px; }
.print-bild { border-radius: 3px; overflow: hidden; }
.print-bild.quer { aspect-ratio: 3 / 2; }
.print-bild.hoch { aspect-ratio: 3 / 4; }
.print-art { margin: 14px 0 2px; font-size: 13px; color: var(--mute); }
.print h3 { margin: 0; font-family: 'Archivo Titel', 'Sansation', sans-serif; font-weight: 800; font-size: 18px; }

/* --- Kontakt (Aufbau wie tomstown.ch: links Hinweis, Wege und Bild, rechts das Formular) --- */
.k-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 20px; }
@media (max-width: 900px) { .k-layout { grid-template-columns: minmax(0, 1fr); } }
.k-seite { display: grid; gap: 1.4rem; align-content: start; }
.k-hinweis { margin: 0; color: var(--mute); font-size: .95rem; line-height: 1.6; }
.k-hinweis a { color: var(--accent-text); }
.k-wege { display: grid; gap: .55rem; padding: 1.1rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.k-wege a { text-decoration: none; transition: color .2s; }
.k-wege a:hover { color: var(--accent-text); }
.k-mail { font-size: 1.05rem; }
.k-weg { color: var(--mute); font-size: .9rem; letter-spacing: .04em; }
.k-weg-reihe { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .3rem; }
.k-comic { position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--accent); box-shadow: 0 22px 46px -26px rgba(0,0,0,.9); }
.k-comic img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; filter: saturate(.85); transition: opacity .35s ease, filter .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.k-comic:hover img { opacity: 1; filter: none; transform: scale(1.03); }
.k-rechts { min-width: 0; }
.k-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 1.2rem; }
.k-form > * { grid-column: 1 / -1; }
.k-form > .k-halb { grid-column: auto; }
@media (max-width: 600px) { .k-form > .k-halb { grid-column: 1 / -1; } }
.k-feld { display: grid; gap: .45rem; }
.k-feld > span { color: var(--mute); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.k-feld input, .k-feld textarea { width: 100%; padding: .8rem 1rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--karte); color: var(--fg); font: inherit; transition: border-color .3s; }
.k-feld textarea { resize: vertical; min-height: 160px; }
.k-feld input:focus, .k-feld textarea:focus { outline: none; border-color: var(--accent); }
.k-feld.ist-fehler > span { color: #f0a3a3; }
.k-feld.ist-fehler input, .k-feld.ist-fehler textarea { border-color: rgba(240,120,120,.75); }
.k-pills { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
@media (min-width: 601px) { .k-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.k-pill { display: flex; min-width: 0; }
.k-pill input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.k-pill span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; min-height: 44px; font-size: .74rem; letter-spacing: .07em; padding: .6rem .8rem; border: 1px solid var(--linie); border-radius: 999px; color: var(--mute); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.k-pill:hover span { color: var(--accent-text); border-color: var(--accent); }
.k-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #0b0b0a; }
html.licht-an .k-pill input:checked + span { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.k-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.k-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.k-senden-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2rem); }
.k-ts:empty { display: none; }
.k-ts { min-height: 65px; min-width: 300px; }
@media (max-width: 400px) { .k-ts { min-width: 0; width: 100%; } }
.k-senden { min-height: 44px; padding: .55rem 1.3rem; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--accent-text); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: color .2s, background .2s; }
.k-senden:hover { background: var(--accent); color: #0b0b0a; }
html.licht-an .k-senden:hover { background: var(--accent-text); color: #fff; }
.k-senden:disabled { opacity: .5; cursor: wait; }
.k-note { margin: 0; font-size: .9rem; letter-spacing: .04em; }
.k-note:empty { display: none; }
.k-note.gut, .k-note.fehler { padding: .7rem 1rem; border: 1px solid; border-radius: 6px; }
.k-note.gut { color: var(--accent-text); border-color: rgba(63,184,201,.5); }
.k-note.fehler { color: #ff9b9b; border-color: rgba(240,120,120,.5); }
html.licht-an .k-note.fehler { color: #b3261e; }
.k-klein { margin: 0; font-size: 13px; color: var(--mute); }
.k-bild { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(63,184,201,.55); border-radius: 12px; background: rgba(63,184,201,.08); }
.k-bild-vorschau { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; }
.k-bild-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; }
.k-bild-l { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-text); }
.k-bild-weg { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--linie); background: none; cursor: pointer; font-size: 18px; }

/* Kleine Linse vor den Kapitel-Titeln (wie die Kapitelmarke auf tomstown.ch) */
.kapitel-linse { display: inline-block; width: .42em; height: .42em; margin: 0 .38em .1em 0; vertical-align: middle; border-radius: 50%; border: .09em solid var(--accent); background: radial-gradient(circle at 36% 30%, #fff 0%, var(--accent) 40%, rgba(63,184,201,.3) 70%, transparent 80%); }
.block-kopf h2 { margin: 0; }
.recht-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--mute); }
.recht-fuss .ft-mark { --ftm-ink: var(--mute); --ftm-ink-hover: var(--fg); --ftm-bg: var(--bg); }
.recht-fuss .ft-mark, .recht-fuss .ft-mark * { font-family: 'FT Archivo', 'Sansation', sans-serif; font-weight: 900; font-stretch: 125%; }
/* Scroll-Gefuehl: Grossbild schrumpft von oben her */
html.sg .held-karte.sg-hero { transform-origin: 50% 0; }

/* --- Fuss -------------------------------------------------------------- */
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 80px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--mute); }
.fuss nav { display: flex; align-items: center; gap: 22px; }
.fuss nav a { text-decoration: none; }
.fuss nav a:not(.bw-mark):hover { color: var(--accent-text); }
.fuss .link-knopf { color: var(--mute); text-decoration: none; }
.fuss .trenner { opacity: .5; margin: 0 .3em; }
.fuss .ft-mark { --ftm-ink: var(--mute); --ftm-ink-hover: var(--fg); --ftm-bg: var(--bg); font-size: .95em; }
.fuss .ft-mark, .fuss .ft-mark * { font-family: 'FT Archivo', 'Sansation', sans-serif; font-weight: 900; font-stretch: 125%; }

/* --- Dialoge: Grossansicht und Impressum ------------------------------- */
dialog { color: var(--fg); }
dialog::backdrop { background: rgba(5,5,5,.94); }
html.licht-an dialog::backdrop { background: rgba(243,240,234,.94); }
.gross { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 60px 80px 40px; border: 0; background: transparent; }
.gross[open] { display: flex; align-items: center; justify-content: center; }
.gross figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.gross img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; }
.gross figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; text-align: center; color: var(--fg); }
.gross-zu { position: absolute; top: 18px; right: 18px; }
.gross-pfeil { position: absolute; top: 50%; transform: translateY(-50%); }
.gross-pfeil.links { left: 18px; }
.gross-pfeil.rechts { right: 18px; }
html.licht-an .rund { color: var(--fg); border-color: rgba(31,29,26,.35); background: rgba(243,240,234,.6); }
html.licht-an .held-text .rund { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.22); }
.recht-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 64px); padding: 40px clamp(20px, 5vw, 48px); border: 1px solid var(--accent); border-radius: 24px; background: var(--bg); overflow-y: auto; }
.recht h2 { font-family: 'Archivo Titel', 'Sansation', sans-serif; font-weight: 800; font-size: 28px; margin: 28px 0 8px; }
.recht h2:first-child, .recht section:first-child h2 { margin-top: 0; }
.recht h3 { font-size: 16px; margin: 20px 0 4px; }
.recht p, .recht address { color: var(--mute); font-style: normal; }
.recht a { color: var(--accent-text); }
.recht .stand { font-size: 13px; }

@media (max-width: 760px) {
    :root { --rand: 6px; }
    .innen, .rahmen-linie { border-radius: 18px; }
    .held-karte { border-radius: 18px; height: 62vh; }
    .held-steuer { align-items: flex-start; }
    .held-bildtext { text-align: left; }
    .kopf-nav { font-size: 14px; gap: 4px 18px; }
    .filter-name { width: 100%; }
    .k-form { grid-template-columns: 1fr; }
    .gross { padding: 64px 12px 24px; }
    .gross-pfeil { top: auto; bottom: 18px; transform: none; }
}

/* Fuss rechts: Impressum, dann «ein Projekt von» BRAWONE. Die Marke behaelt ihr
 * eigenes Verhalten: grau in Ruhe, hell beim Darueberfahren, Punkte im BRAWONE-Gold
 * (fest in brawone-mark.css). */
.fuss-projekt { display: inline-flex; align-items: center; gap: .55em; }
.fuss-bw-label { color: var(--mute); }
.fuss .bw-mark { --bwm-ink: var(--mute); --bwm-ink-hover: var(--fg); --bwm-dot-rest: rgba(255,255,255,.28); --bwm-bg: var(--bg); font-size: 1.05em; }
html.licht-an .fuss .bw-mark { --bwm-dot-rest: rgba(31,29,26,.3); }

/* Familienleiste: beim Herunterscrollen weg (der Rahmen rueckt nach oben, oben
 * derselbe Abstand wie unten), beim Hinaufscrollen wieder da. Klasse fam-weg setzt neu.js. */
.familie { transition: transform .35s ease, opacity .35s ease; }
.innen, .rahmen-linie { transition: inset .35s ease, background-color .3s ease; }
html.fam-weg { --fam: 0px; }
html.fam-weg .familie { transform: translateY(-100%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .familie, .innen, .rahmen-linie { transition: none; } }

/* Licht an: Text kraeftiger (Inter wirkt auf hellem Grund duenner) */
html.licht-an body { -webkit-font-smoothing: auto; }
html.licht-an .kopf-nav, html.licht-an .k-hinweis, html.licht-an .k-weg, html.licht-an .k-klein,
html.licht-an .block-kopf p, html.licht-an .serie-fuss span, html.licht-an .kachel-ort,
html.licht-an .filter-fuss, html.licht-an .print-art, html.licht-an .fuss { font-weight: 500; }
html.licht-an .k-feld > span, html.licht-an .filter-name { color: var(--fg); font-weight: 600; }
html.licht-an .k-pill span { color: var(--fg); font-weight: 500; border-color: #b3ada1; }
html.licht-an .k-feld input, html.licht-an .k-feld textarea { background: #fbfaf7; border-color: #b3ada1; }
html.licht-an .pill { border-color: #b3ada1; }
html.licht-an .kachel-titel, html.licht-an .k-mail { font-weight: 600; }

/* Grossansicht: Link kopieren / teilen */
.gross figcaption .link-knopf { color: var(--mute); }
.gross figcaption .link-knopf:hover { color: var(--accent-text); }
.gross-meldung { flex-basis: 100%; min-height: 1.2em; font-size: 13px; color: var(--accent-text); }

/* Kopf-Menue: das aktuelle Kapitel steht im Sucher – vier Ecken wie im Kamera-
 * Sucher, die beim Wechsel einrasten. Beim Darueberfahren deuten sie sich an. */
.kopf-nav a { position: relative; }
.kopf-nav a::after {
    --e: 8px; --d: 1.5px; --f: var(--accent);
    content: ""; position: absolute; inset: -7px -11px; pointer-events: none;
    background:
        linear-gradient(var(--f), var(--f)) top left / var(--e) var(--d) no-repeat,
        linear-gradient(var(--f), var(--f)) top left / var(--d) var(--e) no-repeat,
        linear-gradient(var(--f), var(--f)) top right / var(--e) var(--d) no-repeat,
        linear-gradient(var(--f), var(--f)) top right / var(--d) var(--e) no-repeat,
        linear-gradient(var(--f), var(--f)) bottom left / var(--e) var(--d) no-repeat,
        linear-gradient(var(--f), var(--f)) bottom left / var(--d) var(--e) no-repeat,
        linear-gradient(var(--f), var(--f)) bottom right / var(--e) var(--d) no-repeat,
        linear-gradient(var(--f), var(--f)) bottom right / var(--d) var(--e) no-repeat;
    opacity: 0; transform: scale(1.25);
    transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.kopf-nav a:hover::after, .kopf-nav a:focus-visible::after { opacity: .45; transform: scale(1.1); }
.kopf-nav a[aria-current] { color: var(--accent-text); }
.kopf-nav a[aria-current]::after { opacity: 1; transform: scale(1); }
html.licht-an .kopf-nav a::after { --f: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .kopf-nav a::after { transition: opacity .2s ease; transform: none !important; } }
.held-knoepfe .rund { text-decoration: none; }
