/* Feuertonne – Gestaltung im Stil der Social-Media-Bilder */

@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/static/fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/static/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url("/static/fonts/archivo-black.woff2") format("woff2"); }

:root {
  --bg: #1d1612;
  --flaeche: #2a201b;
  --flaeche2: #352923;
  --linie: #4d3c33;
  --text: #fff3e0;
  --leise: #d8c6b1;
  --orange: #ef6c1a;
  --gelb: #ffc233;
  --rot: #ff8a7a;
  --gruen: #8fd694;
  --radius: 14px;
  --schrift: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel: "Archivo Black", "Arial Black", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--gelb); }
a:hover { color: #ffd76e; }
img { max-width: 100%; height: auto; display: block; }
code { background: var(--flaeche2); padding: 2px 6px; border-radius: 6px; font-size: .95em; word-break: break-all; }

.huelle { max-width: 980px; margin: 0 auto; padding: 28px 18px 24px; }
.mitte { text-align: center; }
.klein { font-size: .88rem; color: var(--leise); }
.leer { color: var(--leise); font-style: italic; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--titel); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: -0.02em; margin: 6px 0 4px; }
.h1-klein { font-family: var(--titel); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }

/* Kopfbereich */
.hero { display: grid; gap: 22px; align-items: center; margin-bottom: 26px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 34px; } }
.etikett {
  display: inline-block; background: var(--gelb); color: var(--bg);
  font-family: var(--titel); font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 14px; transform: rotate(-2deg);
}
.unterzeile { color: var(--orange); font-weight: 700; font-size: clamp(1.25rem, 4vw, 1.6rem); margin: 0 0 16px; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--orange); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .95rem; }
.lead { font-size: 1.1rem; margin: 0 0 8px; }
.hinweis-holz { color: var(--leise); margin: 0; }
.hero-fotos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: end; }
.foto { border: 6px solid var(--text); border-radius: 4px; object-fit: cover; width: 100%; }
.foto-gross { aspect-ratio: 3 / 4.6; transform: rotate(-1.5deg); }
.foto-klein { aspect-ratio: 3 / 3.4; transform: rotate(2deg); margin-bottom: 10px; }

/* Karten & Formular */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 20px; margin: 0 0 22px; }
.schmal { max-width: 560px; margin-left: auto; margin-right: auto; }
.text h2 { margin-top: 1.4em; font-size: 1.1rem; }
.text p { color: var(--text); }
.luecke { background: rgba(255, 194, 51, .18); border: 1px dashed var(--gelb); padding: 0 6px; border-radius: 4px; }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0; }
.nr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--bg); font-family: var(--titel); font-size: .95rem; }

.feld { margin: 0 0 14px; }
.feld label, .datumsfelder label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 2px solid var(--linie); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--orange); margin: 0; flex: none; }
input[type="date"] { color-scheme: dark; }
.datumsfelder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auswahlknoepfe { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 560px) { .auswahlknoepfe { grid-template-columns: 1fr 1fr; } }
.option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--linie); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; min-height: 52px; }
.option:has(input:checked) { border-color: var(--orange); background: rgba(239, 108, 26, .12); }
.breit-option { align-items: flex-start; font-weight: 500; margin-bottom: 10px; }
.check { display: flex; gap: 10px; align-items: center; margin: 6px 0 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feldfehler { color: var(--rot); font-weight: 700; margin: 6px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--text); background: transparent; border: 2px solid var(--text);
  border-radius: 10px; padding: 10px 18px; min-height: 46px;
}
.btn:hover { background: rgba(255, 243, 224, .08); color: var(--text); }
.btn.primaer { background: var(--gelb); border-color: var(--gelb); color: var(--bg); }
.btn.primaer:hover { background: #ffd35f; }
.btn.gefahr { border-color: var(--rot); color: var(--rot); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.gross { width: 100%; font-family: var(--titel); font-weight: 400; font-size: 1.25rem; min-height: 58px; margin-bottom: 12px; transform: rotate(-.5deg); }
.klein-btn { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.linkknopf { background: none; border: 0; color: var(--gelb); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.meldung { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; border: 2px solid; }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }
.meldung.fehler { border-color: var(--rot); background: rgba(255, 138, 122, .1); }
.meldung.ok { border-color: var(--gruen); background: rgba(143, 214, 148, .1); }
.meldung.info { border-color: var(--gelb); background: rgba(255, 194, 51, .1); }
.zeitraum-gross { font-family: var(--titel); font-size: 1.3rem; margin: 10px 0 2px; }

/* Kalender */
.kalender { background: var(--bg); border: 2px solid var(--linie); border-radius: 12px; padding: 12px; max-width: 460px; }
.k-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.k-titel { font-weight: 700; font-size: 1.1rem; }
.k-nav { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.k-nav[disabled] { opacity: .3; cursor: default; }
.k-gitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.k-wt { text-align: center; font-size: .8rem; color: var(--leise); padding: 4px 0; }
.k-tag {
  aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 8px; font: inherit; font-weight: 700;
  background: var(--flaeche2); color: var(--text); cursor: pointer; padding: 0;
}
.k-tag:hover:not([disabled]) { outline: 2px solid var(--gelb); }
.k-leer { background: transparent; cursor: default; }
.k-aus { background: transparent; color: #7d6a5d; cursor: default; }
.k-belegt { background: repeating-linear-gradient(45deg, #3a2d26 0 4px, #1d1612 4px 8px); color: #a8927f; text-decoration: line-through; cursor: not-allowed; }
.k-heute { box-shadow: inset 0 0 0 2px var(--leise); }
.k-gewaehlt { background: var(--orange); color: var(--bg); }
.k-start, .k-ende { background: var(--gelb); color: var(--bg); }
.k-fuss { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--leise); }
.k-legende { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.k-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.k-p-frei { background: var(--flaeche2); border: 1px solid var(--leise); }
.k-p-belegt { background: repeating-linear-gradient(45deg, #6b5a4f 0 2px, #1d1612 2px 4px); border: 1px solid #9a8676; }
.k-p-wahl { background: var(--orange); }
.auswahl { font-weight: 700; margin: 12px 0 6px; min-height: 1.5em; }
.auswahl.k-warnung { color: var(--rot); }

/* Fuß & Flammen */
.fuss { text-align: center; padding: 10px 18px 26px; color: var(--leise); font-size: .95rem; }
.fuss a { color: var(--leise); }
.flammen { width: 100%; height: clamp(70px, 9vw, 110px); display: block; }
body.mit-flammen .fuss { padding-bottom: 6px; }

/* Verwaltung */
.admin-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.marke { font-family: var(--titel); color: var(--text); text-decoration: none; font-size: 1.2rem; }
.admin-kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.admin-kopf nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 8px 0; }
.admin-kopf nav form { margin: 0; }
.admin-kopf .linkknopf { color: var(--leise); }
.zaehler { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--bg); font-size: .85rem; font-weight: 700; vertical-align: middle; }
.block { margin-bottom: 30px; }
.eintrag { background: var(--flaeche); border: 1px solid var(--linie); border-left: 0; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.eintrag-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.eintrag-titel { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.eintrag-text { margin: 6px 0 0; }
.tel { color: var(--gelb); font-weight: 700; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.knopfzeile form { margin: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 700; border: 2px solid; white-space: nowrap; }
.badge-offen { border-color: var(--orange); color: var(--orange); }
.badge-bestaetigt { border-color: var(--gruen); color: var(--gruen); }
.badge-abgelehnt, .badge-storniert { border-color: var(--leise); color: var(--leise); }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; word-break: break-word; }
.reihe { display: grid; gap: 10px; align-items: end; }
@media (min-width: 680px) { .reihe { grid-template-columns: 1fr 1fr 2fr auto; } }
.reihe label { font-weight: 700; display: block; }
.reihe input { margin-top: 6px; }
.raster2 { display: grid; gap: 4px 16px; }
@media (min-width: 680px) { .raster2 { grid-template-columns: 1fr 1fr; } .raster2 .btn { justify-self: start; } }
.liste { list-style: none; padding: 0; margin: 14px 0 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linie); }
.liste form { margin: 0; }
details summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.kanal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg); border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.kanal .klein { width: 100%; }
.kanal code { font-size: 1.05rem; background: transparent; padding: 0; }
.anleitung { padding-left: 20px; }
.anleitung li { margin-bottom: 6px; }

.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--leise); margin-bottom: 12px; }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.p-offen { border: 2px solid var(--orange); }
.p-bestaetigt { background: var(--orange); }
.p-gesperrt { background: repeating-linear-gradient(45deg, #6b5a4f 0 3px, #2a201b 3px 6px); }
.monate { display: grid; gap: 18px; }
@media (min-width: 760px) { .monate { grid-template-columns: repeat(3, 1fr); } }
.monat { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px; }
.mgitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.wtag { text-align: center; font-size: .72rem; color: var(--leise); }
.mtag { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-size: .85rem; background: var(--flaeche2); color: var(--text); text-decoration: none; }
.mtag.leer { background: transparent; }
.mtag.vergangen { opacity: .4; }
.mtag.heute { box-shadow: inset 0 0 0 2px var(--leise); }
.mtag.m-offen { box-shadow: inset 0 0 0 2px var(--orange); font-weight: 700; }
.mtag.m-bestaetigt { background: var(--orange); color: var(--bg); font-weight: 700; }
.mtag.m-gesperrt { background: repeating-linear-gradient(45deg, #6b5a4f 0 3px, #2a201b 3px 6px); }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .karte { padding: 18px 14px; }
  .hero-fotos { gap: 8px; }
  .foto { border-width: 4px; }
}
