/* Terminbuchung – Gymnasium Brügelmannstraße
   Farben: Grau #adbdb7 · Gelb #fffabe · Blau #3da4ab · Dunkelgrün #075d08 · Graugrün #e5ede0 */
:root{
  --grau:#adbdb7; --gelb:#fffabe; --blau:#3da4ab; --gruen:#075d08; --hell:#e5ede0;
  --text:#1d2b26; --muted:#4f5f59; --bg:#f5f7f3; --line:#cfd8d3; --rot:#a4161a; --rotbg:#fde8e8;
  --r:12px;
}
*{box-sizing:border-box}
html{font-size:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1.0625rem;line-height:1.55;color:var(--text);background:var(--bg)}
a{color:var(--gruen)}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--blau);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.5rem 1rem;z-index:9}
.skip:focus{left:1rem}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Kopf */
.kopf{background:var(--grau);border-bottom:6px solid var(--gelb)}
.kopf-in{max-width:1100px;margin:0 auto;padding:.6rem 1.2rem;display:flex;align-items:center;gap:1rem}
.kopf img{height:64px;width:auto;display:block}
.kopf .titel{font-weight:700;font-size:1.05rem;line-height:1.25}
.kopf .titel small{display:block;font-weight:400;color:#24332d}
.kopf nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:.25rem;align-items:center;justify-content:flex-end}
.kopf nav a{color:var(--text);text-decoration:none;padding:.4rem .7rem;border-radius:8px;font-weight:600;font-size:.95rem}
.kopf nav a[aria-current=page],.kopf nav a:hover{background:var(--gelb)}
main{max-width:1100px;margin:0 auto;padding:1.4rem 1.2rem 3rem}
main.schmal{max-width:760px}
h1{font-size:1.75rem;line-height:1.2;margin:.4rem 0 1rem}
h2{font-size:1.3rem;margin:1.6rem 0 .6rem}
h3{font-size:1.1rem;margin:1.2rem 0 .4rem}
.lead{font-size:1.125rem}
.fuss{max-width:980px;margin:0 auto;padding:1rem 1.2rem 2rem;color:var(--muted);font-size:.9rem}

/* Karten, Hinweise */
.karte{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.2rem 1.3rem;margin:1rem 0}
.hinweis{background:var(--gelb);border-left:6px solid var(--gruen);border-radius:8px;padding:.9rem 1.1rem;margin:1rem 0}
.info{background:var(--hell);border-radius:8px;padding:.9rem 1.1rem;margin:1rem 0}
.fehler{background:var(--rotbg);border-left:6px solid var(--rot);border-radius:8px;padding:.9rem 1.1rem;margin:1rem 0}
.fehler h2{margin:0 0 .3rem;font-size:1.1rem;color:var(--rot)}
.ok{background:#e3f1e3;border-left:6px solid var(--gruen);border-radius:8px;padding:.9rem 1.1rem;margin:1rem 0}

/* Schritte */
.schritte{display:flex;gap:.4rem;list-style:none;padding:0;margin:0 0 1.2rem;flex-wrap:wrap;font-size:.92rem}
.schritte li{padding:.3rem .8rem;border-radius:99px;background:#fff;border:1px solid var(--line);color:var(--muted)}
.schritte li[aria-current=step]{background:var(--gruen);border-color:var(--gruen);color:#fff;font-weight:700}
.schritte li.erledigt{background:var(--hell);color:var(--text)}

/* Formulare */
fieldset{border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.2rem 1.2rem;margin:1rem 0;background:#fff}
legend{font-weight:700;font-size:1.1rem;padding:0;float:left;width:100%;margin:0 0 .7rem}
legend + *{clear:left}
label{font-weight:600}
.feld{margin:.9rem 0}
.feld label{display:block;margin-bottom:.25rem}
.feld .hilfe{font-weight:400;color:var(--muted);font-size:.93rem;display:block}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=date],input[type=time],input[type=number],input[type=search],select,textarea{
  font:inherit;width:100%;max-width:32rem;padding:.6rem .75rem;border:2px solid #8a9a94;border-radius:8px;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--gruen)}
input[aria-invalid=true]{border-color:var(--rot);background:#fff7f7}
.feld .fmeld{color:var(--rot);font-weight:600;font-size:.95rem;margin-top:.2rem}
.zweispaltig{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
@media(max-width:640px){.zweispaltig{grid-template-columns:1fr}}
.wahl{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.wahl label,.check{display:flex;gap:.7rem;align-items:flex-start;padding:.7rem .85rem;border:2px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-weight:600}
.wahl label:hover,.check:hover{border-color:var(--grau);background:#fafcf9}
.wahl input,.check input{width:1.35rem;height:1.35rem;margin:.1rem 0 0;accent-color:var(--gruen);flex:none}
.wahl label:has(input:checked),.check:has(input:checked){border-color:var(--gruen);background:var(--hell)}
.check{font-weight:400}

.btn{display:inline-flex;align-items:center;gap:.4rem;font:inherit;font-weight:700;border:2px solid var(--gruen);background:var(--gruen);color:#fff;padding:.7rem 1.3rem;border-radius:10px;cursor:pointer;text-decoration:none;min-height:48px}
.btn:hover{background:#054605}
.btn.zweit{background:#fff;color:var(--gruen)}
.btn.zweit:hover{background:var(--hell)}
.btn.rot{background:var(--rot);border-color:var(--rot)}
.btn.klein{padding:.35rem .8rem;min-height:36px;font-size:.93rem}
.aktionen{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin-top:1.2rem}
.hp{position:absolute;left:-5000px}

/* Terminauswahl */
.tagnav{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 1rem}
.tagnav a{padding:.35rem .8rem;border-radius:99px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--text);font-weight:600;font-size:.95rem}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:.5rem}
.slot{position:relative}
.slot input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.slot span{display:block;text-align:center;padding:.65rem .3rem;border:2px solid var(--grau);border-radius:10px;background:#fff;font-weight:700;font-size:1.05rem}
.slot span small{display:block;font-weight:400;font-size:.8rem;color:var(--muted)}
.slot input:hover + span{border-color:var(--gruen)}
.slot input:checked + span{background:var(--gruen);border-color:var(--gruen);color:#fff}
.slot input:checked + span small{color:#e8f5e8}
.slot input:focus-visible + span{outline:3px solid var(--blau);outline-offset:2px}
.tagblock{scroll-margin-top:1rem}
.gewaehlt{font-size:1.2rem;font-weight:700}

ul.liste{padding-left:1.2rem}
ul.liste li{margin:.3rem 0}

/* Admin */
.kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;margin:1rem 0}
.kachel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:.9rem 1rem;border-top:6px solid var(--grau)}
.kachel.g{border-top-color:var(--gruen)} .kachel.b{border-top-color:var(--blau)} .kachel.y{border-top-color:#e8d84a}
.kachel .zahl{font-size:2rem;font-weight:800;line-height:1.1}
.kachel .was{color:var(--muted);font-size:.93rem}
.balken{height:10px;border-radius:99px;background:var(--hell);overflow:hidden;margin-top:.4rem}
.balken i{display:block;height:100%;background:var(--gruen)}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);font-size:.97rem}
th,td{text-align:left;padding:.55rem .7rem;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--hell);font-weight:700}
tr:last-child td{border-bottom:0}
td.zahl,th.zahl{text-align:right;font-variant-numeric:tabular-nums}
.tag{display:inline-block;font-size:.8rem;padding:.05rem .5rem;border-radius:99px;background:var(--hell);font-weight:600;white-space:nowrap}
.tag.b{background:#d6eff1} .tag.y{background:var(--gelb)} .tag.r{background:var(--rotbg)}
.raster{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:760px){.raster{grid-template-columns:1fr}}
.tagslots{display:grid;gap:.4rem;grid-template-columns:repeat(auto-fill,minmax(420px,1fr))}
@media(max-width:520px){.tagslots{grid-template-columns:1fr}}
.zeile .akt{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.zeile .akt select{width:auto;padding:.25rem .4rem}
details.tag-d>summary{cursor:pointer;list-style:none}
details.tag-d>summary::-webkit-details-marker{display:none}
details.tag-d>summary h3{display:inline}
details.tag-d>summary::before{content:'▸ ';font-weight:700}
details.tag-d[open]>summary::before{content:'▾ '}
.zeile{display:grid;grid-template-columns:90px 1fr auto;gap:.6rem;align-items:start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem}
.zeile .zeit{font-weight:800;font-size:1.05rem}
.zeile.voll{border-left:6px solid var(--gruen)} .zeile.teil{border-left:6px solid #e8d84a} .zeile.leer{border-left:6px solid var(--grau)}
.bk{display:flex;gap:.4rem;align-items:baseline;flex-wrap:wrap;margin:.1rem 0}
.bk a{font-weight:700}
.bk.erl a{text-decoration:line-through}
details.gefahr summary{cursor:pointer;color:var(--rot);font-weight:600;list-style:none;display:inline-block}
details.gefahr[open]{background:var(--rotbg);padding:.6rem;border-radius:8px}
.inline{display:inline}
.suche{display:flex;gap:.5rem;flex-wrap:wrap;align-items:end;margin:.6rem 0 1rem}
.suche .feld{margin:0}
.klein{font-size:.9rem;color:var(--muted)}

@media print{
  .kopf nav,.aktionen,.noprint,.skip{display:none!important}
  body{background:#fff;font-size:11pt}
  .kopf{background:#fff;border-bottom:2px solid #000}
  main{padding:0;max-width:none}
  table{font-size:10pt}
  .druckseite{page-break-after:always}
}
/* Kontrast: kleine Knöpfe behalten ihre Schriftfarbe */
.btn.klein{color:#fff}
.btn.zweit.klein{color:var(--gruen)}
/* Schnellsuche im Kopf */
.kopfsuche{display:flex;gap:.3rem;align-items:center;margin-left:auto}
.kopfsuche input{width:11rem;padding:.4rem .6rem;border-width:1px}
.kopf .kopfsuche + nav{margin-left:.5rem}
@media(max-width:900px){.kopf-in{flex-wrap:wrap}.kopfsuche{order:3;width:100%;margin:0}.kopfsuche input{flex:1;max-width:none}.kopf nav{margin-left:0}}
mark{background:var(--gelb);color:inherit;padding:0 .1em;border-radius:3px;box-shadow:0 0 0 1px #e8d84a}
