/* Geogenial – Startseite als Atlas-Inhaltsverzeichnis. Baut auf geogenial.css und koordinaten.css (Karte) auf. */
body.start { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 54px minmax(0, 1fr); overflow: hidden; font-size: 16px; }
.start-claim { font-size: 15px; color: var(--einband-text-2); padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.start-flaeche { display: grid; grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); min-height: 0; }

.inhalt {
  min-height: 0; overflow: auto; padding: 34px 36px 28px 40px; background: var(--pult); border-right: 1px solid var(--linie-stark);
  scrollbar-width: thin; scrollbar-color: var(--linie-stark) transparent;
}
.inhalt h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 64px; line-height: 0.95; letter-spacing: -0.005em; color: var(--tinte); }
.inhalt h1 span { color: var(--wasser); }
.start-text { margin: 12px 0 24px; max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--tinte-2); text-wrap: pretty; }

.code-box { padding: 16px 18px 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(20, 30, 25, 0.1), 0 12px 26px -16px rgba(20, 30, 25, 0.45); }
.code-box label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.code-zeile { display: flex; gap: 8px; }
.code-zeile input {
  flex: 1; min-width: 0; height: 54px; padding: 0 12px; border: 2px solid var(--linie-stark); border-radius: 10px; background: var(--pult);
  font-family: var(--schrift-schmal); font-weight: 600; font-size: 30px; letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
}
.code-zeile input::placeholder { color: #c9cabf; }
.code-zeile input:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); background: #fff; }
.code-zeile .knopf { height: 54px; padding: 0 18px; border-radius: 10px; font-size: 17px; background: var(--einband); border-color: var(--einband); color: #fff; }
.code-zeile .knopf:hover { background: var(--einband-2); }
.code-zeile .knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code-meldung { margin: 8px 0 0; font-size: 13.5px; color: var(--tinte-2); }
.code-meldung.fehler { color: #7a3d0c; font-weight: 500; }

.inhalt-titel {
  margin: 32px 0 4px; padding-bottom: 6px; border-bottom: 1.5px solid var(--tinte);
  font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; line-height: 1.1;
}
.kapitel { list-style: none; margin: 0; padding: 0; }
.kap { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
/* Registerfarbe des Kapitels traegt das Kapitelzeichen (Rahmen + Toenung) */
.kap-bild { grid-row: span 2; width: 52px; height: 52px; border-radius: 10px; background: color-mix(in srgb, var(--kap) 10%, #fff); box-shadow: inset 0 0 0 2px var(--kap); }
.kap-text h3 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 23px; line-height: 1.1; }
.kap-text p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--tinte-2); }
.kap-wege { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kap-weg {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--linie-stark); background: #fff;
  font-weight: 600; font-size: 15px; color: var(--tinte); text-decoration: none; transition: border-color 0.15s, background-color 0.15s;
}
.kap-weg:hover { border-color: var(--tinte-2); }
.kap-weg.haupt { background: var(--einband); border-color: var(--einband); color: #fff; }
.kap-weg.haupt:hover { background: var(--einband-2); }
.kap-bald .kap-bild, .kap-bald .kap-text { opacity: 0.6; }
.kap-status { font-family: var(--schrift-schmal); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-3); }
.start-fuss { margin: 22px 0 0; font-size: 13px; color: var(--tinte-3); }

/* Kapitelzeichen */
.m-papier { fill: #f4f1e2; stroke: var(--tinte-2); stroke-width: 1.3; stroke-linejoin: round; }
.m-falz { stroke: var(--tinte-3); stroke-width: 1; }
.m-rot { fill: var(--marke); }
.m-weiss { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.m-b { stroke: var(--breite); stroke-width: 1.8; }
.m-l { stroke: var(--laenge); stroke-width: 1.8; }
.m-nadel { fill: var(--einband); }
.m-achse { stroke: var(--tinte-2); stroke-width: 1.4; fill: none; }
.m-balken { fill: #5b8fc0; }
.m-kurve { fill: none; stroke: var(--modul-klima); stroke-width: 2; stroke-linecap: round; }
.m-fahne { fill: var(--modul-quiz); }
.m-strich { fill: none; stroke: var(--tinte-2); stroke-width: 1.4; stroke-linecap: round; }

.start-tisch { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
/* Blatt auf das Seitenverhaeltnis der Weltkarte zuschneiden (Plattkarte 2:1 plus Gradrahmen) */
.start-tisch .kt-blatt { flex: none; width: 100%; height: auto; max-height: calc(100% - 34px); aspect-ratio: 1.95; margin: 0 auto; }
@supports (width: min(1px, 2px)) { .start-tisch .kt-blatt { width: min(100%, (100dvh - 54px - 70px) * 1.95); } }
.start-karte-text { margin: 0; text-align: center; font-size: 14px; color: var(--tinte-2); }

@media (max-width: 960px) {
  body.start { height: auto; min-height: 100dvh; overflow: auto; grid-template-rows: 54px auto; }
  .start-claim { display: none; }
  .start-flaeche { grid-template-columns: minmax(0, 1fr); }
  .inhalt { overflow: visible; padding: 26px 18px 24px; border-right: 0; }
  .inhalt h1 { font-size: 52px; }
  .start-tisch { height: 60vh; min-height: 320px; padding: 12px; border-top: 1px solid var(--linie-stark); }
}

/* ---------------------------------------------------------------- Schueler- und Lehrerbereich auf der Startseite */
.bereich-titel { margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--tinte); font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; line-height: 1.1; }
.inhalt .bereich-titel:first-of-type { margin-top: 26px; }
.frei-titel { margin: 22px 0 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 19px; color: var(--tinte-2); }
.lehrer-tuer { margin-top: 10px; }
.lehrer-tuer p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--tinte-2); max-width: 44ch; }
.lehrer-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; font-size: 14.5px; font-weight: 500; }
.lehrer-werkzeuge span { display: inline-flex; align-items: center; gap: 8px; }
.lehrer-werkzeuge svg { width: 28px; height: 28px; }
.lehrer-tuer .kap-weg { gap: 8px; }
.lehrer-tuer .kap-weg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lehrer-klein { margin-top: 8px !important; font-size: 13.5px !important; }

/* ================================================================
   Lehrerbereich (lehrer/): Anmeldung, Uebersicht, Konten
   Werkbank-Massstab: Radius 5–8 px, Schrift 15 px. Tabellen statt Karten, weil viele Eintraege.
   ================================================================ */
body.lb-seite { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 54px minmax(0, 1fr); font-size: 15px; }
.lb-wer { font-size: 14.5px; color: var(--einband-text-2); margin-right: 4px; }
.lb-abmelden { margin: 0; }
a.eb-knopf { text-decoration: none; }

/* Anmeldung / Einrichtung auf dem Kartentisch */
.tor {
  display: grid; place-items: center; padding: 40px 16px;
  background-color: var(--tisch);
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px);
  background-size: 48px 48px;
}
.tor-karte { width: min(420px, 100%); background: #fff; border-radius: 6px; box-shadow: var(--schatten-blatt); padding: 28px 28px 24px; display: grid; gap: 14px; }
.tor-karte h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 30px; line-height: 1.1; }
.tor-karte > p { margin: -6px 0 2px; color: var(--tinte-2); line-height: 1.5; }
.tor-karte label, .lb-formular label, .konten-anlegen label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--tinte); }
.tor-karte label small, .lb-formular label small { font-weight: 400; color: var(--tinte-2); }
.tor-karte input, .lb-formular input, .konten-anlegen input, .konten-anlegen select {
  height: 42px; padding: 0 11px; border: 1px solid var(--linie-stark); border-radius: var(--r); background: #fff; font-size: 15.5px; font-weight: 400;
}
.tor-karte input:focus, .lb-formular input:focus, .konten-anlegen input:focus, .konten-anlegen select:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); }
.konten-anlegen input::placeholder, .tor-karte input::placeholder { color: var(--tinte-3); }
.knopf.tor-los { height: 44px; margin-top: 4px; background: var(--einband); border-color: var(--einband); color: #fff; font-size: 15.5px; }
.knopf.tor-los:hover { background: var(--einband-2); }
.tor-fehler { margin: 0; padding: 9px 12px; border-radius: var(--r); background: var(--daneben-hell); color: #6d3a0e; font-size: 14.5px; }
.tor-hinweis { margin: 0; padding: 9px 12px; border-radius: var(--r); background: var(--wasser-hell); color: var(--wasser-tief); font-size: 14.5px; }
.tor-fuss { margin: 4px 0 0; font-size: 13.5px; color: var(--tinte-2); line-height: 1.5; }

/* Uebersicht */
.lb-flaeche { display: grid; grid-template-columns: minmax(400px, 480px) minmax(0, 1fr); min-height: 0; }
body.lb-seite:not(.lb-tor) { height: 100vh; height: 100dvh; overflow: hidden; }
.lb-gruss { font-size: 44px !important; }
.lb-meldung { margin: 0 0 12px; padding: 9px 12px; border-radius: var(--r); background: var(--richtig-hell); color: #2b5520; font-size: 14.5px; }
.lb-konto { margin-top: 24px; font-size: 14.5px; }
.lb-konto summary { cursor: pointer; width: max-content; color: var(--tinte-2); text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: 0.2em; }
.lb-konto summary:hover { color: var(--tinte); }
.lb-formular { display: grid; gap: 12px; margin-top: 12px; max-width: 340px; }
.lb-formular .knopf { justify-self: start; }

.lb-ablage {
  min-width: 0; min-height: 0; overflow: auto; padding: 22px;
  background-color: var(--tisch);
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lb-blatt { background: #fff; border-radius: 3px; box-shadow: var(--schatten-blatt); padding: 22px 24px 26px; }
.lb-blatt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1.5px solid var(--tinte); }
.lb-blatt-kopf h1, .lb-blatt-kopf h2 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; line-height: 1.1; }
.lb-blatt-kopf span { font-size: 14px; color: var(--tinte-2); }
.lb-leer-text { margin: 18px 0 4px; max-width: 52ch; color: var(--tinte-2); line-height: 1.5; }

/* Tabelle der Arbeitsblaetter bzw. Konten */
.ablage { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ablage th { text-align: left; padding: 10px 10px 8px; font-size: 12.5px; font-weight: 600; color: var(--tinte-2); border-bottom: 1px solid var(--linie-stark); white-space: nowrap; }
.ablage td { padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.ablage tbody tr:hover td { background: #fbfaf5; }
.ablage .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-titel { font-weight: 600; min-width: 12ch; }
.ab-titel a { color: var(--tinte); text-decoration: none; }
.ab-titel a:hover { color: var(--wasser); text-decoration: underline; }
.ab-modul { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ab-modul::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--kap); }
.ab-code { font-family: var(--schrift-schmal); font-weight: 600; font-size: 16px; letter-spacing: 0.12em; }
.ab-code-klein { letter-spacing: 0.02em; font-size: 15px; }
.ab-datum { white-space: nowrap; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.ab-tun { text-align: right; white-space: nowrap; }
.ab-tun form { display: inline; margin: 0; }
.ab-knopf {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px; margin-left: 4px; border-radius: var(--r); border: 1px solid var(--linie-stark); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--tinte); text-decoration: none; cursor: pointer;
}
.ab-knopf:hover { border-color: var(--tinte-2); }
.ab-weg { color: #7a3d0c; }
.ab-knopf.ab-bereit { background: var(--daneben); border-color: var(--daneben); color: #fff; }

/* Konten */
.konten-flaeche {
  padding: 28px 22px 40px;
  background-color: var(--tisch);
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px);
  background-size: 48px 48px;
}
.konten-blatt { max-width: 980px; margin: 0 auto; }
.konten-text { margin: 12px 0 16px; max-width: 70ch; color: var(--tinte-2); line-height: 1.5; }
.konten-du { margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--wasser-hell); color: var(--wasser-tief); font-size: 12.5px; font-weight: 600; }
.konten-neu { margin: 0 0 16px; padding: 14px 16px; border-radius: 6px; background: var(--richtig-hell); color: #2b5520; }
.konten-neu p { margin: 0; }
.konten-pw { display: grid; grid-template-columns: max-content max-content; gap: 4px 14px; margin: 10px 0 !important; align-items: baseline; }
.konten-pw span { font-size: 13.5px; }
.konten-pw code { font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; color: var(--tinte); }
.konten-klein { font-size: 13.5px; }
.konten-anlegen { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--linie-stark); }
.konten-anlegen h2 { grid-column: 1 / -1; margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 21px; }
.konten-anlegen .knopf { height: 42px; margin: 0; }

@media (max-width: 960px) {
  body.lb-seite:not(.lb-tor) { height: auto; overflow: auto; }
  .lb-flaeche { grid-template-columns: minmax(0, 1fr); }
  .lb-ablage { overflow: visible; padding: 12px; }
  .lb-blatt { padding: 16px 14px 20px; overflow-x: auto; }
  .lb-gruss { font-size: 36px !important; }
  .lb-wer { display: none; }
  .konten-anlegen { grid-template-columns: 1fr; }
}

.m-magma { fill: #e0762c; }
.m-bruch { fill: none; stroke: #6a3d9a; stroke-width: 2.2; stroke-linejoin: round; }
.m-pfeil { fill: none; stroke: var(--einband); stroke-width: 2; stroke-linecap: round; }
