/* ========== Farben & Grundwerte ========== */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #6b7489;
  --border: #e3e7f0;
  --primary: #3b5bdb;
  --primary-soft: #e7ecff;
  --on-primary: #ffffff;
  --green: #2f9e44;
  --green-soft: #e6f6ea;
  --orange: #e8590c;
  --orange-soft: #fff0e6;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(28, 34, 51, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141c;
    --surface: #1a1f2b;
    --text: #e8ebf2;
    --muted: #8f97aa;
    --border: #2a3142;
    --primary: #5c7cfa;
    --primary-soft: #222b4a;
    --green: #51cf66;
    --green-soft: #1d3324;
    --orange: #ff922b;
    --orange-soft: #3a2a1c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #11141c;
    --surface: #1a1f2b;
    --text: #e8ebf2;
    --muted: #8f97aa;
    --border: #2a3142;
    --primary: #5c7cfa;
    --primary-soft: #222b4a;
    --green: #51cf66;
    --green-soft: #1d3324;
    --orange: #ff922b;
    --orange-soft: #3a2a1c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

/* ========== Farbthemen (Einstellungen → Farbe) ==========
   Standard ist Blau. Die anderen Farben ersetzen nur die Hauptfarbe. */
:root[data-accent="gruen"] { --primary: #0f6e56; --primary-soft: #d8efe6; --on-primary: #ffffff; }
:root[data-accent="lila"] { --primary: #7048e8; --primary-soft: #efe9ff; --on-primary: #ffffff; }
:root[data-accent="pink"] { --primary: #c2255c; --primary-soft: #fde8ef; --on-primary: #ffffff; }
:root[data-accent="orange"] { --primary: #c2410c; --primary-soft: #fff0e6; --on-primary: #ffffff; }
:root[data-accent="graphit"] { --primary: #343a40; --primary-soft: #e9ecef; --on-primary: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="gruen"] { --primary: #3ccf9a; --primary-soft: #12352a; --on-primary: #06140f; }
  :root:not([data-theme="light"])[data-accent="lila"] { --primary: #9775fa; --primary-soft: #2a2148; --on-primary: #160f2e; }
  :root:not([data-theme="light"])[data-accent="pink"] { --primary: #f06595; --primary-soft: #3d1a28; --on-primary: #2b0a17; }
  :root:not([data-theme="light"])[data-accent="orange"] { --primary: #ff8a4c; --primary-soft: #3a2416; --on-primary: #2a1206; }
  :root:not([data-theme="light"])[data-accent="graphit"] { --primary: #ced4da; --primary-soft: #2b3036; --on-primary: #11141c; }
}
:root[data-theme="dark"][data-accent="gruen"] { --primary: #3ccf9a; --primary-soft: #12352a; --on-primary: #06140f; }
:root[data-theme="dark"][data-accent="lila"] { --primary: #9775fa; --primary-soft: #2a2148; --on-primary: #160f2e; }
:root[data-theme="dark"][data-accent="pink"] { --primary: #f06595; --primary-soft: #3d1a28; --on-primary: #2b0a17; }
:root[data-theme="dark"][data-accent="orange"] { --primary: #ff8a4c; --primary-soft: #3a2416; --on-primary: #2a1206; }
:root[data-theme="dark"][data-accent="graphit"] { --primary: #ced4da; --primary-soft: #2b3036; --on-primary: #11141c; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; font-weight: 500; }
.hidden { display: none !important; }

/* ========== Buttons & Inputs ========== */
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--primary-soft); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--border); }
.btn-block { width: 100%; margin-top: 20px; }

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; margin-bottom: 12px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 16px 0 6px; }

/* ========== Login ========== */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-soft), var(--bg) 60%);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card form { text-align: left; margin-top: 8px; }
.logo { font-size: 3rem; margin-bottom: 8px; }
.error { color: #e03131; font-size: 0.9rem; margin-top: 10px; }
.hint { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* Registrieren & Laden */
.reg-type { margin: 6px 0 12px; }
.switch-auth { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.code-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.3rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row > div { min-width: 0; }
.name-preview { margin-top: 8px; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 5; }
.boot .spinner { width: 32px; height: 32px; flex-basis: 32px; }

/* ========== Kopfzeile ========== */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo-sm { font-size: 1.4rem; }
.tab {
  border: none; background: transparent; font: inherit; font-weight: 600;
  color: var(--muted); padding: 9px 16px; border-radius: 10px; cursor: pointer;
}
.tab:hover { background: var(--bg); }
.tab.active { background: var(--primary-soft); color: var(--primary); }
.user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-transform: uppercase;
}

/* ========== Inhalt ========== */
.content { max-width: 1100px; margin: 0 auto; padding: 28px 24px 100px; }
.page { display: none; animation: fade .25s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.badge { padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.badge-warn { background: var(--orange-soft); color: var(--orange); }

/* ========== Essensplan ========== */
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.day-chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 14px; padding: 8px 14px; font: inherit; cursor: pointer;
  text-align: center; color: var(--text);
}
.day-chip b { display: block; font-size: 0.95rem; }
.day-chip span { font-size: 0.78rem; color: var(--muted); }
.day-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.day-chip.active span { color: inherit; opacity: .8; }
.day-chip.today:not(.active) { border-color: var(--primary); }

.meal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.meal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.meal-type { font-weight: 700; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; }
.meal-time { font-size: 0.8rem; color: var(--muted); }
.meal-icon { font-size: 2rem; margin-bottom: 8px; }
.meal-main { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.meal-list { list-style: none; color: var(--muted); font-size: 0.92rem; }
.meal-list li::before { content: "• "; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); }

/* Aufklappbare Mahlzeit */
details.meal { padding: 0; }
details.meal > summary { list-style: none; cursor: pointer; padding: 20px; border-radius: var(--radius); }
details.meal > summary::-webkit-details-marker { display: none; }
details.meal > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.meal-toggle {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600; color: var(--primary);
}
.chev { transition: transform .2s; }
details[open] .chev { transform: rotate(180deg); }
.nutri { padding: 0 20px 20px; display: grid; gap: 12px; }
.kcal { font-size: 0.95rem; color: var(--muted); }
.kcal b { font-size: 1.6rem; color: var(--text); font-variant-numeric: tabular-nums; }
.macro-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--border); }
.macro-bar span { display: block; height: 100%; }
.protein { background: var(--green); }
.carb { background: var(--primary); }
.fat { background: var(--orange); }
.sugar { background: transparent; border: 2px solid var(--primary); }
.nutri-list { display: grid; gap: 6px; }
.nutri-list div { display: flex; justify-content: space-between; align-items: center; }
.nutri-list dt { display: flex; align-items: center; gap: 8px; }
.nutri-list dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.nutri-list .sub { padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-sizing: border-box; }
.nutri .small { margin: 0; }

/* Vegetarische Option & Teller */
.veg-option {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--green-soft);
}
.veg-label { font-size: 0.78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.veg-main { font-weight: 600; }
.plates { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; }
.stepper b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.step {
  width: 36px; height: 36px; border: none; border-radius: 9px;
  background: var(--surface); color: var(--primary); font: inherit; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow);
}
.step:disabled { opacity: .4; cursor: not-allowed; }

/* ========== Bus ========== */
.card-list { display: grid; gap: 12px; }
.bus {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
}
.bus-date {
  flex: 0 0 64px; text-align: center; background: var(--primary-soft);
  color: var(--primary); border-radius: 12px; padding: 8px 4px;
}
.bus-date b { display: block; font-size: 1.3rem; line-height: 1.1; }
.bus-date span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.bus-info { flex: 1; min-width: 0; }
.bus-route { font-weight: 700; }
.bus-meta { color: var(--muted); font-size: 0.88rem; }
.bus .btn.joined { background: var(--green-soft); color: var(--green); }

/* ========== Wochenende ========== */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px; cursor: pointer;
  font: inherit; color: var(--text); transition: border-color .2s, transform .1s;
}
.choice:hover { border-color: var(--primary); }
.choice:active { transform: scale(0.98); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); }
.choice-icon { font-size: 2.2rem; }
.choice-title { font-weight: 700; }
.choice-sub { font-size: 0.85rem; color: var(--muted); text-align: center; }


.info-box {
  background: var(--primary-soft); color: var(--text);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.92rem;
}
.choice .check {
  margin-left: auto; flex: 0 0 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border); display: grid; place-items: center;
  color: var(--on-primary); font-size: 0.85rem; font-weight: 800;
}
.choice.selected .check { background: var(--primary); border-color: var(--primary); }
.choice.selected .check::after { content: "✓"; }

.onboarding-card { text-align: left; }
.onboarding-card .logo, .onboarding-card h1 { text-align: center; }
.onboarding-card > .muted { text-align: center; margin: 6px 0 18px; }
.pref-form .choice-grid { margin-bottom: 4px; }
.pref-form label { margin-top: 12px; }
.seg { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; }
.seg-btn {
  flex: 1; border: none; background: transparent; font: inherit; font-weight: 600;
  color: var(--muted); padding: 10px; border-radius: 9px; cursor: pointer;
}
.seg-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
#settings-form { margin-bottom: 14px; }
.profile-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--primary-soft); color: var(--primary);
  border: 1.5px solid transparent; border-radius: 999px; padding: 3px 10px 3px 3px;
  font: inherit; font-weight: 700; font-size: 0.9rem;
  transition: border-color .15s, transform .1s;
}
.profile-btn:hover { border-color: var(--primary); }
.profile-btn:active { transform: scale(0.96); }
.profile-btn .avatar { width: 30px; height: 30px; font-size: 0.9rem; }
.profile-chev { margin-left: -2px; }
.field-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.link { border: none; background: none; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; }
.bus-route .tag { margin-left: 4px; vertical-align: middle; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field-label { margin: 4px 0 8px; }
.field-label + .swatches, .theme-hint + .field-label { margin-top: 18px; }
.theme-hint { margin-top: 8px; }
#theme-seg .seg-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.86rem; padding: 8px 4px; }
#theme-seg .seg-btn span { font-size: 1.1rem; line-height: 1.2; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.icon-btn svg { display: block; }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.85rem; font-weight: 600;
}
.swatch i { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(127,127,127,.35); display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; }
.swatch.active { border-color: var(--primary); }
.swatch.active i::after { content: "✓"; }

/* Admin-Code einlösen & Admin-Codes */
.admin-redeem { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); text-align: left; }
.admin-redeem > .link { display: block; margin: 0 auto; }
.code-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.badge-admin-account { display: inline-block; margin-top: 8px; background: var(--primary); color: var(--on-primary); }
#admin-code-create { margin-top: 12px; }
.code-lists { margin-top: 16px; }
.code-group + .code-group { margin-top: 16px; }
.code-list { list-style: none; display: grid; gap: 6px; }
.code-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bg); }
.code-list code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.98rem; font-weight: 700; letter-spacing: .04em; user-select: all; }
.code-list code.used { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.code-list li > span { color: var(--muted); font-size: 0.88rem; text-align: right; min-width: 0; }

/* Essensplan einfügen & leerer Plan */
.empty-plan { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px 18px; }
.empty-icon { font-size: 2.2rem; }
.paste-steps { margin: 8px 0 4px 18px; display: grid; gap: 2px; }
.paste-steps a, .card a { color: var(--primary); font-weight: 600; }
.plan-code { min-height: 90px; font: 0.8rem/1.4 ui-monospace, Menlo, Consolas, monospace; margin-bottom: 0; }
.week-switch { margin-bottom: 14px; }
#replace-hint { margin: 8px 0 0; }
.plan-week { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.paste-preview { margin: 12px 0 0; font-weight: 600; color: var(--green); }
.modal-box .error { margin: 12px 0 0; }
.modal-box .modal-actions { margin-top: 16px; }

/* Abzeichen im Profil & Besitzer-Rechte */
.account-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.account-badges .badge { margin-top: 0; }
.badge-meal { background: var(--green-soft); color: var(--green); }
.admin-rights { display: grid; gap: 8px; margin-top: 14px; }
.right-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin: 0; font-weight: 400; cursor: pointer; }
.right-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.right-name small { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.switch {
  appearance: none; -webkit-appearance: none; flex: 0 0 46px; width: 46px; height: 28px; margin: 0; padding: 0;
  border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .2s; border: none;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: not-allowed; }

/* Benachrichtigungen */
.push-list { list-style: none; display: grid; gap: 4px; margin: 0 0 12px; padding: 0; }
.push-status { margin: 0 0 12px; font-weight: 600; font-size: 0.92rem; }
.push-reminder {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start;
  background: var(--orange-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}
.push-reminder-icon { font-size: 1.4rem; line-height: 1.3; }
.push-reminder p { margin: 0; font-size: 0.92rem; font-weight: 500; }
.push-reminder-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* Bus: Fahrten, Abhaken, Busliste */
.choice-small { padding: 12px 14px; }
.trip-select .choice-grid { gap: 8px; }
.bus-people summary .here { color: var(--green); font-weight: 700; }
.people li .person-name { flex: 1; min-width: 0; }
.people li.is-here { background: var(--green-soft); }
.here-box { width: 24px; height: 24px; accent-color: var(--green); margin: 0; flex: 0 0 24px; cursor: pointer; }
.here-mark { color: var(--green); font-weight: 800; }
.checkin-btn { margin-top: 8px; }
.self-in { display: inline-block; color: var(--green); font-weight: 700; font-size: 0.78rem; }
.pdf-btn { grid-column: 1 / -1; justify-self: start; }
.keeper-card p { margin: 0 0 6px; }
.keeper-row { display: flex; gap: 8px; }
.keeper-row select { flex: 1; min-width: 0; }
.people li.empty { background: none; padding-left: 0; }
.keep-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 500; cursor: pointer; }
.keep-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }

/* Startseite */
.home-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); font: inherit; color: var(--text);
}
button.home-card { cursor: pointer; }
button.home-card:active { transform: scale(0.99); }
.home-meal { background: var(--primary-soft); border-color: transparent; }
.home-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.home-meal .home-label { color: var(--primary); }
.home-when { font-weight: 600; font-size: 0.92rem; }
.home-main { font-size: 1.35rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.home-extra { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 0.9rem; }
.home-more { margin-top: 6px; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.ferien-count { display: flex; align-items: baseline; gap: 8px; }
.ferien-count b { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ferien-count span { font-weight: 700; color: var(--muted); }
.home-sub { color: var(--muted); font-size: 0.9rem; }
.todo-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.todo {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg); border: none; border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--text);
}
.todo-icon { font-size: 1.3rem; flex: 0 0 auto; }
.todo-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.todo-text small { color: var(--muted); font-size: 0.82rem; }
.todo-state { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.todo.done .todo-state { background: var(--green-soft); color: var(--green); }
.todo.open { background: var(--orange-soft); }
.todo.open .todo-state { background: var(--orange); color: #fff; }

/* Einstellung: automatische Bus-Anmeldung */
.auto-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); margin: 0; cursor: pointer; font-weight: 400; }
.auto-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.auto-text small { color: var(--muted); font-size: 0.84rem; }
.trip-select { margin-top: 4px; }

/* Wochenende: Art des Wochenendes */
.weekend-type { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; font-size: 0.95rem; }
.weekend-type.hier { background: var(--green-soft); color: var(--green); }
.weekend-type.international { background: var(--primary-soft); color: var(--primary); }
.weekend-type.ferien { background: var(--orange-soft); color: var(--orange); }
#weekend-closed { margin: -4px 0 14px; }

/* Eigener Status */
.badge-ok-account { background: var(--green-soft); color: var(--green); }
.badge-student { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/* Führung durch die App */
.tour { position: fixed; inset: 0; z-index: 80; }
.tour-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 14, 25, 0.62), 0 0 0 3px var(--primary);
  transition: all .25s ease;
}
.tour-card {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 398px;
  background: var(--surface); color: var(--text); border-radius: 16px; padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); display: grid; gap: 6px;
}
.tour-card p { margin: 0; }
.tour-step { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.tour-card b { font-size: 1.1rem; }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* Admin: neue Anmeldungen */
.badge-admin { background: var(--primary-soft); color: var(--primary); font-size: 0.72rem; vertical-align: middle; margin-left: 6px; }
.account-tabs { margin-top: 12px; }
.account-tabs .seg-btn { font-size: 0.82rem; padding: 9px 2px; white-space: nowrap; }
.account-tabs .count { margin-left: 4px; font-size: 0.75rem; padding: 1px 7px; }
.account-search { margin-top: 10px; padding: 10px 12px; }
.pending-list { display: grid; gap: 10px; margin-top: 14px; }
.pending-item { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); }
.pending-who { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.pending-who > div { display: flex; flex-direction: column; min-width: 0; }
.pending-who small { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.pending-who small.ok { color: var(--green); font-weight: 600; }
.pending-who small.warn { color: var(--orange); font-weight: 600; }
.pending-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-small { padding: 7px 14px; font-size: 0.88rem; }
.btn-tight { margin-top: 10px; }

/* ========== Personenlisten ========== */
.bus-people { width: 100%; border-top: 1px solid var(--border); padding-top: 10px; }
.bus-people summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.bus-people .people { margin-top: 10px; }
.people-group + .people-group { margin-top: 16px; }
.people-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }
.count { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; }
.people { list-style: none; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.people li.me { background: var(--primary-soft); font-weight: 700; }
.people small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.mini-avatar {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  background: var(--surface); color: var(--primary); border: 1px solid var(--border); text-transform: uppercase;
}

/* ========== Zum Startbildschirm hinzufügen ========== */
.install {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 24px); max-width: 406px;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  animation: install-in .3s ease;
}
@keyframes install-in { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install { animation: none; } }
body.has-install .login-screen { padding-bottom: 260px; align-items: start; }
body.has-install .content { padding-bottom: 300px; }
.install-icon { width: 48px; height: 48px; border-radius: 12px; }
.install-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.install-text > span { color: var(--muted); font-size: 0.9rem; }
.install-steps { margin: 6px 0 0 18px; font-size: 0.9rem; color: var(--muted); display: grid; gap: 2px; }
.install-steps b { color: var(--text); }
.ios-share { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.install-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* ========== Modal & Toast ========== */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 14, 25, 0.5);
  display: grid; place-items: center; padding: 16px;
}
.modal-box { background: var(--surface); border-radius: 20px; padding: 24px; width: 100%; max-width: 420px; }
/* Das echte Auswahlfeld liegt unsichtbar über dem ganzen Kästchen,
   damit man auf dem Handy direkt darauf tippt */
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px;
  border: 3px solid var(--primary-soft); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
#upload-error { margin: 0 0 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 60;
}

/* ========== Immer Handy-Layout ========== */
/* Die App ist immer so breit wie ein Handy – auch am PC (dann mittig). */
html { background: var(--border); }
body { max-width: 430px; margin: 0 auto; min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,.12); }
.login-screen { min-height: 100vh; }

.topbar { padding: 12px 16px; }
.content { padding: 20px 16px 100px; }
.page-head h2 { font-size: 1.35rem; }
.meal-grid, .choice-grid { grid-template-columns: 1fr; }
.choice { flex-direction: row; justify-content: flex-start; padding: 16px; gap: 14px; text-align: left; }
.choice-icon { font-size: 1.9rem; }
.choice-text { display: flex; flex-direction: column; }
.choice-sub { text-align: left; }
.bus { flex-wrap: wrap; }
.bus .btn { width: 100%; }

.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 10;
  background: var(--surface); border-top: 1px solid var(--border);
  justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav .tab {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.75rem; padding: 6px 14px; flex: 1;
}
.bottom-nav .tab span { font-size: 1.3rem; }

/* ========== Schul Portal: Externe, Klasse, Vertretungsplan ========== */
body.is-extern .intern-only { display: none !important; }
.bottom-nav .tab { min-width: 0; font-size: 0.72rem; }

.class-grid { display: grid; gap: 6px; margin: 14px 0 16px; }
.class-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.class-row:last-child { grid-template-columns: repeat(2, 1fr); }
.class-btn {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 12px; padding: 10px 0; font: inherit; font-weight: 700; cursor: pointer;
}
.class-btn.selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.right-row { flex-wrap: wrap; cursor: default; }
.right-switches { display: flex; gap: 12px; flex-wrap: wrap; }
.right-switch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.newpw-form { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.newpw-form input { flex: 1; min-width: 0; margin: 0; }

.vp-tabs, .vp-filter { margin-bottom: 14px; }
.vp-filter .seg-btn { font-size: 0.86rem; }
.vp-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
          background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 800; }
.day-chip .vp-dot { color: #fff; }
.vp-list { display: grid; gap: 8px; }
.vp-item { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--border);
           border-left: 4px solid var(--primary); border-radius: 12px; padding: 10px 12px; }
.vp-item.vp-entfall { border-left-color: #e5484d; }
.vp-item.vp-vertretung { border-left-color: var(--orange); }
.vp-item.vp-raum, .vp-item.vp-auftrag { border-left-color: var(--green); }
.vp-icon { flex: 0 0 auto; }
.vp-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vp-kl { font-weight: 800; min-width: 36px; }
.vp-group { display: grid; gap: 6px; margin-bottom: 8px; }
.vp-group-head { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.vp-group-head .badge { padding: 2px 8px; font-size: 0.72rem; }
.vp-group.mine .vp-item { background: var(--primary-soft); }
.vp-news-item h3 { margin: 4px 0 6px; }
.vp-news-item p { margin: 0; }
.home-vp-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }
.home-vp-list li::before { content: "• "; color: var(--primary); }
.home-vp-list li.vp-entfall::before { color: #e5484d; }
.bottom-nav .tab { padding: 6px 4px; }

/* Kurse Q12/Q13 */
.kurs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kurs-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--text); border-radius: 999px; padding: 4px 4px 4px 12px; }
.kurs-chip b { color: var(--primary); }
.kurs-chip small { color: var(--muted); font-size: 0.78rem; }
.kurs-x { border: none; background: var(--surface); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; }
.kurs-add { display: flex; gap: 8px; align-items: center; }
.kurs-add input { flex: 1; min-width: 0; margin: 0; text-transform: uppercase; }
.kurs-add .btn { margin: 0; flex: 0 0 auto; }
.kurs-sugg-title { margin: 12px 0 6px; }
.kurs-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.kurs-sugg-btn { border: 1.5px dashed var(--border); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }

.kurs-chip { flex-wrap: wrap; }
.kurs-chip.kurs-pending { background: var(--orange-soft); }
.kurs-chip.kurs-rejected { background: var(--bg); text-decoration: line-through; }
.kurs-wait { color: var(--orange); font-weight: 700; font-size: 0.75rem; }
.kurs-no { color: #e5484d; font-weight: 700; font-size: 0.75rem; }
.kurs-groups { display: grid; gap: 8px; margin-bottom: 8px; }
.kurs-group-name { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.kurs-group .kurs-sugg { margin-bottom: 0; }
.kurs-pick { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; border: 1.5px solid var(--border); background: var(--surface);
             color: var(--text); border-radius: 12px; padding: 5px 10px; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; }
.kurs-pick small { font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.kurs-pick.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.kurs-pick.on small { color: inherit; opacity: .85; }
.kurs-add input { text-transform: none; }

/* Profil: aufklappbare Gruppen */
.set-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.set-group > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.set-group > summary::-webkit-details-marker { display: none; }
.set-icon { font-size: 1.4rem; flex: 0 0 auto; }
.set-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.set-title small { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.set-chev { font-size: 1.5rem; color: var(--muted); transition: transform .2s; line-height: 1; }
.set-group[open] .set-chev { transform: rotate(90deg); }
.set-body { padding: 0 12px 12px; display: grid; gap: 10px; }
.set-body .card { margin: 0; box-shadow: none; background: var(--bg); border: none; padding: 14px; }
.set-body > .btn { margin: 0; }
#grp-bus .set-body > .card > h3, #grp-push .set-body > .card > h3, #grp-look .set-body > .card > h3, #grp-app .set-body > .card > h3 { display: none; }
.vp-fetch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -6px 0 12px; }
.vp-fetch-row .btn { margin: 0; }
.day-chip.past:not(.active) { opacity: .6; }
.day-chip.nodata:not(.active) { border-style: dashed; }
.vp-mood { font-size: 3rem; line-height: 1.1; }
.home-mood { display: flex; align-items: center; gap: 10px; }
.home-mood .vp-mood { font-size: 2.2rem; }
.vp-party { font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.vp-party span { font-size: 1.4rem; }
.extra-tag { display: inline-block; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: 0.72rem; padding: 1px 6px; border-radius: 999px; }
.people li.is-extra { background: var(--orange-soft); }
.extra-x { border: none; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 6px; }
.extra-add { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.extra-add input { flex: 1; min-width: 0; margin: 0; }
.extra-add .btn { margin: 0; flex: 0 0 auto; }
.extra-add { flex-direction: column; align-items: stretch; }
.extra-add input { width: 100%; }
.extra-add .btn { width: 100%; }

/* Anmelden: erst registrieren */
.first-time { display: grid; gap: 6px; text-align: left; background: var(--primary-soft); border-radius: 14px; padding: 14px; margin: 10px 0 6px; }
.first-time .btn { margin-top: 6px; }
.login-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; margin: 14px 0 4px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* Registrieren: Internat oder Extern */
.reg-type { display: grid; gap: 10px; margin: 8px 0 12px; }
.reg-choice { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 14px; padding: 14px; font: inherit; cursor: pointer; }
.reg-choice .reg-icon { font-size: 1.8rem; }
.reg-choice .reg-text { display: flex; flex-direction: column; gap: 2px; }
.reg-choice small { color: var(--muted); font-size: 0.82rem; }
.reg-choice.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Events */
.events-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.events-head h3 { margin: 0; }
.events-head .btn { margin: 0; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.event-date { flex: 0 0 44px; text-align: center; background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 4px 0; }
.event-date span { display: block; font-size: 0.72rem; font-weight: 700; }
.event-date b { font-size: 1.2rem; }
.event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-body small { color: var(--muted); font-size: 0.82rem; }
.event-body p { margin: 4px 0 0; overflow-wrap: anywhere; }
.ev-targets { display: grid; gap: 6px; margin-top: 10px; }
.stock-grid { grid-template-columns: repeat(2, 1fr) !important; margin: 14px 0 16px; }
#event-modal .modal-box { max-height: 90vh; overflow-y: auto; }

/* Easter Egg: Spiele */
body.no-scroll { overflow: hidden; }
.games { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 25, .6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.games-box { width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); position: relative; }
.games-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.games-head h3 { margin: 0; }
.game-area { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-menu { display: grid; gap: 10px; margin-top: 8px; }
.game-pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; cursor: pointer; }
.game-pick span { grid-row: span 2; font-size: 2rem; }
.game-pick small { color: var(--muted); }
.game-score { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.center { text-align: center; }
.bb-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; background: var(--border); padding: 3px; border-radius: 10px; aspect-ratio: 1; }
.bb-cell { background: var(--bg); border-radius: 4px; transition: background .1s; }
.bb-cell.filled { box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.bb-cell.ghost { opacity: .75; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 2px rgba(255,255,255,.7) inset; }
.bb-cell.bad { background: rgba(229, 72, 77, .25) !important; }
.bb-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; justify-items: center; height: 110px; margin-top: 12px; }
.bb-piece { display: grid; gap: 2px; width: 100%; cursor: grab; touch-action: none; padding: 4px; border-radius: 8px; }
.bb-piece i { display: block; border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.bb-piece.picked { background: var(--primary-soft); outline: 2px solid var(--primary); }
.bb-piece.nofit { opacity: .35; }
.game-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: 12px; text-align: center; }
.game-over b { font-size: 1.6rem; }
.g2-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #bbada0; padding: 8px; border-radius: 12px; aspect-ratio: 1; }
.g2-cell { display: grid; place-items: center; border-radius: 8px; background: #cdc1b4; font-weight: 800; font-size: 1.6rem; color: #776e65; }
.g2-cell.v2 { background: #eee4da; } .g2-cell.v4 { background: #ede0c8; }
.g2-cell.v8 { background: #f2b179; color: #fff; } .g2-cell.v16 { background: #f59563; color: #fff; }
.g2-cell.v32 { background: #f67c5f; color: #fff; } .g2-cell.v64 { background: #f65e3b; color: #fff; }
.g2-cell.v128, .g2-cell.v256, .g2-cell.v512 { background: #edcf72; color: #fff; font-size: 1.3rem; }
.g2-cell.v1024, .g2-cell.v2048, .g2-cell.v4096 { background: #edc22e; color: #fff; font-size: 1.1rem; }
.sn-board { display: grid; gap: 1px; background: var(--border); padding: 2px; border-radius: 10px; aspect-ratio: 1; }
.sn-board i { background: var(--bg); border-radius: 2px; }
.sn-board i.body { background: #51cf66; } .sn-board i.head { background: #2f9e44; } .sn-board i.food { background: #ff6b6b; border-radius: 50%; }
.sn-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.sn-pad button { border: none; background: var(--primary-soft); color: var(--primary); border-radius: 12px; padding: 14px 0; font-size: 1.2rem; cursor: pointer; }

/* Block Blast zusammen */
.game-pick-mp { border-color: var(--primary); background: var(--primary-soft); }
.mp-join { display: flex; gap: 8px; }
.mp-join input { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 1.4rem; letter-spacing: .3em; }
.mp-join .btn { margin: 0; }
.mp-code-big { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--primary-soft); border-radius: 14px; padding: 14px; text-align: center; margin-bottom: 10px; }
.mp-code-big b { font-size: 3rem; letter-spacing: .15em; color: var(--primary); line-height: 1.1; }
.mp-code-big small { color: var(--muted); }
.mp-players { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.mp-players li { display: flex; justify-content: space-between; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.mp-players li.turn { background: var(--primary-soft); font-weight: 700; }
.mp-you { color: var(--green); }
.bb-tray.mp-wait { opacity: .45; }

/* iPhone: kein Zoomen beim schnellen Doppel-Tippen */
html, body, button, a, input, select, textarea, .tab, .seg-btn, .day-chip { touch-action: manipulation; }
.games, .games * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.games input { touch-action: manipulation; -webkit-user-select: text; user-select: text; }
.games-box { touch-action: pan-y; }
input, select, textarea { font-size: max(16px, 1em); }   /* iPhone zoomt sonst beim Antippen eines Feldes */

/* Belegung */
.bel-res { margin-bottom: 10px; }
.bel-res h3 { margin: 0 0 8px; }
.bel-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bel-items li { display: flex; align-items: center; gap: 10px; background: var(--primary-soft); border-radius: 10px; padding: 8px 10px; }
.bel-items li.fixed { background: var(--bg); }
.bel-time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 92px; }
.bel-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bel-what small { color: var(--muted); font-size: 0.8rem; }
.bel-free { margin: 0; color: var(--green); font-weight: 600; }
.class-none { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.bottom-nav .tab { font-size: 0.66rem; padding: 6px 2px; }

/* LSH-Blast: schwebendes Teil beim Ziehen */
.bb-float { position: fixed; left: 0; top: 0; z-index: 80; display: grid; gap: 3px; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.bb-float i { display: block; border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.bb-float.over-board { opacity: 0; }   /* über einem freien Platz zeigt das Feld selbst den Block */
.bb-piece.lifted { opacity: .25; }

/* Contexto */
.games .ctx, .games .ctx * { touch-action: pan-y; -webkit-user-select: auto; user-select: auto; }
.ctx-tabs { margin-bottom: 12px; }
.ctx-tabs .seg-btn { font-size: 0.8rem; padding: 8px 2px; }
.ctx-form { display: flex; gap: 8px; }
.ctx-form input { flex: 1; min-width: 0; margin: 0; }
.ctx-form .btn { margin: 0; }
.ctx-meta { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; color: var(--muted); font-size: 0.9rem; }
.ctx-meta .btn { margin: 0; }
.ctx-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 5px; }
.ctx-g { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--bg); overflow: hidden; font-weight: 600; }
.ctx-bar { position: absolute; left: 0; top: 0; bottom: 0; opacity: .35; border-radius: 10px; }
.ctx-g.near .ctx-bar { background: #2f9e44; } .ctx-g.mid .ctx-bar { background: #f59f00; } .ctx-g.far .ctx-bar { background: #e03131; }
.ctx-g > .ctx-w, .ctx-g > b { position: relative; z-index: 1; }
.ctx-w { flex: 1; min-width: 0; text-align: left; }
.ctx-g small { color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.ctx-g.hl { outline: 2px solid var(--primary); }
.ctx-win { display: block; line-height: 1.5; background: var(--green-soft); color: var(--text); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ctx-board { margin-top: 14px; }
.ctx-board h4 { margin: 0 0 6px; }
.ctx-board ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ctx-board li { display: flex; justify-content: space-between; gap: 8px; background: var(--bg); border-radius: 8px; padding: 7px 10px; font-size: 0.88rem; }
.ctx-board li.me { background: var(--primary-soft); font-weight: 700; }
.ctx-help { margin-top: 12px; }
.ctx-room { margin-bottom: 10px; }

/* ========== LSH-Blast im Look von Block Blast ========== */
.games.blast { padding: 0; background: #3f58a8; }
.games.blast .games-box { max-width: 480px; height: 100%; max-height: none; border-radius: 0; box-shadow: none; color: #fff;
  background: radial-gradient(120% 60% at 50% 0%, #4d68bd 0%, #3f58a8 55%, #374e98 100%);
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.games.blast .games-head { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; margin: 0; z-index: 2; }
.games.blast #game-title { display: none; }
.games.blast #game-close { color: #9fc3ff; font-size: 1.5rem; background: transparent; }
.games.blast .game-area { flex: 1; display: flex; flex-direction: column; }
.games.blast #mp-view { display: flex; flex-direction: column; flex: 1; }
.blast-best { display: flex; align-items: center; gap: 6px; font-size: 1.6rem; color: #ffc23a; font-weight: 800; }
.blast-best b { font-size: 1.8rem; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.blast-score { text-align: center; font-size: 4.2rem; font-weight: 900; line-height: 1; margin: 8px 0 18px; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.18), 0 0 30px rgba(255,214,90,.35); font-variant-numeric: tabular-nums; }
.blast-turn { text-align: center; font-weight: 700; margin: -10px 0 10px; color: #dbe5ff; }
.blast-turn.you { color: #7dffa1; }
.games.blast .bb-board { background: #1b2140; border: 3px solid #2c3870; border-radius: 10px; padding: 3px; gap: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.games.blast .bb-cell { background: #1f2647; border-radius: 2px; box-shadow: inset 0 0 0 1px #262e55; }
/* Steine mit Kante: oben/links hell, unten/rechts dunkel */
.games.blast .bb-cell.filled, .games.blast .bb-piece i, .bb-float i {
  border-radius: 3px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.38), inset 4px 0 0 rgba(255,255,255,.16), inset 0 -5px 0 rgba(0,0,0,.32), inset -4px 0 0 rgba(0,0,0,.18);
}
.games.blast .bb-cell.ghost { opacity: .6; box-shadow: inset 0 4px 0 rgba(255,255,255,.38), inset 0 -5px 0 rgba(0,0,0,.32); }
.games.blast .bb-cell.bad { background: rgba(226, 56, 63, .35) !important; }
.games.blast .bb-tray { flex: 1; min-height: 120px; margin-top: 18px; }
.games.blast .bb-piece.picked { background: rgba(255,255,255,.12); outline: 2px solid rgba(255,255,255,.6); }
.games.blast .bb-piece.nofit { opacity: .3; }
.games.blast .muted { color: #c9d5ff; }
.games.blast .game-over { background: rgba(31, 40, 80, .88); color: #fff; }
.games.blast .mp-players li { background: rgba(255,255,255,.1); color: #fff; }
.games.blast .mp-players li.turn { background: rgba(255,255,255,.22); }
.ctx-win .btn { display: block; width: 100%; margin-top: 8px; }
#ctx-last .ctx-list { margin-bottom: 10px; }

/* =====================================================================
   DESIGNS: Original (Standard, ohne data-design) · Chiemgau · Kräftig
   Im Original bleibt alles wie bisher (Emojis). Die neuen Designs zeigen
   statt Emojis Linien-Symbole und unser Schullogo.
   ===================================================================== */
.sym-i, .tab-ico, .school-logo, .hero { display: none; }
.ico { width: 1.2em; height: 1.2em; vertical-align: -.22em; flex: 0 0 auto; }
[data-design] .sym-e, [data-design] .bottom-nav .tab > span, [data-design] .original-only { display: none; }
[data-design] .sym-i, [data-design] .tab-ico, [data-design] .school-logo { display: inline-block; }
.school-logo { border-radius: 50%; }

/* ---------- Design aussuchen (gilt für alle Designs) ---------- */
.design-card h1 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 6px; }
.design-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.design-picks-sm { margin-top: 0; }
.design-pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; position: relative; min-width: 0; }
.design-pick.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.design-pick.active::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .8rem; }
.dp-name { display: flex; flex-direction: column; padding: 0 2px 2px; min-width: 0; }
.dp-name b { font-size: .9rem; }
.dp-name small { color: var(--muted); font-size: .7rem; line-height: 1.25; }
.dp { display: flex; flex-direction: column; gap: 5px; height: 118px; border-radius: 11px; overflow: hidden; padding: 6px; }
.dp-card { flex: 1; border-radius: 6px; background: #fff; border: 1px solid #e3e7f0; }
.dp-original { background: #f4f6fb; }
.dp-top { flex: 0 0 18px; display: flex; align-items: center; gap: 4px; padding: 0 4px; background: #fff; border-radius: 5px; font-size: 10px; }
.dp-top i { font-style: normal; } .dp-top b { width: 34px; height: 4px; border-radius: 2px; background: #1c2233; }
.dp-blue { background: #e7ecff; border-color: transparent; }
.dp-chiemgau { background: #f6f3ec; padding: 0 0 6px; }
.dp-chiemgau .dp-card { margin: 0 6px; border-color: #e8e1d3; }
.dp-sky { flex: 0 0 54px; position: relative; background: linear-gradient(#7f9cb8, #e9b991 60%, #f4d2ad); }
.dp-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-sky img { position: absolute; top: 5px; left: 6px; width: 18px; height: 18px; }
.dp-pine { background: #1f4536 !important; border-color: transparent !important; }
.dp-kraeftig { background: #fff7ea; padding: 0 0 6px; }
.dp-red { flex: 0 0 44px; background: #8c1d2b; color: #fff; border-radius: 0 0 12px 12px; padding: 6px 8px; font: 800 13px "Instrument Sans", sans-serif; }
.dp-gold { flex: 0 0 18px; margin: -14px 8px 0; background: #f0b43c; border-radius: 7px; position: relative; }
.dp-kraeftig .dp-card { margin: 0 6px; border: none; border-radius: 9px; }
.dp-sand { background: #f4e6cf !important; }

/* ---------- Was ist neu? ---------- */
.news-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.news-list { margin: 0 0 4px 18px; display: grid; gap: 8px; }
.news-box h3 { font-size: 1.25rem; }

/* =====================================================================
   CHIEMGAU – Berge, Sonne, Tannengrün
   ===================================================================== */
:root[data-design="chiemgau"] {
  --bg: #f6f3ec; --surface: #ffffff; --text: #1b2420; --muted: #6c746f; --border: #e8e1d3;
  --primary: #1f4536; --primary-soft: #e3ece5; --on-primary: #ffffff;
  --green: #2f7a4f; --green-soft: #e1efe5; --orange: #a85a2a; --orange-soft: #f5e7d8;
  --wood: #8b5a37; --radius: 20px; --shadow: 0 1px 2px rgba(27, 36, 32, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-design="chiemgau"] {
    --bg: #111915; --surface: #18231e; --text: #ece8de; --muted: #9aa39d; --border: #26352e;
    --primary: #8cc9a8; --primary-soft: #1f3329; --on-primary: #0c1611;
    --green: #74d39a; --green-soft: #183223; --orange: #e2a06c; --orange-soft: #33261b; --wood: #7a4f31;
  }
}
:root[data-theme="dark"][data-design="chiemgau"] {
    --bg: #111915; --surface: #18231e; --text: #ece8de; --muted: #9aa39d; --border: #26352e;
    --primary: #8cc9a8; --primary-soft: #1f3329; --on-primary: #0c1611;
    --green: #74d39a; --green-soft: #183223; --orange: #e2a06c; --orange-soft: #33261b; --wood: #7a4f31;
}
[data-design="chiemgau"] body { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500; }
[data-design="chiemgau"] h1, [data-design="chiemgau"] h2, [data-design="chiemgau"] h3,
[data-design="chiemgau"] .home-main, [data-design="chiemgau"] .brand, [data-design="chiemgau"] .meal-main,
[data-design="chiemgau"] .bus-route, [data-design="chiemgau"] .choice-title { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
[data-design="chiemgau"] h2 { font-size: 1.7rem; }
[data-design="chiemgau"] h3 { font-size: 1.25rem; }
[data-design="chiemgau"] .btn { border-radius: 999px; }
[data-design="chiemgau"] .home-label, [data-design="chiemgau"] .meal-type, [data-design="chiemgau"] .veg-label { letter-spacing: .14em; font-size: .72rem; font-weight: 600; }
[data-design="chiemgau"] .topbar { background: var(--bg); border-bottom-color: transparent; }
[data-design="chiemgau"] .brand { font-size: 1.2rem; }
[data-design="chiemgau"] .logo-sm { display: inline-flex; }
[data-design="chiemgau"] .profile-btn { background: var(--surface); border-color: var(--border); }
[data-design="chiemgau"] .card, [data-design="chiemgau"] .home-card, [data-design="chiemgau"] .meal, [data-design="chiemgau"] .bus,
[data-design="chiemgau"] .set-group { box-shadow: none; }

/* Startseite: Bergpanorama mit Schullogo */
[data-design="chiemgau"] #page-start > .page-head { display: none; }
[data-design="chiemgau"] .hero-chiemgau { display: block; position: relative; height: 270px; margin: -20px -16px 0; overflow: hidden; color: #fff; }
.hero-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-chiemgau::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background: var(--bg); border-radius: 26px 26px 0 0; }
.hero-chiemgau .hero-logo { position: absolute; top: 14px; left: 16px; width: 46px; height: 46px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero-chiemgau .hero-text { position: absolute; left: 20px; right: 20px; bottom: 46px; }
.hero-chiemgau .hero-date { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-chiemgau .hero-greet { font: 500 2.25rem/1.05 "Newsreader", Georgia, serif; margin: 4px 0 0; text-shadow: 0 2px 18px rgba(0,0,0,.3); color: #fff; }
[data-design="chiemgau"] .home-vp { background: var(--primary); color: #fff; border-color: transparent; }
[data-design="chiemgau"] .home-vp .home-label { color: #bcd6c8; }
[data-design="chiemgau"] .home-vp .home-sub { color: #cfe0d6; }
[data-design="chiemgau"] .home-vp-list { gap: 6px; width: 100%; }
[data-design="chiemgau"] .home-vp-list li { background: rgba(255,255,255,.09); border-radius: 12px; padding: 9px 12px; }
[data-design="chiemgau"] .home-vp-list li::before { content: none; }
[data-design="chiemgau"] .home-vp-list li.vp-entfall { box-shadow: inset 3px 0 0 #f08a8a; }
[data-design="chiemgau"] .home-meal { background: var(--surface); border-color: var(--border); }
[data-design="chiemgau"] .home-meal .home-label { color: var(--muted); }
[data-design="chiemgau"] .home-more { color: var(--wood); }
[data-design="chiemgau"] .home-ferien { background: var(--wood); color: #fff; border-color: transparent; }
[data-design="chiemgau"] .home-ferien .home-label, [data-design="chiemgau"] .home-ferien .home-sub,
[data-design="chiemgau"] .home-ferien .ferien-count span, [data-design="chiemgau"] .home-ferien .muted { color: #f3e2d2; }
[data-design="chiemgau"] .ferien-count b { font: 500 3rem/1 "Newsreader", Georgia, serif; }
:root[data-theme="dark"][data-design="chiemgau"] .home-vp { background: #1f4536; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-design="chiemgau"] .home-vp { background: #1f4536; } }

/* Symbole in kleinen Kacheln */
[data-design="chiemgau"] .set-icon, [data-design="chiemgau"] .todo-icon, [data-design="chiemgau"] .meal-icon,
[data-design="chiemgau"] .reg-icon, [data-design="chiemgau"] .choice-icon, [data-design="chiemgau"] .push-reminder-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: var(--primary-soft); color: var(--primary); }
[data-design="chiemgau"] .meal-icon { margin-bottom: 10px; }
[data-design="chiemgau"] .empty-icon { color: var(--muted); font-size: 2rem; }

/* Navigation unten */
[data-design="chiemgau"] .bottom-nav { background: color-mix(in srgb, var(--bg) 96%, transparent); border-top-color: var(--border); backdrop-filter: blur(8px); }
[data-design="chiemgau"] .bottom-nav .tab { gap: 3px; color: #8a908a; font-weight: 600; }
[data-design="chiemgau"] .bottom-nav .tab .tab-ico { width: 23px; height: 23px; }
[data-design="chiemgau"] .bottom-nav .tab.active { background: transparent; color: var(--primary); }
[data-design="chiemgau"] .bottom-nav .tab.active .tab-ico { stroke-width: 2; }

/* Anmelden / Registrieren: Berge oben, Karte darunter */
[data-design="chiemgau"] .login-screen {
  align-items: start; padding-top: 150px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 230' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237f9cb8'/%3E%3Cstop offset='.6' stop-color='%23e9b991'/%3E%3Cstop offset='1' stop-color='%23f4d2ad'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='390' height='230' fill='url(%23s)'/%3E%3Ccircle cx='300' cy='80' r='24' fill='%23fbe3c2'/%3E%3Cpath d='M0 130 L60 85 L95 105 L150 50 L200 95 L240 72 L290 112 L340 78 L390 104 V230 H0Z' fill='%238aa1b5' opacity='.85'/%3E%3Cpath d='M0 165 L45 135 L90 152 L140 118 L190 148 L250 126 L300 158 L350 136 L390 152 V230 H0Z' fill='%234d6f68'/%3E%3Cpath d='M0 198 Q90 170 170 188 T390 182 V230 H0Z' fill='%232c5244'/%3E%3Cpath d='M0 216 Q110 196 210 210 T390 206 V230 H0Z' fill='%231f4536'/%3E%3C/svg%3E") top center / 100% 230px no-repeat;
}
[data-design="chiemgau"] .login-card { border-radius: 26px; border: 1px solid var(--border); box-shadow: 0 20px 40px -24px rgba(31, 69, 54, .45); padding-top: 54px; position: relative; }
[data-design="chiemgau"] .login-card > .logo { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); margin: 0;
  width: 80px; height: 80px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 30px; color: var(--primary); }
[data-design="chiemgau"] .login-card > .logo .school-logo { width: 74px; height: 74px; }
[data-design="chiemgau"] #pending-icon { background: var(--primary-soft); }
[data-design="chiemgau"] .login-card h1 { font-size: 1.9rem; }
[data-design="chiemgau"] .first-time { background: var(--primary-soft); border-radius: 18px; }
[data-design="chiemgau"] .reg-choice.selected { border-color: var(--primary); }

/* =====================================================================
   KRÄFTIG – Weinrot und Gold, große Schrift
   ===================================================================== */
:root[data-design="kraeftig"] {
  --bg: #fff7ea; --surface: #ffffff; --text: #1d1416; --muted: #6d5a55; --border: #f0e2cc;
  --primary: #8c1d2b; --primary-soft: #f9e3df; --on-primary: #ffffff;
  --green: #2f7a4f; --green-soft: #e3f1e6; --orange: #b4560f; --orange-soft: #fde9cf;
  --gold: #f0b43c; --sand: #f4e6cf; --ink: #1d1416; --red: #8c1d2b; --red2: #b22c3d;
  --radius: 24px; --shadow: 0 10px 24px -18px rgba(140, 29, 43, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-design="kraeftig"] {
    --bg: #170e10; --surface: #23161a; --text: #f6ebe0; --muted: #b5a29d; --border: #3a272b;
    --primary: #ff8394; --primary-soft: #3d1d24; --on-primary: #1d0a0e;
    --green: #74d39a; --green-soft: #17301f; --orange: #ffb067; --orange-soft: #3a2615;
    --sand: #33232a; --shadow: 0 10px 24px -18px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"][data-design="kraeftig"] {
    --bg: #170e10; --surface: #23161a; --text: #f6ebe0; --muted: #b5a29d; --border: #3a272b;
    --primary: #ff8394; --primary-soft: #3d1d24; --on-primary: #1d0a0e;
    --green: #74d39a; --green-soft: #17301f; --orange: #ffb067; --orange-soft: #3a2615;
    --sand: #33232a; --shadow: 0 10px 24px -18px rgba(0, 0, 0, .6);
}
[data-design="kraeftig"] body { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500; }
[data-design="kraeftig"] h1, [data-design="kraeftig"] h2 { font-weight: 700; letter-spacing: -.03em; }
[data-design="kraeftig"] h2 { font-size: 1.9rem; }
[data-design="kraeftig"] .card > h3, [data-design="kraeftig"] .events-head h3 { font: italic 500 1.4rem/1.2 "Newsreader", Georgia, serif; }
[data-design="kraeftig"] .btn { border-radius: 16px; font-weight: 700; }
[data-design="kraeftig"] .btn-primary { background: var(--red); color: #fff; }
[data-design="kraeftig"] .btn-secondary { background: var(--gold); color: var(--ink); }
[data-design="kraeftig"] .card, [data-design="kraeftig"] .home-card, [data-design="kraeftig"] .meal, [data-design="kraeftig"] .bus,
[data-design="kraeftig"] .set-group { border-color: transparent; }
[data-design="kraeftig"] .home-label { letter-spacing: .12em; }
[data-design="kraeftig"] .home-main { font-weight: 700; letter-spacing: -.01em; }
[data-design="kraeftig"] .topbar { background: var(--red); color: #fff; border-bottom: none; }
[data-design="kraeftig"] .brand { font-weight: 700; letter-spacing: .01em; }
[data-design="kraeftig"] .logo-sm { display: inline-flex; }
[data-design="kraeftig"] .profile-btn { background: var(--gold); color: var(--ink); }
[data-design="kraeftig"] .profile-btn .avatar { background: var(--ink); color: var(--gold); }
[data-design="kraeftig"] #logout-btn { color: #f4cfd3; }
[data-design="kraeftig"] #logout-btn:hover { background: rgba(255,255,255,.12); }
[data-design="kraeftig"] .day-chip.active, [data-design="kraeftig"] .class-btn.selected, [data-design="kraeftig"] .kurs-pick.on { background: var(--red); border-color: var(--red); color: #fff; }
[data-design="kraeftig"] .seg { background: var(--sand); }

/* Startseite: rotes Band, goldene Ferien-Karte */
[data-design="kraeftig"] #page-start.active { display: flex; flex-direction: column; }
[data-design="kraeftig"] #page-start > .page-head, [data-design="kraeftig"] .hk-bar { display: none; }
[data-design="kraeftig"] #page-start > * { order: 5; }
[data-design="kraeftig"] #page-start > .hero-kraeftig { order: 0; }
[data-design="kraeftig"] #page-start > #home-ferien { order: 1; }
[data-design="kraeftig"] #page-start > #home-vp { order: 2; }
[data-design="kraeftig"] #page-start > #home-meal { order: 3; }
[data-design="kraeftig"] #page-start > #home-events { order: 4; }
[data-design="kraeftig"] .hero-kraeftig { display: block; background: var(--red); color: #fff; margin: -20px -16px 0; padding: 10px 20px 66px; border-radius: 0 0 34px 34px; }
.hero-kraeftig .hero-greet { font: 700 2.6rem/1 "Instrument Sans", sans-serif; letter-spacing: -.035em; margin: 6px 0 6px; color: #fff; }
.hero-kraeftig .hero-greet em { font: italic 500 2.6rem/1 "Newsreader", Georgia, serif; letter-spacing: -.01em; }
.hero-kraeftig .hero-date { margin: 0; opacity: .85; }
[data-design="kraeftig"] #home-ferien { position: relative; margin: -48px 0 18px; background: var(--gold); color: var(--ink); border: none;
  border-radius: 28px; padding: 16px 20px; box-shadow: 0 14px 30px -12px rgba(140, 29, 43, .45); }
[data-design="kraeftig"] #home-ferien .home-label, [data-design="kraeftig"] #home-ferien .home-sub,
[data-design="kraeftig"] #home-ferien .ferien-count span, [data-design="kraeftig"] #home-ferien .muted { color: var(--ink); opacity: .8; }
[data-design="kraeftig"] .ferien-count b { font-size: 4rem; letter-spacing: -.05em; line-height: .9; }
[data-design="kraeftig"] .ferien-count span { font-size: 1.15rem; }
[data-design="kraeftig"] .home-vp { padding: 14px; }
[data-design="kraeftig"] .home-vp-list { gap: 8px; width: 100%; margin-top: 8px; }
[data-design="kraeftig"] .home-vp-list li { background: var(--sand); border-radius: 18px; padding: 11px 14px; font-weight: 700; }
[data-design="kraeftig"] .home-vp-list li::before { content: none; }
[data-design="kraeftig"] .home-vp-list li.vp-entfall { background: #fde1e1; color: #1d1416; }
[data-design="kraeftig"] .home-meal { background: var(--red); color: #fff; }
[data-design="kraeftig"] .home-meal .home-label, [data-design="kraeftig"] .home-meal .home-extra, [data-design="kraeftig"] .home-meal .muted { color: #f6d4d8; }
[data-design="kraeftig"] .home-meal .home-more { color: var(--gold); }
[data-design="kraeftig"] .todo { background: var(--sand); border-radius: 18px; }
[data-design="kraeftig"] .todo.open { background: var(--orange-soft); }

[data-design="kraeftig"] .set-icon, [data-design="kraeftig"] .todo-icon, [data-design="kraeftig"] .meal-icon,
[data-design="kraeftig"] .reg-icon, [data-design="kraeftig"] .choice-icon, [data-design="kraeftig"] .push-reminder-icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 15px; display: grid; place-items: center; font-size: 21px;
  background: var(--surface); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--border); }
[data-design="kraeftig"] .todo .todo-icon { background: var(--surface); box-shadow: none; }
[data-design="kraeftig"] .meal-icon { margin-bottom: 10px; background: var(--sand); box-shadow: none; }
[data-design="kraeftig"] .empty-icon { color: var(--red); font-size: 2rem; }
:root[data-theme="dark"][data-design="kraeftig"] .set-icon, :root[data-theme="dark"][data-design="kraeftig"] .todo-icon { color: var(--primary); }

/* Navigation unten: schwebende dunkle Leiste */
[data-design="kraeftig"] .content { padding-bottom: 120px; }
[data-design="kraeftig"] .bottom-nav { left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 406px;
  background: #1d1416; border: none; border-radius: 26px; padding: 8px 6px; box-shadow: 0 14px 30px -10px rgba(29, 20, 22, .55); }
[data-design="kraeftig"] .bottom-nav .tab { gap: 2px; color: #a99a97; font-weight: 700; border-radius: 18px; }
[data-design="kraeftig"] .bottom-nav .tab .tab-ico { width: 22px; height: 22px; }
[data-design="kraeftig"] .bottom-nav .tab.active { background: var(--gold); color: #1d1416; }

/* Anmelden / Registrieren: rotes Band, Karte darüber */
[data-design="kraeftig"] .login-screen { align-items: start; padding-top: 170px; position: relative;
  background: linear-gradient(var(--red) 0 250px, var(--bg) 250px); }
[data-design="kraeftig"] .login-screen::before { content: "LSH Marquartstein"; position: absolute; top: 28px; left: 24px; right: 24px;
  color: #fff; font: 700 1rem "Instrument Sans", sans-serif; letter-spacing: .02em; }
[data-design="kraeftig"] .login-screen::after { content: "Schön, dass du da bist!"; position: absolute; top: 64px; left: 24px; right: 24px;
  color: #fff; font: italic 500 2.3rem/1.05 "Newsreader", Georgia, serif; }
[data-design="kraeftig"] .design-screen::after { content: "Neu in der App"; }
[data-design="kraeftig"] .login-card { border-radius: 30px; box-shadow: 0 24px 40px -24px rgba(140, 29, 43, .55); text-align: left; }
[data-design="kraeftig"] .login-card h1 { font-size: 2rem; letter-spacing: -.035em; }
[data-design="kraeftig"] .login-card > .logo { display: flex; align-items: center; gap: 10px; font-size: 26px; color: var(--red); }
[data-design="kraeftig"] .login-card > .logo .school-logo { width: 54px; height: 54px; }
[data-design="kraeftig"] .login-card > .logo .sym-i { width: 46px; height: 46px; padding: 10px; border-radius: 16px; background: var(--sand); }
[data-design="kraeftig"] .first-time { background: var(--sand); border-radius: 20px; }
[data-design="kraeftig"] .first-time .btn-primary { background: var(--red); }
[data-design="kraeftig"] .reg-choice { border-radius: 20px; }
[data-design="kraeftig"] .reg-choice.selected { border-color: var(--red); background: var(--sand); box-shadow: none; }
[data-design="kraeftig"] .login-card .switch-auth, [data-design="kraeftig"] .login-card .hint { text-align: center; }
[data-design="kraeftig"] .design-pick.active { border-color: var(--red); box-shadow: 0 0 0 3px var(--sand); }
[data-design="kraeftig"] .design-pick.active::after { background: var(--red); color: #fff; }

/* Installierte App im Vollbild (Android): Kopfzeile unter Kamera-Loch und Uhrzeit hindurch ziehen */
@media (display-mode: fullscreen) {
  .topbar { top: 0; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
}

/* Ankündigungen (Besitzer) */
.news-list li { overflow-wrap: anywhere; }
.news-text { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.news-kicker.k-info { background: var(--green-soft); color: var(--green); }
.news-kicker.k-wichtig { background: var(--orange-soft); color: var(--orange); }
.news-preview { display: grid; gap: 8px; margin: -6px -6px 16px; padding: 10px; border-radius: 14px; background: var(--bg); font-size: .85rem; }
.news-preview .seg-btn { font-size: .8rem; padding: 7px 2px; }
#ann-card textarea { min-height: 110px; }
.ann-actions { display: flex; gap: 8px; margin-top: 14px; }
.ann-actions .btn { flex: 1; margin: 0; }
.ann-old-title { margin: 20px 0 8px; font-size: .95rem; }
.ann-list { list-style: none; display: grid; gap: 6px; }
.ann-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bg); }
.ann-list li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ann-list small { color: var(--muted); font-size: .8rem; }
.ann-list li.ended { opacity: .6; }
.ann-list .btn { margin: 0; flex: 0 0 auto; }
.ann-links-hint { margin: -2px 0 8px; }
.ann-links { display: grid; gap: 8px; }
.ann-link-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px; border-radius: 12px; background: var(--bg); }
.ann-link-row input { margin: 0; padding: 9px 11px; }
.ann-link-row input.url { grid-column: 1; }
.ann-link-row .ann-link-x { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
#ann-link-add { margin-top: 8px; }
.news-links { display: grid; gap: 8px; margin-top: 14px; }
.news-links:empty { display: none; }
.news-links .btn { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; margin: 0; }

/* =====================================================================
   NEUE UNTERE LEISTE (Kräftig + Glas): schwebende Glas-Leiste wie bei Apple Music
   ===================================================================== */
[data-design="kraeftig"] .bottom-nav, [data-design^="glas"] .bottom-nav {
  left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 406px;
  height: 64px; padding: 5px; border-radius: 32px; align-items: stretch;
  background: rgba(255, 250, 242, .55); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(0, 0, 0, .04);
}
[data-design="kraeftig"] .bottom-nav .tab, [data-design^="glas"] .bottom-nav .tab {
  justify-content: center; gap: 2px; padding: 0 2px; border-radius: 27px; color: #1c1c1e; font-weight: 600; font-size: .62rem; letter-spacing: -.01em;
}
[data-design="kraeftig"] .bottom-nav .tab .tab-ico, [data-design^="glas"] .bottom-nav .tab .tab-ico { width: 24px; height: 24px; stroke-width: 1.9; }
[data-design="kraeftig"] .bottom-nav .tab.active { background: rgba(0, 0, 0, .07); color: #b01f33; }
[data-design="kraeftig"] .content, [data-design^="glas"] .content { padding-bottom: 120px; }
:root[data-theme="dark"][data-design="kraeftig"] .bottom-nav { background: rgba(45, 26, 30, .55); border-color: rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }
:root[data-theme="dark"][data-design="kraeftig"] .bottom-nav .tab { color: #f6ebe0; }
:root[data-theme="dark"][data-design="kraeftig"] .bottom-nav .tab.active { background: rgba(255, 255, 255, .12); color: #ff8394; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-design="kraeftig"] .bottom-nav { background: rgba(45, 26, 30, .55); border-color: rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }
  :root:not([data-theme="light"])[data-design="kraeftig"] .bottom-nav .tab { color: #f6ebe0; }
  :root:not([data-theme="light"])[data-design="kraeftig"] .bottom-nav .tab.active { background: rgba(255, 255, 255, .12); color: #ff8394; }
}

/* =====================================================================
   GLAS – wie eine iPhone-App (Varianten Hell, Dunkel, Alpen)
   ===================================================================== */
html:root[data-design="glas-hell"][data-design], html:root[data-design="glas-alpen"][data-design] {
  --bg: rgba(255, 255, 255, .5); --surface: rgba(255, 255, 255, .58); --text: #1c1c1e; --muted: rgba(60, 60, 67, .66);
  --border: rgba(255, 255, 255, .75); --primary: #007aff; --primary-soft: rgba(0, 122, 255, .13); --on-primary: #fff;
  --green: #248a3d; --green-soft: rgba(52, 199, 89, .18); --orange: #c93400; --orange-soft: rgba(255, 149, 0, .2);
  --radius: 24px; --shadow: 0 8px 28px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
  --glass-solid: rgba(250, 250, 252, .92); color-scheme: light;
}
html:root[data-design="glas-alpen"][data-design] { --primary: #c8102e; --primary-soft: rgba(200, 16, 46, .12); --surface: rgba(255, 255, 255, .5); }
html:root[data-design="glas-dunkel"][data-design] {
  --bg: rgba(255, 255, 255, .08); --surface: rgba(255, 255, 255, .1); --text: #f5f5f7; --muted: rgba(235, 235, 245, .62);
  --border: rgba(255, 255, 255, .16); --primary: #4aa3ff; --primary-soft: rgba(74, 163, 255, .24); --on-primary: #fff;
  --green: #30d158; --green-soft: rgba(48, 209, 88, .16); --orange: #ff9f0a; --orange-soft: rgba(255, 159, 10, .16);
  --radius: 24px; --shadow: 0 8px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
  --glass-solid: rgba(28, 28, 40, .9); color-scheme: dark;
}
[data-design^="glas"] .not-glas { display: none; }
.glas-only { display: none; }
[data-design^="glas"] .glas-only { display: block; }

/* Hintergrundbild (fest, auch auf dem iPhone) */
[data-design^="glas"] html, html[data-design^="glas"] { background: #000; }
[data-design^="glas"] body { background: transparent; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; box-shadow: none; }
[data-design^="glas"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; max-width: 430px; margin: 0 auto; }
[data-design="glas-hell"] body::before { background: #eef1f8;
  background-image: radial-gradient(circle at 15% 12%, #9ec5ff 0, transparent 42%), radial-gradient(circle at 90% 30%, #f6bfdc 0, transparent 40%),
                    radial-gradient(circle at 30% 78%, #ffd9a8 0, transparent 42%), radial-gradient(circle at 85% 90%, #b9b0ff 0, transparent 40%); }
[data-design="glas-dunkel"] body::before { background: #06081a;
  background-image: radial-gradient(circle at 10% 15%, #3b2d9f 0, transparent 45%), radial-gradient(circle at 95% 35%, #0e6d8f 0, transparent 42%),
                    radial-gradient(circle at 25% 85%, #8a2b6e 0, transparent 45%), radial-gradient(circle at 90% 95%, #1f4fb0 0, transparent 40%); }
[data-design="glas-alpen"] body::before { background: #1f4536 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 844' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236f93bd'/%3E%3Cstop offset='.45' stop-color='%23e7b48c'/%3E%3Cstop offset='.6' stop-color='%23f3cfa5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='390' height='844' fill='url(%23s)'/%3E%3Ccircle cx='290' cy='300' r='40' fill='%23fde6c6'/%3E%3Cpath d='M0 420 L70 340 L120 380 L190 270 L250 360 L300 320 L390 400 V844 H0Z' fill='%238aa1b5'/%3E%3Cpath d='M190 270 L214 300 L200 296 L190 308 L178 296 L166 300Z' fill='%23fff'/%3E%3Cpath d='M0 520 L60 470 L130 500 L200 440 L280 500 L340 470 L390 490 V844 H0Z' fill='%234d6f68'/%3E%3Cpath d='M0 620 Q120 570 230 600 T390 590 V844 H0Z' fill='%232c5244'/%3E%3Cpath d='M0 720 Q140 680 270 705 T390 700 V844 H0Z' fill='%231f4536'/%3E%3C/svg%3E") center / cover no-repeat; }

/* Glasflächen */
[data-design^="glas"] .card, [data-design^="glas"] .home-card, [data-design^="glas"] .meal, [data-design^="glas"] .bus,
[data-design^="glas"] .set-group, [data-design^="glas"] .choice, [data-design^="glas"] .login-card, [data-design^="glas"] .empty-plan,
[data-design^="glas"] .push-reminder, [data-design^="glas"] .install, [data-design^="glas"] .topbar, [data-design^="glas"] .vp-item,
[data-design^="glas"] .reg-choice, [data-design^="glas"] .design-pick {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
}
[data-design^="glas"] .card, [data-design^="glas"] .home-card, [data-design^="glas"] .meal, [data-design^="glas"] .bus,
[data-design^="glas"] .set-group, [data-design^="glas"] .login-card { border-radius: 26px; }
[data-design^="glas"] .set-body .card { background: var(--bg); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: none; }
[data-design^="glas"] .modal-box, [data-design^="glas"] .tour-card { background: var(--glass-solid); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border); border-radius: 28px; }
[data-design^="glas"] .modal { background: rgba(0, 0, 0, .3); }
[data-design^="glas"] .toast { background: var(--glass-solid); color: var(--text); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 18px; }
[data-design^="glas"] .topbar { border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
[data-design^="glas"] .login-screen, [data-design^="glas"] .boot { background: transparent; }
[data-design^="glas"] .boot { background: rgba(0, 0, 0, .05); }

/* Schrift wie auf dem iPhone */
[data-design^="glas"] h1, [data-design^="glas"] h2 { font-weight: 800; letter-spacing: -.03em; }
[data-design^="glas"] h2 { font-size: 2rem; }
[data-design^="glas"] h3 { font-weight: 700; letter-spacing: -.02em; }
[data-design^="glas"] .home-label, [data-design^="glas"] .meal-type { letter-spacing: .02em; font-weight: 600; }
[data-design^="glas"] .home-main { font-weight: 700; letter-spacing: -.02em; }
[data-design^="glas"] .brand { font-weight: 700; }
[data-design^="glas"] .logo-sm { display: inline-flex; }

/* Knöpfe & Schalter */
[data-design^="glas"] .btn { border-radius: 999px; }
[data-design^="glas"] .btn-secondary { background: var(--primary-soft); color: var(--primary); }
[data-design^="glas"] .seg { background: rgba(118, 118, 128, .14); border-radius: 12px; }
[data-design^="glas"] .seg-btn.active { background: var(--glass-solid); color: var(--text); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
[data-design^="glas"] input, [data-design^="glas"] textarea, [data-design^="glas"] select { background: var(--bg); border-color: var(--border); }
[data-design^="glas"] .profile-btn { background: var(--surface); color: var(--text); border-color: var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
[data-design^="glas"] .profile-btn .avatar { background: var(--primary); }
[data-design^="glas"] .day-chip, [data-design^="glas"] .class-btn, [data-design^="glas"] .kurs-pick { background: var(--bg); border-color: var(--border); }
[data-design^="glas"] .day-chip.active, [data-design^="glas"] .class-btn.selected, [data-design^="glas"] .kurs-pick.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Startseite: große Überschrift */
[data-design^="glas"] #page-start > .page-head { display: none; }
[data-design^="glas"] .hero-glas { display: block; margin: 4px 2px 16px; }
.hero-glas .hero-date { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.hero-glas .hero-greet { font-size: 1.9rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
[data-design="glas-alpen"] .hero-glas .hero-date, [data-design="glas-alpen"] .hero-glas .hero-greet,
[data-design="glas-alpen"] .page-head h2, [data-design="glas-alpen"] .page-head > div > .muted { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
[data-design^="glas"] .home-vp-list { gap: 6px; width: 100%; margin-top: 6px; }
[data-design^="glas"] .home-vp-list li { background: var(--bg); border-radius: 14px; padding: 9px 12px; }
[data-design^="glas"] .home-vp-list li::before { content: none; }
[data-design^="glas"] .home-vp-list li.vp-entfall { box-shadow: inset 4px 0 0 #ff3b30; }
[data-design^="glas"] .home-meal { background: var(--surface); }
[data-design^="glas"] .home-meal .home-label { color: var(--muted); }
[data-design^="glas"] .ferien-count b { font-size: 3.2rem; letter-spacing: -.05em; }
[data-design^="glas"] .todo { background: var(--bg); border-radius: 16px; }
[data-design^="glas"] .people li, [data-design^="glas"] .event, [data-design^="glas"] .bel-items li, [data-design^="glas"] .right-row,
[data-design^="glas"] .auto-row, [data-design^="glas"] .code-list li, [data-design^="glas"] .pending-item { background: var(--bg); }

/* Symbole in runden Kacheln */
[data-design^="glas"] .set-icon, [data-design^="glas"] .todo-icon, [data-design^="glas"] .meal-icon,
[data-design^="glas"] .reg-icon, [data-design^="glas"] .choice-icon, [data-design^="glas"] .push-reminder-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  background: var(--primary); color: #fff; }
[data-design^="glas"] .empty-icon { color: var(--muted); font-size: 2rem; }

/* Leiste unten: Glas */
html:root[data-design="glas-dunkel"] .bottom-nav { background: rgba(40, 40, 50, .45); border-color: rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14); }
[data-design^="glas"] .bottom-nav .tab { color: var(--text); }
[data-design^="glas"] .bottom-nav .tab.active { background: rgba(0, 0, 0, .06); color: var(--primary); }
html:root[data-design="glas-dunkel"] .bottom-nav .tab.active { background: rgba(255, 255, 255, .14); }
[data-design="glas-alpen"] .bottom-nav { background: rgba(255, 255, 255, .45); }

/* Anmelden / Registrieren */
[data-design^="glas"] .login-screen { align-items: center; }
[data-design^="glas"] .login-card > .logo .school-logo { width: 76px; height: 76px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
[data-design^="glas"] .login-card > .logo .sym-i { width: 56px; height: 56px; padding: 12px; border-radius: 16px; background: var(--primary); color: #fff; }
[data-design^="glas"] .first-time { background: var(--bg); border-radius: 18px; }
[data-design^="glas"] .reg-choice.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Design-Auswahl: 2 × 2 und Glas-Varianten */
.design-picks { grid-template-columns: repeat(2, 1fr); }
.dp { height: 96px; }
.dp-glas { padding: 6px; background: linear-gradient(135deg, #9ec5ff, #f6bfdc 50%, #ffd9a8); }
.dp-glas-t { flex: 0 0 10px; width: 60%; border-radius: 4px; background: rgba(28, 28, 30, .75); }
.dp-g { background: rgba(255, 255, 255, .6) !important; border: 1px solid rgba(255, 255, 255, .8) !important; border-radius: 9px; }
.dp-gbar { flex: 0 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .7); margin: 0 6px; }
.glas-variants { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.glas-v { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.glas-v.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.glas-v i { width: 100%; height: 38px; border-radius: 9px; }
.gv-glas-hell { background: linear-gradient(135deg, #9ec5ff, #f6bfdc 50%, #ffd9a8); }
.gv-glas-dunkel { background: linear-gradient(135deg, #3b2d9f, #0e6d8f 50%, #8a2b6e); }
.gv-glas-alpen { background: linear-gradient(#6f93bd, #e7b48c 45%, #4d6f68 70%, #1f4536); }
#news-preview-designs { flex-wrap: wrap; }
#news-preview-designs .seg-btn { flex: 1 0 30%; }
html:root[data-design="glas-dunkel"] .btn-primary { background: #0a84ff; }
html:root[data-design="glas-dunkel"] [data-design^="glas"] .set-icon, html:root[data-design="glas-dunkel"] .set-icon, html:root[data-design="glas-dunkel"] .todo-icon { background: #0a84ff; }

/* ========== LSH-Blast (Canvas) ========== */
.bx-canvas { position: absolute; inset: 0; z-index: 0; touch-action: none; }
.games.blast .game-area { position: relative; z-index: 1; pointer-events: none; }
.games.blast .games-head { z-index: 3; }
.games.blast .game-over { z-index: 5; pointer-events: auto; }
.games.blast .blast-score { background: linear-gradient(#fff, #ffe9a8 60%, #ffc23a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(40, 20, 90, .6)) drop-shadow(0 0 18px rgba(255, 214, 90, .45)); text-shadow: none; }
.games.blast .blast-score.bump { animation: bx-bump2 .32s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bx-bump2 { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.bx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding-right: 46px; position: relative; z-index: 2; pointer-events: none; }
.bx-board { width: 100%; max-width: min(100%, calc(100vh - 380px)); aspect-ratio: 1; margin: 0 auto; flex: 0 0 auto; }
.bx-tray { height: 128px; margin-top: 16px; flex: 0 0 auto; }
.bx-help { margin-top: auto; opacity: .8; }
.games.blast .games-box { background: radial-gradient(130% 70% at 50% -5%, #6a86e0 0%, #4058b0 40%, #2c3d86 75%, #22306c 100%); }
.blast-score { transition: color .2s; }
.blast-score.bump { animation: bx-bump .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #ffe27a; } 100% { transform: scale(1); } }
.bx-streak { display: none; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff9f43, #ff5e3a); box-shadow: 0 4px 14px rgba(255, 94, 58, .45), inset 0 1px 0 rgba(255,255,255,.4); }
.bx-streak.on { display: inline-flex; }
.bx-streak.pulse { animation: bx-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.bx-streak.hot { background: linear-gradient(90deg, #ff3d6e, #ff9f43, #ffd23f, #ff3d6e); background-size: 300% 100%; animation: bx-hot 1.6s linear infinite; }
.bx-streak.hot.pulse { animation: bx-bump .45s cubic-bezier(.3, 1.6, .5, 1), bx-hot 1.6s linear infinite; }
@keyframes bx-hot { to { background-position: 300% 0; } }
.bx-flame { font-size: 1.1rem; display: inline-block; animation: bx-flame .5s ease-in-out infinite alternate; }
@keyframes bx-flame { to { transform: scale(1.18) rotate(-6deg); } }
.bx-mult { font-size: .8rem; background: rgba(0, 0, 0, .18); border-radius: 999px; padding: 1px 7px; }
.bx-pips { display: inline-flex; gap: 3px; }
.bx-pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.bx-pips i.on { background: #fff; }
@media (prefers-reduced-motion: reduce) { .bx-flame, .bx-streak.hot { animation: none; } }

/* Spiele in den anderen Designs: feste, gut lesbare Fläche */
[data-design^="glas"] .games-box { background: var(--glass-solid); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--border); border-radius: 28px; }
[data-design^="glas"] .games { background: rgba(0, 0, 0, .35); }
[data-design^="glas"] .game-pick, [data-design^="glas"] .ctx-g, [data-design^="glas"] .ctx-board li, [data-design^="glas"] .mp-players li { background: rgba(127, 127, 140, .12); border-color: var(--border); }
[data-design^="glas"] .sn-board, [data-design^="glas"] .bb-board { background: rgba(127, 127, 140, .25); }
[data-design^="glas"] .sn-board i, [data-design^="glas"] .bb-cell { background: rgba(127, 127, 140, .14); }
[data-design^="glas"] .games.blast .games-box, [data-design="kraeftig"] .games.blast .games-box, [data-design="chiemgau"] .games.blast .games-box { border: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-design] .games-head h3 { font-family: inherit; }
[data-design="chiemgau"] .games-box, [data-design="kraeftig"] .games-box { border-radius: 26px; }
[data-design="kraeftig"] .game-pick-mp { border-color: var(--red); background: var(--sand); }
/* Streak-Anzeige (größer, Farbe nach Stufe) & Ton-Knopf */
.bx-sound { pointer-events: auto; border: none; background: rgba(255,255,255,.14); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; position: absolute; right: -4px; top: 48px; }
.bx-streak { flex-shrink: 1; min-width: 0; }
.bx-top { gap: 8px; }
.bx-streak { --tc: #ff9f43; background: linear-gradient(135deg, var(--tc), #ff4d6d); padding: 4px 12px 4px 8px; gap: 8px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 6px 20px color-mix(in srgb, var(--tc) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.45); }
.bx-sn { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bx-sn small { font-size: .5em; letter-spacing: .12em; opacity: .9; }
.bx-sn b { font-size: 1.5em; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bx-flame { font-size: 1.5em; filter: drop-shadow(0 0 6px rgba(255,200,80,.9)); }
.bx-pips i { width: 8px; height: 8px; }
.bx-dbl { background: #ffd23f; color: #3a2400; border-radius: 999px; padding: 2px 8px; font-size: .75em; font-weight: 900; }
.bx-streak.insane { background: linear-gradient(90deg, #ff3d6e, #ffd23f, #7dff8a, #5ee7ff, #c86bff, #ff3d6e); background-size: 400% 100%; animation: bx-hot 1s linear infinite; }
.bx-streak.insane .bx-flame { animation-duration: .25s; }
.game-area.bx-slot-on .bx-top > :not(.bx-sound), .game-area.bx-slot-on .blast-score, .game-area.bx-slot-on .bx-help { opacity: 0; transition: opacity .3s; }
/* Streak: Runde schon gesichert / Teile übrig */
.bx-safe { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1f9d45; font-weight: 900; font-size: .8rem; }
.bx-pips.warn i.on { background: #fff; box-shadow: 0 0 6px #fff; }

/* LSH-Blast: Game Over */
.bx-over { position: absolute; inset: -20px -18px; z-index: 6; pointer-events: auto; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(60,20,120,.55), rgba(5,4,20,.88)); -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%);
  animation: bx-fade .4s ease both; }
@keyframes bx-fade { from { opacity: 0; } }
.bx-over-card { width: min(100%, 360px); text-align: center; padding: 26px 20px 20px; border-radius: 30px; color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35), 0 0 60px rgba(150,90,255,.35);
  animation: bx-pop .6s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
@keyframes bx-pop { from { transform: scale(.6) translateY(40px); opacity: 0; } }
.bx-over-title { font-size: 2.6rem; font-weight: 900; letter-spacing: .02em; line-height: 1; display: flex; justify-content: center; }
.bx-over-title span { display: inline-block; background: linear-gradient(#fff, #ff8fb1 55%, #ff3d6e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(60,0,40,.7)) drop-shadow(0 0 14px rgba(255,61,110,.6)); animation: bx-drop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.25s + var(--d)); }
@keyframes bx-drop { from { transform: translateY(-80px) rotate(-12deg); opacity: 0; } }
.bx-over-best { margin-top: 10px; color: #c9d5ff; font-weight: 600; }
.bx-over-record { margin-top: 12px; display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 900; color: #3a2400;
  background: linear-gradient(90deg, #ffd23f, #fff3b0, #ffd23f); background-size: 200% 100%; animation: bx-shine 1.2s linear infinite, bx-pop .6s cubic-bezier(.2, 1.5, .4, 1) .9s both;
  box-shadow: 0 0 24px rgba(255,210,63,.8); }
@keyframes bx-shine { to { background-position: 200% 0; } }
.bx-over-score { margin: 16px 0 6px; display: flex; flex-direction: column; align-items: center; }
.bx-over-score small { font-size: .75rem; letter-spacing: .2em; color: #c9d5ff; font-weight: 700; }
.bx-over-score b { font-size: 3.6rem; font-weight: 900; line-height: 1.05; background: linear-gradient(#fff, #ffe9a8 60%, #ffc23a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(40,20,90,.6)) drop-shadow(0 0 20px rgba(255,214,90,.5)); font-variant-numeric: tabular-nums; }
.bx-over.record .bx-over-card { box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35), 0 0 80px rgba(255,210,63,.55); }
.bx-over-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 18px; }
.bx-over-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.1); animation: bx-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.bx-over-stats div:nth-child(1) { animation-delay: 1.1s; } .bx-over-stats div:nth-child(2) { animation-delay: 1.2s; }
.bx-over-stats div:nth-child(3) { animation-delay: 1.3s; } .bx-over-stats div:nth-child(4) { animation-delay: 1.4s; }
.bx-over-stats b { font-size: 1rem; }
.bx-over-stats small { font-size: .62rem; color: #c9d5ff; }
.bx-over-again { width: 100%; border: none; cursor: pointer; padding: 15px; border-radius: 18px; font: inherit; font-size: 1.2rem; font-weight: 900; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, #2fd36b, #13a24a); box-shadow: 0 6px 0 #0b6a30, 0 12px 30px rgba(47,211,107,.45); animation: bx-breathe 1.4s ease-in-out infinite; }
.bx-over-again:active { transform: translateY(4px); box-shadow: 0 2px 0 #0b6a30; }
@keyframes bx-breathe { 50% { transform: scale(1.04); } }
.bx-over-menu { margin-top: 10px; border: none; background: none; color: #c9d5ff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .bx-over-again, .bx-over-record { animation: none; } }
/* Zusammen spielen im neuen Design */
.bx-turn { display: flex; flex-direction: column; line-height: 1.1; color: #fff; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.12); font-size: .95rem; }
.bx-turn small { font-size: .7rem; color: #c9d5ff; font-weight: 600; }
.bx-turn.you { background: linear-gradient(135deg, #2fd36b, #13a24a); box-shadow: 0 0 20px rgba(47,211,107,.6); animation: bx-breathe 1.4s ease-in-out infinite; }
.bx-turn.you small { color: #eafff0; }
.bx-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; padding-bottom: 6px; }
.bx-players span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #dbe5ff; font-weight: 600; font-size: .85rem; }
.bx-players span.turn { background: rgba(125,255,138,.22); color: #fff; box-shadow: 0 0 0 2px rgba(125,255,138,.6); }
.bx-players b { color: #ffd23f; margin-left: 4px; }
.bx-over-rank { display: grid; gap: 6px; margin: 10px 0 16px; }
.bx-over-rank div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.1); animation: bx-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.bx-over-rank span { font-size: 1.2rem; }
.bx-over-rank b { flex: 1; text-align: left; }
.bx-over-rank i { font-style: normal; font-weight: 900; color: #ffd23f; }

/* =====================================================================
   APPLE – wie die mobile Apple-Website: schwarze Leiste, ☰-Menü,
   bunte Collage, vollflächige Abschnitte mit großen Überschriften
   ===================================================================== */
.apple-only, .hero-apple, .apple-menu { display: none; }
html:root[data-design="apple"][data-design] {
  --bg: #ffffff; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --border: #d2d2d7;
  --primary: #0071e3; --primary-soft: #e8f2fd; --on-primary: #fff;
  --green: #008009; --green-soft: #e3f4e5; --orange: #bf4800; --orange-soft: #fbeee4;
  --radius: 18px; --shadow: none; color-scheme: light;
}
[data-design="apple"] .not-glas { display: none; }
[data-design="apple"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; background: #fff; }
[data-design="apple"] h1, [data-design="apple"] h2, [data-design="apple"] h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -.03em; }

/* Schwarze Leiste oben */
[data-design="apple"] .topbar { background: #161617; color: #e8e8ed; border: none; height: 48px; padding: 0 16px; }
[data-design="apple"] .brand { font-size: 0; gap: 0; }
[data-design="apple"] .logo-sm { display: inline-flex; }
[data-design="apple"] .logo-sm .school-logo { width: 26px; height: 26px; }
[data-design="apple"] .profile-btn { background: transparent; border: none; padding: 0; gap: 0; }
[data-design="apple"] .profile-btn .avatar { width: 26px; height: 26px; font-size: .78rem; background: #e8e8ed; color: #161617; }
[data-design="apple"] .profile-label, [data-design="apple"] .profile-chev, [data-design="apple"] #logout-btn { display: none; }
[data-design="apple"] .user { gap: 22px; }
[data-design="apple"] .apple-only { display: inline-grid; }
.apple-menu-btn { place-items: center; width: 36px; height: 36px; border: none; background: none; color: #e8e8ed; cursor: pointer; padding: 0; }

/* Vollbild-Menü */
[data-design="apple"] .apple-menu { display: block; position: fixed; inset: 0; z-index: 70; background: #000; color: #e8e8ed; padding: 0 40px 40px; overflow-y: auto;
  max-width: 430px; margin: 0 auto; opacity: 0; transition: opacity .25s ease; }
[data-design="apple"] .apple-menu[hidden] { display: none; }
[data-design="apple"] .apple-menu.open { opacity: 1; }
.apple-menu-top { display: flex; justify-content: space-between; align-items: center; height: 48px; margin: 0 -24px 22px; }
.apple-menu-close { border: none; background: none; color: #e8e8ed; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.apple-menu a { display: block; color: #e8e8ed; text-decoration: none; transform: translateY(-8px); opacity: 0; transition: transform .35s ease, opacity .35s ease, color .2s; }
.apple-menu.open a { transform: none; opacity: 1; }
.apple-menu-main a { font: 600 28px/1.25 -apple-system, "SF Pro Display", Inter, system-ui; letter-spacing: -.02em; padding: 6px 0; }
.apple-menu-main a:nth-child(2) { transition-delay: .03s; } .apple-menu-main a:nth-child(3) { transition-delay: .06s; }
.apple-menu-main a:nth-child(4) { transition-delay: .09s; } .apple-menu-main a:nth-child(5) { transition-delay: .12s; } .apple-menu-main a:nth-child(6) { transition-delay: .15s; }
.apple-menu small { display: block; font-size: 12px; color: #86868b; margin: 34px 0 10px; letter-spacing: 0; }
.apple-menu-more a { font: 600 17px/1.2 -apple-system, Inter, system-ui; padding: 7px 0; transition-delay: .18s; }
.apple-menu a:active { color: #fff; }
body.is-extern .apple-menu .intern-only { display: none !important; }

/* Leiste unten gibt es nicht */
[data-design="apple"] .bottom-nav { display: none; }
[data-design="apple"] .content { padding: 0 16px 40px; }

/* Bunte Collage auf der Startseite */
[data-design="apple"] .hero-apple { display: grid; grid-template-columns: 38% 24.5% 37.5%; height: 282px; margin: 0 -16px; overflow: hidden; }
.ha-stripes { display: flex; background: #e39a2a; }
.ha-stripes i { flex: 1; margin: 0 3px; border-radius: 0 0 10px 10px; position: relative; }
.ha-stripes i::after { content: ""; position: absolute; right: 4px; top: 38px; width: 5px; height: 22px; border-radius: 3px; background: rgba(0,0,0,.12); }
.ha-stripes i:nth-child(1), .ha-stripes i:nth-child(4) { background: #f2d14a; }
.ha-stripes i:nth-child(2), .ha-stripes i:nth-child(5) { background: #f07ca3; }
.ha-stripes i:nth-child(3) { background: #ececec; }
.ha-mid { display: grid; grid-template-rows: 1fr 1fr; }
.ha-ring { background: #ff6a2b; position: relative; }
.ha-ring span { position: absolute; transform: translate(-50%, -50%); font-size: 22px; }
.ha-logo { background: #fff7e3; display: grid; place-items: center; }
.ha-logo img { width: 70px; }
.ha-dev { background: #ffc240; position: relative; overflow: hidden; }
.ha-screen { position: absolute; left: 22px; top: 28px; width: 180px; height: 226px; border-radius: 22px; border: 6px solid #2a2a2a; background: #111 radial-gradient(circle at 30% 30%, #ff8a5c 0 12%, transparent 13%), #111;
  background-image: radial-gradient(circle at 30% 30%, #ff8a5c 0 12%, transparent 13%), repeating-linear-gradient(160deg, #ff9a3c 0 14px, #c4401c 14px 22px, #2a0a00 22px 40px); animation: ha-flow 9s linear infinite; background-size: auto, 200% 200%; }
@keyframes ha-flow { to { background-position: 0 0, 100% 100%; } }
.ha-pause { position: absolute; right: 10px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(60,60,60,.75); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ha-screen { animation: none; } }

/* Seiten-Kopf = zweite helle Leiste */
[data-design="apple"] .page-head { margin: 0 -16px 0; padding: 12px 16px; min-height: 52px; align-items: center; border-bottom: 1px solid #d2d2d7; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); position: sticky; top: 48px; z-index: 6; }
[data-design="apple"] .page-head h2 { font-size: 21px; }
[data-design="apple"] .page-head .muted { font-size: 13px; }
[data-design="apple"] .page-head .btn { padding: 5px 13px; font-size: 13px; }
[data-design="apple"] #page-start > .page-head { display: none; }

/* Knöpfe wie bei Apple: blau gefüllt oder blau umrandet */
[data-design="apple"] .btn { border-radius: 980px; font-weight: 400; letter-spacing: -.01em; padding: 10px 22px; }
[data-design="apple"] .btn-primary { background: #0071e3; color: #fff; }
[data-design="apple"] .btn-secondary { background: transparent; color: #0071e3; border: 1px solid #0071e3; }
[data-design="apple"] .link { color: #0066cc; text-decoration: none; font-weight: 400; }

/* Vollflächige Abschnitte statt Karten */
[data-design="apple"] .home-card, [data-design="apple"] #page-start > .card {
  margin: 0 -16px; border-radius: 0; border: none; box-shadow: none; padding: 52px 24px 54px; align-items: center; text-align: center; gap: 6px; }
[data-design="apple"] .home-label { font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
[data-design="apple"] .home-main { font: 600 32px/1.1 -apple-system, "SF Pro Display", Inter, system-ui; letter-spacing: -.03em; }
[data-design="apple"] .home-sub, [data-design="apple"] .home-extra { font-size: 17px; justify-content: center; }
[data-design="apple"] .home-more { display: inline-block; margin-top: 16px; padding: 9px 20px; border-radius: 980px; background: #0071e3; color: #fff; font-weight: 400; font-size: 15px; }
/* Vertretung: dunkles Rotbraun wie „Gifts they'll love.“ */
[data-design="apple"] .home-vp { background: #7e2a07; color: #fff; }
[data-design="apple"] .home-vp .home-label, [data-design="apple"] .home-vp .home-sub { color: rgba(255,255,255,.75); }
[data-design="apple"] .home-vp::after { content: "Zum Plan"; margin-top: 18px; padding: 9px 20px; border-radius: 980px; background: #0071e3; color: #fff; font-size: 15px; }
[data-design="apple"] .home-vp-list { gap: 4px; margin-top: 8px; font: 400 19px/1.35 -apple-system, Inter, system-ui; }
[data-design="apple"] .home-vp-list li::before { content: none; }
[data-design="apple"] .vp-party { font: 600 32px/1.1 -apple-system, "SF Pro Display", Inter, system-ui; letter-spacing: -.03em; justify-content: center; }
[data-design="apple"] .home-mood { flex-direction: column; }
/* Essen: Apple-Hellgrau wie „iPhone Duo“ */
[data-design="apple"] .home-meal { background: #f5f5f7; color: #1d1d1f; }
[data-design="apple"] .home-meal .home-label { color: #bf4800; }
/* Ferien: Schwarz */
[data-design="apple"] .home-ferien { background: #000; color: #f5f5f7; }
[data-design="apple"] .home-ferien .home-label, [data-design="apple"] .home-ferien .home-sub, [data-design="apple"] .home-ferien .ferien-count span { color: #a1a1a6; }
[data-design="apple"] .ferien-count { justify-content: center; }
[data-design="apple"] .ferien-count b { font-size: 80px; letter-spacing: -.05em; }
/* Events: Weiß, „Deine Woche“: Blau */
[data-design="apple"] #home-events { background: #fff; }
[data-design="apple"] #home-events .events-head { flex-direction: column; gap: 14px; }
[data-design="apple"] #home-events h3, [data-design="apple"] #page-start > .card > h3 { font-size: 32px; margin: 0 0 14px; }
[data-design="apple"] .event-list { width: 100%; text-align: left; }
[data-design="apple"] #page-start > .card:last-child { background: #1d4e89; color: #fff; }
[data-design="apple"] #page-start > .card:last-child .todo { background: rgba(255,255,255,.12); color: #fff; text-align: left; }
[data-design="apple"] #page-start > .card:last-child .todo-text small { color: rgba(255,255,255,.7); }
[data-design="apple"] .todo { border-radius: 14px; }
[data-design="apple"] .todo-list { width: 100%; }
[data-design="apple"] .push-reminder { margin: 0 -16px; border-radius: 0; background: #f5f5f7; }
[data-design="apple"] .set-icon, [data-design="apple"] .todo-icon, [data-design="apple"] .meal-icon, [data-design="apple"] .reg-icon, [data-design="apple"] .choice-icon { color: #0071e3; font-size: 22px; }
[data-design="apple"] #page-start > .card:last-child .todo-icon { color: #fff; }

/* Essensplan: Tage wie Apples Kapitel-Leiste, Mahlzeiten vollflächig */
[data-design="apple"] .day-chips { margin: 0 -16px; padding: 14px 16px 12px; gap: 18px; border-bottom: 1px solid #d2d2d7; }
[data-design="apple"] .day-chip { border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
[data-design="apple"] .day-chip b { width: 38px; height: 38px; border-radius: 50%; background: #f5f5f7; display: grid; place-items: center; font-size: 13px; }
[data-design="apple"] .day-chip span { font-size: 11px; color: #1d1d1f; }
[data-design="apple"] .day-chip.active { background: none; color: #1d1d1f; }
[data-design="apple"] .day-chip.active b { background: #1d1d1f; color: #fff; }
[data-design="apple"] .day-chip.today:not(.active) b { box-shadow: inset 0 0 0 1.5px #0071e3; }
[data-design="apple"] .meal-grid { gap: 0; margin: 0 -16px; }
[data-design="apple"] .meal { border-radius: 0; border: none; box-shadow: none; text-align: center; }
[data-design="apple"] details.meal > summary { padding: 48px 24px 44px; border-radius: 0; }
[data-design="apple"] .meal:nth-child(3n+1) { background: #fff7e3; }
[data-design="apple"] .meal:nth-child(3n+2) { background: #7e2a07; color: #fff; }
[data-design="apple"] .meal:nth-child(3n) { background: #f5f5f7; }
[data-design="apple"] .meal-top { flex-direction: column; gap: 2px; }
[data-design="apple"] .meal-type { color: #bf4800; font-size: 14px; letter-spacing: -.01em; text-transform: none; }
[data-design="apple"] .meal:nth-child(3n+2) .meal-type, [data-design="apple"] .meal:nth-child(3n+2) .meal-time, [data-design="apple"] .meal:nth-child(3n+2) .meal-list { color: rgba(255,255,255,.75); }
[data-design="apple"] .meal-icon { display: none; }
[data-design="apple"] .meal-main { font: 600 30px/1.1 -apple-system, "SF Pro Display", Inter, system-ui; letter-spacing: -.03em; }
[data-design="apple"] .meal-list { list-style: none; font-size: 17px; }
[data-design="apple"] .meal-list li::before { content: none; }
[data-design="apple"] .veg-option { background: none; align-items: center; }
[data-design="apple"] .meal:nth-child(3n+2) .veg-label, [data-design="apple"] .meal:nth-child(3n+2) .veg-main { color: #fff; }
[data-design="apple"] .meal-toggle { justify-content: center; gap: 8px; border: none; color: #0066cc; }
[data-design="apple"] .meal:nth-child(3n+2) .meal-toggle { color: #2997ff; }
[data-design="apple"] .nutri { text-align: left; }

/* Andere Seiten: Karten werden flache, vollbreite Abschnitte */
[data-design="apple"] .content > .page:not(#page-start) .card, [data-design="apple"] .bus, [data-design="apple"] .choice, [data-design="apple"] .empty-plan {
  border-radius: 18px; border: none; box-shadow: none; background: #f5f5f7; }
[data-design="apple"] .content > .page:not(#page-start) > .card { margin-top: 16px; }
[data-design="apple"] .vp-item { border-radius: 14px; border: none; background: #f5f5f7; border-left: 4px solid #0071e3; }
[data-design="apple"] .vp-item.vp-entfall { border-left-color: #e30000; }
[data-design="apple"] .seg { background: #f5f5f7; border-radius: 980px; }
[data-design="apple"] .seg-btn { border-radius: 980px; }
[data-design="apple"] .seg-btn.active { background: #1d1d1f; color: #fff; box-shadow: none; }
[data-design="apple"] .set-group { border-radius: 18px; border: none; background: #f5f5f7; box-shadow: none; }
[data-design="apple"] .set-body .card { background: #fff; }
[data-design="apple"] .modal-box { border-radius: 18px; }
[data-design="apple"] input, [data-design="apple"] textarea, [data-design="apple"] select { border-radius: 12px; border: 1px solid #d2d2d7; background: #fff; }
[data-design="apple"] input:focus, [data-design="apple"] textarea:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.2); }

/* Anmelden & Registrieren: weiß, schwarze Leiste oben, große Überschrift */
[data-design="apple"] .login-screen { background: #fff; align-items: start; padding-top: 80px; position: relative; }
[data-design="apple"] .login-screen::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 48px; background: #161617; }
[data-design="apple"] .login-card { box-shadow: none; border: none; background: #fff; padding: 20px 10px; }
[data-design="apple"] .login-card h1 { font-size: 40px; letter-spacing: -.035em; margin-bottom: 6px; }
[data-design="apple"] .login-card > .logo .school-logo { width: 78px; height: 78px; }
[data-design="apple"] .login-card > .logo .sym-i { width: 52px; height: 52px; color: #0071e3; }
[data-design="apple"] .first-time { background: #f5f5f7; border-radius: 18px; }
[data-design="apple"] .reg-choice { border: 1px solid #d2d2d7; border-radius: 18px; }
[data-design="apple"] .reg-choice.selected { border-color: #0071e3; background: #e8f2fd; box-shadow: none; }

/* Design-Auswahl: Vorschau-Bildchen */
.dp-apple { background: #fff; padding: 0; gap: 0; }
.dp-ab { flex: 0 0 14px; background: #161617; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.dp-ab img { width: 9px; height: 9px; } .dp-ab i { width: 9px; height: 3px; border-top: 1px solid #e8e8ed; border-bottom: 1px solid #e8e8ed; }
.dp-amos { flex: 0 0 30px; display: grid; grid-template-columns: 38% 25% 37%; }
.dp-amos i:nth-child(1) { background: repeating-linear-gradient(90deg, #f2d14a 0 5px, #f07ca3 5px 10px, #ececec 10px 15px); }
.dp-amos i:nth-child(2) { background: #ff6a2b; } .dp-amos i:nth-child(3) { background: #ffc240; }
.dp-arust { flex: 1; background: #7e2a07; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.dp-arust b { width: 50%; height: 5px; border-radius: 2px; background: #fff; } .dp-arust u { width: 22%; height: 5px; border-radius: 9px; background: #0071e3; }
.dp-agray { flex: 0 0 22px; background: #f5f5f7; display: grid; place-items: center; }
.dp-agray b { width: 40%; height: 5px; border-radius: 2px; background: #1d1d1f; }
[data-design="apple"] .hero-apple, [data-design="apple"] .home-card, [data-design="apple"] #page-start > .card, [data-design="apple"] .page-head,
[data-design="apple"] .meal-grid, [data-design="apple"] .day-chips, [data-design="apple"] .push-reminder { width: calc(100% + 32px); max-width: none; }
[data-design="apple"] .day-chip { border: 0 !important; }
