/* Verwaltung kristina-roessler-lehnhoff.de. Farbwelt der Website (DESIGN.md): Petrol, Bühnenblau, Nebel; Roboto Condensed für Überschriften, Systemschrift für Text. */
@font-face { font-family: "Roboto Condensed"; src: url(/assets/fonts/roboto-condensed-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url(/assets/fonts/roboto-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root { --marine: #2e6f8e; --tiefsee: #102e3c; --gold: #2e6f8e; --gold-d: #102e3c; --see: #efefef; --linie: #d9dcde; --text-2: #56656d; --gut: #1D6B3A; --rot: #A3261A; --kopf: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; --text: system-ui, -apple-system, "Segoe UI", Verdana, sans-serif; --unten: env(safe-area-inset-bottom); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--tiefsee); font: 400 16px/1.55 var(--text); }
a { color: var(--marine); }
h1, h2, h3 { font-family: var(--kopf); font-weight: 400; color: var(--marine); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); outline: none; }
h2 { font-size: 1.3rem; margin-top: 28px; }
h3 { font-size: 1.08rem; margin-top: 18px; }
p { margin: 0 0 12px; }
small, .klein { font-size: .9rem; color: var(--text-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gerüst */
.v-kopf { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--linie); }
.v-marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marine); font-family: var(--kopf); font-weight: 600; }
.v-marke img { width: 34px; height: auto; }
.v-marke small { display: block; font-family: var(--text); font-weight: 400; color: var(--text-2); font-size: .8rem; }
.v-kopf .v-web { margin-left: auto; font-size: .92rem; }
.v-rahmen { display: flex; min-height: calc(100vh - 58px); }
.v-nav { width: 230px; flex-shrink: 0; border-right: 1px solid var(--linie); padding: 16px 10px; position: sticky; top: 58px; align-self: flex-start; max-height: calc(100vh - 58px); overflow-y: auto; }
.v-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--tiefsee); text-decoration: none; border-radius: 2px; font-size: .97rem; }
.v-nav a:hover { background: var(--see); }
.v-nav a[aria-current] { background: var(--see); color: var(--marine); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.v-nav .zahl { margin-left: auto; background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.v-nav .trenner { height: 1px; background: var(--linie); margin: 10px 8px; }
.v-nav svg, .v-tabs svg { width: 20px; height: 20px; flex-shrink: 0; }
.v-haupt { flex: 1; min-width: 0; padding: 24px clamp(16px, 3vw, 40px) 120px; max-width: 1100px; }
.v-tabs { display: none; }
@media (max-width: 899.98px) {
  .v-nav { display: none; }
  .v-haupt { padding: 18px 16px calc(96px + var(--unten)); }
  .v-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--linie); padding-bottom: var(--unten); }
  .v-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .72rem; color: var(--text-2); text-decoration: none; position: relative; min-height: 56px; }
  .v-tabs a[aria-current] { color: var(--marine); font-weight: 600; }
  .v-tabs a[aria-current]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--gold); }
  .v-tabs .zahl { position: absolute; top: 4px; left: 55%; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; padding: 0 6px; border-radius: 9px; }
  .v-kopf .v-web { display: none; }
}

/* Bausteine */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--marine); border-radius: 2px; background: var(--marine); color: #fff; font: 600 .97rem var(--text); text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--tiefsee); border-color: var(--tiefsee); color: #fff; }
.knopf.hell { background: #fff; color: var(--marine); }
.knopf.hell:hover { background: var(--see); color: var(--marine); }
.knopf.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.knopf.rot { background: #fff; border-color: var(--rot); color: var(--rot); }
.knopf.klein, .mini { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.mini { display: inline-flex; align-items: center; border: 1px solid var(--linie); background: #fff; color: var(--marine); border-radius: 2px; cursor: pointer; font: 600 .86rem var(--text); text-decoration: none; }
.mini:hover { border-color: var(--marine); }
.mini.rot { color: var(--rot); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.link-knopf { background: none; border: 0; padding: 0; color: var(--marine); text-decoration: underline; cursor: pointer; font: inherit; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); margin: 12px 0 8px; }
.zahl { padding: 14px 16px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; }
.zahl b { display: block; font: 600 1.7rem/1.1 var(--kopf); color: var(--marine); }
.zahl span { font-size: .88rem; color: var(--text-2); }
a.zahl:hover { background: var(--see); }
.zahl.gold b { color: var(--gold-d); }
.liste { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--linie); }
.liste > li { border-bottom: 1px solid var(--linie); }
.zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; color: inherit; text-decoration: none; }
a.zeile:hover { background: var(--see); }
.zeile b { display: block; font-weight: 600; }
.zeile small { display: block; }
.leer { color: var(--text-2); padding: 14px 0; }
.st { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.st.neu { color: var(--gold-d); background: #FBF5E6; }
.st.angefragt { color: var(--marine); }
.st.zugesagt { color: var(--gut); }
.st.abgesagt { color: var(--text-2); }
.st.test { color: #7A2E8A; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.filter button { border: 1px solid var(--linie); background: #fff; padding: 7px 12px; font: 600 .88rem var(--text); color: var(--tiefsee); border-radius: 2px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.kasten { border: 1px solid var(--linie); padding: 16px; margin: 12px 0; background: #fff; }
.kasten.see { background: var(--see); border-color: var(--see); }
.zwei { display: grid; gap: 20px; }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; } }
.werte { margin: 0; }
.werte div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.werte dt { color: var(--text-2); font-size: .9rem; }
.werte dd { margin: 0; overflow-wrap: anywhere; }
.balken { display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--linie); margin: 8px 0 4px; }
.balken span { flex: 1; background: var(--marine); min-height: 1px; position: relative; }
.balken span i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gold); }
.balken-achse { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-2); }
.legende { display: flex; gap: 16px; font-size: .85rem; color: var(--text-2); margin-top: 6px; }
.legende i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.rang { list-style: none; padding: 0; margin: 0; }
.rang li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--see); position: relative; font-size: .94rem; }
.rang li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 0); background: var(--gold); }
.rang b { font-variant-numeric: tabular-nums; }

/* Formulare */
.form .feld { margin-bottom: 16px; }
.form label, .feld > .lbl { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 5px; }
.form .hilfe { display: block; font-weight: 400; font-size: .85rem; color: var(--text-2); margin-top: 2px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #8FA6B1; border-radius: 2px; background: #fff; color: var(--tiefsee); font: 400 16px/1.4 var(--text); }
textarea { min-height: 110px; resize: vertical; }
textarea.gross { min-height: 320px; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(190, 148, 46, .5); border-color: var(--marine); }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.haken input { width: 22px; height: 22px; accent-color: var(--marine); margin-top: 1px; flex-shrink: 0; }
.reihe { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.liste-ed { border-top: 1px solid var(--linie); margin: 6px 0 10px; }
.eintrag { border-bottom: 1px solid var(--linie); }
.eintrag > summary { display: flex; align-items: center; gap: 8px; padding: 12px 4px; cursor: pointer; list-style: none; font-weight: 600; }
.eintrag > summary::-webkit-details-marker { display: none; }
.eintrag > summary::before { content: "›"; display: inline-block; width: 14px; color: var(--gold-d); transition: transform .15s; font-size: 1.2rem; }
.eintrag[open] > summary::before { transform: rotate(90deg); }
.eintrag > summary .titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag > summary .mini { min-height: 32px; padding: 4px 9px; }
.eintrag-inhalt { padding: 4px 4px 16px 22px; }
.speicherleiste { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,.97); border-top: 1px solid var(--linie); padding: 12px 0; margin-top: 20px; }
@media (max-width: 899.98px) { .speicherleiste { bottom: calc(57px + var(--unten)); } }
.speicherleiste .status { font-size: .9rem; color: var(--text-2); }
.speicherleiste .status.ungespeichert { color: var(--gold-d); font-weight: 600; }

/* Bilder */
.bildfeld { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bildfeld img, .thumbs img { width: 120px; height: 90px; object-fit: cover; background: var(--see); display: block; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 8px 0; }
.thumb { position: relative; border: 1px solid var(--linie); background: #fff; }
.thumb img { width: 100%; height: 100px; }
.thumb .t-knoepfe { display: flex; justify-content: space-between; gap: 2px; padding: 4px; }
.thumb .t-knoepfe button { flex: 1; min-height: 32px; border: 1px solid var(--linie); background: #fff; cursor: pointer; font-size: .95rem; color: var(--marine); border-radius: 2px; }
.thumb .t-knoepfe button.rot { color: var(--rot); }
.thumb .nr { position: absolute; top: 4px; left: 4px; background: var(--marine); color: #fff; font-size: .72rem; padding: 0 6px; }
.galerie-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 55vh; overflow-y: auto; margin: 10px 0; }
.galerie-wahl button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; text-align: left; }
.galerie-wahl button:hover, .galerie-wahl button:focus-visible { border-color: var(--gold); }
.galerie-wahl img { width: 100%; height: 82px; object-fit: cover; display: block; }
.galerie-wahl span { display: block; font-size: .72rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px; }
.upload-zone { display: block; border: 2px dashed var(--linie); padding: 18px; text-align: center; cursor: pointer; color: var(--marine); font-weight: 600; }
.upload-zone:hover { border-color: var(--marine); background: var(--see); }

/* Dialog, Meldung */
.v-dialog { position: fixed; inset: 0; z-index: 100; background: rgba(11, 38, 51, .55); display: flex; align-items: flex-end; justify-content: center; }
.v-dialog > div { background: #fff; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; padding: 20px 18px calc(18px + var(--unten)); border-top: 4px solid var(--marine); }
@media (min-width: 760px) { .v-dialog { align-items: center; } .v-dialog > div { padding: 26px 28px; } }
.v-meldung { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--unten)); z-index: 200; background: var(--tiefsee); color: #fff; padding: 12px 18px; max-width: calc(100% - 32px); font-size: .95rem; border-radius: 2px; }
.v-meldung.fehler { background: var(--rot); }
@media (min-width: 900px) { .v-meldung { bottom: 24px; } }
.lade { color: var(--text-2); }
.fehlertext { color: var(--rot); font-weight: 600; }
.anfrage-kopf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.mailvorlage { white-space: pre-wrap; font-size: .92rem; background: var(--see); padding: 12px; max-height: 260px; overflow-y: auto; }
.hinweis-box { border-left: 0; background: #FBF5E6; padding: 12px 14px; margin: 12px 0; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: var(--see); padding: 8px; overflow-wrap: anywhere; display: block; }
.suche { margin: 6px 0 12px; }
.rechner { background: var(--see); padding: 14px; margin: 12px 0; }
.rechner table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rechner td { padding: 4px 0; border-bottom: 1px solid var(--linie); }
.rechner td:last-child { text-align: right; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.speicherleiste .status.fehler { color: var(--rot); font-weight: 600; }
