/* toFace Sign – Ergänzungen zum Basis-Design (style.css) */

/* Kopfzeile: Kunden-Logo bzw. toFace-Sign-Zeichen */
.brand-logo-box { height: 44px; max-width: 120px; background: #fff; border-radius: 8px; padding: 4px 6px; display: flex; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); flex: none; }
.brand-logo-box img { max-height: 36px; max-width: 108px; object-fit: contain; display: block; }
.brand-sign { display: flex; }
.sign-mark { display: block; flex: none; }
@media (max-width: 520px) { .brand-logo-box { height: 38px; max-width: 90px; } .brand-logo-box img { max-height: 30px; max-width: 78px; } }

/* Anmeldeseiten */
body.bare { background: linear-gradient(135deg, #0e4174 0%, #0a2f55 60%, #12305a 100%); }
.auth-brand-sign { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.auth-brand-sign b { display: block; font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 24px; color: var(--navy); line-height: 1.1; }
.auth-brand-sign small { color: var(--muted); font-size: 12px; }

/* Super-Admin sieht ein Kundenkonto an */
.impersonate-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff7e0; border: 1px solid #f2d48a; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi b { display: block; font-size: 28px; font-family: 'Questrial', sans-serif; font-weight: 400; color: var(--navy); line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { box-shadow: 0 0 0 2px var(--green), var(--shadow); }

/* Farbwahl & Branding-Vorschau */
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 54px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; flex: none; }
.color-row input[type=text] { flex: 1; font-family: monospace; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.brand-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.brand-preview .bp-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; }
.brand-preview .bp-top img { max-height: 34px; max-width: 100px; background: #fff; border-radius: 6px; padding: 3px 5px; }
.brand-preview .bp-top b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 16px; display: block; }
.brand-preview .bp-top small { font-size: 11px; }
.brand-preview .bp-body { padding: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.brand-preview .bp-btn { color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.brand-preview .bp-tv { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.brand-preview .bp-tv b { font-family: 'Questrial', sans-serif; font-weight: 400; font-size: 22px; }
.brand-preview .bp-tv span { align-self: flex-start; border-radius: 6px; padding: 3px 10px; font-weight: 800; font-size: 14px; margin-top: 6px; }
.logo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-current img { max-height: 60px; max-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }

/* Setup-Assistent */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; counter-reset: step; }
.wizard-steps li { list-style: none; flex: 1 1 140px; padding: 10px 12px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); counter-increment: step; }
.wizard-steps li::before { content: counter(step); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); color: var(--text); font-weight: 800; font-size: 12px; margin-right: 8px; }
.wizard-steps li.done::before { content: '✓'; background: var(--green); color: #fff; }
.wizard-steps li.current { color: var(--navy); font-weight: 700; box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.wizard-steps { padding: 0; }

/* Paket-Übersicht */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 2px solid transparent; }
.plan-card.current { border-color: var(--green); }
.plan-card h3 { margin-bottom: 4px; }
.plan-card .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.plan-card .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-card ul { padding-left: 18px; margin: 10px 0 0; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }

/* Filial-Vergleich */
.compare-table td.best { background: var(--green-soft); font-weight: 800; }
.kpi small, .compare-table small { font-size: 12px; font-weight: 700; margin-left: 4px; }
small.up { color: #3f7d0a; }
small.down { color: var(--red); }

/* Paket & Konto */
.plan-pick { cursor: pointer; position: relative; display: block; }
.plan-pick input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--green); }
.plan-pick.chosen { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); }
.total-box { display: flex; flex-direction: column; justify-content: center; background: var(--green-soft); border-radius: 12px; padding: 12px 16px; }
.total-box b { font-size: 28px; color: var(--navy); font-family: 'Questrial', sans-serif; font-weight: 400; }
.health-list li { padding: 8px 0; border-bottom: 1px solid var(--line); list-style: none; }
.health-list { padding: 0; margin: 0; }
.sev-3 { color: var(--red); font-weight: 800; }
.sev-2 { color: #a86400; font-weight: 700; }

/* Phase 7: Stick-Bestellung, Jahreszahlung, Partner, KI-Import, Social Media */
.auth-partner-logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.hw-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--green-soft, #f6faea), #fff); }
.hw-art { font-size: 64px; text-align: center; line-height: 1; }
.hw-art span { display: block; font-size: 36px; }
@media (max-width: 700px) { .hw-hero { grid-template-columns: 1fr; } .hw-art { display: none; } }
.hw-list { list-style: none; padding: 0; }
.hw-list li { display: block; padding: 4px 0 4px 24px; position: relative; }
.hw-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.hw-order { padding: 10px 0; border-bottom: 1px solid var(--line, #e4e8ee); }
.hw-order:last-child { border-bottom: 0; }
.interval-pick { margin-top: 12px; }
.interval-pick span { display: flex; flex-direction: column; text-align: left; }
.interval-pick small { color: var(--muted, #6b7785); font-weight: 400; }
.ai-drop { border: 2px dashed var(--line, #d5dbe3); border-radius: 12px; padding: 22px; text-align: center; background: #fafbfc; }
.ai-drop input[type=file] { margin: 10px auto 0; }
.ai-cat { border: 1px solid var(--line, #e4e8ee); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.ai-cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.ai-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.ai-items td, .ai-items th { padding: 5px 4px; border-top: 1px solid #eef1f5; vertical-align: top; text-align: left; }
.ai-items input[type=text] { width: 100%; padding: 5px 7px; font-size: 14px; }
.ai-items .num { width: 54px; }
.ai-items .pr { width: 80px; }
.ai-items .al { width: 92px; }
.ai-sugg { color: #b26a00; font-size: 12px; }
.social-ch { display: flex; align-items: center; gap: 8px; }
.social-ch img { width: 26px; height: 26px; border-radius: 50%; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.season-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.season-card.due { box-shadow: 0 0 0 2px var(--green), 0 4px 16px rgba(16,40,70,.08); }
.season-card h3 { margin: 6px 0 0; }
.season-card .btn { align-self: flex-start; margin-top: auto; }
.season-art { border-radius: 10px; border-bottom: 5px solid; padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.season-art b { font-family: 'Questrial', sans-serif; font-size: 20px; line-height: 1.15; }
.season-art small { opacity: .85; font-size: 12.5px; }
.season-emoji { font-size: 30px; line-height: 1; }
.tp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tp-cat { border: 1px solid var(--line, #e4e8ee); border-radius: 10px; padding: 10px 12px; }
.tp-item { margin-left: 22px; font-size: 14px; }

/* toFace School: Vertretungsplan-Vorschau, Schulkalender */
.danger-text { color: #b42318; }
table.subst { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.subst th { text-align: left; background: #eef2f6; padding: 6px 8px; font-size: 12px; text-transform: uppercase; color: #4a5a6b; }
.subst td { padding: 6px 8px; border-top: 1px solid #e3e8ee; vertical-align: top; }
.subst tr.first td { border-top: 2px solid #c9d3de; }
.subst td.grp { font-weight: 800; white-space: nowrap; }
.subst tr.cancel td { color: #b42318; }
.subst s { color: #8a96a3; }
.cal-list { list-style: none; padding: 0; margin: 0; }
.cal-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line, #e4e8ee); }
.cal-list li:first-child { border-top: 0; }
.cal-list .when { min-width: 190px; font-weight: 700; }
.cal-list .kind-ferien .when { color: #1f7a3a; }
.cal-list .kind-schule .when { color: #9a5b00; }
.mensa-row { display: grid; grid-template-columns: 2fr 2fr 90px 150px auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.mensa-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.mensa-tags .check { white-space: nowrap; }
@media (max-width: 900px) { .mensa-row { grid-template-columns: 1fr 1fr; } }
fieldset.plain { border: 0; padding: 0; margin: 0; }
fieldset.plain legend { font-weight: 700; margin-bottom: 6px; }
/* toFace School: Notfall */
.pill-red { background: #b91c1c; }
.btn-danger { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.btn-danger:hover { background: #991b1b; }
.emerg-active { border: 3px solid #b91c1c; }
.emerg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.emerg-opt { border: 2px solid var(--c); border-radius: 10px; padding: 10px 12px; cursor: pointer; flex-direction: row; gap: 8px; align-items: flex-start; }
.emerg-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.emerg-opt:has(input:checked) { background: color-mix(in srgb, var(--c) 12%, #fff); }
.intern-toggle { background: #fff7ed; border-radius: 8px; padding: 8px 10px; }
.doc-tabs { margin-bottom: 12px; max-width: 520px; }
.doc-tabs a { flex: 1; text-align: center; padding: 8px; font-weight: 700; color: var(--muted); text-decoration: none; }
.doc-tabs a.on { background: var(--navy); color: #fff; }
/* Fernwartung (aus toFace Sign) */
.remote-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.remote-shot { display: block; position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.remote-shot img { width: 100%; display: block; }
.remote-shot small { position: absolute; right: 8px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.remote-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.remote-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 6px 0; }
.remote-info dt { color: var(--muted); } .remote-info dd { margin: 0; }
.remote-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
