/* Agile Projektwerkstatt – Gestaltung, abgestimmt auf demand-unterricht.de */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Var-Latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/SourceSerif4-Var-Latin.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono Marke"; src: url("/assets/fonts/JetBrainsMono-Bold-Marke.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono Marke"; src: url("/assets/fonts/JetBrainsMono-Regular-Marke.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f8f7f4; --bg-alt: #f1efe9; --surface: #ffffff; --surface-2: #f5f4f0; --surface-3: #ecebe5;
  --ink: #111c2e; --ink-2: #3d495b; --muted: #677285; --line: #e4e0d7; --line-strong: #cfcabe;
  --brand: #12355b; --brand-hover: #0b2745; --on-brand: #ffffff; --brand-soft: #e3eaf3;
  --accent: #0d7482; --accent-soft: #e2f2f2;
  --live: #11774a; --live-soft: #e0f3e8; --soon: #8f5d00; --soon-soft: #fbefd8;
  --danger: #b42318; --danger-soft: #fdecea; --info: #2667ad; --info-soft: #e5eef9;
  --wm-name: #2667ad; --wm-klammer: #3dbcc6; --wm-sub: #1f828a; --wm-sub-zeichen: #2667ad;
  --st-todo: #677285; --st-doing: #2667ad; --st-review: #8f5d00; --st-done: #11774a;
  --r-po: #7a3fb8; --r-sm: #0f7b6c; --r-dev: #2e6bd8; --r-kunde: #b8542f;
  --shadow-sm: 0 1px 2px rgba(17, 28, 46, .06), 0 1px 1px rgba(17, 28, 46, .04);
  --shadow-md: 0 10px 28px -12px rgba(17, 28, 46, .22), 0 2px 6px rgba(17, 28, 46, .06);
  --shadow-lg: 0 40px 70px -30px rgba(17, 28, 46, .45), 0 16px 30px -18px rgba(17, 28, 46, .25);
  --radius: 16px; --radius-sm: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono Marke", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --av-l: 88%; --av-c: 32%; --note-l: 95%;
  /* Kopfband in Nachtblau wie die Website, Türkis aus dem Schriftzug, Orange = Farbe der Projektwerkstatt auf demand-unterricht.de */
  --band: #12355b; --band-deep: #0d2846; --on-band: #ffffff; --on-band-2: rgba(255, 255, 255, .76); --on-band-3: rgba(255, 255, 255, .52);
  --band-line: rgba(255, 255, 255, .15); --band-raise: rgba(255, 255, 255, .07);
  --teal: #3dbcc6; --teal-2: #63d3d9; --on-teal: #06262e; --now: #b8542f; --now-glow: rgba(232, 128, 84, .45);
  --s-done: #3dbcc6; --s-review: rgba(61, 188, 198, .5); --s-doing: rgba(255, 255, 255, .5); --s-todo: rgba(255, 255, 255, .16);
  color-scheme: light;
}
/* Seit 1.5.1 am Bildschirm immer dunkel, unabhängig von der Einstellung des Browsers; ausgedruckt (Zugangskarten, Listen) bleibt es hell */
@media screen {
  :root:not([data-theme="light"]) {
    --bg: #0b121c; --bg-alt: #0f1824; --surface: #141e2d; --surface-2: #19253a; --surface-3: #1f2d45;
    --ink: #e8edf4; --ink-2: #bfc9d6; --muted: #8e9aac; --line: #223149; --line-strong: #30425f;
    --brand: #2a5f98; --brand-hover: #3570b0; --brand-soft: rgba(106, 159, 224, .14);
    --accent: #56c7cf; --accent-soft: rgba(86, 199, 207, .13);
    --live: #5fd49a; --live-soft: rgba(95, 212, 154, .13); --soon: #f0bd5e; --soon-soft: rgba(240, 189, 94, .13);
    --danger: #ff8a80; --danger-soft: rgba(255, 138, 128, .13); --info: #6a9fe0; --info-soft: rgba(106, 159, 224, .14);
    --wm-name: #6a9fe0; --wm-klammer: #4aced7; --wm-sub: #4aced7; --wm-sub-zeichen: #6a9fe0;
    --st-todo: #8e9aac; --st-doing: #6a9fe0; --st-review: #f0bd5e; --st-done: #5fd49a;
    --r-po: #b48be6; --r-sm: #4fc2b0; --r-dev: #7aa7f0; --r-kunde: #ec9673;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    --av-l: 30%; --av-c: 40%; --note-l: 20%;
    --band: #11233c; --band-deep: #0d1b30; --band-line: rgba(255, 255, 255, .12); --band-raise: rgba(255, 255, 255, .05);
    --now: #e2774c;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.wrap-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow, .narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 16px; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font: 600 .88rem/1.2 var(--sans); color: var(--accent); margin-bottom: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.main { flex: 1; padding: 28px 0 64px; }

/* ------------------------------------------------------------ Kopfzeile: wie auf demand-unterricht.de
   Großes D mit Schriftzug, durchscheinend auf dem Seitenhintergrund; beim Scrollen flacher, Logo kleiner. */
.app-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; color: var(--ink); }
.app-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; transition: height .3s ease; }
.app-header.scrolled .bar { height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); transform-origin: left center; transition: transform .3s ease; min-width: 0; }
.brand:hover { color: var(--ink); }
.app-header.scrolled .brand { transform: scale(.7); }
.logo-mark { flex: none; display: block; width: auto; height: 60px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wm .brand-name { display: block; min-height: 1.08em; font: 700 1.8rem/1.08 var(--mono); letter-spacing: -.02em; white-space: nowrap; color: var(--wm-name); }
.wm .brand-sub { display: block; font: 400 1.26rem/1.1 var(--mono); letter-spacing: 0; color: var(--wm-sub); margin-top: 4px; white-space: nowrap; }
.wm .brand-name .t { color: var(--wm-klammer); }
.wm .brand-sub .t { color: var(--wm-sub-zeichen); }
.hnav { display: flex; align-items: center; gap: 6px; }
.hnav-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.hnav-link:hover { color: var(--ink); background: var(--surface-2); }
.me { display: inline-flex; align-items: center; gap: 8px; padding-right: 4px; }
.me-text { display: flex; flex-direction: column; line-height: 1.15; }
.me-text strong { font-size: .9rem; }
.me-text small { color: var(--muted); font-size: .76rem; }

/* Arbeitsbereich eines Teams: Projekt, Team und Sprint-Puls */
.ws-head { border-top: 1px solid transparent; }
.ws-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 28px; padding-top: 6px; padding-bottom: 14px; flex-wrap: wrap; }
.ws-project { font: 600 .88rem/1.3 var(--sans); color: var(--accent); }
.ws-team { font: 600 clamp(1.5rem, 1.2vw + 1.05rem, 2rem)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); margin-top: 2px; }

.pulse { display: grid; grid-template-columns: auto auto; align-items: end; gap: 8px 18px; }
.pulse-text { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.pulse-text strong { font: 600 .82rem/1.2 var(--sans); color: var(--muted); }
.pulse-text span { font: 650 1.02rem/1.25 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.pips { display: flex; list-style: none; margin: 0; padding: 0; }
.pips li { position: relative; width: 30px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pips li::after { content: ""; position: absolute; left: 50%; width: 100%; top: 6px; height: 2px; background: var(--line-strong); }
.pips li:last-child::after { display: none; }
.pips li.past::after { background: var(--accent); }
.pips i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.pips li.past i { background: var(--accent); border-color: var(--accent); }
.pips li.now i { background: var(--now); border-color: var(--now); box-shadow: 0 0 0 3px color-mix(in srgb, var(--now) 22%, transparent); }
.pips span { font: 600 .68rem/1 var(--sans); color: var(--muted); }
.pips li.now span { color: var(--ink); }
.pulse-sub { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: .8rem; color: var(--muted); }
.pulse-bar { display: inline-block; width: 120px; height: 6px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.pulse-bar i { display: block; height: 100%; border-radius: 9px; background: var(--accent); }
.pulse.phase-future .pips li i { border-style: dashed; }

/* Reiter des Arbeitsbereichs (und der Projektseite): Unterstrich in Türkis, bleiben unter der Kopfzeile stehen */
.ws-tabs { position: sticky; top: 72px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.ws-tabs-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ws-tabs-row::-webkit-scrollbar { display: none; }
:is(.ws-tabs, .band-tabs) a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 11px; color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .93rem; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
:is(.ws-tabs, .band-tabs) a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
:is(.ws-tabs, .band-tabs) a.active { color: var(--ink); font-weight: 650; border-bottom-color: var(--accent); }
:is(.ws-tabs, .band-tabs) a.active .ic { color: var(--accent); }
html:has(body.area-team) { scroll-padding-top: 130px; }
.teacher-banner { background: var(--soon-soft); color: var(--soon); font-size: .88rem; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------ Seitenkopf */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font: 600 clamp(1.55rem, 1.6vw + 1rem, 2.15rem)/1.15 var(--serif); letter-spacing: -.015em; }
.page-lead { color: var(--ink-2); margin-top: 6px; max-width: 46em; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { font: 650 1.05rem/1.3 var(--sans); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ Karten und Raster */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card-title { font: 650 1.05rem/1.3 var(--sans); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .card-title { margin: 0; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.flat { box-shadow: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cols > .stack, .cols > div { min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* ------------------------------------------------------------ Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; font: 600 .92rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; background: none; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-success { background: var(--live); color: #fff; }
.btn-success:hover { background: color-mix(in srgb, var(--live) 85%, #000); color: #fff; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-quiet { padding: 6px 8px; color: var(--ink-2); font-weight: 560; }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 8px; }
.btn-xs { padding: 3px 8px; font-size: .78rem; border-radius: 7px; gap: 4px; }
.btn-lg { padding: 12px 20px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------ Formulare */
.form .field + .field, .field-gap { margin-top: 14px; }
/* In Rastern stehen Felder nebeneinander: kein zusätzlicher Abstand oben, sonst sind sie versetzt */
.form .grid2 > .field + .field, .form .grid3 > .field + .field, .form .row > .field + .field { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field small, .hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: 400 .95rem/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.code-input { font: 600 1.2rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check + .check { margin-top: 8px; }
/* Wochentage für mehrere Dailys (seit 1.6.1) */
fieldset.weekdays { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
fieldset.weekdays legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .88rem; color: var(--ink); }
fieldset.weekdays .check + .check { margin-top: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.radio-cards label { position: relative; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; background: var(--surface); }
.radio-cards:has(> label:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .radio-cards, .radio-cards:has(> label:nth-child(4)) { grid-template-columns: 1fr; } }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.radio-cards input { accent-color: var(--brand); margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
.form-section + .form-section { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.form-section h2 { font: 650 1.08rem/1.3 var(--sans); margin-bottom: 4px; }
.form-section > p.muted { margin-bottom: 14px; font-size: .9rem; }
.code-box { width: 100%; font: 400 .85rem/1.45 ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; }
.req-note { display: none; }
.req-note.show { display: block; }

/* ------------------------------------------------------------ Meldungen */
.flashes { margin-bottom: 18px; display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: .93rem; border: 1px solid transparent; }
.flash .ic { margin-top: 2px; }
.flash-success { background: var(--live-soft); color: var(--live); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--info-soft); color: var(--info); }
.flash a { color: inherit; font-weight: 600; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: .9rem; color: var(--ink-2); }
.notice.warn { background: var(--soon-soft); border-color: transparent; color: var(--soon); }
.notice.ok { background: var(--live-soft); border-color: transparent; color: var(--live); }
.notice.err { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice .ic { margin-top: 2px; }

/* ------------------------------------------------------------ Etiketten */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 650 .74rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }
.pill-past { background: var(--surface-2); color: var(--muted); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: var(--info); }
.st { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.st-todo { --c: var(--st-todo); }
.st-doing { --c: var(--st-doing); }
.st-review { --c: var(--st-review); }
.st-done { --c: var(--st-done); background: var(--live-soft); color: var(--live); }
.role { display: inline-flex; align-items: center; font: 700 .7rem/1 var(--sans); letter-spacing: .03em; padding: 4px 7px; border-radius: 6px; color: #fff; background: var(--r-dev); white-space: nowrap; }
.role-po { background: var(--r-po); }
.role-sm { background: var(--r-sm); }
.role-dev { background: var(--r-dev); }
.role-kunde { background: var(--r-kunde); }
@media screen { :root:not([data-theme="light"]) .role { color: #0b121c; } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .chip { font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.pts { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font: 700 .78rem/1 var(--sans); }
.pts.sp { background: var(--brand-soft); color: var(--brand); }
@media screen { :root:not([data-theme="light"]) .pts.sp { color: var(--info); } }

/* Avatare */
.av { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 999px; font: 700 .7rem/1 var(--sans); letter-spacing: .02em; background: hsl(var(--h) var(--av-c) var(--av-l)); color: hsl(var(--h) 55% 22%); border: 2px solid var(--surface); }
@media screen { :root:not([data-theme="light"]) .av { color: hsl(var(--h) 70% 86%); } }
.av.sm { min-width: 24px; height: 24px; font-size: .62rem; padding: 0 3px; }
.av.lg { min-width: 40px; height: 40px; font-size: .85rem; }
.av-stack { display: inline-flex; align-items: center; }
.av-stack .av + .av { margin-left: -6px; }
.av.sup { opacity: .85; }

/* ------------------------------------------------------------ Tabellen */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font: 600 .8rem/1.2 var(--sans); color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.compact td { padding: 7px 10px; }
.tbl tr.inactive td { opacity: .55; }
.tbl input, .tbl select { padding: 6px 8px; font-size: .88rem; }

/* ------------------------------------------------------------ Leerer Zustand, Statistik */
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty-ic { width: 34px; height: 34px; color: var(--line-strong); margin: 0 auto 10px; display: block; }
.empty-title { font-weight: 650; color: var(--ink-2); }
.empty-text { margin-top: 4px; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.stat-label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat-value { font: 650 1.35rem/1.2 var(--sans); margin-top: 2px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--live); border-radius: 99px; }

/* ------------------------------------------------------------ Board */
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; -webkit-overflow-scrolling: touch; }
.bcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 160px; transition: background-color .15s, border-color .15s; }
.bcol.drop-ok { background: var(--accent-soft); border-color: var(--accent); }
.bcol.drop-no { opacity: .55; }
.bcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.bcol-head h2 { font: 650 .92rem/1.2 var(--sans); }
.bcol-head .count { font-size: .78rem; color: var(--muted); font-weight: 600; }
.bcol-head .st { padding: 0; background: none; }
.bcol-head .st::before { width: 9px; height: 9px; }
.bcol-head .colpts { margin-left: auto; font-size: .76rem; color: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tcard { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid hsl(var(--sh, 220) 50% 52%); border-radius: 10px; padding: 10px 11px 9px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tcard:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.tcard[draggable=true] { cursor: grab; }
.tcard.dragging { opacity: .45; transform: rotate(1.5deg); }
.tcard.mine { box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow-sm); }
.tcard.blocked { border-color: var(--danger); border-left-color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 55%, var(--surface)); }
/* Pfeile auf der Karte: in die nächste oder vorige Spalte schieben (seit 1.6.2) */
.tcard-item { position: relative; }
.tcard.has-move > :first-child { padding-right: calc(var(--mv, 0) * 30px); }
.t-move { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; z-index: 1; }
.t-arrow { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.t-arrow .ic { width: 15px; height: 15px; }
.t-arrow:hover { color: var(--ink); background: var(--accent-soft); border-color: var(--accent); }
.t-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
  .t-arrow { width: 34px; height: 34px; border-radius: 10px; }
  .tcard.has-move > :first-child { padding-right: calc(var(--mv, 0) * 38px); }
}
.t-story { font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-title { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.t-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 24px; }
.t-meta .av-stack { margin-left: auto; }
.t-flag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 650; color: var(--danger); }
.t-skill { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
/* Karten bleiben immer in ihrer Spalte, auch bei langen Titeln, langen Story-Namen oder vielen Kürzeln (seit 1.6.3).
   Ohne die feste Spaltenangabe bei .cards richtet sich das Raster nach dem breitesten Inhalt und die Karten ragen über die Spalte hinaus. */
.bcol { min-width: 0; }
.cards { grid-template-columns: minmax(0, 1fr); }
.tcard-item, .tcard { min-width: 0; }
.tcard { overflow-wrap: anywhere; }
.t-title { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 4 4; }
.t-meta { flex-wrap: wrap; }
.t-meta .av-stack { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; min-width: 0; }
@media (pointer: coarse) {
  /* Am Tablet und Handy sind die Pfeile größer: Mit Story-Zeile beginnt der Titel erst darunter, statt unter den Pfeilen zu verschwinden */
  .tcard.has-move > .t-story { min-height: 30px; line-height: 30px; }
}
.add-task { margin-top: 8px; }
.add-task summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.add-task summary::-webkit-details-marker { display: none; }
.add-task summary:hover { background: var(--surface); }
.add-task[open] summary { color: var(--ink); }
.add-task form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 6px; }

/* ------------------------------------------------------------ Dialog */
dialog.modal { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(780px, calc(100% - 20px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(9, 18, 31, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font: 600 1.25rem/1.25 var(--serif); }
.modal-head .icon-btn { margin-left: auto; flex: none; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-loading { padding: 40px; text-align: center; color: var(--muted); }

/* Aufgabendetails */
.task-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.task-meta > div { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.task-meta dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.task-meta dd { margin: 3px 0 0; font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.actions-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.actions-panel + .actions-panel { margin-top: 12px; }
.actions-panel h3 { font: 650 .95rem/1.3 var(--sans); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.act-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
details.act { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.act + details.act { margin-top: 8px; }
details.act > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
details.act > summary::-webkit-details-marker { display: none; }
details.act > summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.2rem; transition: transform .15s; }
details.act[open] > summary::after { transform: rotate(90deg); }
details.act > .act-body { padding: 0 14px 14px; }
details.act.primary > summary { color: var(--brand); }
@media screen { :root:not([data-theme="light"]) details.act.primary > summary { color: var(--info); } }
details.act.danger > summary { color: var(--danger); }
/* Eigene Schwerpunkte in der Team-Karte der Übersicht (seit 1.6) */
details.act.skills-edit { margin-top: 12px; }
details.act.skills-edit > summary { font-size: .9rem; padding: 9px 12px; }
details.act.skills-edit > .act-body { padding: 0 12px 12px; }
.dod-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.reflect { background: var(--info-soft); border-radius: 10px; padding: 12px 14px; }
.reflect h4 { font-size: .9rem; margin-bottom: 6px; color: var(--info); }
.est-compare { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.est-compare .arrow { color: var(--muted); }
.dev-badge { font-size: .78rem; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); }
.dev-badge.warn { background: var(--soon-soft); color: var(--soon); }
.dev-badge.ok { background: var(--live-soft); color: var(--live); }

/* Verlauf */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 6px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); display: grid; place-items: center; }
.tl-dot.k-start, .tl-dot.k-assign { border-color: var(--st-doing); background: var(--st-doing); }
.tl-dot.k-finish, .tl-dot.k-accept { border-color: var(--st-done); background: var(--st-done); }
.tl-dot.k-release, .tl-dot.k-reject, .tl-dot.k-reopen, .tl-dot.k-backlog { border-color: var(--st-review); background: var(--st-review); }
.tl-dot.k-block { border-color: var(--danger); background: var(--danger); }
.tl-head { font-size: .9rem; }
.tl-head strong { font-weight: 650; }
.tl-time { color: var(--muted); font-size: .8rem; }
.tl-body { margin-top: 4px; font-size: .9rem; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.tl-data { margin-top: 6px; font-size: .86rem; color: var(--ink-2); }

/* ------------------------------------------------------------ Backlog */
.story-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.story { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.story.dragging { opacity: .5; }
.story.drop-target { box-shadow: 0 -3px 0 var(--accent); }
.story .grip { color: var(--muted); cursor: grab; padding-top: 2px; }
.story .prio { font: 700 .82rem/1 var(--sans); color: var(--muted); min-width: 22px; padding-top: 4px; }
.story-main { flex: 1; min-width: 0; }
.story-title { font-weight: 650; color: var(--ink); text-decoration: none; }
.story-title:hover { color: var(--accent); }
.story-sentence { color: var(--ink-2); font-size: .9rem; margin-top: 3px; }
.story-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.story-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.story.accepted { background: color-mix(in srgb, var(--live-soft) 50%, var(--surface)); }
.acc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.acc-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.acc-list .ok { color: var(--live); }

/* Planning Poker */
.poker-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.poker-card { width: 54px; height: 76px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 1.25rem/1 var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .12s, border-color .12s, background-color .12s; }
.poker-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.poker-card.chosen { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.poker-votes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pv { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pv-card { width: 44px; height: 60px; border-radius: 8px; display: grid; place-items: center; font: 700 1.05rem/1 var(--sans); border: 1.5px solid var(--line-strong); background: repeating-linear-gradient(45deg, var(--brand-soft), var(--brand-soft) 6px, var(--surface) 6px, var(--surface) 12px); }
.pv-card.shown { background: var(--surface); }
.pv-card.missing { border-style: dashed; background: none; color: var(--muted); }

/* ------------------------------------------------------------ Segment-Umschalter */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .86rem; border: 0; background: none; cursor: pointer; }
.seg a.active, .seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ Termine */
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
a.ev:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: var(--ink); }
.ev-date { width: 52px; flex: none; text-align: center; background: var(--surface-2); border-radius: 9px; padding: 6px 0; line-height: 1.1; }
.ev-date b { display: block; font-size: 1.15rem; }
.ev-date small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { display: block; font-weight: 650; }
.ev-sub { display: block; font-size: .84rem; color: var(--muted); }
.ev.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ev.past { opacity: .75; }
.mod-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.mod-chip .av { border-width: 0; }
.ek { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ek-planning { background: var(--r-po); }
.ek-daily { background: var(--r-dev); }
.ek-review { background: var(--r-kunde); }
.ek-retro { background: var(--r-sm); }
.ek-other { background: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--surface); font-size: .88rem; }
.slot.free { border-style: dashed; }
.slot.mine { border-color: var(--brand); background: var(--brand-soft); }
.slot.taken { background: var(--surface-2); color: var(--muted); }
.slot b { display: block; }
.booking { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.booking + .booking { margin-top: 12px; }
.booking.live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live) inset; }
.daily-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.daily-entry { background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: .9rem; }
.daily-entry dt { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 8px; }
.daily-entry dd { margin: 2px 0 0; }

/* ------------------------------------------------------------ Retro */
.retro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.retro-col { background: var(--surface-2); border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.retro-col h2 { font: 650 1rem/1.2 var(--sans); }
.retro-col .q { font-size: .82rem; color: var(--muted); margin: 3px 0 10px; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.note { background: hsl(var(--nh) 80% var(--note-l)); border-radius: 10px; padding: 10px 11px; font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.note p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.note-votes { display: flex; align-items: center; gap: 4px; }
.vote-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 2px 8px; font: 650 .78rem/1.4 var(--sans); cursor: pointer; color: var(--ink-2); }
.vote-btn.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.retro-col form { margin-top: 10px; display: flex; gap: 6px; }
.retro-col form input { font-size: .9rem; }
.col-start { --nh: 150; }
.col-stop { --nh: 8; }
.col-continue { --nh: 210; }

/* ------------------------------------------------------------ Diagramme */
.chart { margin: 0; }
.burndown { width: 100%; height: auto; display: block; overflow: visible; }
.burndown .grid { stroke: var(--line); stroke-width: 1; }
.burndown .axis { fill: var(--muted); font: 500 11px var(--sans); }
.burndown .ideal { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 6 5; }
.burndown .actual { stroke: var(--info); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.burndown .dot { fill: var(--info); stroke: var(--surface); stroke-width: 2; cursor: default; }
.burndown .end-label { fill: var(--ink); font: 650 12px var(--sans); }
.burndown.mini .ideal { stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--info); }
.key-ideal { border-top: 2px dashed var(--line-strong); }
.chart-table { margin-top: 8px; font-size: .84rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-table .tbl { margin-top: 6px; max-width: 360px; }

/* ------------------------------------------------------------ Teamkarten (Lehrkraft) */
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.team-card h3 { font: 600 1.25rem/1.2 var(--serif); }
.member-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 8px 3px 3px; background: var(--surface-2); border-radius: 999px; }
.mchip .av { min-width: 22px; height: 22px; font-size: .6rem; border-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .89rem; display: flex; gap: 10px; align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: .78rem; white-space: nowrap; margin-left: auto; padding-left: 8px; }
.proj-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.proj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.proj-card h2 { font: 600 1.35rem/1.2 var(--serif); }

/* ------------------------------------------------------------ Einstieg/Login */
.login-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(10px, 4vw, 40px) 0; }
.login-hero h1 { font: 600 clamp(2rem, 3.6vw + .6rem, 3.2rem)/1.08 var(--serif); letter-spacing: -.015em; margin-bottom: 16px; }
.login-hero .lead { font-size: 1.08rem; color: var(--ink-2); max-width: 34em; }
.hl { background: linear-gradient(transparent 64%, color-mix(in srgb, #5fd6d3 45%, transparent) 64%, color-mix(in srgb, #5fd6d3 45%, transparent) 92%, transparent 92%); padding: 0 .06em; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .ic { color: var(--accent); margin-top: 3px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-md); }
.login-card h2 { font: 600 1.4rem/1.2 var(--serif); margin-bottom: 4px; }
.steps-mini { display: flex; gap: 8px; margin-bottom: 18px; }
.steps-mini span { flex: 1; height: 5px; border-radius: 9px; background: var(--surface-3); }
.steps-mini span.on { background: var(--brand); }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.choice input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.choice-title { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice-text { font-size: .9rem; color: var(--ink-2); margin-top: 3px; }

/* Rollenwissen */
.role-card { border-left: 4px solid var(--rc, var(--r-dev)); }
.role-card.r-po { --rc: var(--r-po); }
.role-card.r-sm { --rc: var(--r-sm); }
.role-card.r-dev { --rc: var(--r-dev); }
.role-card.r-kunde { --rc: var(--r-kunde); }
.role-card ul { padding-left: 20px; margin-top: 8px; }
.role-card li + li { margin-top: 4px; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gloss div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gloss dt { font-weight: 650; }
.gloss dd { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.gloss-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-top: 32px; }
.gloss-head .section-title { margin: 0; }
.gloss-search input { width: 100%; }
.gloss-search { flex: 0 1 320px; }
.gloss-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.gloss-nav a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.gloss-nav a:hover { color: var(--info); border-color: var(--info); }
.gloss-group { margin-top: 18px; scroll-margin-top: 80px; }
.gloss-group-title { font: 600 1.15rem/1.3 var(--serif); color: var(--ink); margin: 0 0 10px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist .ok { color: var(--live); }
.checklist .bad { color: var(--danger); }

/* ------------------------------------------------------------ Fuß */
.app-footer { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .84rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------ Kleine Bildschirme */
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .login-hero { grid-template-columns: 1fr; }
  .retro { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap-wide, .wrap { padding: 0 16px; }
  .ws-row { padding-top: 10px; }
  .ws-team { font-size: 1.25rem; }
  .foot { padding: 14px 16px; }
  .main { padding-top: 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .card { padding: 16px; }
  .me-text { display: none; }
  .board { grid-template-columns: repeat(var(--cols, 4), minmax(78vw, 1fr)); scroll-snap-type: x mandatory; }
  .bcol { scroll-snap-align: start; }
  .story { flex-wrap: wrap; }
  .story-actions { width: 100%; justify-content: flex-start; }
  .modal-body { padding: 14px; }
  .page-actions { width: 100%; }
}

/* ------------------------------------------------------------ Druck (Zugangskarten, Auswertung) */
.print-main { padding: 20px; }
.print-only { display: none; }
.cut-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cut-card { border: 1px dashed #999; padding: 14px 16px; min-height: 64mm; display: flex; flex-direction: column; gap: 6px; break-inside: avoid; page-break-inside: avoid; color: #111; background: #fff; }
.cut-card .cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cut-card .cc-proj { font: 600 1.05rem/1.2 var(--serif); }
.cut-card .cc-nr { font: 700 1.6rem/1 var(--sans); color: #12355b; }
.cut-card .cc-field { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #ddd; padding: 4px 0; }
.cut-card .cc-field span { color: #555; font-size: .85rem; }
.cut-card .cc-field b { font: 700 1.05rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.cut-card .cc-url { font-size: .82rem; color: #333; }
.cut-card .cc-hint { font-size: .74rem; color: #555; margin-top: auto; }
.teacher-list { font-size: .9rem; background: #fff; color: #111; } /* wie Papier, auch auf dunklem Bildschirm lesbar */
.teacher-list td, .teacher-list th { border: 1px solid #bbb; padding: 6px 8px; color: #111; }
.teacher-list .name { width: 45%; }
.page-break { break-before: page; page-break-before: always; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #111; display: block; }
  .no-print, .app-header, .app-footer, .flashes, .teacher-banner { display: none !important; }
  .print-only { display: block; }
  .print-main, .main { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  a { color: #111; text-decoration: none; }
  .tbl th, .tbl td { border-color: #ccc; }
}

/* ------------------------------------------------------------ Freigaben (seit 1.1) */
.decision-card { border-left: 4px solid var(--r-po); }
.dec { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.dec + .dec { margin-top: 12px; }
.dec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dec-title { font: 650 1rem/1.3 var(--sans); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dec-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.dec-body { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.dec-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.dec-list > li::marker { font-weight: 700; color: var(--muted); }
.dec-acc { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.dec-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.dec-actions textarea { min-height: 44px; }
.dec-actions .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dec-group-title { font: 600 1.15rem/1.2 var(--serif); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font: 700 .7rem/1 var(--sans); }
@media (max-width: 640px) { .dec-actions { grid-template-columns: 1fr; } }
.order-btns { display: inline-flex; flex-direction: column; gap: 0; }
.order-btns .icon-btn { width: 26px; height: 22px; }
.ev-pills { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
[hidden] { display: none !important; }


/* ---------------------------------------------------------------- Sprint-Ablaufplan: vier Phasen zum Aufklappen */
.plan-card { margin-bottom: 22px; }
.plan-card .card-head { align-items: flex-start; }
.plan-card .card-head p { max-width: 64ch; margin-top: 4px; }
.plan-sum { display: grid; gap: 6px; justify-items: end; min-width: 220px; }
.plan-sum .progress { width: 220px; }
.plan-count { font-size: .86rem; color: var(--ink-2); }
.plan { display: grid; gap: 10px; }
.plan-phase { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.plan-phase[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.plan-phase.is-now { border-color: color-mix(in srgb, var(--now) 55%, var(--line)); }
.plan-head { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; }
.plan-head::-webkit-details-marker { display: none; }
.plan-head:hover { background: var(--surface-2); }
.plan-head:focus-visible { outline-offset: -3px; }
.plan-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.plan-num .ic { width: 17px; height: 17px; }
.plan-phase.is-now .plan-num { background: var(--now); border-color: var(--now); color: #fff; }
.plan-phase.is-complete .plan-num { background: var(--live); border-color: var(--live); color: var(--surface); }
.plan-head-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-head-title { font: 650 1.05rem/1.3 var(--sans); color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-head-sub { font-size: .82rem; color: var(--muted); }
.plan-head-bar { display: block; height: 4px; max-width: 260px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: 3px; }
.plan-head-bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.plan-head-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.plan-chev { color: var(--muted); display: grid; place-items: center; transition: transform .3s ease; }
.plan-phase[open] .plan-chev { transform: rotate(180deg); }
.pill-now { background: color-mix(in srgb, var(--now) 14%, transparent); color: var(--now); }
/* Aufklappen: Inhalt rollt nach unten aus, die Schritte erscheinen nacheinander */
.plan-phase::details-content { block-size: 0; overflow: hidden; transition: block-size .38s ease, content-visibility .38s allow-discrete; }
.plan-phase[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }
.plan-content { padding: 4px 18px 18px 66px; border-top: 1px solid var(--line); }
.plan-intro { margin: 14px 0 6px; color: var(--ink-2); font-size: .94rem; max-width: 78ch; }
.plan-phase[open] .plan-step { animation: step-in .35s ease both; animation-delay: calc(var(--n, 0) * 55ms + 60ms); }
@keyframes step-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.plan-steps { list-style: none; margin: 0; padding: 0; }
.plan-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.plan-step:first-child { border-top: 0; }
.plan-step.next { margin: 0 -12px; padding: 16px 12px; border-radius: 12px; background: var(--info-soft); border-top-color: transparent; }
.plan-step.next + .plan-step { border-top-color: transparent; }
.plan-tick { flex: none; margin: 0; }
.tick, .plan-mark { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; padding: 0; margin-top: 1px; }
.tick { border: 2px solid var(--line-strong); background: var(--surface); color: transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.tick .ic, .plan-mark .ic { width: 15px; height: 15px; }
button.tick:hover { border-color: var(--live); color: var(--line-strong); }
.plan-step.done .tick { background: var(--live); border-color: var(--live); color: var(--surface); }
.plan-step.done .tick .ic { animation: tick-pop .3s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tick-pop { from { transform: scale(.3); } to { transform: scale(1); } }
.plan-mark { border-radius: 50%; border: 2px dashed var(--line-strong); color: var(--muted); }
.plan-step.done .plan-mark { border: 0; background: var(--live); color: var(--surface); }
.plan-step.waiting .plan-mark { border: 0; background: var(--info-soft); color: var(--info); }
.plan-step.attention .plan-mark { border: 0; background: var(--soon-soft); color: var(--soon); }
.plan-body { min-width: 0; flex: 1; }
.plan-step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-step-n { font: 650 .78rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-title { font-weight: 650; color: var(--ink); text-decoration: none; font-size: .98rem; }
.plan-title:hover { text-decoration: underline; color: var(--ink); }
.plan-kind { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.plan-text { margin-top: 4px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; max-width: 80ch; }
.plan-step.done .plan-text, .plan-step.done .plan-items { display: none; }
.plan-items { margin: 8px 0 0; display: grid; gap: 6px; max-width: 80ch; }
.plan-items div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; font-size: .88rem; }
.plan-items dt { font-weight: 650; color: var(--ink); }
.plan-items dd { margin: 0; color: var(--ink-2); }
.plan-info { margin-top: 10px; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; background: var(--surface-2); border-radius: 10px; padding: 9px 12px; font-size: .87rem; color: var(--ink-2); max-width: 80ch; }
.plan-info-label { font-weight: 650; color: var(--muted); font-size: .8rem; padding-top: 1px; }
.plan-list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.plan-list .pill { margin-left: 4px; padding: 3px 7px; font-size: .7rem; }
.plan-quote { display: block; margin-top: 4px; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-style: italic; }
.plan-info q { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.warn-txt { color: var(--soon); }
.plan-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.plan-status .pill .ic { width: 13px; height: 13px; }
.plan-status form { margin: 0; }
.plan-missing { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--soon); }
.plan-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--soon-soft); color: var(--soon); font-size: .88rem; max-width: 80ch; }
.plan-note .ic { margin-top: 2px; }
.plan-by { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.plan-by .ic { width: 13px; height: 13px; color: var(--live); }
/* Freigaben auf den Arbeitsseiten */
.plan-panel-list { list-style: none; margin: 0; padding: 0; }
.plan-panel-list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.plan-panel-list > li:first-child { border-top: 0; padding-top: 4px; }
.plan-panel-head { display: flex; align-items: center; gap: 8px; }
.plan-panel-head a { font-weight: 650; color: var(--ink); text-decoration: none; }
.plan-panel-head a:hover { text-decoration: underline; }
.plan-panel .plan-status { margin-top: 6px; }
@media (max-width: 760px) {
  .plan-head { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .plan-head-flags { grid-column: 2 / -1; justify-content: flex-start; }
  .plan-chev { grid-row: 1; grid-column: 3; }
  .plan-content { padding: 2px 14px 14px; }
  .plan-info, .plan-items div { grid-template-columns: 1fr; }
  .plan-sum { justify-items: start; min-width: 0; width: 100%; }
  .plan-sum .progress { width: 100%; }
}
@media print {
  .plan-phase::details-content { block-size: auto; }
}

/* ================================================================ Version 1.3: Sprint-Bühne, Bewegung, Erfolgsmomente */

/* Sprint-Bühne auf der Übersicht: das Sprint Goal als Mittelpunkt */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 28px 36px; background: var(--band); color: var(--on-band); border-radius: 22px; padding: 28px 32px 26px; margin-bottom: 22px; position: relative; overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--band-line); pointer-events: none; }
.stage-top { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; }
.stage-hello { font: 600 clamp(1.5rem, 1.6vw + 1rem, 2.1rem)/1.15 var(--serif); color: var(--on-band); letter-spacing: -.01em; }
.stage-role { font-size: .82rem; color: var(--on-band-2); border: 1px solid var(--band-line); border-radius: 999px; padding: 3px 10px; }
.stage-label { margin-top: 22px; font: 600 .86rem/1.2 var(--sans); color: var(--teal); }
.stage-goal { margin-top: 6px; max-width: 34em; padding-left: .95em; text-indent: -.95em; font: 600 clamp(1.3rem, 1vw + 1rem, 1.85rem)/1.32 var(--serif); color: var(--on-band); text-wrap: balance; }
.stage-goal .brace { font: 700 1.3em/1 var(--mono); color: var(--teal); vertical-align: -.06em; }
.stage-goal .brace:first-child { display: inline-block; width: calc(.95em / 1.3); text-indent: 0; }
.stage-goal .brace:last-child { margin-left: .2em; }
.stage-goal.is-empty .goal-text { color: var(--on-band-2); font-weight: 500; }
.stage-side { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--band-line); padding-left: 32px; }
.momentum { font: 500 1.02rem/1.5 var(--sans); color: var(--on-band); }
.stage-next { display: block; border: 1px solid var(--band-line); background: var(--band-raise); border-radius: 14px; padding: 11px 14px; color: var(--on-band); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.stage-next:hover { border-color: var(--teal); color: var(--on-band); background: rgba(61, 188, 198, .1); }
.stage-next span { display: block; font-size: .78rem; color: var(--on-band-2); }
.stage-next strong { display: block; font-weight: 650; margin-top: 2px; }
.stage-next.is-done strong { color: var(--s-done); }
.stage-next small { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: .8rem; line-height: 1.4; color: var(--on-band-2); }
.stage-next small .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* Task-Streifen: jeder Task ein Segment, fertig zuerst */
.strip { display: flex; gap: 3px; height: 14px; margin-top: 26px; }
.strip i { flex: 1 1 0; min-width: 3px; border-radius: 4px; background: var(--s-todo); transform-origin: left center; }
.strip .s-done { background: var(--s-done); }
.strip .s-review { background: var(--s-review); }
.strip .s-doing { background: var(--s-doing); }
.strip-anim i { animation: seg-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: min(calc(var(--i) * 45ms), 1100ms); }
@keyframes seg-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.strip-empty { height: auto; display: block; border: 1px dashed var(--band-line); border-radius: 10px; padding: 9px 12px; font-size: .86rem; color: var(--on-band-2); }
.strip-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .84rem; color: var(--on-band-2); font-variant-numeric: tabular-nums; }
.strip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.strip-legend .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--s-todo); }
.strip-legend .k.s-done { background: var(--s-done); }
.strip-legend .k.s-review { background: var(--s-review); }
.strip-legend .k.s-doing { background: var(--s-doing); }
/* Auf Papier (z. B. Teamkarten der Lehrkraft) */
.strip.on-paper { margin-top: 0; height: 10px; }
.strip.on-paper i { background: var(--surface-3); }
.strip.on-paper .s-done { background: var(--accent); }
.strip.on-paper .s-review { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.strip.on-paper .s-doing { background: color-mix(in srgb, var(--muted) 55%, var(--surface)); }
.strip-legend.on-paper { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.strip-legend.on-paper .k { background: var(--surface-3); }
.strip-legend.on-paper .k.s-done { background: var(--accent); }
.strip-legend.on-paper .k.s-review { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.strip-legend.on-paper .k.s-doing { background: color-mix(in srgb, var(--muted) 55%, var(--surface)); }

.my-wins { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: .88rem; font-weight: 600; color: var(--live); }
.vision-card p { color: var(--ink-2); }

/* Seitenkopf etwas kräftiger */
.page-title { font-size: clamp(1.7rem, 1.8vw + 1rem, 2.35rem); }

/* Fortschrittsbalken bewegen sich, wenn sich etwas ändert */
.progress > i, .pulse-bar i { transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.progress > i { background: linear-gradient(90deg, var(--live), color-mix(in srgb, var(--live) 70%, var(--teal))); }

/* Burndown: Linie zeichnet sich beim Laden einmal */
.burndown .actual { stroke-dasharray: 1600; stroke-dashoffset: 0; animation: draw-line 1.4s ease-out both; }
@keyframes draw-line { from { stroke-dashoffset: 1600; } }

/* Board: Spalten mit Statusfarbe, Karten reagieren auf die Maus */
.bcol { border-top: 3px solid var(--c, var(--line-strong)); }
.bcol[data-status="todo"] { --c: var(--st-todo); }
.bcol[data-status="doing"] { --c: var(--st-doing); }
.bcol[data-status="review"] { --c: var(--st-review); }
.bcol[data-status="done"] { --c: var(--st-done); }
.tcard:hover { transform: translateY(-2px); }
.tcard.dragging { transform: rotate(2deg) scale(1.02); box-shadow: var(--shadow-lg); }
.bcol.drop-ok { outline: 2px dashed var(--accent); outline-offset: -4px; }

/* Häkchen im Ablaufplan: kurzer Ausschlag nach dem Abhaken */
.plan-step.done .tick .ic { animation: tick-pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tick-pop { from { transform: scale(.2); } to { transform: scale(1); } }
.plan-phase.is-complete { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.plan-phase.is-now .plan-num { background: var(--now); border-color: var(--now); color: #fff; }
.plan-phase.is-now { border-color: var(--now); box-shadow: 0 0 0 1px var(--now) inset, var(--shadow-sm); }
.plan-phase.is-now h3 .pill-live { background: color-mix(in srgb, var(--now) 14%, transparent); color: var(--now); }


/* Projektkarten der Lehrkraft: Zeitleiste des Projekts */
.proj-card { position: relative; overflow: hidden; }
.proj-time { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.proj-time .progress { flex: 1; height: 6px; }
.proj-time .progress > i { background: var(--accent); }
.proj-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--pc, var(--line-strong)); }
.proj-card.is-live { --pc: var(--now); }
.proj-card.is-soon { --pc: var(--soon); }

/* Startseite: wie der Startbereich der Website (Punktraster, weicher türkiser Schein) */
.landing .main { padding-top: 0; }
.hero-band { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 56px) 0 clamp(28px, 4vw, 56px); }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 78% 40%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 70% 70% at 78% 40%, #000 20%, transparent 72%); opacity: .55; }
.hero-band::after { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, #5fd6d3 26%, transparent), transparent 62%); filter: blur(10px); opacity: .6; }
.hero-band .hero-grid { position: relative; z-index: 1; }
.hero-band h1 { font: 600 clamp(2.1rem, 3.6vw + .6rem, 3.3rem)/1.06 var(--serif); letter-spacing: -.015em; color: var(--ink); margin-bottom: 16px; max-width: 14em; }
.hero-band .lead { font-size: 1.06rem; color: var(--ink-2); max-width: 34em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.hero-facts { list-style: none; padding: 26px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; color: var(--ink-2); font-size: .93rem; }
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero-facts .ic { color: var(--accent); margin-top: 3px; }

/* Mini-Board: eine Karte wandert von „Zu erledigen“ nach „Fertig“ */
.mini-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 560px; }
.mb-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 150px; }
.mb-col b { display: flex; align-items: center; gap: 6px; font: 600 .76rem/1.2 var(--sans); color: var(--ink-2); margin: 2px 2px 8px; }
.mb-col b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mb-card { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: .74rem; font-weight: 600; border-left: 3px solid hsl(var(--sh, 200) 45% 52%); box-shadow: var(--shadow-sm); }
.mb-card + .mb-card { margin-top: 6px; }
.mb-card .av { min-width: 20px; height: 20px; font-size: .55rem; border: 0; padding: 0 3px; }
.mb-card.ghost { visibility: hidden; }
.mb-mover { position: absolute; top: 38px; left: 9px; width: calc((100% - 20px) / 3 - 18px); animation: mb-walk 9s cubic-bezier(.65, 0, .35, 1) infinite; z-index: 2; box-shadow: var(--shadow-md); }
@keyframes mb-walk {
  0%, 14% { transform: translateX(0); }
  28%, 48% { transform: translateX(calc(100% + 28px)); }
  62%, 90% { transform: translateX(calc(200% + 56px)); }
  100% { transform: translateX(calc(200% + 56px)); opacity: 0; }
}

@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; }
  .stage-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--band-line); padding-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stage { padding: 22px 18px; border-radius: 18px; }
  .stage-goal { font-size: 1.25rem; }
  .ws-row { padding-top: 12px; padding-bottom: 14px; }
  .pulse { grid-template-columns: 1fr; width: 100%; }
  .pulse-text { flex-direction: row; gap: 8px; align-items: baseline; text-align: left; }
  .pulse-sub { justify-content: flex-start; }
  .pips li { width: auto; flex: 1; max-width: 34px; }
  :is(.ws-tabs, .band-tabs) a { padding: 10px 11px 10px; }
  .mini-board { display: none; }
}

/* Weniger Bewegung, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mb-mover { animation: none; display: none; }
  .mb-card.ghost { visibility: visible; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: min(560px, 92vw); }
.toast .flash { box-shadow: var(--shadow-lg); }

/* Schaltflächen auf der Sprint-Bühne (nach den Grundregeln für .btn, damit sie gewinnen) */
.btn.btn-onband { background: transparent; color: var(--on-band); border-color: rgba(255, 255, 255, .32); }
.btn.btn-onband:hover { background: var(--band-raise); border-color: rgba(255, 255, 255, .65); color: var(--on-band); }
.btn.btn-teal { background: var(--teal); color: var(--on-teal); }
.btn.btn-teal:hover { background: var(--teal-2); color: var(--on-teal); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

/* Kopfbereich der Projektseiten der Lehrkraft: Titel, Kennzahlen und Reiter */
.page-band { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.page-band:not(:has(.band-tabs)) { padding-bottom: 22px; }
.page-band .page-head { margin-bottom: 16px; }
.band-tabs .ws-tabs-row { margin: 0 -12px -1px; padding: 0 12px; }
.band-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.band-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .92rem; box-shadow: var(--shadow-sm); }
.band-stat b { font: 650 1.1rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
a.band-stat:hover { border-color: var(--accent); color: var(--ink); }
.band-stat.is-info b { color: var(--info); }
.band-stat.is-warn { border-color: color-mix(in srgb, var(--soon) 45%, var(--line)); }
.band-stat.is-warn b { color: var(--soon); }
.band-stat.is-ok { color: var(--live); }

@media (max-width: 640px) {
  .bar { height: 80px; }
  .brand { gap: 13px; }
  .logo-mark { height: 54px; }
  .wm .brand-name { font-size: 1.62rem; }
  .wm .brand-sub { font-size: 1.17rem; }
  .app-header.scrolled .bar { height: 62px; }
  .app-header.scrolled .brand { transform: scale(.72); }
  .ws-tabs { top: 62px; }
  html:has(body.area-team) { scroll-padding-top: 116px; }
}

/* ---------------------------------------------------------------- Freischaltung der Phasen (1.5): gesperrt = grau mit Hinweis */
.lock-note { display: flex; gap: 9px; align-items: flex-start; margin: 0; padding: 10px 13px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: .88rem; line-height: 1.45; max-width: 80ch; }
.lock-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.lock-note.mb { margin-bottom: 14px; }
.plan-phase.is-locked { background: var(--surface-2); }
.plan-phase.is-locked .plan-num { border-style: dashed; background: transparent; color: var(--muted); }
.plan-phase.is-locked .plan-head-title { color: var(--ink-2); }
.plan-phase.is-locked .plan-head-bar { opacity: .45; }
.plan-phase.is-locked .plan-step { opacity: .72; }
.plan-lock { margin: 0 0 14px; }
.plan-unlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 80ch; }
.plan-unlock .small { flex: 1 1 260px; }
.plan-step.locked .plan-title { color: var(--ink-2); }
.plan-step.locked .plan-text, .plan-step.locked .plan-items { color: var(--muted); }
.plan-mark.is-locked { border: 2px dashed var(--line-strong); background: transparent; color: var(--muted); border-radius: 8px; }
.plan-locknote { margin-top: 10px; }
.plan-panel-list > li.locked a { color: var(--ink-2); }
.card.is-locked { background: var(--surface-2); }
.card.is-locked .card-title { color: var(--ink-2); }
.card.is-locked .card-title .ic { color: var(--muted); }
.card.is-locked textarea:disabled { background: var(--surface); color: var(--muted); border-style: dashed; cursor: not-allowed; resize: none; }
.card.is-locked textarea:disabled::placeholder { color: var(--muted); }
.btn.is-locked:disabled { opacity: .7; border-style: dashed; }
.board.is-locked .tcard { cursor: pointer; }
.retro.is-locked .retro-col { opacity: .7; }
