:root {
  --ink: #173f3d;
  --ink-soft: #58706e;
  --teal: #176b68;
  --teal-dark: #0c4f4d;
  --mint: #65c7b8;
  --mint-pale: #dff4ec;
  --cream: #fffaf1;
  --paper: #ffffff;
  --coral: #f18462;
  --coral-pale: #ffe3d7;
  --yellow: #f4bf4f;
  --yellow-pale: #fff0c4;
  --blue: #5f9fd6;
  --blue-pale: #e4f1fb;
  --purple: #8f7cc3;
  --purple-pale: #eee9fb;
  --line: #dce7e3;
  --shadow: 0 16px 45px rgba(31, 83, 78, .11);
  --radius: 24px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .button, .stat-card strong { font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
h1 { font-size: clamp(2.45rem, 5.7vw, 5rem); line-height: .98; letter-spacing: -.045em; margin-bottom: 22px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 8px; }
h3 { line-height: 1.15; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--paper); padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.topbar {
  width: var(--shell);
  height: 88px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto;
  column-gap: 10px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; width: fit-content; font-size: 20px; line-height: .9; }
.brand img { filter: drop-shadow(0 7px 12px rgba(23, 107, 104, .15)); }
.brand span { display: grid; }
.brand small { color: var(--teal); font-size: 16px; }
.desktop-nav { display: flex; gap: 6px; background: rgba(255,255,255,.6); padding: 5px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; }
.desktop-nav a { text-decoration: none; font-weight: 700; color: var(--ink-soft); padding: 9px 17px; border-radius: 999px; }
.desktop-nav a.active { background: var(--paper); color: var(--teal); box-shadow: 0 4px 16px rgba(31, 83, 78, .09); }
.icon-button { justify-self: end; border: 0; background: var(--paper); border-radius: 50%; width: 48px; height: 48px; cursor: pointer; box-shadow: 0 6px 20px rgba(31, 83, 78, .08); }
.icon-button:hover { transform: rotate(12deg); }
.sync-badge { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.sync-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(244,191,79,.16); }
.sync-badge[data-status="saved"] i { background: var(--mint); box-shadow: 0 0 0 3px rgba(101,199,184,.18); }
.sync-badge[data-status="offline"] i { background: var(--coral); box-shadow: 0 0 0 3px rgba(241,132,98,.18); }
.profile-switch { color: var(--teal); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 8px 10px; }
.mobile-nav { display: none; }

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  padding-block: 42px 70px;
}
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .13em; font-size: .77rem; color: var(--coral); margin-bottom: 9px; }
.hero h1 span { color: var(--teal); }
.hero-copy > p:not(.eyebrow) { max-width: 560px; color: var(--ink-soft); font-size: 1.14rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 48px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 25px rgba(23, 107, 104, .22); }
.button-primary:hover { background: var(--teal-dark); }
.button-quiet { background: var(--paper); color: var(--teal); border: 1px solid var(--line); }
.button.full { width: 100%; }

.hero-visual { min-height: 390px; position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 5% 5%; border-radius: 50%; background: radial-gradient(circle at 45% 35%, #d5f5ed, #addfd2 60%, transparent 61%); z-index: -2; }
.sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: var(--yellow); right: 16%; top: 12%; box-shadow: 0 0 0 12px rgba(244,191,79,.14); }
.cloud { position: absolute; width: 76px; height: 24px; background: white; border-radius: 20px; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: white; }
.cloud::before { width: 32px; height: 32px; left: 13px; bottom: 0; }
.cloud::after { width: 24px; height: 24px; right: 13px; bottom: 0; }
.cloud-one { left: 9%; top: 23%; }
.cloud-two { right: 0; top: 49%; transform: scale(.7); }
.island { position: absolute; width: 300px; height: 145px; left: 50%; top: 54%; transform: translate(-50%, -30%); border-radius: 50%; background: #e2a65b; box-shadow: inset 0 22px 0 #7bc492, 0 18px 0 -8px rgba(39, 116, 113, .18); }
.island img { position: absolute; width: 126px; height: 126px; right: 36px; top: -56px; transform: rotate(5deg); filter: drop-shadow(0 14px 12px rgba(16,65,62,.2)); }
.palm { font-size: 110px; position: absolute; top: -118px; left: 20px; transform: rotate(-8deg); filter: drop-shadow(0 12px 8px rgba(16,65,62,.14)); }
.spark { position: absolute; color: var(--coral); font-size: 28px; }
.spark-one { left: 7%; bottom: 19%; }.spark-two { right: 11%; top: 24%; color: var(--teal); font-size: 18px; }

.dashboard-strip { margin-top: -18px; background: var(--paper); border-radius: var(--radius); padding: 26px 28px 29px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading.compact { align-items: center; margin-bottom: 18px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading a { font-weight: 700; color: var(--teal); text-decoration: none; }
.date-pill { background: var(--mint-pale); color: var(--teal); border-radius: 999px; padding: 7px 13px; font-size: .88rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { display: flex; gap: 13px; align-items: center; border-radius: 17px; min-height: 86px; padding: 14px 16px; }
.stat-card.coral { background: var(--coral-pale); }.stat-card.yellow { background: var(--yellow-pale); }.stat-card.mint { background: var(--mint-pale); }.stat-card.blue { background: var(--blue-pale); }
.stat-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; background: rgba(255,255,255,.7); border-radius: 13px; }
.stat-card div:not(.mini-progress) { display: grid; }
.stat-card strong { font-size: 1.4rem; line-height: 1; }
.stat-card span:not(.stat-icon) { font-size: .82rem; color: var(--ink-soft); }
.weekly-card { display: block; }
.weekly-copy { display: flex !important; justify-content: space-between; align-items: baseline; }
.mini-progress { height: 8px; background: rgba(95,159,214,.2); border-radius: 99px; margin-top: 13px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .5s; }

.section-block { padding-block: 78px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity-card { background: var(--paper); border-radius: var(--radius); padding: 21px; box-shadow: 0 9px 30px rgba(31,83,78,.075); border: 1px solid transparent; display: flex; flex-direction: column; min-height: 255px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.activity-card.completed { border-color: #81cbbf; }
.activity-card.completed::after { content: "✓ geschafft"; position: absolute; right: -39px; top: 19px; width: 150px; text-align: center; transform: rotate(40deg); background: var(--teal); color: white; font-size: .7rem; font-weight: 700; padding: 4px; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.subject-label { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 8px; color: var(--subject-color, var(--teal)); background: var(--subject-pale, var(--mint-pale)); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--subject-pale); font-size: 28px; }
.activity-card h3 { font-size: 1.3rem; margin: 17px 0 7px; }
.activity-card p { color: var(--ink-soft); font-size: .91rem; margin-bottom: 19px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card-meta { display: flex; gap: 12px; color: var(--ink-soft); font-size: .78rem; }
.round-button { border: 0; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%; cursor: pointer; background: var(--subject-color); color: white; font-size: 18px; box-shadow: 0 7px 18px color-mix(in srgb, var(--subject-color), transparent 70%); }
.done-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .78rem; color: var(--ink-soft); }
.done-check input { width: 19px; height: 19px; accent-color: var(--teal); }

.encouragement { margin-bottom: 80px; min-height: 154px; border-radius: var(--radius); background: var(--teal); color: white; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 25px 35px; position: relative; overflow: hidden; }
.encouragement::after { content: ""; position: absolute; width: 180px; height: 180px; right: 70px; border: 30px solid rgba(255,255,255,.06); border-radius: 50%; }
.encouragement-badge { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-pale); font-size: 52px; transform: rotate(-5deg); }
.encouragement .eyebrow { color: #ffd984; margin-bottom: 4px; }
.encouragement h2 { margin: 0; font-size: clamp(1.2rem, 2.8vw, 1.8rem); }
.weekly-ring { --progress: 0deg; position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--yellow) var(--progress), rgba(255,255,255,.16) 0); display: grid; place-items: center; }
.weekly-ring::before { content: ""; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); position: absolute; }
.weekly-ring span { position: relative; font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 600; }

.section-page { padding-block: 45px 100px; min-height: calc(100vh - 88px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--mint-pale); border-radius: 30px; padding: 42px 48px; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); margin-bottom: 12px; }
.page-heading p:last-child { color: var(--ink-soft); margin: 0; }
.page-mascot { font-size: clamp(65px, 10vw, 110px); filter: drop-shadow(0 12px 12px rgba(31,83,78,.12)); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 15px; cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.filter-button.active { background: var(--teal); color: white; border-color: var(--teal); }
.library-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 26px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 15px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.search-box input { width: 100%; border: 0; outline: 0; background: none; }
.select-box select { height: 48px; border: 1px solid var(--line); border-radius: 15px; padding: 0 38px 0 13px; background: white; color: var(--ink); }
#result-count { color: var(--ink-soft); font-size: .87rem; min-width: 80px; text-align: right; }
.library-grid { grid-template-columns: repeat(3, 1fr); }
.empty-state { text-align: center; background: white; border-radius: 25px; padding: 60px 20px; }
.empty-state span { font-size: 50px; }

.progress-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.big-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 15px; background: white; border-radius: 20px; padding: 22px; box-shadow: 0 8px 25px rgba(31,83,78,.06); }
.big-stat span { grid-row: 1 / 3; font-size: 36px; align-self: center; }
.big-stat strong { font: 600 1.8rem/1 ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }.big-stat small { color: var(--ink-soft); }
.progress-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.panel { background: white; border-radius: var(--radius); padding: 27px; box-shadow: 0 8px 25px rgba(31,83,78,.06); }
.panel-heading { margin-bottom: 24px; }.panel-heading h2, .panel-heading p { margin-bottom: 0; }
.subject-progress { display: grid; gap: 22px; }
.progress-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.progress-item-top span:first-child { font-weight: 700; }
.progress-track { height: 11px; border-radius: 99px; background: #edf2ef; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; transition: width .5s; }
.activity-log { list-style: none; margin: 0; padding: 0; }
.activity-log li { position: relative; padding: 0 0 20px 35px; border-left: 2px solid var(--line); margin-left: 8px; }
.activity-log li::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); left: -7px; top: 4px; box-shadow: 0 0 0 4px var(--mint-pale); }
.activity-log li:last-child { border-color: transparent; }
.activity-log strong, .activity-log span { display: block; }.activity-log span { color: var(--ink-soft); font-size: .82rem; margin-top: 3px; }
.activity-log .no-log { padding-left: 0; border: 0; color: var(--ink-soft); }.activity-log .no-log::before { display: none; }
.practice-panel { grid-column: 1 / -1; }
.practice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.practice-card { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--subject-pale); border: 0; border-left: 4px solid var(--subject-color); border-radius: 16px; padding: 14px; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.practice-card > span { font-size: 1.7rem; }.practice-card strong, .practice-card small { display: block; }.practice-card small { color: var(--ink-soft); margin-top: 2px; }

.notice { display: flex; gap: 15px; background: var(--yellow-pale); border-radius: 18px; padding: 18px 21px; margin-bottom: 26px; }.notice p { margin: 0; }.notice span { font-size: 25px; }
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.curriculum-card { background: white; border-radius: var(--radius); padding: 25px; border-top: 6px solid var(--subject-color); }
.curriculum-card h2 { display: flex; gap: 10px; align-items: center; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.topic-list li { background: var(--subject-pale); border-radius: 10px; padding: 8px 10px; font-size: .87rem; }
.source-note { margin-top: 25px; padding: 25px; background: #f1eee6; border-radius: 20px; }.source-note p { color: var(--ink-soft); }.source-note a { color: var(--teal); font-weight: 700; }

.modal { width: min(650px, calc(100% - 28px)); max-height: min(850px, calc(100vh - 28px)); border: 0; border-radius: 27px; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(10, 48, 45, .26); }
.modal::backdrop { background: rgba(10,48,45,.55); backdrop-filter: blur(5px); }
.modal-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 27px 0; }
.modal-close { border: 0; background: #edf3f0; border-radius: 50%; width: 41px; height: 41px; flex: 0 0 auto; cursor: pointer; font-size: 25px; line-height: 1; }
#exercise-body { padding: 10px 28px 30px; }
.exercise-progress { height: 9px; background: #edf2ef; border-radius: 99px; overflow: hidden; margin: 15px 0 28px; }.exercise-progress span { display: block; height: 100%; background: var(--subject-color); transition: width .3s; }
.question-count { color: var(--ink-soft); font-size: .82rem; margin-bottom: 5px; }
.question-title { font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 22px; }
.question-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-toolbar .question-count { margin: 0; }
.question-visual { text-align: center; font-size: clamp(2.6rem, 9vw, 4.7rem); letter-spacing: .16em; padding: 5px 0 12px; }
.listen-button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 8px 13px; background: var(--yellow-pale); color: var(--ink); font-weight: 700; cursor: pointer; }
.answers { display: grid; gap: 10px; }
.answer-button { min-height: 55px; text-align: left; border: 2px solid var(--line); background: white; border-radius: 15px; padding: 12px 16px; cursor: pointer; font-weight: 700; }
.answer-button:hover { border-color: var(--subject-color); background: var(--subject-pale); }
.answer-button.correct { border-color: var(--teal); background: var(--mint-pale); }.answer-button.wrong { border-color: var(--coral); background: var(--coral-pale); }
.text-answer { width: 100%; height: 60px; border: 2px solid var(--line); border-radius: 15px; padding: 10px 15px; outline: 0; font-size: 1.15rem; }.text-answer:focus { border-color: var(--subject-color); }
.feedback { min-height: 34px; margin: 15px 0 0; font-weight: 700; }.feedback.good { color: var(--teal); }.feedback.try { color: #bb542f; }
.exercise-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.completion-screen { text-align: center; padding: 15px 0 5px; }.completion-screen .celebration { font-size: 70px; animation: pop .5s ease both; }.completion-screen h2 { font-size: 2.2rem; }.completion-screen .score { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; margin: 22px auto; background: var(--yellow-pale); font: 600 1.5rem ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.15) rotate(4deg); } }

.settings-modal { padding-bottom: 28px; }.settings-modal form, .settings-modal > h3, .settings-modal > p, .settings-modal > .button-row, .settings-modal > .danger-link { margin-left: 28px; margin-right: 28px; }.settings-modal form { display: grid; gap: 16px; margin-top: 20px; }.settings-modal label:not(.file-button) { display: grid; gap: 6px; font-weight: 700; }.settings-modal input:not([type=file]), .settings-modal select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: white; }.settings-modal hr { border: 0; border-top: 1px solid var(--line); margin: 28px; }.muted { color: var(--ink-soft); font-size: .9rem; }.button-row { display: flex; flex-wrap: wrap; gap: 10px; }.file-button input { display: none; }.danger-link { display: block; border: 0; background: none; color: #b44d35; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 20px; }
.settings-profile { display: flex; align-items: center; gap: 14px; margin: 20px 28px; padding: 15px; border-radius: 18px; background: var(--mint-pale); }
.settings-profile .settings-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: white; font-size: 1.8rem; }
.settings-profile strong, .settings-profile small { display: block; }.settings-profile small { color: var(--ink-soft); margin-top: 3px; }
#settings-parent-link { width: auto; margin: 0 28px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; transform: translate(-50%, 30px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Anmeldung */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #f8f2e4 0%, #e4f4ee 100%); padding: 28px; display: grid; place-items: center; }
.login-shell { width: min(1080px, 100%); min-height: 650px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 34px; background: white; box-shadow: 0 30px 90px rgba(20, 75, 70, .16); }
.login-story { position: relative; overflow: hidden; padding: 45px 55px; background: var(--teal); color: white; }
.login-story::after { content: ""; position: absolute; width: 420px; height: 420px; border: 70px solid rgba(255,255,255,.05); border-radius: 50%; right: -190px; bottom: -230px; }
.login-brand { color: white; }.login-brand small { color: #aee8db; }
.login-story > h1 { margin-top: 24px; font-size: clamp(2.8rem, 5vw, 4.6rem); }.login-story h1 span { color: #ffd36f; }
.login-story > p:not(.eyebrow) { max-width: 540px; color: #d6eee9; font-size: 1.08rem; }
.login-illustration { position: relative; height: 170px; margin-top: 18px; }
.login-illustration span { font-size: 126px; position: absolute; left: 25%; bottom: 0; filter: drop-shadow(0 18px 14px rgba(0,0,0,.12)); }
.login-illustration i { position: absolute; left: 15%; top: 24px; color: #ffd36f; font: normal 2rem serif; }.login-illustration b { position: absolute; right: 17%; top: 7px; font-size: 3.2rem; }
.login-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }.login-benefits span { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .82rem; }
.login-card { align-self: center; padding: 55px 48px; }
.login-card h2 { font-size: 2.35rem; }.login-card form { display: grid; gap: 18px; margin-top: 30px; }.login-card label { display: grid; gap: 7px; font-weight: 700; }
.login-card input { width: 100%; height: 54px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; outline: 0; }.login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--mint-pale); }
.form-error { margin: -5px 0 0; padding: 10px 12px; color: #9c3f2a; background: var(--coral-pale); border-radius: 10px; font-size: .88rem; }
.login-help { display: flex; gap: 9px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }

/* Elterncockpit */
.parent-page { background: #f7f4ec; padding-bottom: 70px; }.parent-topbar { grid-template-columns: 1fr auto; }.parent-user { display: flex; align-items: center; gap: 13px; font-weight: 700; }.compact-button { min-height: 40px; padding: 8px 13px; font-size: .84rem; }
.parent-main { display: grid; gap: 58px; }.parent-hero { min-height: 260px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 42px 48px; color: white; background: linear-gradient(120deg, var(--teal), #2d8b81); border-radius: 30px; overflow: hidden; }
.parent-hero h1 { max-width: 760px; font-size: clamp(2.2rem, 4vw, 3.8rem); }.parent-hero h1 span { color: #ffd36f; }.parent-hero p:last-child { margin: 0; color: #d9efeb; }.parent-hero-icon { font-size: 104px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.16)); }
.privacy-chip { padding: 7px 12px; border-radius: 999px; color: var(--teal); background: var(--mint-pale); font-size: .78rem; font-weight: 700; }
.family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.family-card { padding: 27px; background: white; border: 1px solid var(--line); border-top: 7px solid var(--profile-color); border-radius: 25px; box-shadow: 0 12px 35px rgba(31,83,78,.07); }
.family-card-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }.family-avatar { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; background: color-mix(in srgb, var(--profile-color), white 84%); font-size: 2.2rem; }.family-card-head p, .family-card-head h3 { margin: 0; }.family-card-head p { color: var(--profile-color); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.family-card-head h3 { font-size: 1.65rem; }.family-last { color: var(--ink-soft); font-size: .72rem; }
.family-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 24px 0; }.family-stats span { display: grid; padding: 12px; border-radius: 14px; background: #f7f9f8; color: var(--ink-soft); font-size: .75rem; }.family-stats strong { color: var(--ink); font-size: 1.35rem; }
.family-week > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .86rem; }.family-actions { display: flex; gap: 10px; margin-top: 24px; }
.parent-detail { scroll-margin-top: 20px; }.parent-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }.parent-detail h3 { font-size: 1.5rem; }.profile-form { display: grid; gap: 16px; }.profile-form label { display: grid; gap: 6px; font-weight: 700; }.profile-form select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }.profile-note { margin: 18px 0 0; }
.development-panel { grid-column: 1 / -1; }.development-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }.development-layout h4 { margin: 0 0 12px; }.activity-calendar { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }.activity-day { aspect-ratio: 1; border-radius: 6px; background: #edf1ef; border: 1px solid rgba(23,107,104,.08); }.activity-day[data-level="1"] { background: #bfe2d9; }.activity-day[data-level="2"] { background: #72b9a8; }.activity-day[data-level="3"] { background: var(--teal); }.activity-legend { margin: 10px 0 0; color: var(--ink-soft); font-size: .78rem; }.parent-subjects { display: grid; gap: 9px; }.parent-subject-row { display: grid; grid-template-columns: minmax(120px,1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f7f9f8; }.parent-subject-row strong { font-size: .88rem; }.parent-subject-row span { color: var(--ink-soft); font-size: .78rem; }.observation-delete { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }.observation-delete:hover { background: white; color: var(--coral); }
.profile-form textarea { width: 100%; min-height: 100px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.observation-panel { grid-column: 1 / -1; }.observation-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }.observation-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }.observation-list li { position: relative; padding: 13px 15px 13px 20px; border-radius: 13px; background: #f7f9f8; border-left: 5px solid var(--mint); }.observation-list li[data-rating="supported"] { border-left-color: var(--yellow); }.observation-list li[data-rating="practice"] { border-left-color: var(--coral); }.observation-list strong, .observation-list span { display: block; }.observation-list span { color: var(--ink-soft); font-size: .8rem; }.observation-list p { margin: 7px 0 0; font-size: .88rem; }.observation-list .no-observation { color: var(--ink-soft); border-left-color: var(--line); }
.parent-guidance { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 27px 32px; border-radius: 24px; background: var(--yellow-pale); }.parent-guidance > div:first-child { font-size: 3.4rem; }.parent-guidance h2, .parent-guidance p:last-child { margin-bottom: 0; }

/* Lucas Vorschulmodus */
.preschool-mode { --teal: #296f68; }.preschool-mode .hero-copy > p:not(.eyebrow) { font-size: 1.2rem; }.preschool-mode .activity-card { min-height: 270px; border-width: 2px; }.preschool-mode .card-icon { width: 62px; height: 62px; font-size: 34px; }.preschool-mode .answer-button { min-height: 72px; font-size: 1.24rem; text-align: center; }.preschool-mode .question-title { text-align: center; }.preschool-mode .exercise-modal { width: min(720px, calc(100% - 24px)); }.preschool-mode .question-toolbar { margin-top: 6px; }.inline-empty { grid-column: 1 / -1; width: 100%; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto auto auto; }.desktop-nav, .profile-switch { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 25px; }.hero-copy { position: relative; z-index: 2; }.hero-visual { min-height: 330px; margin-top: -30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.card-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-layout { grid-template-columns: 1fr; }.practice-panel { grid-column: auto; }.practice-list { grid-template-columns: 1fr; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: 0 10px 40px rgba(18,70,67,.18); padding: 7px; }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; text-decoration: none; font-size: .68rem; color: var(--ink-soft); padding: 5px; border-radius: 12px; }.mobile-nav a span { font-size: 1.2rem; }.mobile-nav a.active { background: var(--mint-pale); color: var(--teal); font-weight: 700; }
  body { padding-bottom: 92px; }.encouragement { margin-bottom: 20px; }
  .login-shell { grid-template-columns: 1fr; }.login-story { min-height: 390px; }.login-illustration { height: 110px; }.login-illustration span { font-size: 90px; }
  .parent-page { padding-bottom: 50px; }.parent-page .topbar { grid-template-columns: 1fr auto; }.parent-main { gap: 42px; }.family-grid, .parent-detail-grid, .observation-layout, .development-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 24px, 1160px); }
  body { font-size: 16px; }.topbar { height: 74px; }.brand img { width: 42px; height: 42px; }
  .sync-badge { padding: 8px; }.sync-badge > span { display: none; }
  .hero { min-height: 0; padding-bottom: 35px; }.hero h1 { font-size: 2.8rem; }.hero-visual { min-height: 290px; }.island { transform: translate(-50%,-30%) scale(.78); }.palm { font-size: 90px; }
  .dashboard-strip { padding: 22px 18px; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { min-height: 91px; padding: 11px; gap: 9px; }.stat-icon { width: 35px; height: 35px; flex-basis: 35px; }.stat-card strong { font-size: 1.15rem; }.stat-card span:not(.stat-icon) { font-size: .72rem; }
  .section-block { padding-block: 52px; }.section-heading { align-items: start; }.section-heading a { font-size: .8rem; }
  .card-grid, .library-grid, .progress-overview, .curriculum-grid { grid-template-columns: 1fr; }
  .activity-card { min-height: 225px; }
  .encouragement { grid-template-columns: auto 1fr; padding: 22px 18px; }.encouragement-badge { width: 65px; height: 65px; font-size: 38px; }.weekly-ring { display: none; }
  .page-heading { padding: 28px 23px; border-radius: 23px; }.page-mascot { display: none; }.section-page { padding-top: 20px; }
  .library-toolbar { grid-template-columns: 1fr auto; }.search-box { grid-column: 1 / -1; }#result-count { display: none; }
  .topic-list { grid-template-columns: 1fr; }
  .panel { padding: 21px 17px; }
  .modal-topline { padding: 20px 20px 0; }#exercise-body { padding-inline: 20px; }
  .login-page { padding: 0; display: block; }.login-shell { min-height: 100vh; border-radius: 0; }.login-story { min-height: 350px; padding: 28px 25px; }.login-story > h1 { font-size: 2.8rem; }.login-story > p:not(.eyebrow) { font-size: .95rem; }.login-card { padding: 38px 24px; }.login-benefits { margin-top: 18px; }
  .parent-user > span { display: none; }.parent-hero { min-height: 0; padding: 30px 24px; }.parent-hero-icon { display: none; }.parent-hero h1 { font-size: 2.35rem; }.family-card { padding: 21px 17px; }.family-card-head { grid-template-columns: auto 1fr; }.family-last { display: none; }.family-stats { gap: 6px; }.family-stats span { padding: 9px 7px; }.family-actions { flex-direction: column; }.parent-guidance { grid-template-columns: 1fr; }.parent-guidance > div:first-child { font-size: 2.5rem; }
  .preschool-mode .answer-button { min-height: 68px; font-size: 1.12rem; }.listen-button span { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

@media print { .topbar, .mobile-nav, .hero-actions { display: none !important; } body { background: white; padding: 0; } }

/* Aktuelle Klassenarbeiten */
.current-banner { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid #c5dfd5; border-radius: 22px; background: #e8f5ed; }
.current-banner > span { font-size: 2.4rem; }.current-banner > div { flex: 1; }.current-banner p { margin: 4px 0 0; }
.study-plan { padding: 24px; background: #fff4d5; border-radius: 22px; margin-bottom: 28px; }.study-plan h2 { margin-top: 0; }.study-plan li { margin: 10px 0; }.study-plan p { margin-bottom: 0; }
.current-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 28px; }.current-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; }.current-card h2 { margin: 16px 0 8px; }.current-card .card-icon { float: right; }.study-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }.study-actions .button { text-align: center; }
.study-section { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; padding: 16px; }.study-section summary { cursor: pointer; font-weight: 700; line-height: 1.5; }.study-section p { line-height: 1.7; }.study-recall { background: #eff6f2; border-radius: 12px; padding: 14px; }.study-chords { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }.study-chord { margin: 8px auto; width: 100%; max-width: 160px; }.study-chord svg { width: 100%; display: block; }.study-chord figcaption { text-align: center; font-weight: 800; font-size: 1.25rem; }.study-tab pre { font-family: monospace; font-size: clamp(16px, 4vw, 24px); line-height: 1.5; padding: 16px; background: #f3f6f2; overflow: auto; }.study-diagram { max-width: 100%; height: auto; display: block; margin: 12px auto; }.study-result { text-align: left; }.study-result li { margin: 6px 0; }.exam-paper { display: grid; gap: 16px; }.exam-task { border-bottom: 1px solid var(--line); padding-bottom: 16px; }.exam-task h3 { font-size: 1.1rem; line-height: 1.55; }.exam-solution { background: #e8f5ed; padding: 14px; border-radius: 12px; }.exam-answer { width: 100%; min-height: 90px; border: 1px solid #b9c9c1; border-radius: 10px; padding: 12px; font: inherit; resize: vertical; }.exam-task label { display: block; margin: 10px 0; }.exam-status { font-weight: 700; color: var(--teal); }.study-section button { margin-top: 8px; }
@media (max-width: 600px) { .current-grid { grid-template-columns: 1fr; }.current-banner { flex-wrap: wrap; }.current-banner .button { width: 100%; }.study-chords { grid-template-columns: repeat(2, minmax(0,1fr)); }.study-plan { padding: 18px; }.study-plan ol { padding-left: 20px; } }
