/* ---------- CI Freie Waldorfschule Wahlwies (aus waldorfschule-wahlwies.de) ----------
   Dunkelblau #2f3468 · Creme #f7f5e7 · Sand #e8e5ce · Mauve #968898 · Beere #7e3859 · Violett #301063
   Schriften: Antropos (Überschriften/Navigation, wie auf der Website) · Source Sans Pro (Text)
   Antropos bitte als static/fonts/antropos.ttf ablegen – sonst wird eine ähnliche Ersatzdarstellung genutzt. */
@font-face { font-family: "Antropos"; src: url("fonts/antropos.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Source Sans Pro"; font-weight: 300; font-style: italic; src: url("fonts/source-sans-pro-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: normal; src: url("fonts/source-sans-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: italic; src: url("fonts/source-sans-pro-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 600; font-style: normal; src: url("fonts/source-sans-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-weight: 700; font-style: normal; src: url("fonts/source-sans-pro-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f7f5e7;
  --karte: #ffffff;
  --text: #141412;
  --leise: #686758;
  --linie: #e8e5ce;
  --blau: #2f3468;
  --blau-dunkel: #232750;
  --mauve: #968898;
  --beere: #7e3859;
  --violett: #301063;
  --akzent: #2f3468;
  --akzent-hell: #e6e7f0;
  --gelb: #7e3859;
  --gelb-hell: #f3e6ec;
  --rot: #b3261e;
  --rot-hell: #fbe4e2;
  --radius: 6px;
  --zier: "Antropos", "Source Sans Pro", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 "Source Sans Pro", Helvetica, Arial, sans-serif; }
a { color: var(--violett); }
h1 { font-family: var(--zier); font-weight: 400; font-size: 1.9rem; margin: 0 0 .2rem; color: var(--blau); }
.ohne-antropos h1 { font-variant: small-caps; letter-spacing: .02em; font-weight: 600; }
h2 { font-family: var(--zier); font-weight: 400; font-size: 1.3rem; margin: 1.5rem 0 .6rem; color: var(--blau); }
.ohne-antropos h2 { font-variant: small-caps; font-weight: 600; }
.leise { color: var(--leise); }
.klein { font-size: .875rem; }

/* Kopf – wie Website: dunkelblaues Band mit Schulname, darunter cremefarbene Navigation */
.band { background: var(--blau); color: #f7f5e7; }
.band .innen { max-width: 1400px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.marke { color: #f7f5e7; text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.marke img { height: 46px; width: auto; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.35)); }
.marke .schule { font-family: var(--zier); font-size: 1.35rem; line-height: 1.1; text-shadow: 2px 2px 1px rgba(0,0,0,.45); }
.marke .portal { display: block; font-family: "Source Sans Pro", sans-serif; font-style: italic; font-weight: 300; font-size: .9rem; text-shadow: none; opacity: .85; }
.ohne-antropos .marke .schule { font-variant: small-caps; font-weight: 700; letter-spacing: .02em; }
.band .wer { margin-left: auto; font-size: .9rem; white-space: nowrap; color: #d3d3d3; }
.band .wer a { color: #f7f5e7; margin-left: .7rem; }
.leiste { background: #f7f5e7; border-bottom: 1px solid var(--linie); }
.leiste .innen { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }
.leiste nav { display: flex; flex-wrap: wrap; }
.leiste nav a { font-family: var(--zier); font-style: italic; font-size: .98rem; text-decoration: none; color: var(--blau); padding: .6rem 1rem; }
.ohne-antropos .leiste nav a { font-variant: small-caps; font-weight: 600; }
.leiste nav a:hover { background: var(--linie); }
.leiste nav a.aktiv { background: var(--mauve); color: var(--blau); }

main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
main.schmal { max-width: 900px; }

/* Meldungen */
.meldung { padding: .75rem 1rem; border-radius: var(--radius); margin: 0 0 1rem; }
.meldung.ok { background: var(--akzent-hell); color: #1f4535; }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }

/* Kacheln (Startseite) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 1rem; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.kachel:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.kachel .bild { height: 120px; background-size: cover; background-position: center; }
.kachel .inhalt { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.kachel .titel { font-family: var(--zier); font-size: 1.25rem; color: var(--blau); }
.ohne-antropos .kachel .titel { font-variant: small-caps; font-weight: 700; }
.kachel .sub { color: var(--leise); font-size: .92rem; }
.balken { height: 8px; background: #ece8de; border-radius: 99px; overflow: hidden; margin-top: auto; display: flex; }
.balken i { display: block; height: 100%; }
.balken .f { background: var(--akzent); }
.balken .e { background: var(--mauve); }
.fortschritt { font-size: .88rem; color: var(--leise); margin-top: .4rem; }
.leerzustand { background: var(--karte); border: 1px dashed var(--linie); border-radius: 8px; padding: 2.5rem; text-align: center; color: var(--leise); }

/* Tabellen / Listen */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 1.25rem; }
table.liste { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
table.liste th, table.liste td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.liste th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blau); background: #fbfaf2; font-weight: 600; }
table.liste tr:last-child td { border-bottom: none; }
table.liste tr.klickbar { cursor: pointer; }
table.liste tr.klickbar:hover td { background: #fbfaf2; }
table.liste td.name a { font-weight: 600; text-decoration: none; color: var(--text); }
tr.inaktiv td { color: #aaa; }

.chip { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip.offen { background: #efece5; color: var(--leise); }
.chip.entwurf { background: #ece6ed; color: var(--beere); }
.chip.fertig { background: var(--blau); color: #f7f5e7; }
.chip.warn { background: var(--rot-hell); color: var(--rot); }

/* Buttons & Formulare */
.knopf, button { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--linie);
  background: var(--karte); color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knopf:hover, button:hover { border-color: #c9c3b5; }
.knopf.haupt, button.haupt { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.knopf.haupt:hover, button.haupt:hover { background: var(--blau-dunkel); }
.knopf.gefahr, button.gefahr { color: var(--rot); }
button:disabled, .knopf.aus { opacity: .5; cursor: not-allowed; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 1rem 0 .3rem; }
label .hinweis { font-weight: 400; color: var(--leise); }
input[type=text], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--linie); border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent-hell); border-color: var(--akzent); }
textarea { font-family: "Liberation Serif", "Times New Roman", Georgia, serif; font-size: 1.05rem; line-height: 1.5; resize: vertical; }
.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pfad { font-size: .9rem; color: var(--leise); margin-bottom: .35rem; }
.pfad a { color: var(--leise); }

/* Bearbeiten: Formular links, Vorschau rechts */
.bearbeiten { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr); gap: 1.5rem; align-items: start; }
.bearbeiten .formular { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 1.25rem 1.4rem 1.5rem; }
.bearbeiten .formular label:first-of-type { margin-top: 0; }
.vorschau { position: sticky; top: 1rem; }
.vorschau .blatt { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.12); border-radius: 3px; margin-bottom: 1rem; position: relative; }
.vorschau .blatt img { width: 100%; display: block; border-radius: 3px; }
.vorschau .blatt .nr { position: absolute; top: .5rem; right: .6rem; font-size: .75rem; background: rgba(0,0,0,.55); color: #fff; padding: .1rem .5rem; border-radius: 99px; }
.vorschau-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; gap: .5rem; }
.vorschau-laed { opacity: .55; transition: opacity .2s; }
.seiten { font-size: .9rem; font-weight: 600; }
.seiten.ok { color: var(--blau); } .seiten.gelb { color: var(--beere); } .seiten.rot { color: var(--rot); }
.pronomen { display: flex; gap: .5rem; }
.pronomen label { margin: 0; font-weight: 500; display: flex; gap: .4rem; align-items: center; border: 1px solid var(--linie); padding: .45rem .8rem; border-radius: 8px; cursor: pointer; }
.pronomen input { margin: 0; }
.pronomen label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.speicherstand { font-size: .88rem; color: var(--leise); }
.fehlt { background: #f3eef3; color: var(--beere); padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; margin-top: 1rem; }
.fussleiste { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.zaehler { float: right; font-weight: 400; color: var(--leise); font-size: .82rem; }
.festtext { font-size: .88rem; color: var(--leise); background: #fbfaf2; border-radius: 8px; padding: .6rem .8rem; font-style: italic; }

/* Admin */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0 1.5rem; }
.zahl { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 1rem 1.1rem; }
.zahl b { font-size: 1.9rem; display: block; color: var(--blau); font-weight: 600; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fbfaf2; padding: .1rem .4rem; border-radius: 5px; }
.pwbox { background: var(--akzent-hell); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.pwbox .code { font-size: 1.15rem; background: #fff; }
.checkliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem .8rem; }
.checkliste label { font-weight: 400; margin: 0; display: flex; gap: .45rem; align-items: center; }
.vorschauliste { overflow-x: auto; }
.login { max-width: 400px; margin: 8vh auto; }
.login .logo { display: block; margin: 0 auto .9rem; height: 96px; }
.login .schule { text-align: center; font-family: var(--zier); font-size: 1.5rem; color: var(--blau); }
.ohne-antropos .login .schule { font-variant: small-caps; font-weight: 700; }
.login .portal { text-align: center; font-style: italic; font-weight: 300; color: var(--leise); margin-bottom: 1.25rem; }
.login .karte { padding: 2rem; }

@media (max-width: 980px) {
  .bearbeiten { grid-template-columns: 1fr; }
  .vorschau { position: static; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
  .zeile2 { grid-template-columns: 1fr; }
  .band .innen { flex-wrap: wrap; } .marke .schule { font-size: 1.1rem; } .marke img { height: 38px; } .leiste nav a { padding: .5rem .7rem; }
}
@media print { .leiste, .band { display: none; } }
