/* toFace Sign – Portal behutsam modernisiert (liegt über style.css + sign.css; Aufbau bleibt gleich).
   Gleiche Schriften wie Webseite und Design-Editor, warmes Papier, ruhige Karten, spürbare Knöpfe.
   Kundenfarben (--navy / --green) kommen weiter aus „Logo & Farben“. */
:root {
  --ink: #15191f; --text: #2a313a; --muted: #6b727c; --faint: #8b929b;
  --bg: #f7f5f0; --soft: #f1eee7; --line: #e8e3d9; --line-2: #d9d3c6;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(21,25,31,.03), 0 10px 30px -22px rgba(21,25,31,.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: 'Instrument Serif', Georgia, serif;
}
body { font-family: 'Geist', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Geist', system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: 0; }
h2 { font-weight: 600; font-size: 18px; }
h3 { font-weight: 600; font-size: 15px; }
h4 { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .08em; color: var(--faint); }
a { color: var(--navy); }
a:hover { color: var(--ink); }
code { background: var(--soft); }

/* Linien-Symbole statt Emojis in Überschriften (portal_icons) */
.st-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.14em; }
h1 .pt-ico { width: 30px; height: 30px; stroke-width: 1.5; color: var(--navy); margin-right: 2px; }
h2 .pt-ico { width: 20px; height: 20px; color: var(--navy); margin-right: 8px; vertical-align: -4px; }
.page-head h1 .pt-ico { margin-right: 0; }
.hero h1 .pt-ico { color: #fff; }

/* Kopfleiste & Menü */
.topbar { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 24px -16px rgba(0,0,0,.35); }
.brand-text b { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.top-search input { border-radius: 10px; }
.sidebar { background: #fff; border-right-color: var(--line); padding: 16px 10px; }
.sidebar a { font-weight: 500; color: var(--text); border-radius: 10px; padding: 9px 12px; transition: background-color 160ms ease, color 160ms ease; }
.sidebar a svg { stroke: var(--faint); stroke-width: 1.6; transition: stroke 160ms ease; }
.sidebar a:hover { background: var(--soft); color: var(--ink); }
.sidebar a:hover svg { stroke: var(--ink); }
.sidebar a.active { background: var(--navy-soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--navy); }
.sidebar a.active svg { stroke: var(--navy); }
.nav-group summary { font-family: 'Geist', sans-serif; }
.sidebar-foot span { color: var(--faint); }

/* Inhalt */
.content { padding-top: calc(var(--top) + 32px); }
.page-head { margin-bottom: 22px; align-items: flex-end; }
.back { color: var(--muted); font-weight: 500; }
.back:hover { color: var(--ink); }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.card-head h2, .card-head h3 { color: var(--ink); }
.muted, .meta { color: var(--muted); }

/* Hero, Kacheln, Kennzahlen: Zahlen in der eleganten Schrift */
.hero { border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--navy) 70%, #fff 10%), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-dark)); }
.hero::after { opacity: .12; }
.hero h1 { font-size: 40px; }
.tile, .kpi { border: 1px solid var(--line); box-shadow: var(--shadow); border-top-width: 1px; }
.tile { border-top: 3px solid var(--navy); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.tile-orange { border-top-color: var(--orange); } .tile-blue { border-top-color: var(--blue); } .tile-green { border-top-color: var(--green); }
.tile b, .kpi b, .total-box b { font-family: var(--serif); font-size: 38px; color: var(--ink); letter-spacing: 0; }
.tile span, .kpi span { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { a.tile:hover, a.kpi:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(21,25,31,.03), 0 16px 34px -20px rgba(21,25,31,.3); } }
.notice { border-radius: 12px; border-left-width: 3px; }
div.notice { padding: 12px 16px; } /* style.css setzt .notice weiter unten auf 0 (gilt nur für aufklappbare Hinweise) */

/* Knöpfe: klare Form, reagieren beim Drücken */
.btn { font-weight: 600; border-radius: 10px; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-secondary { background: var(--ink); }
.btn-secondary:hover { background: #2a313a; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.topbar .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn-icon { border-radius: 8px; }

/* Formulare */
label { font-weight: 600; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], input[type=tel], select, textarea {
  border-color: var(--line-2); border-radius: 10px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.radio-card { border-radius: 12px; border-color: var(--line); transition: border-color 160ms ease, background-color 160ms ease; }
.check input, .radio input, .radio-card input { accent-color: var(--navy); }

/* Tabellen */
.table th { font-weight: 600; font-size: 11px; letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line); }
.table td { border-bottom-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover td { background: #fbfaf7; } }
.table tr.total td { color: var(--ink); border-top: 1px solid var(--line-2); }

/* Kleinteile */
.badge { font-family: 'Geist', sans-serif; font-weight: 600; }
.badge-grey { background: var(--soft); color: var(--muted); }
.flash { border-radius: 12px; font-weight: 500; }
.tabs { border-bottom: 1px solid var(--line); gap: 2px; }
.tabs a { font-weight: 600; transition: color 160ms ease; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--navy); }
.chip { border-color: var(--line-2); font-weight: 500; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.chip.active { background: var(--ink); border-color: var(--ink); }
.pager a { border-radius: 8px; }
.pager a.active { background: var(--ink); border-color: var(--ink); }
.impersonate-bar { border-radius: 12px; }

/* Kantine: Leiste unten auf dem Handy */
.cn-tabbar a span .st-ico { width: 22px; height: 22px; stroke-width: 1.6; }

@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } .tile { transition: none; } }
@media (max-width: 720px) { h1 { font-size: 30px; } h1 .pt-ico { width: 24px; height: 24px; } }

/* Übersicht: große Kacheln und „Heute zu tun“ mit Linien-Symbolen */
.cn-tile { border-radius: var(--radius); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.cn-tile:active { transform: scale(0.98); }
.cn-tile span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.cn-tile span .st-ico { width: 28px; height: 28px; stroke-width: 1.6; color: #fff; }
.cn-tile b { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.today-list .td-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; }
.today-list .td-ico .st-ico { width: 18px; height: 18px; color: var(--navy); }
.today-empty .st-ico { width: 18px; height: 18px; color: var(--navy); vertical-align: -3px; }
.sidebar a .nav-lock { width: 13px; height: 13px; color: var(--faint); margin-left: 4px; vertical-align: -1px; stroke-width: 2; }
h3 .pt-ico { width: 17px; height: 17px; color: var(--navy); margin-right: 6px; vertical-align: -3px; }
/* Tafel-Designs: nach Branche gruppiert */
.theme-group { margin: 14px 0 6px; }
.theme-group:first-of-type { margin-top: 4px; }
.gallery-group { margin: 26px 0 12px; }
/* Saison-Kalender: echte Motiv-Vorschau je Anlass, nach Monaten */
.season-month { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 28px 0 12px; }
.season-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.season-card { padding: 0; overflow: hidden; gap: 0; }
.season-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--soft); }
.season-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.season-body h3 { margin: 0; }
.season-card .btn { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .season-card { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); } .season-card:hover { transform: translateY(-2px); } }

/* Bereich „Unterricht“ (Bildungsträger) */
.edu-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 900px) { .edu-split { grid-template-columns: 1fr; } }
.edu-prev-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.edu-prev-box iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.edu-prev .meta { display: inline-block; margin-top: 6px; }
.edu-dayform { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.edu-dayform h2 { margin: 0; }
.edu-today { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.edu-trow { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line, #e3e7ec); border-radius: 10px; }
.edu-trow.is-cancel .edu-tinfo b { text-decoration: line-through; opacity: .6; }
.edu-tinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.edu-tinfo .badge { align-self: flex-start; }
.edu-tact summary { list-style: none; cursor: pointer; }
.edu-tact summary::-webkit-details-marker { display: none; }
.edu-tact[open] { flex-basis: 100%; }
.edu-tact form { display: grid; gap: 6px; margin-top: 8px; }
.edu-days { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.edu-days legend { font-weight: 700; margin-bottom: 4px; }

/* Aufgeteilter Bildschirm: Trennlinien ziehen (wie toFace School) */
.ze-editor .le-canvas { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; background: #1d2733; border-radius: 10px; overflow: hidden; user-select: none; touch-action: none; }
.ze-editor .le-canvas.le-portrait { max-width: 300px; aspect-ratio: 9 / 16; }
.ze-editor .le-box { position: absolute; box-sizing: border-box; border: 3px solid #1d2733; background: #93a7c0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-weight: 800; font-size: 14px; border-radius: 8px; }
.ze-editor .le-box.le-main { background: var(--navy, #0e4174); }
.ze-editor .le-box.le-ticker { background: #c98a2e; font-size: 11px; }
.ze-editor .le-box small { display: block; font-size: 11px; font-weight: 600; opacity: .9; }
.ze-editor .le-handle { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; outline: none; }
.ze-editor .le-handle.le-x { width: 22px; margin-left: -11px; cursor: col-resize; }
.ze-editor .le-handle.le-y { height: 22px; margin-top: -11px; cursor: row-resize; }
.ze-editor .le-handle i { display: block; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ze-editor .le-handle.le-x i { width: 6px; height: 46px; }
.ze-editor .le-handle.le-y i { width: 46px; height: 6px; }
.ze-editor .le-handle:hover i, .ze-editor .le-handle:focus-visible i, .ze-editor .le-dragging .le-handle i { background: var(--green, #93c01f); }
.ze-editor .le-dragging { cursor: grabbing; }
.ze-nums { margin-top: 10px; }

/* Feld eines aufgeteilten Bildschirms: Reiter wie bei toFace School */
.zone-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.zone-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line, #e3e7ec); background: #fff; color: inherit; text-decoration: none; font-weight: 700; font-size: 14px; }
.zone-tabs a.on { border-color: var(--navy, #0e4174); box-shadow: inset 0 0 0 1px var(--navy, #0e4174); }
.zone-tabs .zone-sketch { width: 44px; }
.zone-tabs .zone-sketch.portrait { width: 22px; }
.page-head h1 .zone-sketch { width: 56px; }
/* Abfahrten Bus & Bahn: Haltestellen-Suche im App-Formular */
.transit-pick { display: grid; gap: 8px; margin-top: 4px; }
/* Sprachen je Folie */
.lang-pick { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lang-pick legend { font-weight: 600; font-size: .9em; padding: 0 4px; }
.lang-pick small { flex-basis: 100%; }
