/* Partner-App: Grundlage ist das Aussehen von „AmoreVita Daheim“ (familie/familie.css), hier nur das Eigene */

/* ------------------------------------------------------------- Corporate Design v1 (ci/AmoreVita_Corporate-Design_v1.pdf)
   Gold auf Nachtblau, Goldverlauf für Hauptknöpfe/Linien, vollrunde Knöpfe, Goldlinie unter dem Kopf. */
:root {
  --navy: #15233e; --mitternacht: #0a1020; --gold: #c69829; --gold-licht: #e9c05a; --gold-hell: #f6e7c1; --gold-dunkel: #8a6420;
  --auf-gold: #15233e; --papier: #f8f6f1;
  --verlauf: linear-gradient(100deg, #8a6420 0%, #c69829 22%, #f6e7c1 46%, #e9c05a 56%, #c69829 76%, #8a6420 100%);
  --goldlinie: linear-gradient(90deg, #8a6420 0%, #c69829 18%, #f6e7c1 46%, #e9c05a 54%, #c69829 82%, #8a6420 100%);
  --bg: #15233e; --surface: #1c2d4d; --surface-2: #22365b; --line: #2e4470; --fg: #f8f6f1; --stark: #ffffff; --muted: #c5cad6;
  --info-bg: #22365b; --feld: #101b31; --feld-linie: #3a5282;
}
html { background: var(--bg); }
.kopf { background: linear-gradient(180deg, #0a1020 0%, #15233e 100%); border-bottom: 0; position: sticky; }
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--goldlinie); }
.kopf .t { color: #fff; }
.kopf .s { color: var(--gold-hell); }
.kopf form button, .thema-knopf { border-color: rgba(246,231,193,.35); color: var(--gold-hell); border-radius: 999px; }
.kopf form button { padding: .3rem .8rem; }
main > h1, .karte > h1 { position: relative; padding-bottom: .45rem; }
main > h1::after, .karte > h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: var(--goldlinie); border-radius: 2px; }
.karte { border-color: rgba(198,152,41,.3); }
.label { color: var(--gold-licht); letter-spacing: .15em; }
a { color: var(--gold-licht); }
.knopf { border-radius: 999px; background: transparent; border: 1.5px solid var(--gold); color: var(--gold-licht); padding: .55rem 1.1rem; }
.knopf.gold { background: var(--verlauf); border: 0; color: var(--navy); box-shadow: 0 2px 10px rgba(198,152,41,.25); padding: .6rem 1.15rem; }
.knopf.breit { padding: .8rem 1rem; }
.knopf.haupt { background: var(--navy); border-color: var(--gold); color: #fff; }
.leise-knopf { border-color: var(--line); color: var(--muted); }
.meldung { border-left: 3px solid var(--gold); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }

main { padding-bottom: 2rem; }
.kopf-knopf { margin-left: auto; }
.zahlen-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.zahlen-reihe .karte { text-align: center; gap: .1rem; }
.zahlen-reihe b { font-size: 1.6rem; font-family: var(--f-display); background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zahlen-reihe span { font-size: .78rem; color: var(--muted); }
.filter { display: flex; gap: .4rem; }
.filter a { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--fg); font-size: .88rem; }
.filter a.an { background: var(--verlauf); color: var(--navy); border-color: transparent; font-weight: 700; }
.meldung-karte .oben { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.meldung-karte .name { font-family: var(--f-display); font-weight: 600; color: var(--stark); font-size: 1.1rem; }
.meldung-karte .klein { font-size: .82rem; color: var(--muted); }
.stufen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: .2rem 0; }
.stufen span { height: 6px; border-radius: 3px; background: var(--line); }
.stufen span.an { background: var(--verlauf); background-size: 500% 100%; background-position: 40% 0; }
.stufen.ende-nicht span.an { background: var(--muted); }
.stufen.ende-beendet span.an { background: var(--ok); }
.stufe-text { font-weight: 700; }
.stufe-text.versorgt { color: var(--ok); }
.stufe-text.nicht { color: var(--muted); }
.schloss { font-size: .82rem; color: var(--muted); }
fieldset.gruppe { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .6rem; margin: 0; }
fieldset.gruppe legend { font-weight: 700; padding: 0 .3rem; color: var(--gold-licht); font-family: var(--f-display); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.chips-wahl { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips-wahl label { display: inline-flex; gap: .35rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; font-size: .9rem; cursor: pointer; }
.chips-wahl input { accent-color: var(--gold); }
label.haken.lang { align-items: flex-start; font-weight: 400; }
label.haken.lang input { margin-top: .15rem; }
.fehler { color: var(--crit); font-size: .85rem; font-weight: 400; }
select { width: 100%; border: 1px solid var(--feld-linie); border-radius: 9px; padding: .65rem .75rem; background: var(--feld); color: var(--fg); font-size: 1rem; }
textarea { min-height: 5rem; }
@media (max-width: 420px) { .zwei { grid-template-columns: 1fr; } }
.reiter-oben a { flex: 1; text-align: center; }
.zahl-punkt { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--crit); color: #fff; font-size: .75rem; font-weight: 700; }
.vermittlung .daten { display: grid; gap: .15rem; }
.vermittlung .daten a { font-weight: 700; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .4rem; }
.knopf-reihe form { display: contents; }
.chip-stand { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--info-bg); }
.chip-stand.gut { background: var(--ok-bg); color: var(--ok); }
/* Am PC: breiter, Meldungen in zwei Spalten */
@media (min-width: 900px) {
  main { max-width: 920px; }
  .karten-raster { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: start; }
}
.reiter-oben a { white-space: nowrap; }

/* Hell: Papierweiß, Gold dunkel für Text, Kopf bleibt Nachtblau mit Goldlinie */
html[data-thema="hell"] {
  --bg: #f8f6f1; --surface: #fff; --surface-2: #f6e7c1; --line: #e5dcc6; --fg: #1d2433; --stark: #15233e; --muted: #5a6274;
  --info-bg: #eef1f7; --feld: #fff; --feld-linie: #cfc4a8;
}
html[data-thema="hell"] .kopf { background: linear-gradient(180deg, #0a1020 0%, #15233e 100%); border-bottom: 0; }
html[data-thema="hell"] a, html[data-thema="hell"] .label, html[data-thema="hell"] fieldset.gruppe legend { color: var(--gold-dunkel); }
html[data-thema="hell"] .knopf { color: var(--gold-dunkel); border-color: var(--gold); }
html[data-thema="hell"] .knopf.gold { color: var(--navy); }
html[data-thema="hell"] .knopf.haupt { color: #fff; }
html[data-thema="hell"] .fuss a { color: var(--muted); }
.vermittlung .name { font-family: var(--f-display); font-weight: 600; color: var(--stark); font-size: 1.1rem; }
.vo-zeile { font-size: .9rem; padding: .45rem .65rem; border-radius: 10px; background: var(--info-bg); border-left: 3px solid var(--gold); }
.vo-zeile.gut { background: var(--ok-bg); border-left-color: var(--ok); }
.vo-zeile.nein { border-left-color: var(--muted); }
.vo-felder[hidden] { display: none; }
.vo-felder { display: grid; gap: .6rem; }
input[type=file] { width: 100%; font-size: .95rem; color: var(--fg); }
input[type=date] { width: 100%; border: 1px solid var(--feld-linie); border-radius: 9px; padding: .6rem .75rem; background: var(--feld); color: var(--fg); font-size: 1rem; color-scheme: dark; }
html[data-thema="hell"] input[type=date] { color-scheme: light; }
