/* Die Anordnung der Bedienelemente bleibt vertraut; Farbe, Abstände und Karten passen sich an. */
body[data-theme]{--surface:#fff;--tint:#edf3ee;--hero:#eaf1e9}
body[data-theme="ocean"]{--ink:#17354c;--muted:#496477;--green:#136486;--cream:#eff6fa;--line:#c5dce7;--shadow:0 10px 30px #164d6c12;--tint:#e4f2f8;--hero:linear-gradient(125deg,#dceff7,#f0f9fc)}
body[data-theme="sunset"]{--ink:#473025;--muted:#755b4e;--green:#974c35;--cream:#fff6ed;--line:#e6cfc0;--shadow:0 10px 28px #75422d0f;--tint:#f9eadd;--hero:linear-gradient(125deg,#ffe4cc,#fff2df)}
body[data-theme="contrast"]{--ink:#101722;--muted:#303e4e;--green:#123c75;--cream:#f1f3f6;--line:#586779;--shadow:none;--tint:#e7edf5;--hero:#fff;font-size:20px;line-height:1.65}
body[data-theme]{background:var(--cream);color:var(--ink)}
body[data-theme] :is(.panel,.card,.soft,.choice,input,select,textarea){color:var(--ink);background-color:var(--surface);border-color:var(--line)}
body[data-theme] :is(.hero){background:var(--hero)}
body[data-theme] :is(.hero p,.hint,.prompt,.field span,.card small,.panel-intro,footer){color:var(--muted)}
body[data-theme] :is(.count,.stat,.progress,.registration-setting,.admin-menu,.admin-user-form){background:var(--tint)}
body[data-theme] :is(.count,.tile-count,.stat b,.admin-menu a,.game-info-card small){color:var(--green)}
body[data-theme] .button{background:var(--green);color:#fff}
body[data-theme] .bar{background:var(--green)}
body[data-theme] .category-tile:hover{border-color:var(--green)}
body[data-theme] .choice.correct{background:#e7f6ec;color:#1f633c;border-color:#2c7a4b}
body[data-theme] .choice.wrong{background:#fff4e7;color:#7b461b;border-color:#a96928}
body[data-theme] .danger{color:#8f3022;border-color:#b85b49}
body[data-theme="ocean"] :is(.panel,.card){border-radius:25px}
body[data-theme="ocean"] .category-tile{min-height:154px;padding:22px}
body[data-theme="ocean"] .category-tiles{gap:20px}
body[data-theme="sunset"] :is(h1,h2,h3){letter-spacing:-.02em}
body[data-theme="sunset"] .panel{border-radius:24px;border-top:4px solid #d7a17d}
body[data-theme="sunset"] .category-tiles{grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}
body[data-theme="contrast"] :is(.panel,.card,.soft,.choice,input,select,textarea){border-width:2px;box-shadow:none}
body[data-theme="contrast"] :is(.button,.soft,.choice){min-height:56px}
body[data-theme="contrast"] .choice{font-size:26px}
body[data-theme="contrast"] :is(.field span,.card small,.tiny,.notice){font-size:17px}
body[data-theme="contrast"] .category-tiles{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
body[data-theme="contrast"] :focus-visible{outline:4px solid #a75100;outline-offset:4px}
#accountSettings{max-width:980px;scroll-margin-top:20px}.account-intro{color:var(--muted)}
.account-nav{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px}.account-nav a{padding:9px 14px;border:1px solid var(--line);border-radius:12px;color:var(--green);text-decoration:none;font-weight:650;background:var(--tint)}
.account-section{border-top:1px solid var(--line);padding-top:22px;margin-top:24px;scroll-margin-top:20px}.account-section h3{margin:0 0 14px;font-size:23px}.account-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.account-form-actions{grid-column:1/-1}.account-section input[readonly]{background:var(--tint);color:var(--muted)}
.theme-fieldset{border:0;padding:0;margin:20px 0}.theme-fieldset legend{font-weight:650;margin-bottom:12px}.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.theme-option{--swatch-bg:#eef4e9;--swatch-accent:#28624b;--swatch-card:#fff;display:grid;grid-template-columns:24px 1fr;gap:8px 10px;border:2px solid var(--line);padding:16px;border-radius:18px;cursor:pointer;position:relative}.theme-ocean{--swatch-bg:#dceff7;--swatch-accent:#136486}.theme-sunset{--swatch-bg:#ffead8;--swatch-accent:#974c35}.theme-contrast{--swatch-bg:#e7edf5;--swatch-accent:#123c75}.theme-option input{width:22px;height:22px;margin:0;accent-color:var(--green)}.theme-option strong,.theme-option small{grid-column:2}.theme-option small{color:var(--muted);font-size:15px}.theme-option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 2px var(--green)}.theme-option:focus-within{outline:3px solid #b47700;outline-offset:4px}.theme-swatch{grid-column:2;background:var(--swatch-bg);padding:12px;border-radius:10px;display:block;min-height:86px}.theme-swatch-head{display:block;background:var(--swatch-accent);height:10px;width:65%;border-radius:9px;margin-bottom:12px}.theme-swatch-cards{display:flex;gap:7px}.theme-swatch-cards i{display:block;background:var(--swatch-card);height:29px;flex:1;border:1px solid var(--swatch-accent);border-radius:5px}.theme-ocean .theme-swatch-cards i{border-radius:10px}.theme-contrast .theme-swatch-cards i{border-width:2px}.account-section details{padding:12px 0;border-bottom:1px solid var(--line)}.account-section summary{font-weight:650;cursor:pointer;color:var(--green);padding:7px 0}.account-section details p{margin:10px 0 12px}.version-history{padding-left:23px}.version-history li{padding:8px 0}.version-history p{margin:5px 0;color:var(--muted)}.account-version{display:inline-block;padding:6px 12px;border-radius:10px;background:var(--tint);color:var(--green)}#ownStoredDataText{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:var(--tint);border-radius:12px;font:inherit;font-size:16px;max-height:600px;overflow:auto}.member-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:30px 0}.member-page{max-width:850px;margin-left:auto;margin-right:auto}.imprint-text{white-space:pre-wrap;overflow-wrap:anywhere}.contact-message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:560px}.contact-item{border-top:1px solid var(--line);padding:18px 0}.contact-item small{display:block;color:var(--muted)}
@media(max-width:600px){.account-details-grid,.theme-options{grid-template-columns:1fr}.account-form-actions{grid-column:auto}.account-nav{gap:8px}.account-nav a{font-size:16px;padding:8px 10px}body[data-theme="contrast"] .category-tiles,body[data-theme="sunset"] .category-tiles{grid-template-columns:1fr}.theme-swatch{min-height:76px}}
