/* FOTOTOM – Diashow. Schriften selbst gehostet (Archivo fuer das Logo, Inter fuer Text). */
@font-face { font-family: 'FT Archivo'; src: url('/fonts/Archivo-ExpandedBlack.woff') format('woff'); font-weight: 900; 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; }

:root { --accent: #3fb8c9; --fg: #f2efe8; --mute: rgba(242,239,232,.7); --dauer: 5s; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #050505; color: var(--fg); overflow: hidden; }
body { font-family: 'TB Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.show { position: fixed; inset: 0; cursor: default; }
.show.ruhig { cursor: none; }

/* Hintergrund: dasselbe Foto unscharf (Glas wie auf der Startseite) */
.ebene { position: absolute; inset: 0; overflow: hidden; }
/* Spart Rechenleistung: kleine Flaeche (1/5) wenig unscharf, dann 5x vergroessert –
 * sieht gleich aus wie eine grosse Flaeche mit starker Unschaerfe. */
.glas { position: absolute; left: 50%; top: 50%; width: 24vw; height: 24vh; transform: translate(-50%, -50%) scale(5); background: center / cover no-repeat; filter: blur(9px) saturate(1.25) brightness(.55); opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.glas.an { opacity: 1; }

/* Foto: ganz sichtbar, weich ueberblendet, leichtes langsames Heranzoomen */
.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; transform: scale(1); }
.foto.an { opacity: 1; animation: zoom calc(var(--dauer) + 1.4s) linear both; will-change: transform, opacity; }
.show.pause .foto.an { animation-play-state: paused; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.035); } }
.laedt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--mute); }

/* Logo und Schliessen oben */
.logo, .zu { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top)); transition: opacity .4s ease; }
.logo { left: max(22px, env(safe-area-inset-left)); display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); font-family: 'FT Archivo', sans-serif; font-weight: 900; font-stretch: 125%; font-size: 22px; line-height: 1; letter-spacing: .01em; text-shadow: 0 1px 10px rgba(0,0,0,.5); padding: 10px 0; }
.linse { width: .82em; height: .82em; margin: 0 .04em; border-radius: 50%; box-sizing: border-box; border: .12em solid #f4f2ef; background: radial-gradient(circle at 44% 37%, #74d3df 0%, #3fb8c9 62%, #2b98a8 100%); transform: translateY(-.02em); }
.tom { color: var(--accent); }
.zu { right: max(18px, env(safe-area-inset-right)); }

/* Leiste unten */
.leiste {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px;
    padding: 60px max(24px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    transition: opacity .4s ease, transform .4s ease;
}
.show.ruhig .leiste, .show.ruhig .logo, .show.ruhig .zu { opacity: 0; pointer-events: none; }
.show.ruhig .leiste { transform: translateY(12px); }
.text { min-width: 0; }
.titel { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ort { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.zaehler { margin-left: .6em; font-variant-numeric: tabular-nums; opacity: .8; }
.steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trenn { width: 1px; height: 28px; background: rgba(255,255,255,.25); margin: 0 4px; }
.rund { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.28); color: #fff; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s; }
.rund:hover { border-color: var(--accent); background: rgba(0,0,0,.45); }
.rund.gross { width: 54px; height: 54px; background: var(--accent); border-color: var(--accent); color: #0b0b0a; }
.rund.gross:hover { filter: brightness(1.1); background: var(--accent); }
.rund svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rund svg .voll { fill: currentColor; stroke: none; }
.rund.gross svg { width: 20px; height: 20px; }
#spielen .i-play { display: none; }
#spielen[aria-pressed="false"] .i-play { display: block; }
#spielen[aria-pressed="false"] .i-pause { display: none; }
.wahl { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.wahl button { min-height: 40px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: var(--mute); }
.wahl button[aria-pressed="true"] { background: var(--fg); color: #0b0b0a; }
.auswahl select { min-height: 42px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23f2efe8' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 13px; }
.auswahl select option { color: #111; }
.pille { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.28); cursor: pointer; font-size: 13px; }
.pille[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0b0a; }

/* Fortschritt bis zum naechsten Foto */
.fortschritt { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.fortschritt span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.fortschritt span.laeuft { animation: balken var(--dauer) linear forwards; }
.show.pause .fortschritt span { animation-play-state: paused; }
@keyframes balken { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 760px) {
    .leiste { flex-direction: column; align-items: stretch; }
    .steuer { justify-content: center; }
    .trenn { display: none; }
    .logo { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .foto.an { animation: none; }
    .foto, .glas { transition-duration: .3s; }
}
