:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18243c;background:#f4f6fa;font-size:16px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:#2554a0;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.8rem,2.8vw,2.65rem);letter-spacing:-.045em;line-height:1.16;margin-bottom:.65rem}h2{letter-spacing:-.025em;font-size:1.2rem;margin-bottom:.5rem}h3{font-size:1rem}p{line-height:1.6}small{font-size:.8rem}.block{display:block}.muted{color:#68758b}.small{font-size:.79rem}.hint{font-size:.83rem;color:#68758b;margin:1rem 0 0}.eyebrow{color:#3970c8;font-size:.73rem;font-weight:850;letter-spacing:.13em}.lead{font-size:1.2rem;color:#62748d}
.site-header{height:auto;min-height:78px;padding:15px max(3%,calc((100vw - 1440px)/2));display:flex;justify-content:space-between;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #e0e6ef}.brand{display:flex;align-items:center;gap:12px;color:#142640;font-size:1.13rem;font-weight:830;line-height:1.1}.brand:hover{text-decoration:none}.brand small{display:block;font-size:.68rem;font-weight:500;color:#68758b;letter-spacing:.02em;margin-top:4px}.brand-icon{display:grid;place-items:center;width:39px;height:39px;background:#2868ce;color:white;border-radius:12px;font-size:1.4rem}.top-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:.87rem;font-weight:600}.top-nav a{color:#475873}.top-nav a:hover{color:#2356aa}.nav-logout{border:0;background:transparent;padding:0;color:#56677e;font-size:.85rem;font-weight:600}.container{max-width:1490px;padding:38px 3% 90px;margin:0 auto}footer{padding:20px 4%;text-align:center;color:#8b95a6;font-size:.75rem;border-top:1px solid #e5e9f0}
.hero{max-width:700px;margin:65px auto 45px;text-align:center}.hero h1{font-size:clamp(2rem,4.2vw,3.7rem);margin-top:15px}.hero p{font-size:1.1rem;color:#66738b}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:920px;margin:auto;gap:22px}.entry-card{padding:34px;background:white;border:1px solid #e3e8f0;border-radius:20px;box-shadow:0 8px 30px #263b6410;transition:.2s}.entry-card:hover{box-shadow:0 12px 35px #263b6426;transform:translateY(-2px);text-decoration:none}.entry-card h2{font-size:1.55rem;color:#172640;margin-top:20px}.entry-card p{color:#647189}.entry-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;background:#e8f0fd;color:#275cc1;font-size:2rem}.entry-link{font-weight:800;display:block;margin-top:35px;color:#245bc1}
.panel{background:white;border:1px solid #e3e8ef;border-radius:16px;padding:29px;box-shadow:0 6px 26px #142b4810}.narrow{max-width:520px;margin:65px auto}.narrow h1{font-size:2rem;margin:15px 0}.panel label,.student-layout label{display:block;font-weight:710;margin:18px 0 8px}.panel input:not([type=file]),.panel select,.student-layout input,.student-layout select,.filter-bar input,.inline-edit select,.reset-panel select{width:100%;padding:11px 12px;border:1px solid #cfd8e5;background:white;border-radius:9px;color:#23324b;min-height:44px}.panel input:focus,.panel select:focus,.filter-bar input:focus,.inline-edit select:focus{outline:3px solid #b5cef9;outline-offset:0;border-color:#3976d3}.panel input[type=file]{display:block;margin:12px 0 25px;max-width:100%}.button{border:1px solid transparent;padding:10px 18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:750;white-space:normal;text-align:center;text-decoration:none;min-height:43px}.button:hover{text-decoration:none}.button.primary{background:#2c63bf;color:white}.button.primary:hover{background:#1e50a5}.button.secondary{color:#385273;background:white;border-color:#ced8e7}.button.secondary:hover{background:#f6f8fc}.button.full{width:100%;margin-top:19px}.text-button{border:0;background:transparent;color:#4264a0;text-decoration:underline;padding:8px}.inline-form{display:inline}.success,.error{border-radius:10px;padding:13px 17px;margin:17px 0;font-weight:600}.success{background:#e8f8ee;border:1px solid #bce8c7;color:#22643c}.error{background:#fff0f1;border:1px solid #f2c1c6;color:#9a2635}
.dashboard-head{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:22px}.dashboard-head .actions{display:flex;flex-wrap:wrap;gap:9px}.dashboard-head p{margin:0}.dashboard-head h1{margin:5px 0 7px}.class-nav{display:flex;gap:9px;flex-wrap:wrap;background:#fff;padding:15px;border:1px solid #e2e8f0;border-radius:14px;margin:25px 0}.class-chip{font-size:.87rem;font-weight:720;border-radius:9px;padding:8px 13px;border:1px solid #e4e9f0;color:#50607a;display:flex;align-items:center;gap:9px}.class-chip b{font-size:.72rem;border-radius:7px;background:#edf1f6;padding:1px 6px}.class-chip:hover{background:#eaf0fa;text-decoration:none}.class-chip.active{background:#e7f0ff;color:#1e56b8;border-color:#b9d0f4}.class-chip.active b{background:#caddfa}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.stat-card{border:1px solid #e2e9f2;border-radius:14px;background:white;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;gap:5px}.stat-card>strong{font-size:2rem;letter-spacing:-.06em}.badge{display:inline-flex;align-items:center;gap:6px;font-size:.79rem;font-weight:750;padding:5px 11px;border-radius:999px;white-space:nowrap}.badge::before{content:"";width:8px;height:8px;background:currentColor;border-radius:50%;display:inline-block}.badge-gruen{background:#e0f5e8;color:#237248}.badge-gelb{background:#fff1c9;color:#9b6a0d}.badge-rot{background:#fce5e6;color:#b34851}.badge-offen{background:#e9edf3;color:#69758a}.filter-bar{display:flex;gap:10px;max-width:480px;margin:22px 0}.filter-bar input{background:white}.class-panel{background:white;border:1px solid #e2e8f0;border-radius:14px;margin:18px 0;overflow:hidden}.class-panel-header{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fcfdff;border-bottom:1px solid #e5eaf2}.class-panel-header h2{margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.89rem}thead th{text-align:left;vertical-align:middle;font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;color:#7a8799;font-weight:800;background:#f9fafc;padding:13px 17px;border-bottom:1px solid #e6ebf1}tbody tr:not(:last-child){border-bottom:1px solid #e7ecf3}td{padding:17px;vertical-align:top}td:nth-child(1){width:22%}td:nth-child(2){width:30%}.student-name{display:block;font-weight:720;color:#263751}.inline-edit{display:flex;gap:7px;align-items:center;margin:0}.inline-edit select{min-width:155px;max-width:230px;font-size:.83rem;padding:7px 9px;min-height:37px}.inline-edit.location-edit{margin-top:9px}.inline-edit.location-edit select{min-width:175px;max-width:320px}.small-button{border:1px solid #bfcde2;border-radius:8px;padding:7px 10px;background:#f7faff;color:#2853a0;font-size:.79rem;font-weight:750;min-height:37px}.small-button:hover{background:#e8f0ff}.location-display{min-height:25px}.location-display strong{font-weight:650}.tiny-warning{color:#995b11;background:#fff3d6;font-size:.68rem;padding:2px 4px;border-radius:4px}.reset-panel{margin-top:27px;padding:23px;border:1px dashed #bbc8db;border-radius:14px;display:flex;gap:20px;align-items:center;justify-content:space-between}.reset-panel p{margin:0}.reset-panel h3{margin:0}.reset-panel form{display:flex;gap:10px}.reset-panel select{min-width:150px}
.student-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:30px;max-width:1100px;margin:25px auto}.student-layout h1{margin:9px 0}.student-layout .lead{margin-bottom:23px}.your-status{padding:20px 24px;margin-bottom:22px;border-radius:15px;border:1px solid #d8e5f9;background:#eaf2ff}.your-status .badge{margin-top:8px;font-size:.98rem}.your-status p{margin:10px 0 0;color:#375270}.student-layout .panel{padding:26px}.student-layout .panel select{font-size:1.07rem;padding:15px}.student-layout .panel .button{margin-top:25px}.side-info{background:#fff;padding:27px;border:1px solid #e2e8ef;border-radius:16px;height:fit-content;margin-top:65px}.side-info h2{font-size:1.08rem}.side-info hr{border:0;border-top:1px solid #e4eaf0;margin:25px 0}.side-info strong{font-size:1.1rem}.side-info p{color:#67778d}.subtle-form{margin-top:9px;text-align:center}.field-other[hidden]{display:none}.two-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:start}.two-columns pre{background:#17243d;color:#e8f1ff;border-radius:10px;padding:17px;overflow-x:auto;font-size:.88rem}.one-time-code{border:2px dashed #87a9e1;background:#eff5ff;font-size:2.1rem;letter-spacing:.12em;font-weight:900;text-align:center;padding:22px 12px;border-radius:10px;margin:22px 0;overflow-wrap:anywhere}#import-result a{display:inline-flex;margin-top:9px}
@media(max-width:960px){.site-header{align-items:flex-start;flex-direction:column}.top-nav{gap:13px}.stats{grid-template-columns:repeat(2,1fr)}.student-layout{grid-template-columns:1fr}.side-info{margin-top:0}.dashboard-head{align-items:flex-start}.two-columns{grid-template-columns:1fr}}@media(max-width:650px){.container{padding:24px 14px 60px}.site-header{padding:14px}.top-nav{font-size:.79rem;gap:12px}.entry-grid{grid-template-columns:1fr}.hero{margin:20px 0 35px}.stats{gap:9px}.stat-card{padding:14px 10px;flex-direction:column;align-items:flex-start}.stat-card>strong{font-size:1.75rem}.class-nav{padding:9px}.class-chip{padding:7px 9px}.filter-bar{max-width:100%}.class-panel thead{display:none}.class-panel tr{display:block;padding:13px 14px;border-bottom:1px solid #e5ebf2}.class-panel td{display:block;padding:6px 0;width:100%!important}.class-panel td::before{content:attr(data-label);display:block;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#8a96a8;margin:4px 0}.inline-edit select,.inline-edit.location-edit select{max-width:unset;min-width:0;flex:1}.reset-panel{flex-direction:column;align-items:stretch}.reset-panel form{flex-wrap:wrap}.reset-panel select{flex:1}.panel{padding:19px}.narrow{margin:15px auto}.one-time-code{font-size:1.4rem}.dashboard-head .actions{width:100%}.button{font-size:.81rem}}

/* Komfortverbesserungen der Klassenübersicht */
.status-edit{margin-top:8px}.location-edit{flex-wrap:wrap}.teacher-other{flex:1 1 160px}.teacher-other input{max-width:240px;width:100%;font-size:.81rem;min-height:37px;padding:7px 9px;border-radius:8px;border:1px solid #cfd8e5}.teacher-other[hidden]{display:none}

/* Version 1.2: waagerechte Ampel aus Originalgrafiken des Lernortkompasses */
.ampel{display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-items:stretch;width:100%;min-width:242px}
.ampel-option{flex:1 1 0;min-width:73px;cursor:pointer;border:2px solid #e0e4eb;background:#fff;border-radius:11px;padding:5px 2px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:background .12s,border-color .12s}
.ampel-option img{height:43px;width:53px;object-fit:contain}
.ampel-option span{font-size:.70rem;font-weight:800;color:#34465e;white-space:nowrap}
.ampel-option:hover{border-color:#668fcb;background:#f2f7ff}
.ampel-option.active{border-width:3px;box-shadow:0 0 0 1px #36476613}
.ampel-option.active[value="starter"]{border-color:#d82734;background:#fff0f1}
.ampel-option.active[value="durchstarter"]{border-color:#e8b108;background:#fff8dd}
.ampel-option.active[value="lernprofi"]{border-color:#299849;background:#ecfaef}
.ampel-option:focus-visible,.ort-tile input:focus-visible + .ort-face{outline:3px solid #2b68c9;outline-offset:2px}
.teacher-pin{display:inline-block;color:#41536d;font-weight:800;font-size:.77rem;letter-spacing:.06em;background:#edf2fa;border-radius:5px;padding:3px 5px;margin-top:9px}
.pin-value{font-size:1.2rem;letter-spacing:.15em;font-variant-numeric:tabular-nums;color:#1b488a}
.location-inline{display:flex;align-items:center;gap:9px}
.mini-location-icon{width:56px;height:43px;flex:0 0 56px;object-fit:contain;object-position:center;background:#fff;border:1px solid #eff1f4;border-radius:6px}
.teacher-choice-icon{width:48px;height:40px;flex-basis:48px}
.location-edit{display:flex;flex-wrap:wrap}
.location-edit select{flex:1;min-width:190px}
.student-status{display:flex;align-items:center;gap:16px;margin:8px 0}
.student-status img{max-width:75px;height:66px;object-fit:contain}
.ort-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 0}
.ort-tile{display:block!important;cursor:pointer;margin:0!important;position:relative}
.ort-tile input{position:absolute;opacity:0;width:1px;height:1px}
.ort-face{height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;border:2px solid #dce4ee;border-radius:13px;background:#fff;padding:12px 9px;transition:border-color .12s,background .12s,transform .12s}
.ort-face img{height:92px;max-width:100%;object-fit:contain}
.ort-face b{font-size:.9rem;line-height:1.15;color:#293b57}
.ort-tile input:checked + .ort-face{border:3px solid #2870c7;background:#eaf3ff;box-shadow:0 0 0 2px #c3dcfa}
.ort-tile:hover .ort-face{border-color:#3379ce;background:#f5f9ff}
.ort-tile input:checked + .ort-face::after{content:'✓';position:absolute;top:7px;right:10px;background:#286bc4;color:white;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:.82rem}
@media(max-width:1120px){.ort-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.ort-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ort-face{height:142px;padding:8px}.ort-face img{height:76px}.ampel{min-width:0}.ampel-option img{width:44px;height:35px}.ampel-option span{font-size:.66rem}}
.ort-tile input[type=radio]{position:absolute!important;opacity:0!important;width:1px!important;min-height:0!important;height:1px!important;padding:0!important;border:0!important}
