
:root{
  /* Burgund 50 bis 800, 500 ist die Markenfarbe */
  --vp-burgund-50:#F8F3F5;  --vp-burgund-100:#F0E7EA; --vp-burgund-200:#DECAD2;
  --vp-burgund-300:#BC93A2; --vp-burgund-400:#94536B; --vp-burgund-500:#6B1031;
  --vp-burgund-600:#580D28; --vp-burgund-700:#440A1F; --vp-burgund-800:#300716;
  /* Neutral 0 bis 900 */
  --vp-neutral-0:#FFFFFF;   --vp-neutral-50:#F5F5F7;  --vp-neutral-100:#EBEBEE;
  --vp-neutral-200:#CACACD; --vp-neutral-300:#A5A5A7; --vp-neutral-400:#7A7A7C;
  --vp-neutral-500:#5E5E5F; --vp-neutral-600:#474747; --vp-neutral-700:#2F2F30;
  --vp-neutral-800:#181818; --vp-neutral-900:#000000;

  /* Aliase. In Komponenten nur diese verwenden, keine Rohwerte. */
  --surface-page:var(--vp-neutral-0);
  --surface-muted:var(--vp-neutral-100);
  --surface-subtle:var(--vp-neutral-50);
  --surface-brand:var(--vp-burgund-500);
  --surface-brand-tint:var(--vp-burgund-50);
  --text-strong:var(--vp-neutral-900);
  --text-body:var(--vp-neutral-700);
  --text-muted:var(--vp-neutral-500);
  --text-brand:var(--vp-burgund-500);
  --text-on-brand:var(--vp-neutral-0);
  --border-subtle:var(--vp-neutral-100);
  --border-default:var(--vp-neutral-200);
  --border-strong:var(--vp-neutral-300);
  --border-brand:var(--vp-burgund-500);
  --focus-ring:var(--vp-burgund-400);
  --action-primary:var(--vp-burgund-500);
  --action-primary-hover:var(--vp-burgund-600);
  --action-primary-active:var(--vp-burgund-700);

  /* Diagramme */
  --chart-fill:var(--vp-burgund-100);
  --chart-line:var(--vp-burgund-500);
  --chart-compare-line:var(--vp-neutral-900);
  --chart-grid:var(--vp-neutral-200);

  --font-display:'Marcellus',Georgia,serif;
  --font-body:'Poppins',system-ui,-apple-system,sans-serif;

  /* Spacing 1 bis 10. Keine anderen Abstaende. */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;
  --grid-max:1200px;

  --radius-sm:4px; --radius-md:8px; --radius-lg:16px; --radius-pill:999px;
  --shadow-1:0 1px 2px rgba(0,0,0,.06);
  --shadow-2:0 2px 8px rgba(0,0,0,.08);
  --shadow-3:0 8px 24px rgba(0,0,0,.12);

  --dur-fast:120ms; --dur-base:200ms; --dur-slow:360ms;
  --ease-standard:cubic-bezier(.2,0,0,1);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--surface-page);color:var(--text-body);
  font-family:var(--font-body);font-size:16px;font-weight:400;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-wrap:pretty}
h1,h2,h3{font-family:var(--font-display);font-weight:400;margin:0;
  color:var(--text-strong);text-wrap:balance}
h1{font-size:36px;line-height:1.15}
h2{font-size:28px;line-height:1.2}
h3{font-size:22px;line-height:1.25}
a{color:var(--text-brand)}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

/* ---------------------------------------------------------------- Kopf */
.kopf{background:var(--surface-brand);color:var(--text-on-brand);
  display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-4);
  padding:var(--space-3) var(--space-5);position:sticky;top:0;z-index:20}
.kopf .marke{font-family:var(--font-display);font-size:19px;white-space:nowrap}
.kopf .marke small{display:block;font-family:var(--font-body);font-size:12px;
  font-weight:500;letter-spacing:.08em;text-transform:uppercase;opacity:.82;
  margin-top:2px}
/* Mobil waagerecht scrollen statt auf fuenf Zeilen umbrechen. */
.kopf nav{display:flex;gap:var(--space-1);overflow-x:auto;max-width:100%;
  scrollbar-width:none}
.kopf nav::-webkit-scrollbar{display:none}
@media(min-width:1024px){ .kopf nav{flex-wrap:wrap;overflow:visible} }
.kopf nav a{color:var(--text-on-brand);text-decoration:none;
  padding:var(--space-3) var(--space-3);border-radius:var(--radius-sm);
  font-size:14px;min-height:44px;display:flex;align-items:center;
  transition:background var(--dur-fast) var(--ease-standard)}
.kopf nav a:hover{background:rgba(255,255,255,.14);text-decoration:none}
.kopf nav a[aria-current=page]{background:var(--surface-page);color:var(--text-brand)}
.kopf .wer{margin-left:auto;display:flex;align-items:center;gap:var(--space-3);
  font-size:14px;white-space:nowrap}
.kopf .wer a{color:var(--text-on-brand);text-decoration:underline;text-underline-offset:3px}

/* ---------------------------------------------------------------- Raster */
main{max-width:var(--grid-max);margin:0 auto;padding:var(--space-5) 20px var(--space-8)}
.titel{display:flex;align-items:baseline;gap:var(--space-4);flex-wrap:wrap;
  margin-bottom:var(--space-5)}
.titel .zusatz{color:var(--text-muted);font-size:14px}
.titel .rechts{margin-left:auto;display:flex;gap:var(--space-2);flex-wrap:wrap}

.karte{background:var(--surface-page);border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);padding:var(--space-5);margin-bottom:var(--space-4)}
.karte h2{font-size:22px;margin-bottom:var(--space-3)}
.karte p.hinweis{margin:0 0 var(--space-4);font-size:14px;color:var(--text-muted)}

.kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));
  gap:var(--space-3);margin-bottom:var(--space-5)}
.kachel{background:var(--surface-subtle);border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);padding:var(--space-4)}
.kachel .wert{font-family:var(--font-display);font-size:32px;
  color:var(--text-brand);line-height:1.1}
.kachel .was{font-size:14px;color:var(--text-muted);margin-top:var(--space-1)}
.kachel.warnung{background:var(--surface-brand-tint);border-color:var(--vp-burgund-200)}

/* ---------------------------------------------------------------- Tabellen */
table{width:100%;border-collapse:collapse;font-size:15px}
th{text-align:left;font-weight:500;font-size:12px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-muted);
  padding:0 var(--space-2) var(--space-3);border-bottom:1px solid var(--border-default)}
td{padding:var(--space-3) var(--space-2);border-bottom:1px solid var(--border-subtle);
  vertical-align:top}
tr:hover td{background:var(--surface-subtle)}
td.zahl,th.zahl{text-align:right;font-variant-numeric:tabular-nums}
td.nr{font-variant-numeric:tabular-nums;font-size:14px;color:var(--text-brand);
  white-space:nowrap}
table a{text-decoration:none}
table a:hover{text-decoration:underline}

/* Statusmarken. Keine Ampelfarben, die CI kennt keine Funktionsfarben. */
.marke-status{font-size:12px;font-weight:500;padding:2px var(--space-2);
  border-radius:var(--radius-pill);white-space:nowrap;border:1px solid var(--border-default);
  color:var(--text-muted);background:var(--surface-page)}
.marke-status.verkostet{border-color:var(--border-brand);color:var(--text-on-brand);
  background:var(--surface-brand)}
.marke-status.korrigiert{border-color:var(--border-brand);color:var(--text-brand);
  background:var(--surface-brand-tint)}
.marke-status.inaktiv{border-style:dashed}

/* ---------------------------------------------------------------- Formulare */
form.filter{display:flex;gap:var(--space-2);flex-wrap:wrap;
  margin-bottom:var(--space-4);align-items:center}
input,select,textarea{font:inherit;font-size:16px;padding:var(--space-3);
  border:1px solid var(--border-default);border-radius:var(--radius-sm);
  background:var(--surface-page);color:var(--text-body);max-width:100%;
  min-height:44px;box-shadow:var(--shadow-1)}
input:focus,select:focus,textarea:focus{border-color:var(--border-brand);outline:none;
  box-shadow:0 0 0 2px var(--focus-ring)}
input[type=range]{min-height:44px;box-shadow:none;border:0;padding:0;
  accent-color:var(--action-primary)}
input[type=file]{box-shadow:none}
textarea{width:100%;resize:vertical;min-height:88px;line-height:1.6}
label{display:block;font-size:12px;font-weight:500;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-muted);margin-bottom:var(--space-1)}
.feldgruppe{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:var(--space-4);margin-bottom:var(--space-4)}
.feld input,.feld select{width:100%}
.feld .hilfe{font-size:14px;color:var(--text-muted);margin-top:var(--space-1)}

/* ---------------------------------------------------------------- Knoepfe */
.knopf{display:inline-flex;align-items:center;justify-content:center;
  font:inherit;font-size:16px;font-weight:500;min-height:44px;
  padding:var(--space-3) var(--space-4);border-radius:var(--radius-sm);
  border:1px solid var(--border-default);background:var(--surface-page);
  color:var(--text-body);cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background var(--dur-fast) var(--ease-standard),
             border-color var(--dur-fast) var(--ease-standard)}
.knopf:hover{background:var(--surface-brand-tint);border-color:var(--border-brand);
  color:var(--text-brand);text-decoration:none}
.knopf.haupt{background:var(--action-primary);border-color:var(--action-primary);
  color:var(--text-on-brand)}
.knopf.haupt:hover{background:var(--action-primary-hover);
  border-color:var(--action-primary-hover);color:var(--text-on-brand)}
.knopf.haupt:active{background:var(--action-primary-active);
  border-color:var(--action-primary-active)}

/* ---------------------------------------------------------------- Meldungen */
/* Neutral, mit Wortmarke statt Farbe. Die CI kennt keine Funktionsfarben. */
.meldung{padding:var(--space-3) var(--space-4);border-radius:var(--radius-sm);
  margin-bottom:var(--space-5);font-size:16px;border:1px solid var(--border-default);
  background:var(--surface-subtle);color:var(--text-strong)}
.meldung::before{font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  font-size:12px;display:block;margin-bottom:var(--space-1);color:var(--text-muted)}
.meldung.gut::before{content:"Erledigt"}
.meldung.schlecht::before{content:"Nicht ausgeführt"}
.meldung.info::before{content:"Hinweis"}
.meldung.schlecht{border-color:var(--border-strong);border-left-width:1px}
.meldung ul{margin:var(--space-2) 0 0;padding-left:var(--space-5)}

.leer{text-align:center;padding:var(--space-7) var(--space-5);
  color:var(--text-muted);font-size:16px}

/* ---------------------------------------------------------------- Bilder */
/* Flaschen freigestellt auf Hellgrau, Richtlinien Abschnitt 7.
   Fehlt ein Foto, grauer Platzhalter. Kein erfundenes Motiv. */
.flasche{display:block;background:var(--surface-muted);border-radius:0;
  object-fit:contain;max-width:100%}
.flasche.klein{width:36px;height:48px}
.flasche.gross{width:180px;height:240px}
.bildplatzhalter{background:var(--surface-muted);color:var(--text-muted);
  display:grid;place-items:center;font-size:12px;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;text-align:center;
  padding:var(--space-2);width:180px}
.bildplatzhalter.klein{width:36px;height:48px;font-size:0;padding:0}
.bildspalte{width:36px;padding-right:0}
.nurvorleser{position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap}
.bildzeile{display:grid;grid-template-columns:1fr;gap:var(--space-4);
  margin-bottom:var(--space-5);align-items:start}
@media(min-width:640px){ .bildzeile{grid-template-columns:auto minmax(0,1fr)} }

/* ---------------------------------------------------------------- Verkostung */
/* Mobil zuerst: Netz ueber den Reglern, eine Spalte. Ab 1024 nebeneinander. */
.profilraster{display:grid;grid-template-columns:1fr;gap:var(--space-5)}
.profilraster .netz{justify-self:center;order:-1;max-width:340px;width:100%}
.reglerzeile{display:grid;grid-template-columns:1fr auto;
  gap:var(--space-1) var(--space-3);align-items:center;padding:var(--space-1) 0}
.reglerzeile label{grid-column:1;margin:0;text-transform:none;letter-spacing:0;
  font-size:14px;font-weight:400;color:var(--text-body)}
.reglerzeile input[type=range]{grid-column:1;width:100%}
.reglerzeile output{grid-column:2;grid-row:1 / span 2;align-self:center;
  font-variant-numeric:tabular-nums;font-size:19px;font-weight:500;
  color:var(--text-brand);text-align:right;min-width:32px}
@media(min-width:1024px){
  .profilraster{grid-template-columns:minmax(0,1fr) 340px;gap:var(--space-6);
    align-items:start}
  .profilraster .netz{order:0}
  .reglerzeile{grid-template-columns:120px 1fr 34px;gap:var(--space-3)}
  .reglerzeile label{grid-column:1}
  .reglerzeile input[type=range]{grid-column:2}
  .reglerzeile output{grid-column:3;grid-row:auto;font-size:16px}
}

/* ---------------------------------------------------------------- Anmeldung */
.anmeldung{display:grid;place-items:center;min-height:100vh;padding:var(--space-5)}
.anmeldung .karte{width:min(370px,100%);margin:0}
.anmeldung h1{font-size:28px;color:var(--text-brand);margin-bottom:var(--space-1)}
.anmeldung .unter{font-size:14px;color:var(--text-muted);margin-bottom:var(--space-5)}
.anmeldung .feld{margin-bottom:var(--space-4)}
.anmeldung .knopf{width:100%}

/* ---------------------------------------------------------------- ab Tablet */
@media(min-width:640px){
  main{padding:var(--space-6) 32px var(--space-8)}
}
@media(min-width:1024px){
  body{font-size:17px;line-height:1.65}
  h1{font-size:56px;line-height:1.1}
  h2{font-size:40px;line-height:1.15}
  h3{font-size:28px}
  .karte h2{font-size:28px}
  main{padding:var(--space-6) 40px var(--space-9)}
}
@media(max-width:639px){
  .kopf .wer{width:100%;margin-left:0}
  table{font-size:14px}
  td,th{padding:var(--space-2) var(--space-1)}
  .verbergen-klein{display:none}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
