/* ============================
   FamilyCloud – Aussehen (hell und dunkel)
   Farben passend zum Logo: Lila "Family", Blau "Cloud", bunte Familienfarben.
   ============================ */

:root,
[data-bs-theme="light"] {
    --fc-primaer: #6C4BD8;
    --fc-primaer-dunkel: #5536b8;
    --fc-akzent: #3D7BFF;
    --fc-hg: #f7f5ff;
    --fc-flaeche: #ffffff;
    --fc-flaeche-2: #f1eefc;
    --fc-rand: #e3def5;
    --fc-text: #24203a;
    --fc-text-leise: #6b6684;
    --fc-ferien: #e6f4ff;
    --fc-ferien-text: #1d5f99;
    --fc-feiertag: #fff1e6;
    --fc-feiertag-text: #a24a00;
    --fc-heute: #6C4BD8;
    --bs-primary: #6C4BD8;
    --bs-primary-rgb: 108, 75, 216;
    --bs-link-color: #5536b8;
    --bs-link-color-rgb: 85, 54, 184;
    --bs-body-bg: var(--fc-hg);
    --bs-body-color: var(--fc-text);
}

[data-bs-theme="dark"] {
    --fc-primaer: #9d83f2;
    --fc-primaer-dunkel: #b8a5f7;
    --fc-akzent: #7aa6ff;
    --fc-hg: #15131f;
    --fc-flaeche: #1f1c2e;
    --fc-flaeche-2: #2a2640;
    --fc-rand: #39344f;
    --fc-text: #ece9f7;
    --fc-text-leise: #a8a2c2;
    --fc-ferien: #16304a;
    --fc-ferien-text: #a9d4ff;
    --fc-feiertag: #40250f;
    --fc-feiertag-text: #ffc896;
    --fc-heute: #9d83f2;
    --bs-primary: #9d83f2;
    --bs-primary-rgb: 157, 131, 242;
    --bs-link-color: #b8a5f7;
    --bs-link-color-rgb: 184, 165, 247;
    --bs-body-bg: var(--fc-hg);
    --bs-body-color: var(--fc-text);
}

html, body { overflow-x: clip; }

body {
    background: var(--fc-hg);
    color: var(--fc-text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

.btn-primary {
    --bs-btn-bg: var(--fc-primaer);
    --bs-btn-border-color: var(--fc-primaer);
    --bs-btn-hover-bg: var(--fc-primaer-dunkel);
    --bs-btn-hover-border-color: var(--fc-primaer-dunkel);
    --bs-btn-active-bg: var(--fc-primaer-dunkel);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #15131f; --bs-btn-hover-color: #15131f; }
.btn-outline-primary {
    --bs-btn-color: var(--fc-primaer);
    --bs-btn-border-color: var(--fc-primaer);
    --bs-btn-hover-bg: var(--fc-primaer);
    --bs-btn-hover-border-color: var(--fc-primaer);
}

/* ---------- Kopfleiste ---------- */
.fc-kopf {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: calc(.4rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .4rem max(1rem, env(safe-area-inset-left));
    background: var(--fc-flaeche);
    border-bottom: 1px solid var(--fc-rand);
}
.fc-logo img { display: block; height: 40px; width: auto; }
.fc-haushalt-wahl { max-width: 11rem; }
.fc-nav-breit { display: none; gap: .25rem; margin-left: 1rem; }
.fc-nav-breit a {
    padding: .45rem .8rem;
    border-radius: .6rem;
    color: var(--fc-text);
    text-decoration: none;
    font-weight: 600;
}
.fc-nav-breit a:hover { background: var(--fc-flaeche-2); }
.fc-nav-breit a.aktiv { background: var(--fc-flaeche-2); color: var(--fc-primaer); }
.fc-mein { margin-left: auto; }
.fc-mein-knopf {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    background: none;
    color: var(--fc-text);
    font-weight: 600;
    padding: .2rem;
    border-radius: 999px;
}
.fc-mein-menue { min-width: 16rem; }
.fc-mein-kopf { padding: .35rem 1rem .25rem; display: flex; flex-direction: column; }
.fc-mein-kopf small { color: var(--fc-text-leise); }
.fc-nur-breit { display: none; }
.fc-version {
    padding: .35rem 1rem .15rem;
    font-size: .75rem;
    color: var(--fc-text-leise);
    text-align: right;
    user-select: all;
}
.fc-installieren-zeile[hidden] { display: none; }

/* Hell/Dunkel-Umschalter im Menü */
.fc-design-wahl { padding: .25rem 1rem .4rem; }
.fc-design-titel { font-size: .8rem; color: var(--fc-text-leise); margin-bottom: .3rem; }
.fc-design-knoepfe { display: flex; gap: .3rem; }
.fc-design-knoepfe button {
    flex: 1;
    border: 1px solid var(--fc-rand);
    background: var(--fc-flaeche);
    color: var(--fc-text);
    border-radius: .5rem;
    padding: .3rem .2rem;
    font-size: .85rem;
}
.fc-design-knoepfe button[aria-pressed="true"] {
    background: var(--fc-primaer);
    border-color: var(--fc-primaer);
    color: #fff;
}
[data-bs-theme="dark"] .fc-design-knoepfe button[aria-pressed="true"] { color: #15131f; }

/* Initialen-Kreis */
.fc-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--fc-avatar-groesse, 26px);
    height: var(--fc-avatar-groesse, 26px);
    border-radius: 50%;
    background: var(--fc-avatar-farbe, #5A6B7A);
    vertical-align: middle;
}
.fc-avatar::before {
    content: attr(data-initialen);
    color: #fff;
    font-size: var(--fc-avatar-schrift, 12px);
    font-weight: 700;
    line-height: 1;
}

/* ---------- Inhalt ---------- */
.fc-inhalt {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem max(1rem, env(safe-area-inset-left)) 1.5rem;
}
.fc-mit-leiste .fc-inhalt { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.fc-meldung { margin-bottom: 1rem; }

.fc-seitenkopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
}
.fc-seitenkopf h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }

.fc-karte {
    background: var(--fc-flaeche);
    border: 1px solid var(--fc-rand);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.fc-karte h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.fc-hinweis { color: var(--fc-text-leise); font-size: .9rem; }
.fc-leer { color: var(--fc-text-leise); font-style: italic; margin: 0; }

.form-label { font-weight: 600; }
.fc-formular { max-width: 40rem; }
.fc-knopfzeile { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* Anmelden / Einladung */
.fc-anmelde-karte { max-width: 26rem; margin: 2rem auto; }
.fc-anmelde-karte .fc-symbol { display: block; width: 96px; height: 96px; margin: 0 auto 1rem; }

/* Farbauswahl (Personen) */
.fc-farben { display: flex; flex-wrap: wrap; gap: .5rem; }
.fc-farben input { position: absolute; opacity: 0; pointer-events: none; }
.fc-farben label {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--farbe);
    cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 0 0 1px var(--fc-rand);
}
.fc-farben input:checked + label { border-color: var(--fc-flaeche); box-shadow: 0 0 0 3px var(--fc-text); }
.fc-farben input:focus-visible + label { outline: 3px solid var(--fc-akzent); outline-offset: 2px; }

/* Personen-Auswahl im Termin (Chips) */
.fc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.fc-chips label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem .3rem .3rem;
    border-radius: 999px;
    border: 2px solid var(--fc-rand);
    background: var(--fc-flaeche);
    cursor: pointer;
    font-weight: 600;
}
.fc-chips input:checked + label { border-color: var(--farbe); background: color-mix(in srgb, var(--farbe) 16%, var(--fc-flaeche)); }
.fc-chips input:focus-visible + label { outline: 3px solid var(--fc-akzent); outline-offset: 2px; }
.fc-chips input:disabled + label { opacity: .45; cursor: not-allowed; }

/* ---------- Personenliste ---------- */
.fc-personen { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fc-person {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border: 1px solid var(--fc-rand);
    border-radius: .8rem;
    background: var(--fc-flaeche);
}
.fc-person-name { font-weight: 700; }
.fc-person-info { color: var(--fc-text-leise); font-size: .85rem; }
.fc-person-aktion { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.fc-abzeichen {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--fc-flaeche-2);
    color: var(--fc-text-leise);
}

/* ---------- Kalender (Monat) ---------- */
.fc-kal-steuerung { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fc-kal-steuerung h1 { min-width: 11rem; text-align: center; }
.fc-kal-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.fc-kal-filter a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .7rem .2rem .25rem;
    border-radius: 999px;
    border: 2px solid var(--fc-rand);
    background: var(--fc-flaeche);
    color: var(--fc-text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}
.fc-kal-filter a.aktiv { border-color: var(--fc-primaer); }
.fc-kal-filter a.alle { padding-left: .7rem; }

.fc-monat {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--fc-rand);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--fc-rand);
    gap: 1px;
}
.fc-monat-kopf {
    background: var(--fc-flaeche-2);
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem 0;
    color: var(--fc-text-leise);
}
.fc-tag {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 5.5rem;
    padding: .25rem;
    background: var(--fc-flaeche);
    color: var(--fc-text);
    text-decoration: none;
    overflow: hidden;
}
.fc-tag:hover { background: var(--fc-flaeche-2); }
.fc-tag.fremd { opacity: .45; }
.fc-tag.ferien { background: var(--fc-ferien); }
.fc-tag.feiertag { background: var(--fc-feiertag); }
.fc-tag.gewaehlt { box-shadow: inset 0 0 0 2px var(--fc-primaer); }
.fc-tag-nr { font-size: .85rem; font-weight: 700; line-height: 1.6; }
.fc-tag.heute .fc-tag-nr {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--fc-heute);
    color: #fff;
}
[data-bs-theme="dark"] .fc-tag.heute .fc-tag-nr { color: #15131f; }
.fc-tag-eintrag {
    display: block;
    font-size: .72rem;
    line-height: 1.25;
    padding: 1px 4px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--farbe, #5A6B7A) 22%, var(--fc-flaeche));
    border-left: 3px solid var(--farbe, #5A6B7A);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-tag-eintrag.info { background: none; border-left: 0; padding-left: 0; color: var(--fc-text-leise); font-style: italic; }
.fc-tag-mehr { font-size: .7rem; color: var(--fc-text-leise); }

/* Handy: nur Punkte statt Text im Monat */
@media (max-width: 639.98px) {
    .fc-tag { min-height: 3.4rem; align-items: center; }
    .fc-tag-eintrag, .fc-tag-mehr { display: none; }
    .fc-tag-punkte { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
}
@media (min-width: 640px) { .fc-tag-punkte { display: none; } }
.fc-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--farbe, #5A6B7A); }

/* Tagesliste (unter dem Monat und auf "Heute") */
.fc-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fc-eintrag {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .75rem;
    border-radius: .8rem;
    background: var(--fc-flaeche);
    border: 1px solid var(--fc-rand);
    border-left: 6px solid var(--farbe, #5A6B7A);
    color: var(--fc-text);
    text-decoration: none;
}
a.fc-eintrag:hover { background: var(--fc-flaeche-2); }
.fc-eintrag-zeit { min-width: 3.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-eintrag-titel { font-weight: 700; }
.fc-eintrag-info { color: var(--fc-text-leise); font-size: .85rem; }
.fc-eintrag.ferien { --farbe: var(--fc-ferien-text); }
.fc-eintrag.feiertag { --farbe: var(--fc-feiertag-text); }
.fc-farbstreifen { display: inline-flex; gap: 2px; }
.fc-tag-ueberschrift { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }

/* ---------- Leiste unten (Handy) ---------- */
.fc-leiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom));
    background: var(--fc-flaeche);
    border-top: 1px solid var(--fc-rand);
}
.fc-leiste a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: .2rem 0;
    font-size: .72rem;
    font-weight: 600;
    color: var(--fc-text-leise);
    text-decoration: none;
}
.fc-leiste a.aktiv { color: var(--fc-primaer); }
.fc-leiste-symbol { font-size: 1.25rem; line-height: 1.2; }
.fc-leiste a.fc-leiste-plus {
    flex: none;
    width: 3.2rem;
    height: 3.2rem;
    margin-top: -1.4rem;
    border-radius: 50%;
    background: var(--fc-primaer);
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(108, 75, 216, .4);
}
[data-bs-theme="dark"] .fc-leiste a.fc-leiste-plus { color: #15131f; }

@media (min-width: 900px) {
    .fc-nav-breit { display: flex; }
    .fc-nur-breit { display: inline; }
    .fc-leiste { display: none; }
    .fc-mit-leiste .fc-inhalt { padding-bottom: 2rem; }
}

/* ---------- Dialoge, Meldungen ---------- */
.fc-dialog {
    border: 1px solid var(--fc-rand);
    border-radius: 1rem;
    background: var(--fc-flaeche);
    color: var(--fc-text);
    max-width: min(26rem, calc(100vw - 2rem));
    padding: 1.25rem;
}
.fc-dialog::backdrop { background: rgba(10, 8, 20, .5); }
.fc-dialog h2 { font-size: 1.15rem; font-weight: 700; }

.fc-toast {
    position: fixed;
    left: 50%;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1100;
    max-width: calc(100vw - 2rem);
    padding: .6rem 1rem;
    border-radius: .8rem;
    background: var(--fc-text);
    color: var(--fc-hg);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.fc-toast-warnung { background: #b3261e; color: #fff; }

/* Startseite "Heute" */
.fc-heute-raster { display: grid; gap: 1rem; }
@media (min-width: 900px) { .fc-heute-raster { grid-template-columns: 2fr 1fr; } }
.fc-begruessung { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }

/* Hilfe */
.fc-hilfe details { border: 1px solid var(--fc-rand); border-radius: .8rem; background: var(--fc-flaeche); margin-bottom: .5rem; }
.fc-hilfe summary { padding: .7rem 1rem; font-weight: 700; cursor: pointer; }
.fc-hilfe details > div { padding: 0 1rem .8rem; }

/* ---------- Dashboard "Heute" ---------- */
.fc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 1.25rem;
    color: #fff;
    background: linear-gradient(120deg, #6C4BD8 0%, #3D7BFF 55%, #1FA2A8 100%);
}
[data-bs-theme="dark"] .fc-hero { background: linear-gradient(120deg, #4b3399 0%, #2a56b8 55%, #15737a 100%); }
.fc-hero-datum { margin: 0; opacity: .85; font-weight: 600; font-size: .9rem; }
.fc-hero-titel { margin: .15rem 0 .25rem; font-size: 1.6rem; font-weight: 800; }
.fc-hero-text { margin: 0; opacity: .95; }
.fc-hero-bild { flex: none; width: 84px; height: 84px; border-radius: 1.1rem; background: #fff; padding: 6px; }
@media (max-width: 420px) { .fc-hero-bild { width: 60px; height: 60px; } .fc-hero-titel { font-size: 1.35rem; } }

.fc-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.fc-kachel {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .9rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--kachel-text);
    background: var(--kachel-hg);
    min-height: 6rem;
}
a.fc-kachel:hover { filter: brightness(.97); }
.fc-kachel-zahl { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.fc-kachel-text { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.fc-kachel-lila { --kachel-hg: #efe9ff; --kachel-text: #4b2fb0; }
.fc-kachel-blau { --kachel-hg: #e3eeff; --kachel-text: #1f4fb8; }
.fc-kachel-gruen { --kachel-hg: #ddf6ea; --kachel-text: #146b43; }
.fc-kachel-orange { --kachel-hg: #fff0d9; --kachel-text: #8a4b00; }
.fc-kachel-pink { --kachel-hg: #ffe4f0; --kachel-text: #a3195b; }
[data-bs-theme="dark"] .fc-kachel-lila { --kachel-hg: #2c2450; --kachel-text: #cbbcff; }
[data-bs-theme="dark"] .fc-kachel-blau { --kachel-hg: #1b2b4d; --kachel-text: #a9c6ff; }
[data-bs-theme="dark"] .fc-kachel-gruen { --kachel-hg: #133628; --kachel-text: #8fe0b8; }
[data-bs-theme="dark"] .fc-kachel-orange { --kachel-hg: #3d2a10; --kachel-text: #ffcf8a; }
[data-bs-theme="dark"] .fc-kachel-pink { --kachel-hg: #3f1a2c; --kachel-text: #ffadd1; }

/* Wer macht heute was */
.fc-wer { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fc-wer-zeile {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .6rem;
    border-radius: .9rem;
    background: color-mix(in srgb, var(--farbe) 9%, var(--fc-flaeche));
    border: 1px solid color-mix(in srgb, var(--farbe) 30%, var(--fc-rand));
}
.fc-wer-person { display: flex; align-items: center; gap: .5rem; min-width: 6.5rem; font-weight: 700; color: var(--fc-text); text-decoration: none; }
.fc-wer-termine { display: flex; flex-wrap: wrap; gap: .35rem; }
.fc-wer-termin {
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--fc-flaeche);
    border: 1px solid color-mix(in srgb, var(--farbe) 45%, var(--fc-rand));
    color: var(--fc-text);
    text-decoration: none;
    font-size: .88rem;
}
.fc-wer-termin strong { color: color-mix(in srgb, var(--farbe) 70%, var(--fc-text)); margin-right: .2rem; }
.fc-wer-frei { color: var(--fc-text-leise); font-style: italic; font-size: .9rem; }

/* Startseite ohne Anmeldung */
.fc-willkommen { max-width: 32rem; margin: 2rem auto; text-align: center; }
.fc-willkommen-bild { width: 140px; height: 140px; border-radius: 2rem; background: #fff; padding: 8px; box-shadow: 0 8px 28px rgba(108, 75, 216, .18); }
.fc-willkommen h1 { font-size: 2rem; font-weight: 800; margin: 1rem 0 .25rem; background: linear-gradient(90deg, #9B5DE5, #3D7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-willkommen-text { color: var(--fc-text-leise); font-size: 1.05rem; }
.fc-willkommen-karte { text-align: left; margin-top: 1.5rem; }
.fc-willkommen-anmelden { margin-top: 2rem; font-size: .85rem; }
.fc-willkommen-anmelden a { color: var(--fc-text-leise); }

/* ---------- Schule ---------- */
.fc-reiter { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--fc-rand); overflow-x: auto; }
.fc-reiter a {
    padding: .5rem .9rem;
    font-weight: 600;
    color: var(--fc-text-leise);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.fc-reiter a.aktiv { color: var(--fc-primaer); border-bottom-color: var(--fc-primaer); }
.fc-woche-text { font-weight: 600; font-size: .9rem; min-width: 8.5rem; text-align: center; }

.fc-stundenplan-huelle { overflow-x: auto; }
.fc-stundenplan { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.fc-stundenplan th { font-size: .8rem; font-weight: 700; color: var(--fc-text-leise); text-align: center; padding: .15rem; }
.fc-stundenplan thead th small, .fc-stundenplan tbody th small { display: block; font-weight: 400; font-size: .7rem; }
.fc-stundenplan thead th.heute { color: var(--fc-primaer); }
.fc-stundenplan tbody th { width: 3rem; }
.fc-stundenplan td { padding: 0; height: 3rem; }
.fc-stundenplan td.frei { background: var(--fc-ferien); color: var(--fc-ferien-text); font-size: .7rem; text-align: center; vertical-align: top; border-radius: .4rem; padding-top: .3rem; }
.fc-stunde-nr { font-weight: 800; color: var(--fc-text); }
.fc-zelle {
    width: 100%;
    height: 100%;
    min-height: 3rem;
    border: 0;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--farbe) 20%, var(--fc-flaeche));
    border-left: 4px solid var(--farbe);
    color: var(--fc-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: .15rem;
    position: relative;
}
.fc-zelle:hover { background: color-mix(in srgb, var(--farbe) 32%, var(--fc-flaeche)); }
.fc-zelle strong { font-size: .95rem; }
.fc-zelle small { font-size: .65rem; color: var(--fc-text-leise); }
.fc-zelle.pruefung { box-shadow: inset 0 0 0 2px #d6336c; }
.fc-zelle-marke { font-size: .62rem; font-weight: 800; color: #fff; background: #d6336c; border-radius: 999px; padding: 0 .35rem; }

.fc-plan-bearbeiten td { padding: .2rem; vertical-align: top; background: color-mix(in srgb, var(--farbe, transparent) 22%, transparent); border-radius: .4rem; min-width: 4.5rem; }
.fc-plan-bearbeiten td input { margin-top: .2rem; font-size: .75rem; }
.fc-plan-bearbeiten { min-width: 32rem; }

.fc-fortschritt { display: block; height: 6px; background: var(--fc-flaeche-2); border-radius: 999px; margin-top: .35rem; overflow: hidden; }
.fc-fortschritt span { display: block; height: 100%; background: #2EC27E; }
.fc-lernen-heute { margin: .35rem 0 0 4.4rem; }

.fc-checkliste { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .4rem; }
.fc-checkliste li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    border-radius: .7rem;
    background: var(--fc-flaeche);
    border: 1px solid var(--fc-rand);
    border-left: 5px solid var(--farbe, var(--fc-rand));
}
.fc-checkliste li.erledigt { opacity: .6; }
.fc-checkliste li.erledigt > div:first-of-type { text-decoration: line-through; }
.fc-haken {
    width: 1.8rem;
    height: 1.8rem;
    flex: none;
    border-radius: .5rem;
    border: 2px solid var(--fc-primaer);
    background: var(--fc-flaeche);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}
.fc-checkliste li.erledigt .fc-haken { background: #2EC27E; border-color: #2EC27E; }
.fc-hue-neu, .fc-note-neu { display: grid; grid-template-columns: 7rem 1fr 9.5rem auto; gap: .4rem; }
.fc-note-neu { grid-template-columns: 1fr; }
@media (max-width: 639.98px) { .fc-hue-neu { grid-template-columns: 1fr 1fr; } .fc-hue-neu input[name=aufgabe] { grid-column: 1 / -1; order: -1; } }

.fc-note-gross { font-size: 1.6rem; font-weight: 800; color: var(--fc-primaer); }
.fc-lehrer { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fc-lehrer li { border-left: 4px solid var(--farbe); padding-left: .6rem; }

.fc-faecher { display: grid; gap: .4rem; margin-bottom: .5rem; }
.fc-fach { border: 1px solid var(--fc-rand); border-left: 6px solid var(--farbe, var(--fc-rand)); border-radius: .7rem; padding: .5rem .75rem; background: var(--fc-flaeche); }
.fc-fach summary { font-weight: 600; cursor: pointer; }
.fc-fach-neu { border-style: dashed; border-left-width: 1px; }
.fc-fach-kuerzel { display: inline-block; min-width: 2.2rem; padding: 0 .35rem; border-radius: .35rem; background: var(--farbe, var(--fc-flaeche-2)); color: #fff; font-weight: 800; text-align: center; font-size: .85rem; }

.fc-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .35rem .75rem; }
.fc-raster-zeile { display: grid; grid-template-columns: 2rem 1fr auto 1fr; align-items: center; gap: .35rem; }
.fc-nullte { opacity: .75; }

.fc-noten-wahl { display: flex; gap: .3rem; flex-wrap: wrap; }
.fc-noten-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.fc-noten-wahl label {
    min-width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: .6rem;
    border: 2px solid var(--fc-rand);
    font-weight: 800;
    cursor: pointer;
    background: var(--fc-flaeche);
}
.fc-noten-wahl input:checked + label { border-color: var(--fc-primaer); background: var(--fc-primaer); color: #fff; }
.fc-noten-wahl input:focus-visible + label { outline: 3px solid var(--fc-akzent); outline-offset: 2px; }

.fc-noten-fach { border-left: 6px solid var(--farbe); }
.fc-verlauf { width: 100%; max-width: 22rem; height: 4.5rem; margin: .5rem 0; display: block; }
.fc-verlauf-raster { stroke: var(--fc-rand); stroke-width: 1; }
.fc-verlauf-linie { fill: none; stroke: var(--farbe); stroke-width: 3; stroke-linejoin: round; }
.fc-verlauf-punkt { fill: var(--fc-flaeche); stroke: var(--farbe); stroke-width: 2.5; }
.fc-notenliste { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; }
.fc-notenliste li { display: flex; align-items: center; gap: .6rem; }
.fc-note-wert { width: 2rem; height: 2rem; flex: none; border-radius: .5rem; display: grid; place-items: center; font-weight: 800; color: #fff; }
.fc-note-wert.note-1 { background: #2EC27E; } .fc-note-wert.note-2 { background: #6A994E; } .fc-note-wert.note-3 { background: #FFB020; }
.fc-note-wert.note-4 { background: #E85D04; } .fc-note-wert.note-5 { background: #d6336c; } .fc-note-wert.mitarbeit { background: #5A6B7A; }

.fc-schule-heute { display: grid; gap: .4rem; margin-bottom: .75rem; }
.fc-schule-heute:last-child { margin-bottom: 0; }
