/* schurth Freigabe-Portal
   Schriften lokal einbinden (keine Google-Server): Dateien nach public/assets/fonts legen, siehe README. */
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --grund: #F4F1EC;
  --flaeche: #FFFFFF;
  --flaeche-2: #F0ECE6;
  --linie: #E3DDD4;
  --linie-stark: #8F887F;
  --text: #1A1918;
  --text-leise: #5C5751;
  --akzent: #A8401A;
  --akzent-text: #A3401B;
  --kunde-blase: #FBEAE2;
  --fehler: #A3301B;
  --ok-grund: #DDF1EC;
  --ok-text: #0F5C4D;
  --warn-grund: #FBEFD5;
  --warn-text: #7A4E00;
  --plan-grund: #E3ECF8;
  --plan-text: #1D4F8C;
  --schatten: 0 8px 20px rgba(26, 25, 24, 0.14);

  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --schrift-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --plattform: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --kanal: var(--linie-stark);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #121212;
    --flaeche: #1C1C1C;
    --flaeche-2: #262626;
    --linie: #2E2E2E;
    --linie-stark: #5A5650;
    --text: #F2EFEA;
    --text-leise: #A8A29E;
    --akzent: #B5491F;
    --akzent-text: #E07A4F;
    --kunde-blase: #2C1F18;
    --fehler: #F2A07B;
    --ok-grund: #12352F;
    --ok-text: #7FD8C4;
    --warn-grund: #3A2A0E;
    --warn-text: #F2C26B;
    --plan-grund: #182A40;
    --plan-text: #9CC3F2;
    --schatten: 0 8px 20px rgba(0, 0, 0, 0.55);
  }
}

.kanal-instagram { --kanal: #C13584; }
.kanal-facebook { --kanal: #1877F2; }
.kanal-linkedin { --kanal: #0A66C2; }
.kanal-blog { --kanal: var(--akzent); }

/* ---------- Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 16px/1.55 var(--schrift); }
a { color: var(--akzent-text); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--akzent-text); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 50; background: var(--flaeche); padding: 8px 12px; }

.innen { max-width: 1440px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.inhalt { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.inline { display: inline; }

/* ---------- Kopf und Fuß */
.kopf { border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.marke { font: 600 28px/1 var(--schrift-titel); color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; gap: 12px; }
.marke-zusatz { font: 400 13px/1 var(--schrift-mono); color: var(--text-leise); }
.kopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; }
.wer { color: var(--text-leise); }
.fuss { border-top: 1px solid var(--linie); }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--text-leise); }

/* ---------- Typografie */
.titel { font: 600 40px/1.05 var(--schrift-titel); text-transform: uppercase; letter-spacing: 0.01em; }
.titel.gross { font-size: clamp(40px, 6vw, 60px); }
.lead { font-size: 18px; max-width: 68ch; }
.erklaerung { color: var(--text-leise); max-width: 68ch; font-size: 15px; }
.einstieg { display: flex; flex-direction: column; gap: 12px; }
.schmal { max-width: 520px; margin: 24px auto; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Knöpfe und Formulare */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 20px; border-radius: 10px; border: 1px solid var(--linie-stark); background: transparent; color: var(--text); font: 600 15px/1.2 var(--schrift); text-align: center; text-decoration: none; cursor: pointer; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #FFFFFF; }
.knopf:hover { filter: brightness(1.06); }
.textknopf { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: 600 14px var(--schrift); text-decoration: underline; cursor: pointer; }
.formular { display: flex; flex-direction: column; gap: 10px; }
label { font-size: 14px; font-weight: 600; }
input[type="email"], textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linie-stark); background: var(--grund); color: var(--text); font: 400 16px/1.5 var(--schrift); }
textarea { min-height: 96px; resize: vertical; }
textarea[aria-invalid="true"] { border-color: var(--fehler); }
.feldhinweis { font-size: 13px; color: var(--text-leise); }
.feldfehler { font-size: 14px; color: var(--fehler); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.kundenliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kundenliste .knopf { width: 100%; justify-content: flex-start; }

/* ---------- Meldung, Filter, Fortschritt */
.meldung { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 16px; border-radius: 12px; background: var(--text); color: var(--grund); }
.meldung > span { flex: 1 1 240px; padding: 6px 0; }
.meldung-fehler { background: var(--warn-grund); color: var(--warn-text); }
.steuerung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie-stark); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.tab[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--grund); }
.zahl { font: 400 13px var(--schrift-mono); }
.ansicht-wechsel { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.fortschritt { max-width: 420px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fortschritt-kopf { display: flex; justify-content: space-between; }
.fortschritt-kopf span:first-child { font-weight: 600; }
.fortschritt-kopf span:last-child { color: var(--text-leise); font-family: var(--schrift-mono); }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--flaeche-2); }
progress::-webkit-progress-value { background: var(--ok-text); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--ok-text); border-radius: 999px; }
.leer-hinweis { padding: 24px 0; color: var(--text-leise); }

/* ---------- Spaltenkopf und Raster */
.kanalkopf, .raster { display: grid; gap: 20px; }
.spalten-1 { grid-template-columns: minmax(0, 1fr); }
.spalten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kanalkopf { position: sticky; top: 0; z-index: 4; margin: 0 -16px; padding: 14px 16px 0; background: var(--flaeche); border-bottom: 1px solid var(--linie); border-radius: 0 0 12px 12px; transition: box-shadow 0.2s; }
.kanalkopf.haengt { box-shadow: var(--schatten); }
.kanalkopf-zelle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 12px; border-bottom: 4px solid var(--kanal); }
.kanal-marke { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--kanal); flex: none; }
.kanalname { font: 500 24px/1.2 var(--schrift-titel); }
.kanalinfo { font: 400 12px var(--schrift-mono); color: var(--text-leise); }

.kategorie { display: flex; flex-direction: column; gap: 16px; }
.kategorie-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.kategorie-titel { font: 500 30px/1.15 var(--schrift-titel); }
.kategorie-info { font: 400 13px var(--schrift-mono); color: var(--text-leise); }
.zelle { min-width: 0; display: flex; flex-direction: column; }

/* ---------- Karte */
.karte { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-top: 4px solid var(--kanal); }
.karte-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.karte-kanal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 21px/1.2 var(--schrift-titel); }
.karte-person { font: 400 14px var(--schrift); color: var(--text-leise); }
.karte-format { grid-column: 1 / -1; font-size: 13px; color: var(--text-leise); }
.karte-panel { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; }
.karte-termin { font: 400 13px var(--schrift-mono); color: var(--text-leise); }
.version { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--plan-grund); color: var(--plan-text); }
.karte-form { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.status { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.status-offen { background: var(--flaeche-2); color: var(--text); border-color: var(--linie-stark); }
.status-aenderung { background: var(--warn-grund); color: var(--warn-text); }
.status-freigegeben { background: var(--ok-grund); color: var(--ok-text); }
.status-eingeplant { background: var(--plan-grund); color: var(--plan-text); }
.status-veroeffentlicht { background: var(--flaeche-2); color: var(--text-leise); }
.notiz { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.notiz > span { flex: 1 1 200px; }

.kommentare { display: flex; flex-direction: column; gap: 8px; }
.kommentare-titel { font-size: 13px; font-weight: 600; color: var(--text-leise); }
.kommentar { padding: 10px 14px; border-radius: 10px; background: var(--flaeche-2); font-size: 15px; }
.kommentar.von-kunde { background: var(--kunde-blase); }
.kommentar-kopf { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 14px; }
.kommentar-kopf span { font: 400 12px var(--schrift-mono); color: var(--text-leise); }

/* ---------- Kurzkarte, leere Felder, Anfragen */
.kurzkarte, .anfrage-gesendet, .leer-feld, .anfrage { border-radius: 16px; border-top: 4px solid var(--kanal); }
.kurzkarte { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; background: var(--flaeche); border-left: 1px solid var(--linie); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); font-size: 14px; }
.kurzkarte-titel { font-weight: 600; }
.anfrage summary, .leer-feld { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--text-leise); font-size: 14px; }
.anfrage { border-left: 1.5px dashed var(--linie-stark); border-right: 1.5px dashed var(--linie-stark); border-bottom: 1.5px dashed var(--linie-stark); }
.leer-feld { border-left: 1.5px dashed var(--linie); border-right: 1.5px dashed var(--linie); border-bottom: 1.5px dashed var(--linie); }
.anfrage summary { cursor: pointer; list-style: none; border-radius: 0 0 14px 14px; }
.anfrage summary::-webkit-details-marker { display: none; }
.anfrage summary:hover .plus { border-color: var(--text); }
.anfrage[open] summary { min-height: 0; padding-bottom: 8px; }
.plus { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linie-stark); color: var(--text); display: flex; align-items: center; justify-content: center; }
.leer-cta { color: var(--text); font-weight: 600; }
.anfrage-form { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; text-align: left; }
.anfrage-form .knopf { align-self: flex-start; }
.anfrage-gesendet { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; background: var(--flaeche-2); font-size: 14px; }
.anfrage-titel { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Plattform-Vorschauen (bewusst im Look der Plattformen, immer hell)
   Social-Bilder kommen als 1080 × 1350 (4:5) und füllen den Rahmen zentriert. */
.vorschau { background: #FFFFFF; color: #111111; border: 1px solid #E3E3E3; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--plattform); }
.vorschau a { color: inherit; }
.v-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.v-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-name strong { font-weight: 600; }
.v-name span { font-size: 12px; color: #5E5E5E; }
.v-avatar { flex: none; display: flex; align-items: center; justify-content: center; background: #E4DFD8; color: #4A4641; font-weight: 700; object-fit: cover; border-radius: 6px; }
.v-avatar.rund { border-radius: 50%; }
.v-avatar-klein { width: 32px; height: 32px; font-size: 11px; }
.v-avatar-mittel { width: 40px; height: 40px; font-size: 13px; }
.v-avatar-gross { width: 48px; height: 48px; font-size: 14px; }
.v-folgen { align-self: flex-start; color: #0A66C2; font-weight: 600; font-size: 14px; }
.v-medien { position: relative; background: #E4DFD8; }
.v-medien img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.v-hoch { aspect-ratio: 4 / 5; overflow: hidden; }
.v-breit { aspect-ratio: 16 / 9; overflow: hidden; }
.v-karussell { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-karussell::-webkit-scrollbar { display: none; }
.v-karussell img { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.v-zaehler { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(17, 17, 17, 0.75); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.v-platzhalter { height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font: 400 12px var(--schrift-mono); color: #4A4641; }
.v-aktionen { display: flex; align-items: center; gap: 14px; padding: 12px 14px 4px; }
.v-aktionen svg { width: 24px; height: 24px; fill: none; stroke: #111111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-luecke { flex: 1; }
.v-text { padding: 6px 14px 12px; white-space: normal; overflow-wrap: anywhere; }
.v-titelzeile { padding-bottom: 0; }
.v-instagram .v-text { padding-bottom: 16px; }
.v-facebook .v-text, .v-linkedin .v-text { font-size: 14px; }
.v-leiste { display: flex; justify-content: space-around; margin: 0 12px; padding: 4px 0; border-top: 1px solid #E4E6EB; color: #5E5E5E; font-size: 13px; font-weight: 600; }
.v-leiste span { padding: 8px 4px; }
.v-browser { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F3F1EE; border-bottom: 1px solid #E3E0DB; }
.v-browser > span:not(.v-adresse) { width: 8px; height: 8px; border-radius: 50%; background: #CFCAC3; }
.v-adresse { flex: 1; min-width: 0; margin-left: 6px; padding: 4px 10px; border-radius: 6px; background: #FFFFFF; font: 400 11px var(--schrift-mono); color: #5C5751; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-artikel { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; font-family: Georgia, "Times New Roman", serif; }
.v-rubrik { font: 400 11px var(--schrift-mono); color: #5C5751; letter-spacing: 0.04em; }
.v-artikeltitel { font: 700 24px/1.2 Georgia, "Times New Roman", serif; }
.v-teaser, .v-inhalt { font-size: 16px; line-height: 1.7; color: #3A3733; }
.v-inhalt { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.v-inhalt h5 { font: 700 19px/1.3 Georgia, serif; color: #1A1918; }
.v-inhalt h6 { font: 700 16px/1.3 Georgia, serif; color: #1A1918; }
.v-inhalt ul { margin: 0; padding-left: 20px; }
.v-volltext summary { min-height: 44px; display: inline-flex; align-items: center; color: #A3401B; font: 600 14px var(--schrift); text-decoration: underline; cursor: pointer; }

/* ---------- Einzelansicht */
.blaettern { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blaettern-text { font: 400 14px var(--schrift-mono); }
.pfeil { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--linie-stark); color: var(--text); }
.pfeil.aus { opacity: 0.35; }
.kategorie.einzeln .karte { max-width: 560px; }
.aktionsleiste { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 -24px -64px; padding: 12px 16px 16px; background: var(--flaeche); border-top: 1px solid var(--linie); }

/* ---------- Schmale Bildschirme */
@media (max-width: 720px) {
  .innen { padding-left: 16px; padding-right: 16px; }
  .inhalt { padding-top: 24px; gap: 22px; }
  .kanalkopf { display: none; }
  .raster { grid-template-columns: minmax(0, 1fr); }
  .zelle-frei, .zelle-leer:has(.leer-feld) { display: none; }
  .kategorie-titel { font-size: 24px; }
  .aktionsleiste { margin: 0 -16px -64px; }
}
