/* Galerie für Gäste – schlicht, hell/dunkel, fürs Handy zuerst. */
:root { --grund: #f6f4f1; --karte: #ffffff; --text: #1d1d1f; --leise: #6e6e73; --akzent: #c8925a; --rand: #e4e0da; --fehler: #c0392b; }
@media (prefers-color-scheme: dark) {
  :root { --grund: #111214; --karte: #1c1d21; --text: #f2f2f2; --leise: #a1a1a6; --akzent: #e0aa72; --rand: #2c2d33; --fehler: #ff6b5e; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grund); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
body.ohne-scroll { overflow: hidden; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 .25rem; letter-spacing: -.01em; }
.leise { color: var(--leise); margin: 0; }
.mitte { text-align: center; }
.fehler { color: var(--fehler); }
.kopf { text-align: center; padding: 2.2rem 1rem 1rem; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 1.8rem; margin: 1rem auto; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.schmal { max-width: 420px; width: calc(100% - 32px); text-align: center; }
main.karte:first-child { margin-top: 12vh; }
.marke { font-size: 2.6rem; margin-bottom: .4rem; }
.formular { display: grid; gap: .6rem; text-align: left; margin-top: 1rem; }
.formular label { font-weight: 600; font-size: .9rem; }
.formular input { font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--rand); background: var(--grund); color: var(--text); width: 100%; }
.formular input:focus { outline: 2px solid var(--akzent); border-color: transparent; }
button, .knopf { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 12px; padding: .85rem 1rem; background: var(--akzent); color: #fff; text-decoration: none; text-align: center; }
button:disabled { opacity: .6; }
#galerie { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 12px 2rem; }
.raster { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 1rem; }
@media (min-width: 900px) { .raster { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } }
.kachel { padding: 8px; background: var(--karte); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--rand); display: flex; align-items: center; justify-content: center; }
.kachel img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: transform .25s; }
.kachel:hover img { transform: scale(1.03); }
.gross { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 56px 12px 90px; }
.gross[hidden] { display: none; }
.gross img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.rund { position: absolute; width: 48px; height: 48px; border-radius: 50%; padding: 0; background: rgba(255,255,255,.16); font-size: 1.6rem; line-height: 48px; }
.oben-rechts { top: 12px; right: 12px; font-size: 1.2rem; }
.links { left: 12px; top: 50%; transform: translateY(-50%); }
.rechts { right: 12px; top: 50%; transform: translateY(-50%); }
.unten { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); }
@media (max-width: 600px) { .links, .rechts { display: none; } }
.fuss { margin-top: auto; text-align: center; color: var(--leise); font-size: .8rem; padding: 1.5rem 1rem; }
.fuss a { color: inherit; }
