:root {
  --green: #7cb342;
  --green-dark: #4f7f24;
  --green-light: #eef5e4;
  --green-pale: #f7faf2;
  --ink: #2b2b2b;
  --muted: #7a7a7a;
  --board: #2f6b3a;
  --board-dark: #24552d;
  --wood: #b8763f;
  --wood-dark: #8a5528;
  --chalk: #fdfdf5;
  --paper: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(50, 70, 30, .10);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--green-pale); color: var(--ink); line-height: 1.55;
  font-family: 'Nunito', system-ui, sans-serif; font-size: 17px;
  background-image: radial-gradient(circle at 10% 0%, #e4f0d3 0, transparent 40%), radial-gradient(circle at 100% 100%, #e8f2da 0, transparent 35%);
  background-attachment: fixed;
}
a { color: var(--green-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 2rem; font-weight: 800; color: var(--green-dark); margin: .2em 0 .6em; }
h2 { font-size: 1.35rem; font-weight: 800; color: var(--green-dark); margin: 1.2em 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.intro { background: var(--paper); border-left: 5px solid var(--green); padding: 12px 18px; border-radius: 10px; margin: 0 0 1.4em; box-shadow: var(--shadow); }
.content { background: var(--paper); padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.content img { max-width: 100%; }
.crumbs { color: var(--muted); font-size: .9em; margin: 14px 0 0; }

/* header */
.site-header { background: linear-gradient(180deg, #ffffff, #f2f7ea); border-bottom: 3px solid var(--green); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding-top: 12px; padding-bottom: 0; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-right: auto; }
.brand-title { font-size: 1.7rem; font-weight: 800; color: var(--green-dark); letter-spacing: .3px; }
.brand-sub { font-family: 'Patrick Hand', cursive; font-size: 1.3rem; color: var(--wood-dark); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 10px 10px 0 0; font-weight: 700; color: var(--green-dark); background: transparent; transition: background .15s; }
.nav a:hover { background: var(--green-light); }
.nav a.active { background: var(--green); color: #fff; }
.nav-toggle { display: none; border: 0; background: var(--green); color: #fff; font-size: 1.3rem; border-radius: 8px; padding: 6px 12px; margin-bottom: 10px; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; padding-bottom: 8px; }
  .nav a { border-radius: 8px; }
  body.nav-open .nav { display: flex; }
  .brand { flex-wrap: wrap; gap: 2px 10px; }
  .brand-title { font-size: 1.4rem; }
}
main.wrap { padding-top: 26px; padding-bottom: 40px; min-height: 60vh; }
.site-footer { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 28px; color: var(--muted); font-size: .9em; border-top: 1px solid #dfe8d3; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.content h2 { font-size: 1.15rem; margin-top: 1.3em; }

/* chalkboards */
.boards { display: grid; gap: 32px; }
.board-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: end; }
.mascot-wrap { align-self: end; padding-bottom: 6px; }
.mascot { width: 150px; height: 150px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.15)); }
.chalkboard { background: var(--wood); padding: 12px; border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--wood-dark), 0 10px 30px rgba(60, 40, 10, .25);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px); }
.chalk-frame { background: var(--board); border-radius: 6px; padding: 18px 26px 22px; color: var(--chalk); min-height: 150px; position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,.35);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 60%); }
.chalk-title { font-family: 'Patrick Hand', cursive; font-size: 2.1rem; margin: 0 0 8px; color: #fff; font-weight: 400; text-shadow: 0 0 6px rgba(255,255,255,.35); }
.chalk-title::after { content: ''; display: block; height: 3px; width: 100%; background: rgba(255,255,255,.35); border-radius: 3px; margin-top: 4px; }
.chalk-content { font-family: 'Patrick Hand', cursive; font-size: 1.5rem; line-height: 1.45; }
.chalk-content p { margin: .35em 0; }
.chalk-content h2, .chalk-content h3, .chalk-content h4 { color: #fff; font-family: inherit; font-weight: 400; margin: .5em 0 .2em; }
.chalk-content h2 { font-size: 1.7rem; } .chalk-content h3 { font-size: 1.45rem; }
.chalk-content a { color: #ffe9a8; }
.chalk-content ul, .chalk-content ol { padding-left: 1.4em; margin: .3em 0; }
.chalk-content strong, .chalk-content b { color: #fff3c4; }
.edit-link { position: absolute; right: 12px; bottom: 8px; color: #fff; font-family: 'Nunito'; font-size: .8rem; opacity: .7; text-decoration: none; }
.edit-link:hover { opacity: 1; }
@media (max-width: 640px) {
  .board-row { grid-template-columns: 1fr; gap: 0; }
  .mascot-wrap { justify-self: start; margin-left: 10px; margin-bottom: -6px; }
  .mascot { width: 100px; height: 100px; }
  .chalk-frame { padding: 14px 16px 18px; }
  .chalk-content { font-size: 1.3rem; }
}

/* lists */
.group { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 24px 18px; margin-bottom: 22px; }
.group h2 { margin-top: .3em; }
.satz-list { padding-left: 2.2em; margin: 0; }
.satz-list li { padding: 5px 4px; border-bottom: 1px dashed #e4ebd8; }
.satz-list li.current { font-size: 1.25em; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; border: 0; }
.lw { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #e4ebd8; align-items: baseline; flex-wrap: wrap; }
.lw-label { font-weight: 800; color: var(--green-dark); min-width: 62px; }
.lw-words .word::after { content: ', '; }
.lw-words .word:last-child::after { content: ''; }
.lw.current { background: var(--green-light); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; border: 0; }
.lw.current .lw-label { font-size: 1.25em; }
.lw.current .word { display: inline-block; background: #fff; border: 1px solid #cfe1b8; border-radius: 8px; padding: 2px 10px; margin: 3px 4px 3px 0; font-size: 1.15em; font-weight: 600; }
.lw.current .word::after { content: ''; }
.cta { margin-top: 20px; }
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 var(--green-dark); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }
.btn.secondary { background: #fff; color: var(--green-dark); box-shadow: 0 3px 0 #c7d8b1; border: 1px solid #c7d8b1; }
.btn.small { padding: 5px 10px; font-size: .85em; }
.btn.danger { background: #d9534f; box-shadow: 0 3px 0 #a33c39; }

/* quiz */
.quiz-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.quiz-controls select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid #c7d8b1; }
.score { font-weight: 800; color: var(--green-dark); }
.quiz-board { border-radius: 10px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; min-height: 90px; margin-bottom: 14px; box-shadow: var(--shadow); }
.quiz-board.green { background: #2f8f2f; }
.quiz-board.blue { background: #19237e; }
.tile { width: 58px; height: 58px; border-radius: 8px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; cursor: pointer; user-select: none; transition: transform .1s; }
.tile.letter { background: #6a6a6a; color: #fff; box-shadow: 0 3px 0 #444; }
.tile.letter.used { visibility: hidden; }
.tile:hover { transform: translateY(-2px); }
.slot { width: 58px; height: 58px; border-radius: 8px; background: #fff; border: 2px dashed #9aa4ff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #19237e; cursor: pointer; }
.slot.filled { border-style: solid; }
.quiz-board.correct { background: #2f8f2f; } .quiz-board.correct .slot { background: #c8f7c5; border-color: #2f8f2f; color: #1f5f1f; }
.quiz-board.wrong .slot.filled { background: #ffd7d7; border-color: #d9534f; color: #a33c39; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-msg { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); min-height: 1.6em; }
@media (max-width: 480px) { .tile, .slot { width: 44px; height: 44px; font-size: 1.25rem; } .quiz-board { gap: 6px; padding: 10px; } }

/* photos */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.album-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s; }
.album-card:hover { transform: translateY(-3px); }
.album-cover { aspect-ratio: 4/3; background: var(--green-light); display: grid; place-items: center; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-empty { font-size: 2.5rem; }
.album-title { font-weight: 800; padding: 10px 14px 0; }
.album-count { padding: 0 14px 12px; font-size: .9em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #e6e6e6; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; }
.lightbox figcaption { color: #fff; padding: 10px; font-size: 1.05em; }
.lightbox button { background: transparent; color: #fff; border: 0; font-size: 2.4rem; cursor: pointer; padding: 20px 0; }
.lb-close { position: absolute; top: 6px; right: 14px; font-size: 1.8rem !important; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 36px 1fr 36px; } }

/* Übungen (Wordwall) – Stil der Vorlage */
body.ue-body { background: radial-gradient(circle at 12% 12%, #ffe082 0 4%, transparent 4.2%), radial-gradient(circle at 88% 18%, #b39ddb 0 4%, transparent 4.2%), radial-gradient(circle at 8% 85%, #80cbc4 0 4%, transparent 4.2%), radial-gradient(circle at 92% 86%, #ffab91 0 4%, transparent 4.2%), #fffdf7; background-attachment: fixed; }
.ue-wrap { font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; color: #263238; }
.ue-hero { text-align: center; margin-bottom: 22px; }
.ue-hero h1 { margin: 6px 0 2px; font-size: clamp(34px, 5vw, 58px); color: #263238; }
.ue-hero h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); font-weight: 800; color: #263238; }
.ue-monster { width: 112px; height: 94px; margin: 0 auto 8px; background: #7e57c2; border-radius: 46% 54% 48% 52% / 58% 58% 42% 42%; position: relative; box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.ue-monster:before, .ue-monster:after { content: ""; position: absolute; top: 27px; width: 28px; height: 28px; background: #fff; border-radius: 50%; border: 3px solid #263238; }
.ue-monster:before { left: 23px; } .ue-monster:after { right: 23px; }
.ue-monster .eye1, .ue-monster .eye2 { position: absolute; z-index: 2; top: 38px; width: 9px; height: 9px; background: #263238; border-radius: 50%; }
.ue-monster .eye1 { left: 35px; } .ue-monster .eye2 { right: 35px; }
.ue-monster .mouth { position: absolute; left: 37px; bottom: 15px; width: 40px; height: 16px; border-bottom: 4px solid #263238; border-radius: 0 0 50% 50%; }
.ue-monster .horn1, .ue-monster .horn2 { position: absolute; top: -14px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 28px solid #7e57c2; }
.ue-monster .horn1 { left: 16px; transform: rotate(-18deg); } .ue-monster .horn2 { right: 16px; transform: rotate(18deg); }
.ue-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px auto 6px; max-width: 900px; }
.ue-tabs a { text-decoration: none; color: #263238; background: #fff; border: 2px solid #263238; border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.ue-tabs a.active { background: #263238; color: #fff; }
.ue-intro { margin: 12px auto 10px; max-width: 780px; font-size: 19px; line-height: 1.45; background: rgba(255,255,255,.82); border: 2px dashed #9e9e9e; border-radius: 18px; padding: 12px 18px; }
.ue-words { margin: 0 auto 26px; max-width: 900px; }
.ue-words span { display: inline-block; background: #fff; border: 2px solid #263238; border-radius: 10px; padding: 3px 10px; margin: 4px 3px; font-weight: 700; }
.ue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
a.ue-card { text-decoration: none; color: #263238; background: #fff; border: 3px solid #263238; border-radius: 22px; padding: 22px; min-height: 142px; display: flex; align-items: center; gap: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.10); transition: transform .12s ease, box-shadow .12s ease; }
a.ue-card:hover { transform: translateY(-4px) rotate(-.2deg); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.ue-card .num { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; font-weight: 900; border: 3px solid #263238; background: #fff; }
.ue-card .icon { font-size: 38px; line-height: 1; }
.ue-card .txt strong { display: block; font-size: 24px; margin-bottom: 5px; }
.ue-card .txt span { display: block; font-size: 16px; line-height: 1.3; }
.ue-card.c1 { background: #fff3cd; } .ue-card.c2 { background: #e8eaf6; } .ue-card.c3 { background: #e0f2f1; }
.ue-card.c4 { background: #fce4ec; } .ue-card.c5 { background: #e8f5e9; } .ue-card.c6 { background: #fff3e0; }
.ue-tip { margin-top: 28px; text-align: center; font-size: 18px; font-weight: 700; background: #fff; border-radius: 18px; padding: 13px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ue-tip .small { margin-top: 8px; font-size: 14px; font-weight: normal; }
.ue-empty { text-align: center; font-size: 18px; background: rgba(255,255,255,.82); border-radius: 18px; padding: 16px; }
.ue-edit { text-align: center; margin-top: 18px; }
.edit-link-dark { color: #555; font-size: .9em; }
@media (max-width: 720px) { .ue-grid { grid-template-columns: 1fr; } a.ue-card { min-height: 120px; } }

/* Tastatur */
.kb-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.kb-controls select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid #c7d8b1; }
.kb { background: #cfcfcf; border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.15); outline: none; user-select: none; }
.kb:focus-within { box-shadow: 0 0 0 4px rgba(124,179,66,.5), 0 10px 30px rgba(0,0,0,.15); }
.kb-input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; border: 0; padding: 0; pointer-events: none; font-size: 16px; }
.kb { position: relative; }
.kb-tap { position: absolute; inset: 0; display: none; place-items: center; background: rgba(255,255,255,.85); font-family: 'Nunito', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green-dark); cursor: pointer; }
.kb:not(:focus-within) .kb-tap { display: grid; }
.kb-stream { position: relative; background: #fff; border-radius: 12px; height: 74px; overflow: hidden; margin-bottom: 20px; font-family: 'Courier New', Courier, monospace; font-size: 34px; line-height: 74px; white-space: nowrap; }
.kb-track { position: absolute; left: 50%; top: 0; transition: transform .08s ease-out; will-change: transform; }
.kb-track .done { color: #9e9e9e; }
.kb-track .cur { color: #1b5e20; background: #dcedc8; border-radius: 4px; }
.kb-track .cur.err { background: #ffcdd2; color: #b71c1c; }
.kb-caret { position: absolute; left: 50%; bottom: 8px; width: 21px; height: 4px; background: #555; border-radius: 2px; }
.kb-rows { display: grid; gap: 8px; }
.kb-row { display: flex; gap: 8px; }
.key { flex: 1 1 0; height: 62px; background: #fff; border-radius: 9px; display: grid; place-items: center; font-size: 22px; color: #333; border: 3px solid transparent; box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: background .06s, transform .06s; }
.key.w15 { flex-grow: 1.5; } .key.w2 { flex-grow: 2; } .key.w25 { flex-grow: 2.5; } .key.w6 { flex-grow: 7.5; }
.key.f-pinky { border-color: #4a7bd0; } .key.f-ring { border-color: #f2d600; } .key.f-middle { border-color: #8bc34a; } .key.f-index { border-color: #e64a19; }
.key.next.f-pinky { background: #4a7bd0; color: #fff; } .key.next.f-ring { background: #f2d600; } .key.next.f-middle { background: #8bc34a; color: #fff; } .key.next.f-index { background: #e64a19; color: #fff; }
.key.next { background: #8bc34a; color: #fff; }
.key.pressed { transform: translateY(2px); box-shadow: none; background: #ffe082; }
.key.pressed.wrong { background: #ef9a9a; }
.key.mod { font-size: 17px; color: #444; }
.kb-status { margin-top: 18px; background: #fff; border-radius: 10px; padding: 10px 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: #666; font-size: 1em; }
.kb-status b { color: #333; }
.kb-finger { font-weight: 800; color: var(--green-dark) !important; }
.kb-done { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); text-align: center; margin-top: 16px; }
@media (max-width: 760px) { .kb { padding: 10px; } .key { height: 40px; font-size: 15px; border-width: 2px; } .key.mod { font-size: 11px; } .kb-row, .kb-rows { gap: 4px; } .kb-stream { font-size: 24px; height: 56px; line-height: 56px; } }

.fireworks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }
