/* Galerie im CI von julianhaase.de (BRANDING.md, Stand 22.10.2026), geordnet nach den Regeln des
   Apple-Design-Skills (rukkiecodes): EINE Signalfarbe (Bernstein), Pillen-Knöpfe, keine Schatten
   auf Bedienelementen, feine Linien, Gewichte nur 400/600/700, viel Luft, ruhige Bewegung.
   Aufbau bleibt wie Picdrop: Seitenleiste links, Bilder mit Abstand und leicht runden Ecken.
   Rot/Gelb/Grün der Markierungen sind Statusfarben, keine Akzente. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 700; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-var-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; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 700; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Farben aus BRANDING.md */
  --weiss: #fbfaf7;
  --papier: #f3f0ea;
  --tinte: #111111;
  --petrol: #0b2f37;
  --grau: #5f5f5a;
  --linie: #d9d4ca;
  --linie-weich: #e8e4dc;
  --bernstein: #e89a2c;
  --bernstein-druck: #d98b1d;
  /* Statusfarben der Markierung */
  --rot: #d64541;
  --gelb: #b38600;
  --gruen: #2f8a57;
  /* Abstände, Ecken, Bewegung */
  --luft-s: 8px; --luft-m: 16px; --luft-l: 24px; --luft-xl: 40px;
  --ecke-foto: 12px; --ecke-karte: 16px; --ecke-flaeche: 20px; --pille: 999px;
  --bewegung: 180ms cubic-bezier(.2, .8, .2, 1);
  --kopf: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--weiss); color: var(--tinte); }
body { font: 400 16px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { display: block; }
.symbole { position: absolute; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* Rubrik: kleine Versalien wie auf julianhaase.de */
.rubrik, .leiste h2, .seite h2 {
  font-family: var(--kopf); font-weight: 600; font-stretch: 125%; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--grau); margin: 0 0 12px;
}

/* ---------- Knöpfe und Felder ---------- */
.knopf {
  border: 1px solid var(--linie); background: transparent; border-radius: var(--pille);
  padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--petrol);
  transition: background var(--bewegung), transform var(--bewegung);
}
.knopf:hover { background: var(--papier); }
.knopf:active { transform: scale(.97); }
.knopf svg { width: 18px; height: 18px; }
.knopf.gelb { background: var(--bernstein); border-color: var(--bernstein); color: var(--petrol); }
.knopf.gelb:hover { background: var(--bernstein-druck); border-color: var(--bernstein-druck); }
.knopf.klein { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.knopf.breit { width: 100%; }
.feld {
  width: 100%; border: 1px solid #b9b5ac; background: var(--weiss); border-radius: 12px; padding: 11px 14px;
  transition: border-color var(--bewegung);
}
.feld:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 1px var(--petrol); }
.leise { color: var(--grau); }
.fehler { color: var(--rot); min-height: 1.5em; margin: 6px 0 0; font-size: 14px; }

.oberleiste {
  height: 64px; border-bottom: 1px solid var(--linie-weich); display: flex; align-items: center; gap: 12px; padding: 0 var(--luft-l);
  background: var(--weiss);
}
.oberleiste .marke-name { font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; font-size: 17px; color: var(--petrol); }
.oberleiste .trenner { color: var(--linie); }

/* ---------- Anmeldung ---------- */
.anmeldung { max-width: 380px; margin: 16vh auto 0; padding: 0 var(--luft-m); }
.anmeldung h1 { font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; font-size: 26px; line-height: 1.15; color: var(--petrol); margin: 0 0 var(--luft-m); }
.anmeldung form { display: grid; gap: 12px; }

/* ---------- Galerie ---------- */
.seitenaufbau { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.leiste { background: var(--papier); padding: var(--luft-xl) var(--luft-l); }
.leiste-innen { position: sticky; top: var(--luft-xl); display: grid; gap: 36px; }
.leiste h1 {
  font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em;
  font-size: 24px; line-height: 1.15; color: var(--petrol); margin: 0 0 var(--luft-l); overflow-wrap: anywhere;
}
.filter { display: flex; flex-wrap: wrap; gap: 4px; }
.fknopf {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss);
  display: grid; place-items: center; color: var(--petrol); transition: background var(--bewegung), transform var(--bewegung);
}
.fknopf:hover { background: #fff; }
.fknopf:active { transform: scale(.95); }
.fknopf[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); }
.fknopf svg { width: 18px; height: 18px; }
.flagge.rot { color: var(--rot); } .flagge.gelb { color: var(--gelb); } .flagge.gruen { color: var(--gruen); }
.fknopf[aria-pressed="true"] .flagge { filter: drop-shadow(0 0 1px var(--weiss)); }
.filter-info { font-size: 14px; color: var(--grau); margin: 12px 0 0; }

.inhalt { padding: var(--luft-xl); }
.raster { display: flex; flex-wrap: wrap; gap: var(--luft-m); }
.kachel {
  position: relative; flex: none; padding: 0; border: 0; background: var(--papier);
  border-radius: var(--ecke-foto); overflow: hidden;
}
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 240ms cubic-bezier(.2, .8, .2, 1); }
.kachel:hover img { transform: scale(1.03); }
.kachel .marke { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; align-items: center; }
.kachel .marke .flagge {
  width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(251, 250, 247, .94);
}
.kachel .blase {
  background: rgba(251, 250, 247, .94); color: var(--petrol); font-size: 12px; font-weight: 600; border-radius: var(--pille);
  padding: 3px 9px; display: inline-flex; gap: 4px; align-items: center;
}
.kachel .blase svg { width: 13px; height: 13px; }
.kachel .name {
  position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(8, 31, 37, .7));
  color: var(--weiss); font-size: 12px; padding: 22px 10px 8px; text-align: left; opacity: 0; transition: opacity var(--bewegung);
}
.kachel:hover .name, .kachel:focus-visible .name { opacity: 1; }
.kachel .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.kachel .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(11, 47, 55, .72); display: grid; place-items: center; }
.kachel .play svg { width: 20px; height: 20px; color: var(--weiss); margin-left: 3px; }
.kachel .dauer {
  position: absolute; right: 10px; top: 10px; background: rgba(11, 47, 55, .78); color: var(--weiss);
  font-size: 12px; font-weight: 600; border-radius: var(--pille); padding: 2px 9px;
}
.leer { color: var(--grau); margin: 0 0 var(--luft-m); }

@media (max-width: 900px) {
  .seitenaufbau { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .leiste { padding: var(--luft-l) var(--luft-m); }
  .leiste-innen { position: static; gap: var(--luft-l); }
  .leiste h1 { font-size: 21px; margin-bottom: var(--luft-m); }
  .inhalt { padding: var(--luft-m); }
  .raster { gap: var(--luft-s); }
  .oberleiste { padding: 0 var(--luft-m); height: 56px; }
}

/* ---------- Großansicht ---------- */
.gross {
  position: fixed; inset: 0; z-index: 20; background: var(--weiss);
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: 64px minmax(0, 1fr);
}
.gross-kopf { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 var(--luft-l); border-bottom: 1px solid var(--linie-weich); }
.gross-kopf .titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--petrol); }
.gross-kopf .zaehler { color: var(--grau); font-weight: 400; margin-left: 6px; }
.bildflaeche { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: var(--luft-l) 80px; }
.bildflaeche img, .bildflaeche video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--ecke-foto); }
.bildflaeche img { user-select: none; }
.bildflaeche video { background: var(--petrol); width: 100%; }
.pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--petrol); display: grid; place-items: center;
  transition: background var(--bewegung);
}
.pfeil:hover { background: var(--papier); }
.pfeil svg { width: 20px; height: 20px; }
.pfeil.links { left: var(--luft-l); } .pfeil.rechts { right: var(--luft-l); }
.seite { background: var(--papier); padding: var(--luft-l); overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.farben { display: flex; gap: 10px; }
.farbknopf {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss);
  display: grid; place-items: center; transition: transform var(--bewegung);
}
.farbknopf:active { transform: scale(.95); }
.farbknopf .flagge { width: 22px; height: 22px; }
.farbknopf[aria-pressed="true"] { border: 2px solid var(--petrol); }
.kommentarliste { display: grid; gap: 10px; }
.kommentar { background: var(--weiss); border: 1px solid var(--linie-weich); border-radius: var(--ecke-karte); padding: 10px 14px; }
.kommentar .wer { font-size: 13px; color: var(--grau); }
.kommentar.julian { border-color: var(--petrol); }
.kommentar p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.seite form { display: grid; gap: 10px; }
.tasten { font-size: 13px; color: var(--grau); margin: 0; }
@media (max-width: 900px) {
  .gross { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 62vh) auto; overflow-y: auto; }
  .gross-kopf { padding: 0 var(--luft-s) 0 var(--luft-m); gap: 6px; }
  .gross-kopf .titel { font-size: 14px; }
  .bildflaeche { padding: var(--luft-s); }
  .pfeil { top: auto; bottom: var(--luft-m); transform: none; width: 44px; height: 44px; }
  .pfeil.links { left: var(--luft-m); } .pfeil.rechts { right: var(--luft-m); }
  .seite { padding: var(--luft-l) var(--luft-m); }
  .tasten { display: none; }
}

/* ---------- Verwaltung ---------- */
.verwaltung { max-width: 1000px; margin: 0 auto; padding: var(--luft-xl) var(--luft-m) 72px; }
.verwaltung h1 { font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; font-size: 30px; line-height: 1.1; color: var(--petrol); margin: 0 0 6px; }
.verwaltung h2 { font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; font-size: 19px; color: var(--petrol); margin: 40px 0 14px; }
.karte { background: var(--weiss); border: 1px solid var(--linie-weich); border-radius: var(--ecke-flaeche); padding: var(--luft-l); margin-bottom: 14px; }
.karte.grau { background: var(--papier); border-color: var(--papier); }
.neu { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.neu .breit { grid-column: 1 / -1; }
.neu label { display: grid; gap: 6px; font-size: 14px; color: var(--grau); }
.neu .haken { display: flex; gap: 10px; align-items: center; color: var(--tinte); }
.neu .haken input { width: 18px; height: 18px; accent-color: var(--petrol); }
@media (max-width: 640px) { .neu { grid-template-columns: 1fr; } .karte { padding: var(--luft-m); } }
.galerie-zeile { display: grid; gap: 14px; }
.galerie-zeile h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--petrol); overflow-wrap: anywhere; }
.zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--grau); font-size: 14px; align-items: center; }
.zahlen span { display: inline-flex; align-items: center; gap: 6px; }
.zahlen .flagge { width: 16px; height: 16px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.linkfeld { display: flex; gap: 8px; }
.linkfeld input { flex: 1; min-width: 0; }
.auswertung { border-top: 1px solid var(--linie-weich); padding-top: var(--luft-m); display: grid; gap: 14px; font-size: 14px; }
.auswertung textarea { width: 100%; min-height: 64px; }
.auswertung .kommentar { background: var(--papier); border: 0; }
.oben { display: flex; justify-content: space-between; align-items: start; gap: 12px; }

/* ---------- Upload (nur Admin) ---------- */
#upload .knopf { cursor: pointer; }
.ablage {
  position: fixed; inset: 0; z-index: 30; background: rgba(11, 47, 55, .88); display: grid; place-items: center;
  padding: var(--luft-l); pointer-events: none;
}
.ablage span {
  border: 2px dashed var(--weiss); border-radius: var(--ecke-flaeche); padding: 48px 40px; color: var(--weiss); text-align: center;
  font-family: var(--kopf); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; font-size: 24px; line-height: 1.2;
}
