/* Verwaltung von studio bodet. Aufbau wie die SCRAPS-Verwaltung (eine Spalte,
   fürs Handy, Tippflächen ab 44 px, Kopfzeile mit Reitern, runde Knöpfe),
   Farben und Schriften von der Website (schwarz/weiß, Montserrat, Cormorant). */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --text: #111;
  --leise: #6b6b6b;
  --linie: #e2e2e2;
  --flaeche: #f6f6f4;
  --gruen: #2f6b3a;
  --rot: #9b1c1c;
  --rot-bg: #fdeceb;
  --warn-bg: #fff6dc;
  --warn-rand: #d9a700;
  --rand: 16px;
  --schrift: 'Montserrat', Helvetica, Arial, sans-serif;
  --anzeige: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; }

.verwaltung { max-width: 720px; margin: 0 auto; padding: 0 var(--rand) 96px; }

.verwaltung h1 { font-family: var(--anzeige); font-weight: 300; font-size: 2rem; line-height: 1.15; margin: 24px 0 12px; }
.verwaltung h2 { font-size: 1rem; font-weight: 600; margin: 28px 0 10px; }
.verwaltung p { margin: 0 0 12px; }
.verwaltung a:not(.knopf) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.leise { color: var(--leise); font-size: 0.9rem; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── Kopfzeile ── */
.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin: 0 calc(-1 * var(--rand));
  padding: 8px var(--rand); padding-top: max(8px, env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--linie);
}
.kopf__marke { margin-right: auto; padding: 10px 4px; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--text) !important; text-decoration: none !important; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 2px; }
.kopf nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 22px; font-size: 0.88rem; font-weight: 600;
  color: var(--text) !important; text-decoration: none !important;
}
.kopf nav a[aria-current='page'] { background: var(--text); color: #fff !important; }

/* ── Knöpfe ── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 24px;
  background: var(--text); color: #fff; border: 1.5px solid var(--text);
  font: 600 0.95rem var(--schrift); text-align: center; text-decoration: none; cursor: pointer;
}
.knopf:disabled { opacity: 0.45; cursor: not-allowed; }
.knopf--breit { display: flex; width: 100%; }
.knopf--hell { background: #fff; color: var(--text); }
.knopf--gefahr { background: #fff; color: var(--rot); border-color: var(--rot); }
.knopf--gefahr.scharf { background: var(--rot); color: #fff; }
.knopf--klein { min-height: 40px; padding: 6px 14px; font-size: 0.85rem; border-radius: 20px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* ── Formulare ── */
.feld { display: block; margin: 0 0 18px; }
.feld > span { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.feld small { display: block; color: var(--leise); font-size: 0.82rem; margin-top: 4px; }
input[type='text'], input[type='email'], input[type='search'], input[inputmode='numeric'], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid #bdbdbd; border-radius: 10px; background: #fff;
  font: 16px/1.4 var(--schrift); color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: none; }
.code-eingabe { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; }
.schalter { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 18px; font-weight: 600; font-size: 0.95rem; }
.schalter input { width: 24px; height: 24px; accent-color: var(--text); }

/* ── Hinweise ── */
.fehler, .warnung, .erfolg { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: 0.95rem; }
.fehler { background: var(--rot-bg); color: var(--rot); }
.warnung { background: var(--warn-bg); border-left: 4px solid var(--warn-rand); }
.erfolg { background: #eaf4ec; color: var(--gruen); }
.meldung {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 24px;
  background: var(--text); color: #fff; font-size: 0.92rem; font-weight: 600; z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.meldung.fehlermeldung { background: var(--rot); }

/* ── Projektliste ── */
.suche { margin: 8px 0 4px; }
.gruppe h2 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--linie); padding-bottom: 6px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li + li { border-top: 1px solid var(--linie); }
.zeile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; color: var(--text) !important; text-decoration: none !important; }
.zeile img, .zeile .ohne-bild { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--flaeche); }
.zeile .ohne-bild { display: grid; place-items: center; font-size: 0.7rem; color: var(--leise); text-align: center; }
.zeile__text { flex: 1; min-width: 0; }
.zeile__titel { display: block; font-weight: 600; }
.zeile__unter { display: block; color: var(--leise); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--warn-bg); font-size: 0.75rem; font-weight: 600; margin-left: 6px; vertical-align: 1px; }

/* ── Bilder ── */
.bilder { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bild { border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; background: #fff; }
.bild img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--flaeche); }
.bild__kopf { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 0; font-size: 0.78rem; color: var(--leise); }
.bild__titel { color: var(--text); font-weight: 600; }
.bild__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.bild__knoepfe .knopf { min-height: 40px; padding: 4px 6px; font-size: 0.8rem; border-radius: 20px; white-space: nowrap; }
.bild__knoepfe .knopf--gefahr, .bild__knoepfe .bild__breit { grid-column: span 2; }
.hochladen input[type='file'] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fortschritt { font-size: 0.9rem; color: var(--leise); margin: 8px 0; }

/* ── Kategorien ── */
.kategorie { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.kategorie__knoepfe { display: flex; gap: 4px; }
.kategorie__knoepfe .knopf { min-width: 44px; padding: 4px 10px; min-height: 44px; }
.kategorie .leise { grid-column: 1 / -1; margin: 0; }

/* ── Kontakt ── */
.portrait { width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--flaeche); margin-bottom: 10px; }

/* ── Hilfe ── */
.hilfe h2 { margin-top: 24px; }
.hilfe ul { padding-left: 20px; margin: 0 0 12px; }
.hilfe li { margin-bottom: 6px; }

.trenner { border: 0; border-top: 1px solid var(--linie); margin: 32px 0 8px; }
