/* Eigenständiges Design ohne externe Schriftarten, Bibliotheken oder URLs. */
:root {
  --ink: #203640;
  --muted: #75848a;
  --deep: #153d49;
  --deep-2: #214f59;
  --mint: #d9e9ac;
  --fresh: #ebf5eb;
  --line: #e5ebeb;
  --bg: #f7f9f7;
  --card: #ffffff;
  --shadow: 0 10px 32px rgba(17, 54, 63, .035);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid #72baa9; outline-offset: 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { min-height: 100vh; position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 32px 18px 26px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-bottom: 66px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; background: var(--deep); border-radius: 13px; color: var(--mint); font-weight: 800; font-size: 25px; letter-spacing: -.09em; padding-right: 2px; }
.brand strong { display: block; font-size: 19px; font-weight: 780; letter-spacing: -.055em; }
.brand small { display: block; color: #839496; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.side-label { margin: 0 13px 15px; color: #9faeaf; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 11px 15px; color: #6a7a7d; font-weight: 620; font-size: 13px; border-radius: 10px; transition: background .18s, color .18s; }
.side-nav a:hover { background: #f3f8f4; color: var(--deep); }
.side-nav a[aria-current="page"] { color: var(--deep); background: #eaf4e8; font-weight: 770; }
.nav-symbol { display: inline-flex; width: 20px; justify-content: center; font-size: 19px; font-weight: 400; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 10px 0; }
.nav-logout { display: flex; align-items: center; justify-content: space-between; border: none; background: none; padding: 10px 4px; width: 100%; color: #6b7778; font-weight: 620; font-size: 13px; text-align: left; }
.nav-logout:hover { color: #bf5555; }
.main-area { min-width: 0; }
.topbar { min-height: 92px; background: rgba(255,255,255,.70); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 15px clamp(22px, 4.5vw, 72px); }
.topbar-label { font-size: 12px; font-weight: 680; color: #829391; }
.account-pill { display: flex; align-items: center; gap: 11px; }
.account-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #e6eee5; color: #396b62; font-size: 16px; font-weight: 850; }
.account-info strong, .account-info small { display: block; line-height: 1.35; }
.account-info strong { font-size: 12px; }
.account-info small { font-size: 10px; letter-spacing: .06em; color: #80908c; }
.page-container { padding: 39px clamp(22px, 4.5vw, 72px) 88px; max-width: 1600px; margin: 0 auto; }
.eyebrow { color: #6e9d93; font-size: 10px; font-weight: 850; letter-spacing: .16em; margin: 0 0 13px; }
.eyebrow-light { color: #b5d7c7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.23; letter-spacing: -.045em; }
h1 { font-size: clamp(28px, 3vw, 41px); font-weight: 770; }
h2 { font-size: 23px; font-weight: 770; }
h3 { font-size: 17px; font-weight: 750; }
.muted { color: var(--muted); }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { margin-bottom: 0; }
.welcome-banner, .admin-welcome { position: relative; overflow: hidden; min-height: 220px; background: var(--deep); border-radius: 18px; padding: clamp(26px, 4vw, 47px); display: flex; align-items: center; justify-content: space-between; color: #fff; }
.welcome-banner::after, .admin-welcome::after { content: ''; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; position: absolute; right: -90px; top: -180px; box-shadow: 0 0 0 60px rgba(255,255,255,.027),0 0 0 120px rgba(255,255,255,.025); pointer-events: none; }
.welcome-banner h1, .admin-welcome h1 { position: relative; z-index: 1; font-size: clamp(25px, 2.6vw, 38px); margin-bottom: 12px; max-width: 630px; }
.welcome-banner p, .admin-welcome p { color: #c5d7d9; margin: 0; position: relative; z-index: 1; }
.welcome-decoration { font-size: 95px; line-height: 1; color: var(--mint); margin-right: 40px; opacity: .82; transform: rotate(-18deg); }
.admin-welcome { min-height: 190px; background: linear-gradient(125deg, var(--deep), #285966); }
.admin-welcome-symbol { font-size: 85px; color: #a9cfbf; padding-right: 45px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; margin: 22px 0 48px; }
.stats-grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 25px; }
.stat-card { display: flex; flex-direction: column; padding: 23px 26px 20px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-label { font-size: 12px; font-weight: 630; color: #738482; }
.stat-card strong { font-size: 39px; letter-spacing: -.055em; line-height: 1.4; color: var(--deep); font-weight: 800; }
.stat-hint { font-size: 11px; color: #a0aead; }
.section-head { margin: 0 0 24px; display: flex; align-items: end; justify-content: space-between; }
.section-head h2 { margin-bottom: 7px; }
.section-head p { font-size: 13px; color: #899797; margin: 0; }
.topics-grid { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 18px; }
.topic-card { display: flex; flex-direction: column; min-height: 265px; background: white; border: 1px solid var(--line); padding: 24px; border-radius: 15px; transition: transform .2s, box-shadow .2s, border .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(17,54,63,.08); border-color: #c7dad2; }
.topic-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 21px; }
.topic-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; border-radius: 14px; font-size: 24px; font-weight: 500; }
.topic-color-0 { background: #e3f0e4; color: #4d9072; }
.topic-color-1 { background: #e1edf3; color: #4b91aa; }
.topic-color-2 { background: #fbefd9; color: #bb9460; }
.topic-color-3 { background: #eee7f5; color: #9c81bb; }
.topic-arrow { color: #83969a; font-size: 22px; }
.topic-card h3 { font-size: 18px; margin: 0 0 8px; }
.topic-card p { font-size: 12px; color: #8b9a9c; line-height: 1.6; margin: 0 0 20px; overflow-wrap: anywhere; flex: 1; }
.topic-card-bottom { display: flex; justify-content: space-between; gap: 12px; color: #8d9c9b; font-size: 11px; margin-bottom: 11px; }
.topic-card-bottom strong { color: #477e70; }
.progress-track { height: 5px; border-radius: 12px; overflow: hidden; background: #edf1ef; }
.progress-track div { height: 100%; background: #73af92; border-radius: 12px; }
.progress-native { appearance: none; display: block; width: 100%; height: 5px; border: none; border-radius: 10px; overflow: hidden; }
.progress-native::-webkit-progress-bar { background: #edf1ef; border-radius: 10px; }
.progress-native::-webkit-progress-value { background: #73af92; border-radius: 10px; }
.progress-native::-moz-progress-bar { background: #73af92; border-radius: 10px; }
.empty-state { padding: 65px 25px; text-align: center; background: #fff; border: 1px dashed #d8e2df; border-radius: 15px; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: #829391; }
.empty-symbol { font-size: 40px; color: #b2c7bf; margin-bottom: 12px; }
.back-link { display: inline-block; color: #6d958a; font-size: 12px; font-weight: 700; margin-bottom: 26px; }
.back-link:hover { color: var(--deep); }
.topic-hero { display: flex; align-items: start; gap: 24px; padding: 34px; border: 1px solid var(--line); background: #fff; border-radius: 16px; margin-bottom: 37px; }
.topic-hero h1 { margin: 0 0 10px; }
.topic-hero p { color: var(--muted); margin: 0; }
.topic-icon-large { width: 64px; height: 64px; font-size: 31px; }
.lesson-list { display: flex; flex-direction: column; gap: 11px; }
.lesson-row { display: flex; align-items: center; gap: 19px; padding: 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 83px; transition: border .15s, transform .15s; }
.lesson-row:hover { border-color: #b9d5c9; transform: translateX(3px); }
.lesson-index { width: 45px; height: 45px; display: grid; place-items: center; background: #f0f5f0; color: #66877d; border-radius: 12px; font-weight: 750; font-size: 13px; }
.lesson-row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.lesson-row-text strong { font-size: 14px; }
.lesson-row-text small { font-size: 10px; font-weight: 750; letter-spacing: .1em; color: #a2afaf; }
.row-chevron { font-size: 18px; color: #95a8a4; margin-left: 4px; }
.pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 100px; background: #f1f3f2; color: #7d8988; padding: 6px 12px; font-size: 10px; font-weight: 750; }
.pill-success { background: #e4f2e7; color: #40865c; }
.lesson-heading { margin-bottom: 26px; }
.lesson-heading h1 { margin: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 19px; }
.content-head { display: flex; align-items: center; gap: 11px; color: #83a196; font-size: 10px; font-weight: 850; letter-spacing: .13em; margin-bottom: 28px; }
.mini-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: #eaf2ea; color: #658e7c; font-size: 20px; }
.lesson-body { font-size: 15px; line-height: 1.95; color: #465c5d; overflow-wrap: anywhere; }
.attachments-panel h2 { margin-bottom: 8px; }
.attachments-panel p { margin-bottom: 25px; font-size: 12px; }
.media-block { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 21px; }
.media-title { font-weight: 740; margin-bottom: 14px; overflow-wrap: anywhere; }
.media-block video { display: block; max-width: 800px; background: #162f37; border-radius: 10px; width: 100%; }
.learning-image { display: block; max-width: 800px; width: auto; max-height: 700px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.file-row { border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; padding: 14px 15px; gap: 15px; margin-bottom: 10px; }
.file-row > span:nth-child(2) { min-width: 0; flex: 1; }
.file-row strong, .file-row small { display: block; overflow-wrap: anywhere; }
.file-row strong { font-size: 13px; }
.file-row small { font-size: 11px; color: #93a3a0; }
.file-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; background: #f0f4ef; border-radius: 9px; font-size: 10px; color: #678478; font-weight: 850; }
.complete-box { background: #eaf4eb; border: 1px solid #d4e8db; border-radius: 15px; padding: 26px 29px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.complete-box h3 { margin-bottom: 8px; }
.complete-box p { font-size: 12px; color: #749083; margin: 0; }
.complete-box form { flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 19px; border-radius: 9px; font-size: 12px; font-weight: 770; border: 1px solid transparent; line-height: 1.4; vertical-align: middle; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: #245760; }
.btn-outline { background: #fff; color: #335b5a; border-color: #cadbd6; }
.btn-outline:hover { background: #eef4f0; }
.btn-small { padding: 9px 13px; }
.btn-full { width: 100%; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
.panel-heading h2 { margin: 0; }
.panel-heading > a { color: #5e9686; font-size: 12px; font-weight: 730; }
.dashboard-list-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #edf1f0; padding: 15px 0; }
.dashboard-list-row > div { flex: 1; min-width: 0; }
.dashboard-list-row strong, .dashboard-list-row small { display: block; overflow-wrap: anywhere; }
.dashboard-list-row strong { font-size: 13px; }
.dashboard-list-row small { font-size: 11px; color: #96a3a2; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 29px; }
.quick-action { background: white; padding: 21px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 13px; transition: transform .15s, border .15s; }
.quick-action:hover { border-color: #c4d7ce; transform: translateY(-2px); }
.quick-symbol { flex: 0 0 auto; width: 42px; height: 42px; background: #e8f1e7; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: #648e7c; }
.quick-action > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { font-size: 10px; color: #95a3a1; }
.quick-action > span:last-child { color: #87a39b; }
.form-stack { display: flex; flex-direction: column; gap: 19px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12px; font-weight: 750; color: #42585b; }
.field input, .field textarea, .field select, .search-form input, .search-form select { background: #fff; color: var(--ink); border: 1px solid #dce5e3; border-radius: 9px; padding: 12px 14px; outline: none; width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus, .search-form select:focus { border-color: #7eb09c; box-shadow: 0 0 0 3px rgba(110,170,144,.12); }
.field input::placeholder, .field textarea::placeholder { color: #a5b1b0; }
.field textarea { resize: vertical; line-height: 1.65; }
.field small { font-size: 11px; color: #8f9d9a; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: end; }
.form-action { display: flex; align-items: end; }
.form-inline { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.short-field { max-width: 175px; }
.check-line { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: #3e8674; }
.lesson-editor { min-height: 260px; }
.existing-attachments { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 25px; }
.existing-attachments h3 { margin-bottom: 15px; }
.narrow-panel { max-width: 650px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.data-table th { color: #91a09c; font-size: 10px; letter-spacing: .04em; font-weight: 790; padding: 12px 11px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 18px 11px; vertical-align: middle; border-bottom: 1px solid #eef2f0; }
.data-table td strong { overflow-wrap: anywhere; }
.data-table tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.table-actions form { display: inline-flex; }
.text-action { appearance: none; background: none; border: none; padding: 0; color: #548d80; font-size: 11px; font-weight: 730; white-space: nowrap; }
.text-action:hover { text-decoration: underline; }
.text-danger { color: #c46a70; }
.small-muted { color: #92a19d; }
.mono { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .025em; }
.heading-count { font-size: 11px; background: #edf4ee; color: #709483; border-radius: 20px; padding: 4px 8px; vertical-align: middle; }
.search-form { display: flex; align-items: center; gap: 8px; max-width: 430px; }
.search-form input, .search-form select { padding: 9px 10px; font-size: 12px; }
.form-help { margin: 18px 0 0; font-size: 10px; color: #9aaba7; }
.topic-admin-list { display: flex; flex-direction: column; }
.topic-admin-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.topic-admin-row .topic-admin-name { flex: 1; min-width: 0; }
.topic-admin-name strong, .topic-admin-name small { display: block; }
.topic-admin-name strong { font-size: 13px; }
.topic-admin-name small { color: #93a4a0; font-size: 11px; }
.callout { background: #eef6ed; color: #52766a; border: 1px solid #d5e8d7; border-radius: 9px; padding: 15px; font-size: 12px; }
.alert { padding: 13px 16px; border-radius: 10px; margin: 0 0 22px; font-size: 12px; font-weight: 600; }
.alert-success { background: #eaf6eb; border: 1px solid #c8e4cc; color: #427b53; }
.alert-error { background: #fff1ef; border: 1px solid #f0ccc8; color: #aa5551; }
.sr-only { border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
/* Login */
.guest { background: #fff; }
.auth-main { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 46%) minmax(0, 1fr); }
.auth-intro { display: flex; flex-direction: column; background: var(--deep); color: #fff; padding: 45px clamp(30px, 5vw, 80px) 35px; min-height: 100vh; position: relative; overflow: hidden; }
.auth-intro::before { content: ''; position: absolute; width: 530px; height: 530px; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; bottom: -265px; right: -200px; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.02); }
.auth-logo { display: flex; align-items: center; gap: 13px; color: inherit; font-size: 21px; letter-spacing: -.045em; }
.auth-logo .brand-mark { background: #d8e8b2; color: var(--deep); }
.auth-intro-body { position: relative; z-index: 1; margin: auto 0; padding: 55px 0 20px; }
.auth-kicker { display: block; font-size: 10px; font-weight: 850; letter-spacing: .19em; color: #b6d3c3; margin-bottom: 27px; }
.auth-intro h1 { font-size: clamp(36px, 4.1vw, 59px); line-height: 1.13; margin-bottom: 21px; }
.auth-intro h1 span { color: #cde0af; }
.auth-intro p { color: #bdd2d5; max-width: 440px; font-size: 14px; line-height: 1.9; }
.auth-illustration { margin-top: 70px; height: 125px; position: relative; }
.illust-card { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; width: 155px; height: 88px; transform: rotate(-8deg); background: #e3efdf; color: #326d5c; box-shadow: 0 15px 30px rgba(0,0,0,.13); font-weight: 850; font-size: 11px; letter-spacing: .17em; }
.illust-card-2 { margin-left: -35px; transform: rotate(13deg) translateY(12px); background: #cbe4d4; }
.illust-check { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; font-size: 21px; background: #d0e6ae; color: #386354; border-radius: 50%; margin-left: -20px; top: -50px; }
.auth-footer { font-size: 11px; color: #a5c0c0; z-index: 1; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px clamp(25px, 5vw, 90px); }
.login-card { width: 100%; max-width: 430px; }
.login-card h2 { font-size: 32px; margin: 0 0 10px; }
.login-card > p { margin-bottom: 35px; }
.login-card .form-stack { gap: 24px; }
.login-card input { min-height: 53px; }
.login-card .btn { padding: 17px; font-size: 13px; }
.login-footnote { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 32px; color: #9ca9a7; line-height: 1.8; font-size: 11px; }
.login-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 19px; font-size: 12px; }
.login-legal-links a { color: #346b61; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.login-legal-links a:hover, .login-legal-links a:focus-visible { color: #173e4b; }

.setup-card { max-width: 660px; margin: 50px auto; padding: 36px; border-radius: 17px; border: 1px solid var(--line); box-shadow: var(--shadow); background: white; }
.setup-card .auth-logo { margin-bottom: 38px; }
.setup-card .auth-logo .brand-mark { background: var(--deep); color: var(--mint); }
.setup-card h1 { margin-bottom: 14px; }
.setup-card h2 { font-size: 16px; margin: 10px 0 0; }
.setup-card > p { margin-bottom: 30px; }
.setup-card .btn { margin-top: 10px; }
@media (max-width: 1300px) {
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; min-height: 0; position: static; padding: 16px 20px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .brand { margin: 0; padding: 0; }
  .brand small, .side-label { display: none; }
  .side-nav { flex: 1; flex-direction: row; overflow-x: auto; gap: 2px; white-space: nowrap; }
  .side-nav a { padding: 9px; min-height: 39px; font-size: 12px; }
  .nav-symbol { display: none; }
  .sidebar-bottom { padding: 0; margin: 0; border: 0; }
  .topbar { min-height: 70px; }
  .admin-two-col { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .auth-intro { padding: 35px; }
  .auth-illustration { display: none; }
}
@media (max-width: 650px) {
  .page-container { padding: 27px 17px 65px; }
  .sidebar { gap: 8px; padding: 14px 16px; }
  .sidebar .brand { flex-basis: calc(100% - 84px); }
  .sidebar-bottom { order: 1; }
  .side-nav { order: 2; flex-basis: 100%; }
  .brand strong { font-size: 17px; }
  .brand-mark { width: 37px; height: 37px; font-size: 22px; }
  .nav-logout { font-size: 11px; }
  .topbar { padding: 12px 18px; min-height: 61px; }
  .account-avatar { width: 31px; height: 31px; }
  .account-info strong { font-size: 11px; }
  .topbar-label { font-size: 11px; }
  .welcome-banner, .admin-welcome { padding: 29px 23px; min-height: 210px; }
  .welcome-decoration, .admin-welcome-symbol { display: none; }
  .stats-grid, .stats-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 33px; }
  .stat-card { padding: 18px; }
  .stat-card strong { font-size: 29px; }
  .stat-label, .stat-hint { font-size: 10px; }
  .topics-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 228px; }
  .topic-hero { padding: 23px; flex-direction: column; }
  .lesson-row { padding: 14px; gap: 11px; }
  .lesson-index { width: 37px; height: 37px; }
  .lesson-row-text strong { font-size: 12px; }
  .lesson-row .pill { display: none; }
  .panel { padding: 21px; }
  .complete-box { align-items: stretch; flex-direction: column; }
  .complete-box form .btn { width: 100%; }
  .admin-form-grid { grid-template-columns: 1fr; gap: 17px; }
  .panel-heading { flex-wrap: wrap; align-items: flex-start; }
  .search-form { width: 100%; max-width: none; }
  .topic-admin-row { flex-wrap: wrap; }
  .topic-admin-row .table-actions { flex-basis: 100%; margin-left: 52px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: 0; padding: 20px 25px; }
  .auth-intro .auth-logo { font-size: 17px; }
  .auth-intro-body, .auth-footer { display: none; }
  .auth-form-wrap { padding: 80px 24px 50px; align-items: start; }
  .login-card h2 { font-size: 28px; }
  .setup-card { margin: 15px; padding: 25px; }
}

/* Eigene News-Komponenten: keine externen Fonts, Bilder oder Verbindungen. */
.news-summary { background: linear-gradient(120deg, #173e4b, #32616b); border-radius: 17px; margin-bottom: 24px; color: #fff; padding: 28px 34px; display:flex; justify-content:space-between; align-items:center; gap:20px; overflow:hidden; }
.news-summary .eyebrow { color:#b8d8cb; }
.news-summary strong { font-size: 39px; line-height:1.25; display:block; }
.news-summary strong span { font-size: 18px; font-weight: 620; }
.news-summary p { color:#c6d9d7; margin: 8px 0 0; font-size: 13px; }
.news-summary-icon { font-size:70px; opacity:.36; }
.news-list { display:flex; flex-direction:column; gap:12px; }
.news-card { display:flex; align-items:flex-start; gap:18px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; transition:border .18s, transform .18s; }
.news-card:hover { border-color:#b2cfc2; transform:translateY(-2px); }
.news-card-symbol { width:50px; height:50px; flex-shrink:0; display:grid; place-items:center; font-size:26px; background:#eef6ed; color:#538877; border-radius:13px; }
.news-card-main { flex:1; min-width:0; }
.news-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:11px; color:#8a9998; margin:0 0 12px; }
.news-card h2 { font-size:18px; margin:0 0 8px; overflow-wrap:anywhere; }
.news-card p { font-size:13px; line-height:1.7; color:#7d908e; overflow-wrap:anywhere; margin:0; }
.pill-unread { background:#fff0db; color:#9a6a20; }
.news-card .row-chevron { align-self:center; }
.news-detail-head { margin-bottom:26px; }
.news-detail-head h1 { margin-bottom:18px; overflow-wrap:anywhere; }
.news-article { padding:clamp(23px,4vw,45px); min-height:160px; }
.news-article .lesson-body { white-space:normal; }
.news-confirm { margin-top:23px; }
.filter-links { display:flex; flex-wrap:wrap; gap:8px; margin: 0 0 25px; }
.filter-chip { border:1px solid #d9e6e1; background:#fff; border-radius:40px; padding:8px 13px; color:#648078; font-size:12px; font-weight:650; }
.filter-chip:hover, .filter-chip.is-selected { background:#e5f2e9; color:#305d50; border-color:#bcdac8; }
.page-links { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:22px; font-size:12px; color:#758784; }
.news-home-panel { margin-bottom:37px; }
.news-home-panel .panel-heading .eyebrow { margin:0 0 7px; }
.news-home-row { text-decoration:none; }
.news-home-row:hover strong { color:#347a6f; }
.dashboard-news-link { font-size:13px; font-weight:750; color:#437d71; margin: 17px 0 17px; }
.dashboard-news-link a:hover { text-decoration:underline; }
@media (max-width:650px) {
  .news-summary { padding:24px; }
  .news-summary-icon { display:none; }
  .news-summary strong { font-size:31px; }
  .news-summary strong span { font-size:15px; }
  .news-card { padding:18px; gap:11px; }
  .news-card-symbol { width:39px; height:39px; font-size:20px; }
  .news-card h2 { font-size:16px; }
  .news-card .row-chevron { display:none; }
}

/* Login 1.2.3: mobile Eingabehilfe ohne externe Ressourcen. */
.password-entry { position: relative; }
.password-entry input { padding-right: 108px; }
.password-visibility {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: 1px solid #d9e7e1; background: #f4f8f5; color: #315d54;
  padding: 9px 10px; min-width: 86px; border-radius: 7px;
  font-size: 12px; font-weight: 750; line-height: 1.2;
}
.password-visibility:hover { background: #e7f1ea; }
.login-error-help { color: #6b7978; font-size: 12px; line-height: 1.7; margin: -8px 0 20px; }
.pill-warning { background: #fff0dc; color: #986017; }

/* Wochenplaner 1.3.0 – rein lokale Darstellung, responsiv */
.week-nav { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:24px; }
.week-nav-title { min-width:145px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.week-nav-title strong { font-size:16px; }
.week-nav-title span { font-size:11px; color:#80938e; }
.week-current { color:#427e70; font-size:12px; font-weight:750; margin-left:auto; }
.week-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:23px; }
.week-summary-card { background:#fff; border:1px solid var(--line); border-radius:15px; padding:25px; box-shadow:var(--shadow); }
.week-summary-card h2 { font-size:16px; margin:9px 0 18px; }
.week-summary-card .eyebrow { margin:0; }
.week-metric { display:flex; align-items:baseline; gap:8px; margin-bottom:12px; }
.week-metric strong { font-size:37px; line-height:1.1; color:var(--deep); }
.week-metric span { font-size:13px; color:#8da099; }
.week-summary-card p { margin:11px 0 0; font-size:11px; color:#6d8880; }
.week-help { color:#6c8580; font-size:12px; margin:0 0 17px; line-height:1.65; }
.week-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.week-fields .field label { line-height:1.5; }
.week-days-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; margin-bottom:24px; }
.week-day-card { background:#fff; border:1px solid var(--line); border-radius:15px; padding:21px; min-width:0; }
.week-day-today { border-color:#88b9a0; box-shadow:0 0 0 2px #e7f4e9; }
.week-day-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.week-day-header h3 { margin:0; font-size:16px; }
.week-day-header h3 small { color:#82948f; font-size:11px; font-weight:500; margin-left:5px; }
.week-day-form { border-bottom:1px solid #e8eeeb; padding-bottom:14px; margin-bottom:11px; }
.week-day-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.week-day-inputs label { display:flex; flex-direction:column; gap:5px; color:#506e64; font-weight:750; font-size:11px; }
.week-day-inputs input { width:100%; min-width:0; padding:10px; border:1px solid #d8e5dd; border-radius:8px; color:var(--ink); background:#fff; }
.week-day-inputs input:focus { outline:2px solid #a3d0b8; outline-offset:1px; }
.week-save-day { margin-top:12px; }
.week-task-list { display:flex; flex-direction:column; gap:8px; }
.week-task { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; }
.week-task span { color:#5c7370; }
.week-task-done span { color:#40805b; }
.week-check { white-space:nowrap; border:1px solid #d3e1d9; padding:9px 12px; min-width:90px; border-radius:20px; background:#f6f9f7; color:#59786a; font-size:11px; font-weight:780; }
.week-check.checked { background:#e1f1e3; border-color:#a7d3b0; color:#307249; }
.week-check:disabled { opacity:.45; cursor:not-allowed; }
.week-check:not(:disabled):hover { background:#e4f1e8; }
.week-bottom-note { color:#638478; font-size:12px; line-height:1.75; background:#eef5ef; border:1px solid #d8e8df; border-radius:12px; padding:19px; margin-top:20px; }
@media (max-width:800px) { .week-days-grid { grid-template-columns:1fr; } }
@media (max-width:650px) {
  .week-nav { gap:9px; justify-content:space-between; }
  .week-nav-title { order:-1; flex-basis:100%; margin-bottom:6px; }
  .week-current { flex-basis:100%; text-align:center; margin:4px 0 0; }
  .week-summary-grid, .week-fields { grid-template-columns:1fr; }
  .week-summary-card { padding:21px; }
  .week-day-card { padding:18px; }
  .week-task { align-items:center; }
}
