/* Startseite der Python-Werkstatt – Farben und Schriften wie die App (lokal gehostet).
   Die „Bühne“ ist in hell und dunkel ein dunkler Kasten mit heller Schrift; Seite und Kacheln folgen dem Design. */
:root { --bg:#e9eff5; --card:#fff; --text:#0e1e30; --muted:#5b6d83; --border:#d6e0ea; --teal:#1597b8; --gold:#c8962e; --gold-2:#e6b54f; --gold-text:#8f6610; --teal-text:#0f7894;
  --stage-1:#0b2a45; --stage-2:#0e4a66; --ease:cubic-bezier(.2,.8,.2,1); --font:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display:"Bricolage Grotesque", var(--font); --mono:"JetBrains Mono", ui-monospace, Consolas, monospace; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#07121e; --card:#0e1c2c; --text:#e6edf5; --muted:#8fa2b8; --border:#1f3349; --stage-1:#08192b; --stage-2:#0c3a52; --gold-text:#e6b54f; --teal-text:#4fb3e0; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#07121e; --card:#0e1c2c; --text:#e6edf5; --muted:#8fa2b8; --border:#1f3349; --stage-1:#08192b; --stage-2:#0c3a52; --gold-text:#e6b54f; --teal-text:#4fb3e0; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font);
  background-image: linear-gradient(color-mix(in srgb, var(--border) 45%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--border) 45%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; }
a { color: var(--teal); }
:focus-visible { outline: 2.5px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }

.top { max-width: 1160px; width: 100%; margin: 0 auto; padding: 22px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
/* Schullogo groß und zuerst: Die Plattform läuft im Auftrag der FOSBOS Schwandorf (Wunsch Betreiber 02.10.) */
.schule { display: inline-flex; flex: none; }
.schule img { height: clamp(56px, 8vw, 92px); width: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none;
  padding: 8px 16px 8px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(21,151,184,.35)); }
.brand strong { display: block; font: 800 1.05rem/1.1 var(--display); letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
@media (max-width: 560px) { .top { justify-content: center; } .schule img { height: 58px; } .brand { padding: 6px 12px 6px 8px; } }

main { flex: 1; max-width: 1160px; width: 100%; margin: 0 auto; padding: 22px 20px 40px; }

/* ---------------- Bühne */
.stage { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  color: #eaf3fa; background: linear-gradient(140deg, var(--stage-1) 0%, var(--stage-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 70px -30px rgba(6,26,45,.65), 0 8px 24px -12px rgba(6,26,45,.4); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,151,184,.45), transparent 62%); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; }
.glow::after { content: ""; position: absolute; width: 380px; height: 380px; left: -420px; top: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,181,79,.22), transparent 65%); }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }

.kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(255,255,255,.06); font: 700 .74rem/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #cfe4f1; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.pills .kicker { margin: 0; }
.kostenfrei { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px;
  font: 700 .82rem/1.2 var(--font); color: #1b1405; background: linear-gradient(180deg, #f6d98b, var(--gold-2) 60%, #d9a13d);
  box-shadow: 0 8px 20px -10px rgba(230,181,79,.8); vertical-align: top; }
.kostenfrei svg { width: 16px; height: 16px; flex: none; }
h1 { margin: 0 0 16px; font: 800 clamp(2.1rem, 4.4vw, 3.3rem)/1.04 var(--display); letter-spacing: -.035em; color: #fff; }
h1 span { background: linear-gradient(90deg, #7fd3ee, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 30px; max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #c6d9e8; }

/* ---------------- Anmeldung */
.login label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .92rem; color: #dcebf5; }
.field { display: flex; gap: 10px; padding: 7px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); transition: border-color .25s, box-shadow .25s; max-width: 520px; }
.field:focus-within { border-color: rgba(127,211,238,.7); box-shadow: 0 0 0 4px rgba(21,151,184,.25); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 10px 12px;
  font: 600 1.35rem/1.2 var(--mono); letter-spacing: .12em; }
.field input::placeholder { color: rgba(220,235,245,.42); letter-spacing: .04em; font-weight: 400; }
.go { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: 12px 22px; border-radius: 13px; font: 700 1rem/1 var(--font); color: #1b1405;
  background: linear-gradient(180deg, #f6d98b, var(--gold-2) 55%, #d9a13d); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 24px -8px rgba(230,181,79,.65);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.go svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.go:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 30px -10px rgba(230,181,79,.75); }
.go:hover svg { transform: translateX(3px); }
.go:active { transform: translateY(0); }
.go:disabled { cursor: progress; filter: saturate(.7) brightness(.95); }
.busy .go span::after { content: " …"; }
.ok .field { border-color: #43d68b; box-shadow: 0 0 0 4px rgba(67,214,139,.25); }
.ok .go { background: linear-gradient(180deg, #7ee8ad, #43d68b); color: #05210f; }
.error .field { border-color: #ff8a8a; animation: shake .42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: #ffb3b3; }
.hint { margin: 2px 0 0; font-size: .88rem; color: #a9c1d3; max-width: 36em; }

.welcome .wb { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font: 700 1.3rem/1.3 var(--display); color: #fff; }
.welcome .wb small { display: block; font: 500 .9rem/1.4 var(--font); color: #a9c1d3; }
.check { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(67,214,139,.18); color: #6fe0a2; flex: none; }
.check svg { width: 24px; height: 24px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ghost { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #dcebf5; border-radius: 13px; padding: 11px 18px;
  font: 600 .95rem/1 var(--font); cursor: pointer; transition: background .2s, border-color .2s; }
.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }

/* ---------------- Code-Fenster */
.window { border-radius: 18px; overflow: hidden; background: #0a1826; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .8s var(--ease); }
.window:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f0655e; }
.win-bar i:nth-child(2) { background: #f5bd4f; } .win-bar i:nth-child(3) { background: #3fc36b; }
.win-bar span { margin-left: 10px; font: 500 .8rem var(--mono); color: #8aa3b8; }
.win-code, .win-out pre { margin: 0; font: 400 .92rem/1.75 var(--mono); white-space: pre; overflow: hidden; }
.win-code { min-height: 13.2em; padding: 18px 20px; color: #dbe7f1; counter-reset: ln; }
.win-code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 1.6em; margin-right: 14px; text-align: right; color: #4b6378; }
.kw { color: #c792ea; } .fn { color: #7fd3ee; } .st { color: #a5e07e; } .nu { color: #f5b971; } .cm { color: #6d8599; font-style: italic; }
.cursor { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--gold-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.win-out { border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.22); padding: 12px 20px 16px; }
.win-label { display: block; font: 700 .68rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #6d8599; margin-bottom: 8px; }
.win-out pre { min-height: 5.25em; color: #9fe6bd; }

/* ---------------- Kursjahr: 12 Lektionen mit Unterrichtswoche */
.jahr { margin-top: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px clamp(18px, 3vw, 32px) 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 28px -18px rgba(8,29,51,.35); }
.jahr-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.jahr-kopf h2 { margin: 0; font: 800 1.45rem/1.2 var(--display); letter-spacing: -.02em; }
.jahr-kopf h2 span { color: var(--gold-text); }
.jahr-kopf p { margin: 0; color: var(--muted); font-size: .93rem; }
.jahr-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.jahr-lektion { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 12px 12px 11px; border-radius: 14px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--teal) 4%, var(--card)); transition: transform .25s var(--ease), box-shadow .25s; }
.jahr-lektion:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -14px rgba(8,29,51,.4); }
.jl-nr { font: 800 1.15rem/1 var(--display); color: var(--teal-text); }
.jahr-lektion strong { font: 600 .86rem/1.3 var(--font); }
.jahr-lektion small { margin-top: auto; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.jahr-lektion.uebung { background: color-mix(in srgb, var(--gold) 9%, var(--card)); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.jahr-lektion.uebung .jl-nr { color: var(--gold-text); }
.jahr-lektion.vorbei { opacity: .62; }
.jahr-lektion.jetzt, .jahr-lektion.naechste { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.jahr-lektion.jetzt small, .jahr-lektion.naechste small { color: var(--teal-text); font-weight: 700; }

.foot { max-width: 1160px; width: 100%; margin: 0 auto; padding: 8px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; color: var(--muted); font-size: .85rem; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--teal); }

/* ---------------- Handy & Tablet */
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .window { transform: none; }
  .window:hover { transform: none; }
  .jahr-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  main { padding: 16px 12px 32px; }
  .top { padding: 16px 16px 0; }
  .stage { border-radius: 22px; padding: 26px 18px; }
  .field { flex-direction: column; }
  .go { justify-content: center; }
  .field input { text-align: center; }
  .win-code, .win-out pre { font-size: .8rem; }
  .jahr-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jahr-lektion { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Keine Code-Ligaturen (== soll als zwei Zeichen erkennbar sein) */
/* An jedem Element und mit !important: die font-Kurzschreibweise (z. B. font: 14px var(--mono)) setzt die Einstellung
   sonst pro Element zurück – eine Regel auf html allein wirkt nicht (Test 30.09.). */
*, *::before, *::after { font-variant-ligatures: none !important; }

/* Schullogo (config/web/landing/fosbos/): farbig im hellen, mit weißer Schrift im dunklen Modus */
.logo-dunkel { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-hell { display: none; } :root:not([data-theme="light"]) .logo-dunkel { display: inline-block; } }
:root[data-theme="dark"] .logo-hell { display: none; }
:root[data-theme="dark"] .logo-dunkel { display: inline-block; }

/* Preise (Betreiber 05.10.2026): Einzellizenz, Schullizenz, Test – Anfrage per E-Mail, § 19 UStG */
.preise { margin-top: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px clamp(18px, 3vw, 32px) 24px; }
.preise-kopf h2 { margin: 0 0 4px; font: 800 1.45rem/1.2 var(--display); letter-spacing: -.02em; }
.preise-kopf p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.preise-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.preis-karte { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.preis-karte.schule { border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
.preis-karte h3 { margin: 0; font: 700 1.08rem/1.25 var(--display); }
.preis { margin: 0; color: var(--muted); }
.preis strong { font: 800 1.9rem/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.preis-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.preis-karte li { display: flex; gap: 8px; align-items: flex-start; }
.preis-karte li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-text); }
.preis-knopf { margin-top: auto; display: inline-block; text-align: center; padding: 11px 16px; border-radius: 12px; background: var(--teal); color: #fff;
  font-weight: 700; text-decoration: none; min-height: 44px; box-sizing: border-box; }
.preis-knopf:hover, .preis-knopf:focus-visible { background: color-mix(in srgb, var(--teal) 85%, #000); }
.preis-test { margin: 16px 0 6px; text-align: center; font-weight: 700; }
.preis-test a { color: var(--gold-text); }
.preis-hinweis { margin: 6px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.preis-hinweis a { color: inherit; }
.kostenfrei a { color: inherit; text-decoration: none; }
.kostenfrei a:hover { text-decoration: underline; }
.staffel { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.staffel th, .staffel td { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.staffel thead th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.staffel tbody th { font: 800 .95rem/1 var(--display); color: var(--teal-text); width: 3.2em; }
.staffel td:last-child { text-align: right; font-weight: 700; }
.staffel tbody tr:last-child th, .staffel tbody tr:last-child td { border-bottom: none; }
.staffel thead th:last-child { text-align: right; }
