/* Erzeugt von tools/fetch_fonts.py – Schriften: SIL Open Font License 1.1 */
/* newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/newsreader-300-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/newsreader-300-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/newsreader-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/newsreader-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* plex-sans latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-sans-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* plex-sans latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-sans-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* plex-sans latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-sans-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* plex-sans latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-sans-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* plex-mono latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-mono-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* plex-mono latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/gezeiten/fonts/plex-mono-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* pphinz.de · Visitenkarte
   Aufbau: Kopfbild mit Horizontlinie · Name · Aktionen · Links · Fotostreifen · Fußzeile.
   Die Linie setzt den Horizont des Fotos über das Bild hinaus fort (--h = Horizont im Bild, gemessen). */

:root {
  --sky: #F1ECE4; --ink: #13202B; --ink-2: #56636B; --line-c: #0E4E7C; --gold: #D9963F; --rule: rgba(19, 32, 43, .14);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
  --col: 560px; --glow-c: rgba(255, 252, 245, .32);
  color-scheme: light dark;
}
/* Hell/Dunkel: folgt dem Gerät; der Schalter ☀/☾ setzt data-theme und überstimmt das Gerät */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sky: #0E151C; --ink: #E9E4DA; --ink-2: #9AA5AD; --line-c: #6FA3C9; --gold: #E3A35B; --rule: rgba(233, 228, 218, .16); --glow-c: rgba(111, 163, 201, .045); color-scheme: dark; }
}
:root[data-theme="dark"] { --sky: #0E151C; --ink: #E9E4DA; --ink-2: #9AA5AD; --line-c: #6FA3C9; --gold: #E3A35B; --rule: rgba(233, 228, 218, .16); --glow-c: rgba(111, 163, 201, .045); color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ko) body { word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--line-c); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font: 400 12.5px/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.label { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0; }

/* ---------- Sprache ---------- */
.topbar { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); z-index: 5; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 14px; font: 500 14px/1 var(--sans); }
.theme { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 400 17px/1 var(--sans); cursor: pointer; }
.theme:hover { color: var(--ink); }
.lang a { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.lang a[aria-current], .lang a:hover { color: var(--ink); }

/* ---------- Karte ---------- */
.card { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 0 20px; }

/* Kopfbild: Linie bei 62 %, Bild sitzt mit seinem Horizont darauf, Linie läuft links und rechts weiter */
.hero { --L: 62%; position: relative; container-type: inline-size; height: clamp(280px, 50svh, 470px); margin: 0 calc(50% - 50vw); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: var(--L); height: 1px; background: var(--line-c); z-index: 0; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.9); opacity: .75; } }
.hero .pic { --w: min(88cqw, 670px); position: absolute; z-index: 1; display: block; width: var(--w); height: calc(var(--w) / var(--ar));
  left: calc(50% - var(--w) / 2); top: calc(var(--L) - var(--h) * var(--w) / var(--ar)); background: var(--avg);
  animation: open 1.1s var(--ease) both; }
.hero .pic img { width: 100%; height: 100%; object-fit: cover; }
/* Das Bild öffnet sich vom Horizont aus; startet schon als schmaler Streifen, damit es sofort sichtbar ist */
@keyframes open { from { clip-path: inset(calc(var(--h) * 70%) 0 calc((1 - var(--h)) * 70%) 0); } to { clip-path: inset(0); } }

/* Sprachleiste darf das Titelbild nicht überdecken: wo sie über dem Foto läge (unter ~1120 px Breite),
   wird der Kopfbereich so hoch, dass das Foto erst unter ihr beginnt (Leiste 44 px + Abstand, iPhone-Kamerabereich eingerechnet) */
@media (max-width: 1119px) { .hero { height: max(clamp(280px, 50svh, 470px), calc((max(14px, env(safe-area-inset-top)) + 56px + var(--h, .6) * min(88vw, 670px) / var(--ar, 1.7778)) / .62)); } }
@media (max-width: 599px) { .hero { --L: 66%; height: max(clamp(230px, 34svh, 340px), calc((max(14px, env(safe-area-inset-top)) + 54px + var(--h, .6) * 88vw / var(--ar, 1.7778)) / .66)); } }

/* Sanftes Einblenden beim Laden */
.id, .actions, .links li { animation: rise .7s var(--ease) both; }
.id { animation-delay: .15s; } .actions { animation-delay: .25s; }
.links li:nth-child(1) { animation-delay: .32s; } .links li:nth-child(2) { animation-delay: .38s; } .links li:nth-child(3) { animation-delay: .44s; }
.links li:nth-child(4) { animation-delay: .5s; } .links li:nth-child(5) { animation-delay: .56s; } .links li:nth-child(n+6) { animation-delay: .6s; }

/* Lichtschein, der der Maus folgt: nur Desktop, nur auf dem Hintergrund (hinter Fotos und Text) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body { position: relative; z-index: 0; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--glow, 0); transition: opacity .6s ease;
    background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 30%), var(--glow-c), transparent 70%); }
}

/* ---------- Name ---------- */
.id { padding: 28px 0 0; }
.id h1 { font: 300 clamp(36px, 7vw, 46px)/1.04 var(--serif); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.role { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- Aktionen ---------- */
.actions { padding: 28px 0 8px; }
.save { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--sky); text-decoration: none; font: 500 16px/1 var(--sans); transition: background-color .25s; }
.save:hover { background: var(--line-c); }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 2px; font: 500 15px/1 var(--sans); color: var(--ink); background: none; border: 0; text-decoration: none; cursor: pointer; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--line-c); }
.btn::before { content: ""; position: absolute; left: 0; bottom: 6px; height: 3px; width: 0; background: var(--gold); z-index: 1; transition: width .3s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { width: 100%; }

/* ---------- Links ---------- */
.links { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); }
.row { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 0; text-decoration: none; }
.row .t { flex: 1; min-width: 0; }
.row b { display: block; font-weight: 500; }
.row .t span { display: block; font-size: 15px; color: var(--ink-2); }
.row .arr { color: var(--line-c); transition: transform .3s var(--ease); }
.row:hover .arr, .row:focus-visible .arr { transform: translateX(4px); }
.row:hover b { text-decoration: underline; text-decoration-color: var(--line-c); text-underline-offset: 4px; }

/* ---------- Fotostreifen ---------- */
.strip-wrap { --sh: 240px; max-width: 1200px; margin: 64px auto 0; }
@media (min-width: 900px) { .strip-wrap { --sh: 280px; } }
.strip-head { display: flex; justify-content: space-between; align-items: center; max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 0 20px 12px; }
.strip-head .nav { display: flex; gap: 16px; }
@media (hover: none) { .strip-head .nav { display: none; } }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; width: calc(var(--sh) * var(--ar)); }
.strip .sp { display: block; height: var(--sh); background: var(--avg); }
.strip .sp img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { margin-top: 8px; color: var(--ink-2); white-space: nowrap; }
/* Bildunterschrift blendet ein, sobald das Foto im Streifen sichtbar ist (nur mit JavaScript) */
.js .strip figcaption { opacity: 0; transform: translateY(4px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .strip figure.seen figcaption { opacity: 1; transform: none; }

/* Pfeile am Anfang und Ende ausgegraut */
.strip-head .btn:disabled { opacity: .3; cursor: default; }
.strip-head .btn:disabled::before { display: none; }
.strip-more { max-width: calc(var(--col) + 40px); margin: 16px auto 0; padding: 0 20px; }
.all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.tx { text-decoration: underline; text-decoration-color: var(--line-c); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tx:hover, .tx:focus-visible { text-decoration-thickness: 2px; }

/* ---------- Fotoseite ---------- */
.gallery { max-width: 1200px; margin: 0 auto; padding: 72px 20px 0; }
.gallery h1 { font: 300 clamp(36px, 7vw, 46px)/1.04 var(--serif); margin: 8px 0 0; }
.gallery .back { margin: 0; }
.gallery .back a { display: inline-flex; align-items: center; min-height: 44px; }
/* Zeilen von links nach rechts (neueste zuerst), Seitenverhältnis bleibt erhalten */
.cols { --rh: 220px; display: flex; flex-wrap: wrap; gap: 20px 12px; margin-top: 32px; }
.cols::after { content: ""; flex-grow: 1000000; }
.cols figure { margin: 0; flex: var(--ar) 1 calc(var(--ar) * var(--rh)); min-width: 0; }
.cols .sp { display: block; aspect-ratio: var(--ar); background: var(--avg); }
.cols .sp img { width: 100%; height: 100%; object-fit: cover; }
.cols figcaption { margin-top: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .cols { --rh: 100px; gap: 16px 8px; } }

/* ---------- Sammlungen ---------- */
.tomore { margin: 14px 0 0; }
.tomore a { display: inline-flex; align-items: center; min-height: 44px; }
.years { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; }
.years a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.years a:hover { color: var(--ink); }
.cgroup { margin-top: 48px; scroll-margin-top: 16px; }
.cgroup .label { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.tiles { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 16px; }
.tile { display: block; text-decoration: none; }
.tile .tp { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--avg); }
.tile .tp img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tp img, .tile:focus-visible .tp img { transform: scale(1.025); }
.tile .tt { display: block; margin-top: 10px; font: 300 24px/1.15 var(--serif); }
.tile:hover .tt { text-decoration: underline; text-decoration-color: var(--line-c); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tile .tm { display: block; margin-top: 4px; color: var(--ink-2); }
.coll .role { margin: 10px 0 0; color: var(--ink-2); }
.ctext { max-width: 60ch; margin: 16px 0 0; }
.coll .cols a { display: block; cursor: zoom-in; }
.cmore { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); }
.cmore ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.cmore a { display: inline-flex; align-items: center; min-height: 44px; }
.tiles li { display: flex; flex-direction: column; }
.tiles.klein { grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 20px 12px; }
.tiles.klein .tt { font-size: 17px; margin-top: 6px; }
.tiles.klein .tm { font-size: 11px; }
.tiles.klein .td { display: none; }
.tiles.klein .tact { gap: 12px; }
.tiles.klein .tact .btn { font-size: 12px; min-height: 36px; }
.tiles .tact { display: flex; gap: 20px; margin-top: 2px; }
.tiles .tact .btn { font-size: 14px; }
.tile .td { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.edlg { border: 0; padding: 24px; width: min(480px, calc(100vw - 32px)); background: var(--sky); color: var(--ink); }
.edlg::backdrop { background: rgba(14, 21, 28, .5); }
.edlg h2 { font: 300 24px/1.2 var(--serif); margin: 0 0 8px; }
.edlg .gform { margin: 0; max-width: none; display: grid; gap: 10px; }
.edlg input { font: 400 17px/1.3 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-c); padding: 10px 0; min-height: 48px; border-radius: 0; }
.gform textarea { font: 400 16px/1.45 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); padding: 10px; resize: vertical; }
.gform textarea:focus { outline: 2px solid var(--line-c); }
.edbtns { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
.edbtns .save { flex: 1; }
.hint { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.cshare { margin: 8px 0 0; display: flex; gap: 24px; }
.gate .gform { max-width: 360px; margin-top: 28px; display: grid; gap: 10px; }
.gform label { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.gform input { font: 400 17px/1.3 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-c); padding: 10px 0; min-height: 48px; border-radius: 0; }
.gform input:focus { outline: none; border-bottom-width: 2px; }
.gform .save { border: 0; cursor: pointer; margin-top: 8px; }
.gform .err { margin: 0; color: var(--gold); font-size: 15px; }
.trashp { margin: 4px 0 0; }
.selecting .cols a { cursor: pointer; }
.cols figure { position: relative; }
.selecting .cols figure a::after { content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.selecting .cols figure.picked a::after { background: var(--line-c); content: "✓"; color: #fff; font: 700 15px/20px var(--sans); text-align: center; }
.selecting .cols figure.picked .sp { outline: 3px solid var(--line-c); outline-offset: -3px; }
.selbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 20px; padding: 6px 18px; background: var(--sky); border: 1px solid var(--rule); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); white-space: nowrap; }
.selbar .btn:disabled { opacity: .4; cursor: default; }
.lb-tools { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 12px; display: flex; gap: 20px; }
.lb .lb-tools .btn { position: static; font-size: 15px; }
.lb-d { color: #f1a38f !important; }
.trdlg { width: min(720px, calc(100vw - 32px)); }
.trlist { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; }
.trit { display: block; width: 100%; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; }
.trit img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.trit[aria-pressed="true"] { border-color: var(--line-c); }
.small { font-size: 14px; color: var(--ink-2); margin: 0; }
/* Großansicht */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 12, 16, .96); color: #E9E4DA; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(8, 12, 16, .96); }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px 24px; max-width: 100%; }
.lb img { max-width: min(100%, 1440px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.lb figcaption { color: #9AA5AD; text-align: center; }
.lb .btn { position: absolute; color: #E9E4DA; font-size: 22px; min-width: 44px; }
.lb-x { top: max(8px, env(safe-area-inset-top)); right: 12px; }
.lb-p, .lb-n { top: 50%; transform: translateY(-50%); }
.lb-p { left: 12px; } .lb-n { right: 12px; }

@media (max-width: 599px) { .lb-p, .lb-n { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; } }

/* ---------- Fußzeile ---------- */
.foot { max-width: calc(var(--col) + 40px); margin: 48px auto 0; padding: 20px 20px max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0; padding: 10px 0; }
.foot .crab { margin-right: 4px; }

/* ---------- QR-Dialog ---------- */
.qrdlg { border: 0; padding: 28px 24px 20px; width: min(340px, calc(100vw - 40px)); background: var(--sky); color: var(--ink); text-align: center; }
.qrdlg::backdrop { background: rgba(14, 21, 28, .45); }
.qrdlg h2 { font: 300 24px/1.2 var(--serif); margin: 0 0 18px; }
.qrbox { width: 220px; margin: 0 auto; padding: 12px; background: #fff; color: #0E151C; }
.qrbox svg { display: block; width: 100%; height: auto; }
.qrdlg p { margin: 14px 0 6px; color: var(--ink-2); }
.qrdlg[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Hinweis ---------- */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); opacity: 0; background: var(--ink); color: var(--sky); padding: 12px 18px; font: 500 14px/1 var(--sans); transition: transform .4s var(--ease), opacity .3s; z-index: 20; white-space: nowrap; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
/* Reihenfolge der eigenen Sammlungen ziehen (nur Übersicht, nur mit Passwort) */
.sortp { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#own.sorting > li { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 4px; }
#own.sorting > li .tact { visibility: hidden; }
#own.sorting a { pointer-events: none; }
#own > li.dragging { opacity: .55; cursor: grabbing; outline-style: solid; }
#own.sorting { grid-template-columns: repeat(auto-fill, minmax(min(44%, 150px), 1fr)); gap: 14px 12px; }
#own.sorting .tm, #own.sorting .td, #own.sorting .tact { display: none; }
#own.sorting .tt { font-size: 15px; margin-top: 4px; }
.sortp:has(+ #own.sorting) { position: sticky; top: 0; z-index: 5; background: var(--sky); padding: 8px 0; }
