/* Veranstalter-Oberflaeche.
 *
 * Dieselben Farben wie wolos.app - die Schriftdatei kommt von dort, damit sie
 * im Zwischenspeicher schon liegt, wenn jemand ueber die Startseite kommt. */

@font-face {
  font-family: "Archivo";
  src: url("/schrift/archivo-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/schrift/archivo-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --grund: #F2F1EF;
  --flaeche: #FFFFFF;
  --rahmen: #E3E0DB;
  --tinte: #191713;
  --zweite: #57514A;
  --gedimmt: #6D6862;
  --akzent: #F97316;
  --akzent-text: #9A4A06;
  --gut: #1A5E3F;
  --gut-flaeche: #E3F3EA;
  --wartet-flaeche: #FBF0E2;
  --schlecht: #9A2B2B;
  --schlecht-flaeche: #F8E7E7;
  --schrift: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #141311;
    --flaeche: #1E1C1A;
    --rahmen: #38342F;
    --tinte: #F2F0ED;
    --zweite: #B8B2AA;
    --gedimmt: #948E86;
    --akzent-text: #FFA35C;
    --gut: #6EDBA4;
    --gut-flaeche: #17301F;
    --wartet-flaeche: #332512;
    --schlecht: #F0A0A0;
    --schlecht-flaeche: #331A1A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--schrift);
  background: var(--grund);
  color: var(--tinte);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--rahmen);
  background: var(--flaeche);
}
.marke {
  font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em;
  color: var(--tinte); text-decoration: none;
}

main { max-width: 42rem; margin: 0 auto; padding: 24px 20px 64px; }

h1 { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }

.zeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

.fuehrung { color: var(--zweite); margin: 0 0 20px; }
.hinweis { color: var(--gedimmt); font-size: .875rem; margin: 6px 0 0; }
.frei { color: var(--gedimmt); font-weight: 400; font-size: .8rem; }
.leer { color: var(--gedimmt); padding: 24px 0; }

.kasten {
  background: var(--flaeche);
  border: 1px solid var(--rahmen);
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}
.kasten.warnung { border-color: var(--akzent); }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
fieldset:last-of-type { margin-bottom: 8px; }
legend {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gedimmt); padding: 0 0 8px;
}

label { display: block; font-size: .875rem; font-weight: 600; margin: 14px 0 5px; }
label:first-of-type { margin-top: 0; }
label.haken { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.haken input { width: auto; margin: 0; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* Unter 16px zoomt iOS beim Hineintippen. */
  color: var(--tinte);
  background: var(--grund);
  border: 1px solid var(--rahmen);
  border-radius: 10px;
  padding: 10px 12px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}
textarea { resize: vertical; }
/* Safari auf dem iPhone gibt Datumsfeldern eine eigene Mindestbreite: „Beginn"
   ragte rechts über den Kasten hinaus (Rundgang Perfekt 02.10.2026). */
input[type="date"], input[type="datetime-local"] {
  -webkit-appearance: none; appearance: none;
  min-width: 0; display: block; min-height: 2.75rem;
}

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 30rem) { .paar { grid-template-columns: 1fr; } }

button { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid transparent; }
button.haupt {
  width: 100%; margin-top: 18px;
  background: var(--akzent); color: #fff;
  font-weight: 600; padding: 12px 20px; min-height: 44px;
}
button.haupt:disabled { opacity: .5; cursor: not-allowed; }
button.schlicht {
  background: transparent; color: var(--akzent-text);
  border-color: var(--rahmen); padding: 7px 14px;
  font-size: .875rem; font-weight: 600;
}
button.schlicht.gefahr { color: var(--schlecht); }

.waehler { display: flex; gap: 8px; margin-bottom: 14px; }
.waehler button {
  flex: 1; padding: 9px 12px; min-height: 40px;
  background: var(--grund); border-color: var(--rahmen);
  color: var(--zweite); font-size: .875rem; font-weight: 600;
}
.waehler button.gewaehlt {
  background: var(--flaeche); border-color: var(--akzent); color: var(--akzent-text);
}

.treffer { list-style: none; margin: 8px 0 0; padding: 0; }
.treffer li + li { border-top: 1px solid var(--rahmen); }
.treffer button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; border-radius: 8px;
  padding: 9px 10px; color: var(--tinte); font-size: .9rem;
}
.treffer button:hover { background: var(--grund); }
/* "Nicht gefunden" und Suchfehler stehen in der Liste selbst (02.10.2026). */
.treffer li.leerzeile { padding: 9px 10px; color: var(--gedimmt); font-size: .875rem; margin: 0; }
.treffer li.leerzeile.fehler { color: var(--schlecht); }
button.schlicht.naehe { margin-top: 8px; }
button.schlicht.naehe.aktiv { cursor: default; color: var(--gut); }

.gewaehltZeile {
  margin: 12px 0 0; padding: 9px 12px;
  background: var(--gut-flaeche); color: var(--gut);
  border-radius: 10px; font-size: .875rem; font-weight: 600;
}

.eintrag {
  background: var(--flaeche); border: 1px solid var(--rahmen);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.knoepfe { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.marke {
  font-size: .75rem; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.marke.gut { background: var(--gut-flaeche); color: var(--gut); }
.marke.wartet { background: var(--wartet-flaeche); color: var(--akzent-text); }
.marke.schlecht { background: var(--schlecht-flaeche); color: var(--schlecht); }

.fehler { color: var(--schlecht); font-size: .9rem; margin: 12px 0 0; }
.erfolg {
  background: var(--gut-flaeche); color: var(--gut);
  padding: 14px 16px; border-radius: 12px; font-size: .9rem;
}

.fuss {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  padding: 24px 20px 40px; border-top: 1px solid var(--rahmen);
}
.fuss a { color: var(--gedimmt); font-size: .8rem; text-decoration: none; }
.fuss a:hover { color: var(--tinte); }

details.kasten summary {
  font-weight: 600; cursor: pointer; font-size: .95rem;
}
details.kasten[open] summary { margin-bottom: 10px; }
input[type="file"] { padding: 8px; }

/* ── Seit dem 26.09.2026: Blatt, Bild, Raster, Listen ─────────────────── */
[hidden] { display: none !important; }
.klein { font-size: 13px; color: var(--gedimmt); }
.blatt {
  border: 1px solid var(--rahmen); border-radius: 14px; padding: 18px;
  background: var(--flaeche); color: var(--tinte);
  width: min(44rem, calc(100vw - 32px)); max-height: calc(100vh - 48px);
}
.blatt::backdrop { background: rgba(0, 0, 0, .35); }
.blattkopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.blattkopf h2 { margin: 0; }
.vorschaurahmen { width: 100%; height: 70vh; border: 1px solid var(--rahmen); border-radius: 10px; background: var(--grund); }
.qr { display: block; width: min(18rem, 100%); height: auto; margin: 0 auto 12px; background: #fff; padding: 8px; border-radius: 8px; }
.bildvorschau { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.bildvorschau img { max-width: 100%; max-height: 16rem; border-radius: 10px; border: 1px solid var(--rahmen); }
.terminliste { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.terminliste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.raster { display: grid; gap: 6px; margin: 8px 0 12px; }
.rasterzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rasterzeile input[type="time"] { width: auto; }
.rasterzeile label.haken { min-width: 8.5rem; margin: 0; }
