/* Lozis World – /kostenlos/ (Übersicht + Fachseiten). Übernommen aus tools/zusatzabenteuer-demo.php (V22),
   ergänzt um Einleitung, Fach-Navigation, Themengruppen und Fußbereich.
   Grundlage bleibt /lernspiel/assets/verwaltung-abenteuer-v1.css. */
:root {color-scheme:light;}
html {scroll-behavior:smooth;}
body {margin:0;background:radial-gradient(circle at 90% 0%,#d9e8e6 0%,transparent 29%),linear-gradient(#f2f8f6,#fffaf0);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#19394d;}
.lw-demo-top {background:#112c42;color:#fff;border-bottom:3px solid #d7ac68;}
.lw-demo-top-inner {max-width:1180px;margin:0 auto;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;}
.lw-demo-brand {display:flex;align-items:center;gap:12px;font-weight:950;letter-spacing:.02em;font-size:16px;color:#fff;text-decoration:none;}
.lw-demo-mark {display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#24566a;font-size:25px;}
.lw-demo-brand small {display:block;color:#bcd8d9;font-weight:650;letter-spacing:.07em;font-size:11px;}
.lw-kl-topnav {display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end;}
.lw-kl-topnav a {color:#e2f1f0;text-decoration:none;font-size:13px;font-weight:800;}
.lw-kl-topnav a:hover {text-decoration:underline;}
.lw-demo-home {color:#ffdb99!important;}
.lw-demo-shell {max-width:1180px;margin:0 auto;padding:14px 20px 65px;min-height:65vh;}
.lw-demo-shell .lw-aa-hero {margin:0;}
.lw-demo-shell .lw-aa-hero h1 {color:#fff;}
.lw-demo-shell .lw-aa-hero p:not(.lw-aa-kicker) {color:#e2f1f0;}
.lw-demo-shell .lw-aa-hints {grid-template-columns:1fr;}
.lw-demo-shell .lw-aa-hints p {background:#f5fbf8;}
.lw-demo-shell .lw-aa-item {display:grid;grid-template-columns:174px minmax(0,1fr);align-items:stretch;}
.lw-demo-shell .lw-aa-itemmain {padding:19px 22px;min-width:0;}
.lw-demo-thumb {display:block;position:relative;align-self:start;margin:18px 0 18px 16px;aspect-ratio:4/3;min-width:0;overflow:hidden;background:linear-gradient(145deg,#dceae2,#c9dde6);border:2px solid #e1e9df;border-radius:14px;box-shadow:0 4px 12px #153d4819;text-decoration:none;}
.lw-demo-thumb img {display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease;}
.lw-demo-thumb:hover img {transform:scale(1.045);}
.lw-demo-thumb:focus-visible {outline:3px solid #188899;outline-offset:3px;}
.lw-demo-thumb-fallback {display:grid;place-items:center;height:100%;font-size:56px;}
.lw-demo-thumb-fallback[hidden],.lw-demo-thumb img[hidden] {display:none!important;}
.lw-demo-shell .lw-aa-item[hidden] {display:none !important;}
.lw-demo-shell .lw-aa-tags span:last-child {background:#e3f5e8;color:#2a764a;}
.lw-aa-tags .lw-demo-free {background:#e1f6df!important;color:#25783a!important;}
.lw-demo-shell .lw-aa-link {box-sizing:border-box;}
.lw-demo-shell .lw-aa-back {margin:0 0 9px;}
.lw-demo-shell .lw-aa-back a {color:#166c83;text-decoration:none;font-weight:800;}
.lw-demo-shell .lw-aa-list {display:grid;gap:13px;scroll-margin-top:14px;}
.lw-demo-shell .lw-aa-button {text-decoration:none;}
.lw-demo-alert {padding:17px 19px;border-radius:13px;background:#fff5e8;border:1px solid #e1c296;color:#694a24;font-size:14px;}
.lw-aa-overlay[hidden],.lw-aa-toast[hidden],.lw-demo-shell #lw-aa-empty[hidden] {display:none!important;}
/* Fallback, falls das zentrale Stylesheet umbenannt wurde. */
.lw-aa-panel {background:#fffcf5;border:1px solid #e9d9bb;border-radius:20px;padding:clamp(16px,3vw,23px);}
.lw-aa-list .lw-aa-item {background:#fff;border:1px solid #d9e6dd;border-radius:18px;overflow:hidden;box-shadow:0 8px 20px #123f3a0c;}
.lw-aa-itemmain h2,.lw-aa-itemmain h3 {margin:10px 0 4px;color:#17394d;font-size:20px;line-height:1.25;}
.lw-kl-titlelink {color:inherit;text-decoration:none;}
.lw-kl-titlelink:hover {text-decoration:underline;}
.lw-aa-topic {color:#947039;font-size:12px;font-weight:850;}
.lw-aa-description {color:#546d74;font-size:13px;}
.lw-aa-field {display:flex;flex-direction:column;gap:6px;font-weight:750;font-size:12px;}
.lw-aa-field input,.lw-aa-field select {width:100%;box-sizing:border-box;min-height:44px;border-radius:10px;border:1px solid #c6d8d5;background:#fff;padding:10px;font-size:14px;}
.lw-aa-tags {display:flex;flex-wrap:wrap;gap:7px;}
.lw-aa-tags span {font-size:11px;font-weight:800;padding:6px 10px;border-radius:999px;background:#e9f3f1;color:#275b65;}
.lw-aa-actions {display:flex;gap:9px;flex-wrap:wrap;margin-top:12px;}
.lw-aa-button {display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:40px;padding:10px 14px;border:1px solid #bdd8d4;border-radius:10px;background:#edf7f4;color:#1b6570;font-weight:800;font-size:13px;}
.lw-aa-qr {background:#215e7a;color:white;border-color:#215e7a;}
.lw-aa-open {background:#fff5da;color:#8b5b13;border-color:#e3c889;}
.lw-aa-overlay {position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:#092039dd;padding:16px;overflow-y:auto;}
.lw-aa-dialog {box-sizing:border-box;background:#fffdf7;border:4px solid #efc47a;border-radius:23px;max-width:790px;width:100%;max-height:calc(100dvh - 30px);padding:25px;text-align:center;overflow:auto;}
.lw-aa-modal-top {display:flex;justify-content:space-between;align-items:center;gap:10px;}
.lw-aa-modal-close {cursor:pointer;}
.lw-aa-qr-container {width:min(60vh,430px,78vw);height:min(60vh,430px,78vw);margin:auto;display:grid;place-items:center;background:white;border:10px solid white;border-radius:13px;box-sizing:border-box;}
.lw-aa-qr-container svg {width:100%;height:100%;display:block;}
.lw-aa-modal-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:16px;}
.lw-aa-modal-actions button {cursor:pointer;padding:10px 15px;border-radius:10px;border:1px solid #bdd8d4;background:#e6f3ef;color:#225d6b;font-weight:800;}
.lw-aa-toast {position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#17394f;color:white;padding:12px 20px;border-radius:10px;z-index:100000;}
.lw-aa-dialog:fullscreen {max-width:none;max-height:none;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;}

/* Kopfbereich (Hero) */
.lw-demo-shell .lw-aa-hero {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px!important;min-height:0!important;border-radius:18px;}
.lw-demo-shell .lw-aa-hero > div:first-child {min-width:0;flex:1;}
.lw-demo-shell .lw-aa-hero .lw-aa-kicker {margin:0 0 6px;font-size:10px;line-height:1.2;}
.lw-demo-shell .lw-aa-hero h1 {margin:0 0 8px;font-size:clamp(24px,3.2vw,33px);line-height:1.12;}
.lw-demo-shell .lw-aa-hero p:not(.lw-aa-kicker) {margin:0 0 6px;max-width:860px;font-size:14px;line-height:1.5;}
.lw-demo-shell .lw-aa-hero p:last-child {margin-bottom:0;}
.lw-demo-shell .lw-aa-hero-icon {display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;min-width:0;min-height:0;font-size:34px;line-height:1;}
.lw-demo-shell .lw-aa-hints {margin:9px 0 0;gap:0;}
.lw-demo-shell .lw-aa-hints p {margin:0;padding:8px 13px;font-size:12px;line-height:1.35;border-radius:10px;}

/* Fach-Navigation */
.lw-kl-fachnav {margin:12px 0 0;}
.lw-kl-fachnav ul {list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.lw-kl-fachnav a {display:inline-flex;align-items:center;gap:6px;min-height:38px;box-sizing:border-box;padding:7px 13px;border-radius:999px;border:1px solid #c6dcd6;background:#fff;color:#1b5f6c;font-weight:800;font-size:13px;text-decoration:none;}
.lw-kl-fachnav a:hover {background:#edf7f4;}
.lw-kl-fachnav a[aria-current="page"] {background:#215e7a;border-color:#215e7a;color:#fff;}
.lw-kl-fachnav a span {font-size:11px;font-weight:700;opacity:.75;}

/* Filter (nur Übersicht) */
.lw-demo-shell .lw-aa-panel {margin-top:12px;padding:15px 20px 17px;border-radius:17px;}
.lw-demo-shell .lw-aa-sectionhead {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;}
.lw-demo-shell .lw-aa-sectionhead > div {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0;}
.lw-demo-shell .lw-aa-sectionhead > div > span {margin:0;font-size:10px;line-height:1.3;}
.lw-demo-shell .lw-aa-sectionhead h2 {margin:0;font-size:clamp(17px,2vw,20px);line-height:1.2;}
.lw-demo-shell .lw-aa-count {flex-shrink:0;white-space:nowrap;font-size:12px;}
.lw-demo-shell .lw-aa-filters {display:grid;grid-template-columns:minmax(200px,2.1fr) minmax(112px,1fr) minmax(105px,.8fr) minmax(125px,1fr) auto;gap:10px;align-items:end;margin:0;}
.lw-demo-shell .lw-aa-field {gap:4px;font-size:11px;line-height:1.2;min-width:0;}
.lw-demo-shell .lw-aa-field input,.lw-demo-shell .lw-aa-field select {min-height:40px;height:40px;padding:8px 10px;font-size:13px;min-width:0;}
.lw-demo-searchbox {position:relative;display:block;width:100%;min-width:0;}
.lw-demo-shell .lw-demo-searchbox input {width:100%;padding-right:51px;}
.lw-demo-search-submit {position:absolute;right:4px;top:4px;bottom:4px;width:38px;display:grid;place-items:center;cursor:pointer;border:0;border-radius:8px;background:#dceee9;color:#176575;font-size:17px;}
.lw-demo-search-submit:hover {background:#bce1dc;}
.lw-demo-search-submit:focus-visible {outline:3px solid #188899;outline-offset:2px;}
.lw-demo-shell .lw-aa-reset {min-height:40px;height:40px;margin:0;padding:7px 11px;font-size:12px;white-space:nowrap;align-self:end;}

/* Themengruppen (Fachseiten) */
.lw-kl-group {margin-top:26px;}
.lw-kl-group > h2 {margin:0 0 10px;font-size:clamp(19px,2.3vw,23px);color:#17394d;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
.lw-kl-group > h2 small {font-size:13px;font-weight:700;color:#5d7a80;}
.lw-kl-toc {margin:14px 0 0;padding:12px 16px;border-radius:14px;background:#fffcf5;border:1px solid #e9d9bb;font-size:14px;}
.lw-kl-toc strong {display:block;font-size:12px;letter-spacing:.06em;color:#947039;margin-bottom:4px;}
.lw-kl-toc ul {margin:0;padding-left:20px;columns:2;column-gap:28px;}
.lw-kl-toc a {color:#166c83;}
.lw-kl-more {margin-top:30px;padding:18px 20px;border-radius:16px;background:#112c42;color:#e2f1f0;}
.lw-kl-more h2 {margin:0 0 6px;color:#ffd17b;font-size:20px;}
.lw-kl-more p {margin:0 0 10px;font-size:14px;}
.lw-kl-more a {color:#ffdb99;font-weight:800;}

/* Fußbereich */
.lw-kl-footer {border-top:1px solid #d4e2dc;margin-top:35px;padding-top:15px;font-size:12px;color:#597079;line-height:1.6;}
.lw-kl-footer p {margin:0 0 8px;}
.lw-kl-footer nav {display:flex;flex-wrap:wrap;gap:6px 16px;}
.lw-kl-footer a {color:#136e80;}

/* Adventskalender-Seite */
.lw-kl-advent {margin-top:16px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;}
.lw-kl-advent section {background:#fff;border:1px solid #d9e6dd;border-radius:18px;padding:18px 22px;box-shadow:0 8px 20px #123f3a0c;}
.lw-kl-advent h2 {margin:0 0 8px;font-size:20px;}
.lw-kl-advent ul,.lw-kl-advent ol {margin:0;padding-left:20px;}
.lw-kl-advent li {margin:0 0 6px;}
.lw-kl-cta {display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:12px 18px;border-radius:10px;background:linear-gradient(110deg,#ffe0a0,#f8b75b);color:#372410;font-weight:900;text-decoration:none;}
.lw-kl-cta:hover {filter:brightness(1.05);}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}.lw-demo-thumb img{transition:none;}}
@media(max-width:1080px){
  .lw-demo-shell .lw-aa-filters {grid-template-columns:repeat(4,minmax(0,1fr));}
  .lw-demo-shell .lw-aa-field--search {grid-column:span 2;}
  .lw-demo-shell .lw-aa-filters > .lw-aa-field:nth-child(4) {grid-column:span 2;}
  .lw-demo-shell .lw-aa-reset {grid-column:span 2;}
}
@media(max-width:740px){
  .lw-demo-shell .lw-aa-filters {grid-template-columns:repeat(2,minmax(0,1fr));}
  .lw-demo-shell .lw-aa-field--search {grid-column:span 2;}
  .lw-demo-shell .lw-aa-filters > .lw-aa-field:nth-child(4) {grid-column:auto;}
  .lw-demo-shell .lw-aa-reset {grid-column:auto;}
  .lw-demo-shell .lw-aa-sectionhead > div {gap:4px 9px;}
  .lw-demo-shell .lw-aa-hero {padding:15px 17px!important;}
  .lw-demo-shell .lw-aa-hero-icon {width:45px;height:45px;flex-basis:45px;font-size:28px;}
  .lw-demo-shell .lw-aa-item {grid-template-columns:145px minmax(0,1fr);}
  .lw-demo-thumb {margin:15px 0 15px 13px;}
  .lw-demo-shell .lw-aa-itemmain {padding:15px 16px;}
  .lw-kl-advent {grid-template-columns:1fr;}
  .lw-kl-toc ul {columns:1;}
}
@media(max-width:560px){
  .lw-demo-shell {padding:10px 12px 45px;}
  .lw-demo-top-inner {padding:10px 13px;flex-wrap:wrap;gap:8px 16px;}
  .lw-kl-topnav {gap:12px;}
  .lw-demo-shell .lw-aa-panel {padding:13px 13px 15px;}
  .lw-demo-shell .lw-aa-hero h1 {font-size:23px;}
  .lw-demo-shell .lw-aa-hero p:not(.lw-aa-kicker) {font-size:13px;}
  .lw-demo-shell .lw-aa-sectionhead {align-items:center;flex-direction:row;}
  .lw-demo-shell .lw-aa-sectionhead > div > span {display:none;}
  .lw-demo-shell .lw-aa-filters {grid-template-columns:repeat(2,minmax(0,1fr));}
  .lw-demo-shell .lw-aa-field--search {grid-column:span 2;}
  .lw-demo-shell .lw-aa-filters > .lw-aa-field:nth-child(4),.lw-demo-shell .lw-aa-reset {grid-column:auto;}
  .lw-demo-shell .lw-aa-item {grid-template-columns:108px minmax(0,1fr);}
  .lw-demo-thumb {margin:13px 0 13px 10px;border-radius:10px;}
  .lw-demo-shell .lw-aa-itemmain {padding:12px 11px 15px;}
  .lw-demo-shell .lw-aa-tags span {padding:5px 8px;font-size:10px;}
  .lw-aa-itemmain h2,.lw-aa-itemmain h3 {font-size:17px;}
  .lw-aa-actions {flex-direction:column;align-items:stretch;}
  .lw-aa-dialog {padding:14px;}
  .lw-kl-fachnav a {min-height:36px;padding:6px 11px;font-size:12px;}
}
@media(max-width:410px){
  .lw-demo-shell .lw-aa-hero-icon {display:none;}
  .lw-demo-shell .lw-aa-hints p {font-size:11px;}
  .lw-demo-shell .lw-aa-filters {grid-template-columns:1fr;gap:8px;}
  .lw-demo-shell .lw-aa-field--search,.lw-demo-shell .lw-aa-filters > .lw-aa-field:nth-child(4),.lw-demo-shell .lw-aa-reset {grid-column:auto;}
}
