/* VetNota – Praxis-Design (Design-System Kleintierpraxis Dr. Bindernagel). Schriften liegen auf dem eigenen Server. */

@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/schriften/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("/schriften/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("/schriften/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("/schriften/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --petrol: #038397;          /* Flächen, Überschriften ab 24px */
  --petrol-dunkel: #04606E;   /* Text unter 24px, Icons, Knöpfe */
  --sonnengelb: #F9B233;      /* nur Akzent, nie Text auf Weiß */
  --nebel: #F3F7F7;
  --sand: #FBF6EC;
  --weiss: #FFFFFF;
  --anthrazit: #1D1D1B;
  --gedaempft: #3D4F52;
  --linie: #D5DCDD;
  --linie-stark: #6B8285;
  --signal: #B3261E;          /* nur mit Icon und dem Wort „Achtung“ */
  --schatten-karte: 0 2px 10px rgba(4, 96, 110, .10);
  --schatten-hoch: 0 12px 32px rgba(4, 96, 110, .18);
  --schrift-anzeige: "Outfit", system-ui, sans-serif;
  --schrift-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--nebel); color: var(--anthrazit); font: 16px/24px var(--schrift-text); }
a { color: var(--petrol-dunkel); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--petrol-dunkel); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons: Lucide-Linien, 2px, immer mit einem Wort */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i16 { width: 16px; height: 16px; }
.i24 { width: 24px; height: 24px; }
.i32 { width: 32px; height: 32px; stroke-width: 1.5; }
.i48 { width: 48px; height: 48px; stroke-width: 1.5; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.marke { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 22px; line-height: 28px; color: var(--petrol-dunkel); }
.wortmarke span { color: var(--petrol); }
.marke-zeichen { width: 36px; height: 36px; border-radius: 12px; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; }
.schritte { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 320px; }
.schritte li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--petrol-dunkel); }
.schritt-nr { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; }
.erledigt .schritt-nr, .aktiv .schritt-nr { background: var(--petrol-dunkel); color: var(--weiss); }
.aktiv .schritt-nr { box-shadow: 0 0 0 4px var(--sonnengelb); }
.offen .schritt-nr { border: 1px solid var(--linie-stark); color: var(--gedaempft); }
.schritt-trenner { width: 28px; height: 2px; border-radius: 2px; background: var(--linie); }
.menue { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menue form { margin: 0; }
.menue-link { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--petrol-dunkel); font-weight: 600; font-size: 15px; text-decoration: none; }
.menue-link:hover, .menue-link.aktuell { background: var(--nebel); }
.person-chip { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding: 4px 4px 4px 4px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); }
.person-chip .kuerzel { width: 32px; height: 32px; border-radius: 999px; background: var(--petrol-dunkel); color: var(--weiss); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.person-chip .name { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--petrol-dunkel); }
.person-chip button { min-height: 32px; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--nebel); color: var(--petrol-dunkel); font-weight: 600; font-size: 13px; }
@media (max-width: 760px) { .schritte { order: 3; flex-basis: 100%; justify-content: flex-start; } }
@media (max-width: 600px) { .person-chip .name { display: none; } .schritte .schritt-name { display: none; } .nur-breit { display: none; } }

/* Inhalt */
.inhalt { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 48px; }
.spalte { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.spalte.eng { max-width: 760px; gap: 24px; }
.spalte.schmal { max-width: 560px; gap: 24px; }
.stapel { display: flex; flex-direction: column; gap: 24px; }
.kopfzeilen { display: flex; flex-direction: column; gap: 8px; }
.dachzeile { display: inline-flex; align-items: center; gap: 8px; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--petrol-dunkel); }
.dachzeile::before { content: ""; width: 24px; height: 5px; border-radius: 6px; background: var(--sonnengelb); }
h1 { margin: 0; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 30px; line-height: 36px; color: var(--petrol); text-wrap: balance; }
h1.gross { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; }
h2 { margin: 0; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 22px; line-height: 28px; color: var(--petrol-dunkel); }
h3 { margin: 0; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--petrol-dunkel); }
p { margin: 0; }
.einleitung { max-width: 62ch; font-size: 18px; line-height: 28px; color: var(--gedaempft); }
.leise { color: var(--gedaempft); }
.klein { font-size: 14px; line-height: 20px; }
.winzig { font-size: 13px; line-height: 18px; }

.karte { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--weiss); border-radius: 20px; box-shadow: var(--schatten-karte); }
.karte.mitte { align-items: center; text-align: center; padding: 40px 24px; gap: 20px; }
.karte-flach { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; border: 1px solid var(--linie); border-radius: 20px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 2px solid var(--petrol-dunkel); border-radius: 12px; background: var(--petrol-dunkel); color: var(--weiss); font-weight: 600; font-size: 16px; line-height: 20px; text-decoration: none; }
.knopf:hover:not(:disabled) { box-shadow: var(--schatten-hoch); }
.knopf.zweit { background: var(--weiss); color: var(--petrol-dunkel); }
.knopf.zweit:hover:not(:disabled) { background: var(--nebel); box-shadow: none; }
.knopf.leise { border-color: transparent; background: transparent; color: var(--petrol-dunkel); }
.knopf.leise:hover:not(:disabled) { background: var(--nebel); box-shadow: none; }
.knopf.klein { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.knopf.gross { min-height: 48px; padding: 12px 24px; }
.knopf.breit { width: 100%; }
.knopf:disabled { background: var(--nebel); border-color: var(--linie); color: var(--gedaempft); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knopfreihe.mitte { justify-content: center; }
.knopfreihe.verteilt { justify-content: space-between; }
form.inline { display: inline; margin: 0; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.feld label, .feld .beschriftung { font-weight: 600; color: var(--petrol-dunkel); }
.feld label span { font-weight: 400; color: var(--gedaempft); }
input[type=text], input[type=search], input[type=password], input[type=tel], textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--linie-stark); border-radius: 12px; background: var(--weiss); font-size: 16px; -webkit-appearance: none; appearance: none; min-width: 0;
}
textarea { line-height: 24px; resize: vertical; }
.fehler { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sand); color: var(--anthrazit); text-align: left; }
.fehler .i { color: var(--signal); margin-top: 2px; }
.hinweis { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--weiss); box-shadow: var(--schatten-karte); color: var(--petrol-dunkel); }
.hinweis p { flex: 1 1 auto; min-width: 0; color: var(--anthrazit); padding: 10px 0; }

/* Start: Tierarten */
.tierarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 16px; margin: 0; padding: 0; border: 0; }
.tierkachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 128px; padding: 20px 12px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; box-shadow: var(--schatten-karte); color: var(--petrol-dunkel); font-weight: 600; }
.tierkachel:hover { box-shadow: var(--schatten-hoch); border-color: var(--petrol-dunkel); }

/* Listen */
.liste { display: flex; flex-direction: column; padding: 8px; background: var(--weiss); border-radius: 20px; box-shadow: var(--schatten-karte); }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 12px; color: inherit; text-decoration: none; }
a.zeile:hover { background: var(--nebel); }
.zeile-text { flex: 1 1 220px; min-width: 0; }
.zeile-titel { font-weight: 600; }
.zeile-titel span { font-weight: 400; color: var(--gedaempft); }
.rund { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--nebel); color: var(--petrol-dunkel); display: grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--nebel); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--petrol-dunkel); white-space: nowrap; }
.chip.sand { background: var(--sand); }

/* Wer dokumentiert? / PIN */
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.personkachel { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; box-shadow: var(--schatten-karte); color: var(--anthrazit); font-weight: 600; text-decoration: none; }
.personkachel:hover { box-shadow: var(--schatten-hoch); border-color: var(--petrol-dunkel); }
.personkachel .kuerzel { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--petrol-dunkel); color: var(--weiss); display: grid; place-items: center; font-size: 15px; }
.pin-eingabe { max-width: 220px; font-family: var(--schrift-anzeige); font-size: 28px !important; letter-spacing: .4em; text-align: center; }

/* Aufnahme */
.aufnahme-knopf { width: 168px; height: 168px; border-radius: 999px; border: 0; background: var(--petrol-dunkel); color: var(--weiss); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; line-height: 20px; }
.aufnahme-knopf:hover { box-shadow: var(--schatten-hoch); }
.status { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--petrol-dunkel); }
.punkt { width: 14px; height: 14px; border-radius: 999px; background: var(--petrol-dunkel); }
.punkt.pausiert { background: var(--linie-stark); }
.punkt.puls { animation: puls 1.6s ease-out infinite; }
.zeit { font-family: var(--schrift-anzeige); font-weight: 600; font-size: 64px; line-height: 68px; color: var(--petrol-dunkel); font-variant-numeric: tabular-nums; }
.pegel { display: flex; align-items: center; gap: 6px; height: 40px; }
.pegel span { display: block; width: 5px; height: 36px; border-radius: 999px; background: var(--petrol); transform: scaleY(.12); transform-origin: center; transition: transform .08s linear; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(4, 96, 110, .45); } 70% { box-shadow: 0 0 0 14px rgba(4, 96, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(4, 96, 110, 0); } }

/* Verarbeitung */
.fortschritt { list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--weiss); border-radius: 20px; box-shadow: var(--schatten-karte); }
.fortschritt li { display: flex; align-items: center; gap: 12px; min-height: 28px; color: var(--gedaempft); }
.fortschritt li.erledigt, .fortschritt li.aktiv { color: var(--anthrazit); }
.kreis { width: 24px; height: 24px; flex: none; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--linie); }
.erledigt .kreis { border: 0; background: var(--petrol-dunkel); color: var(--weiss); }
.aktiv .kreis { border: 3px solid var(--nebel); border-top-color: var(--petrol); animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Text */
.text { font-size: 17px; line-height: 28px; white-space: pre-wrap; overflow-wrap: anywhere; }

.fuss { padding: 0 clamp(16px, 4vw, 32px) 24px; text-align: center; font-size: 13px; line-height: 18px; color: var(--gedaempft); }

@media (prefers-reduced-motion: reduce) { .punkt.puls, .aktiv .kreis { animation: none; } .pegel span { transition: none; } }

/* Prüfen */
.spalte.breit { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.pruefen-raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pruefen-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pruefen-seite { flex: 1 1 320px; min-width: 0; }
@media (min-width: 960px) { .pruefen-seite { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 20px; } }
.eng-stapel { gap: 8px; }
.abschnitt { gap: 12px; padding: 20px 24px; }
.karte.sand { background: var(--sand); box-shadow: none; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.abschnitt-kopf .knopf { margin: -10px -12px 0 0; flex: none; }
.abschnitt-titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gruppe { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--gedaempft); }
.zeile-hinweis { display: flex; gap: 8px; align-items: flex-start; }
.zeile-hinweis .i { margin-top: 2px; color: var(--petrol-dunkel); }
mark.zahl { padding: 1px 4px; border-radius: 6px; color: inherit; font-variant-numeric: tabular-nums; }
mark.zahl.offen { background: var(--sand); box-shadow: inset 0 -2px 0 var(--sonnengelb); }
mark.zahl.ok { background: transparent; padding: 0; }
mark.zahl.fremd { background: var(--sand); box-shadow: inset 0 -2px 0 var(--signal); }
mark.unklar { background: var(--sand); color: inherit; border: 1px dashed var(--linie-stark); border-radius: 6px; padding: 0 4px; }
.korrigiert { text-decoration: underline dotted var(--petrol-dunkel); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.vital-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.vital { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie); background: var(--weiss); text-align: left; }
.vital.offen, .vital.fremd { background: var(--sand); border-style: dashed; border-color: var(--linie-stark); }
.vital.fremd { border-color: var(--signal); }
.vital-titel { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--gedaempft); }
.vital-wert { display: flex; align-items: center; gap: 6px; font-family: var(--schrift-anzeige); font-weight: 600; font-size: 22px; line-height: 28px; color: var(--anthrazit); font-variant-numeric: tabular-nums; }
.vital .feld label { font-size: 12px; }
.petrol { color: var(--petrol-dunkel); }
.listentitel { display: flex; align-items: center; gap: 6px; font-family: var(--schrift-text); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--petrol-dunkel); }
.pruef-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--sand); }
.pruef-zeile.ok { background: var(--weiss); border: 1px solid var(--linie); }
.pruef-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pruef-wert { font-family: var(--schrift-anzeige); font-weight: 600; font-size: 18px; line-height: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pruef-bez { font-family: var(--schrift-text); font-weight: 500; font-size: 14px; color: var(--gedaempft); }
.warnzeile { display: flex; align-items: center; gap: 4px; color: var(--anthrazit); }
.warnzeile .i { color: var(--signal); }
.pruef-zeile .knopf { flex: none; }
.balken { height: 8px; border-radius: 999px; background: var(--nebel); overflow: hidden; }
.balken > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--sonnengelb); transition: width .25s ease-out; }
.trenner { border-top: 1px solid var(--linie); padding-top: 16px; }
.mitte-text { text-align: center; }
.link { background: none; border: 0; padding: 0; color: var(--petrol-dunkel); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.aufklapper { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--petrol-dunkel); font-weight: 600; text-align: left; width: 100%; }
.klein-text { font-size: 15px; line-height: 24px; }

/* Fertig */
.fortschritt-zeile { display: flex; align-items: center; gap: 12px; }
.fortschritt-zeile .balken { flex: 1 1 auto; background: var(--weiss); }
.feld-karte { gap: 12px; padding: 20px 24px; }
.feld-karte.erledigt { background: var(--weiss); opacity: .78; }
.feld-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.kopier { flex: none; }
.kopier.naechstes { background: var(--petrol-dunkel); color: var(--weiss); }
.kopier.kopiert { background: var(--nebel); border-color: var(--linie); color: var(--petrol-dunkel); }
.vital-kopier { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); text-align: left; color: var(--petrol-dunkel); }
.vital-kopier.naechstes { box-shadow: inset 0 0 0 2px var(--petrol-dunkel); }
.vital-kopier.kopiert { background: var(--nebel); }
.vital-kopier .i-kopiert { display: none; }
.vital-kopier.kopiert .i-kopiert, .kopier.kopiert .i-kopiert { display: inline; }
.vital-kopier.kopiert .i-kopieren, .kopier.kopiert .i-kopieren { display: none; }
.kopier .i-kopiert { display: none; }

/* Archiv und Verwaltung */
.archiv-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.suchfeld { position: relative; flex: 1 1 260px; min-width: 0; }
.suchfeld .i { position: absolute; left: 14px; top: 12px; color: var(--gedaempft); }
.suchfeld input { padding-left: 44px; }
.schalter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--petrol-dunkel); cursor: pointer; }
.schalter input { width: 20px; height: 20px; margin: 0; accent-color: var(--petrol-dunkel); }
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; font-size: 13px; font-weight: 600; color: var(--gedaempft); padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle .aktionen { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.tabelle form { margin: 0; }
.formular-zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.formular-zeile .feld { flex: 1 1 200px; max-width: none; }
.formular-zeile .schmal-feld { flex: 0 1 100px; }
.code-anzeige { font-family: var(--schrift-anzeige); font-weight: 600; font-size: 36px; line-height: 44px; letter-spacing: .12em; color: var(--petrol-dunkel); }
.hoerfehler-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hoerfehler-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.hoerfehler-liste form { margin: 0; }
