/* Verwaltung. Übernimmt Formular- und Kalenderstile der Buchung aus studio.css. */
@import url("studio.css");

:root {
  --vw-seite: #1e2430;
  --vw-grund: #f4f5f7;
  --blau: #2f5fd0;
}

body.vw { background: var(--vw-grund); font-size: 15px; }
.vw h1 { font-family: var(--schrift); font-weight: 700; font-size: 1.7rem; margin: 0; }
.vw h1 small { font-weight: 400; color: var(--text-2); font-size: 1rem; }
.vw h2 { font-family: var(--schrift); font-weight: 700; font-size: 1.05rem; margin-bottom: .8em; }
.vw h2 small { font-weight: 400; color: var(--text-2); }
.vw h3 { font-family: var(--schrift); font-weight: 700; font-size: .95rem; margin-top: 1.5em; }
.untertitel { color: var(--text-2); margin-top: .2em; }
.hinweis { color: var(--text-2); font-size: .92rem; max-width: 760px; }
.klein { font-size: .85rem; color: var(--text-2); }
.leer { color: var(--text-2); font-style: italic; }

.vw-demo { background: #0f2a4a; color: #dbe5f3; font-size: .85rem; padding: 7px 16px; text-align: center; }
.vw-demo a { color: #f59e42; }

.vw-rahmen { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.vw-seite { background: var(--vw-seite); color: #c9cfdb; padding: 20px 14px; }
.vw-marke { display: flex; flex-direction: column; color: #fff; text-decoration: none; font-family: var(--titel); font-size: 1.3rem; line-height: 1.15; margin: 0 8px 24px; }
.vw-marke small { font-family: var(--schrift); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8d97aa; }
.vw-seite nav { display: flex; flex-direction: column; gap: 2px; }
.vw-seite nav a { display: flex; gap: 10px; align-items: center; color: #c9cfdb; text-decoration: none; padding: 9px 10px; border-radius: 8px; }
.vw-seite nav a span { width: 18px; text-align: center; opacity: .7; }
.vw-seite nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.vw-seite nav a[aria-current="page"] { background: var(--haupt); color: #fff; }
.vw-abmelden { margin-top: 18px; opacity: .7; }
.vw-menu { display: none; }
.vw-inhalt { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }

@media (max-width: 860px) {
  .vw-rahmen { grid-template-columns: 1fr; min-height: 0; }
  .vw-seite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 16px; }
  .vw-marke { margin: 0; }
  .vw-menu { display: block; background: none; border: 1px solid #444c5c; color: #fff; border-radius: 8px; font-size: 1.3rem; width: 44px; height: 40px; cursor: pointer; }
  .vw-seite nav { display: none; width: 100%; margin-top: 10px; }
  .menu-offen .vw-seite nav { display: flex; }
}

.vw-meldung { background: #e3f3ea; color: #1d5e3d; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.vw-fehler { background: #fbeae8; color: var(--rot); padding: 10px 14px; border-radius: 8px; }

.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.knopf-gruppe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vw .knopf { border-radius: 8px; padding: .55em 1em; font-size: .92rem; }
.knopf-hell { background: #fff; color: var(--text); border: 1px solid #d8dbe1; }
.knopf-hell:hover { background: #f0f1f4; color: var(--text); }
.knopf-klein { padding: .35em .75em !important; font-size: .85rem !important; }
.knopf-gefahr { background: #fff; color: var(--rot); border: 1px solid #e7c3be; }
.knopf-gefahr:hover { background: #fbeae8; color: var(--rot); }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.karte { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; padding: 20px; margin-bottom: 18px; min-width: 0; }
.karte-flach { padding: 0; overflow-x: auto; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.spalten-breit-links { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 1000px) { .spalten, .spalten-breit-links { grid-template-columns: 1fr; } }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 20px 0; }
.kachel { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; padding: 16px 18px; color: var(--text); text-decoration: none; }
.kachel p { margin: 0; color: var(--text-2); font-size: .88rem; }
.kachel .kachel-wert { font-size: 1.6rem; font-weight: 700; color: var(--text); }
a.kachel:hover { border-color: var(--haupt); }

.termin-liste { list-style: none; margin: 0; padding: 0; }
.termin-liste a { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eef0f3; color: var(--text); text-decoration: none; align-items: center; }
.termin-liste li:last-child a { border-bottom: 0; }
.termin-liste a:hover { background: #fafbfc; }
.termin-liste .zeit { font-variant-numeric: tabular-nums; color: var(--text-2); }
.termin-liste small { color: var(--text-2); }
.termin-liste .betrag { font-weight: 600; }

.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid #e3e5ea; }
.tabelle td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle small { color: var(--text-2); }
.klickbar { cursor: pointer; }
.klickbar:hover td { background: #fafbfc; }
.rechts { text-align: right; }
.durchgestrichen td { text-decoration: line-through; color: #a0a6b2; }
@media (max-width: 700px) { .nur-breit { display: none; } }

.marke-rot, .marke-gruen, .marke-blau { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; text-decoration: none; }
.marke-rot { background: #fbeae8; color: var(--rot); }
.marke-gruen { background: #e3f3ea; color: #1d5e3d; }
.marke-blau { background: #e6edfb; color: var(--blau); }

.suche input { font: inherit; padding: 8px 12px; border: 1px solid #d8dbe1; border-radius: 8px; width: 280px; max-width: 100%; }

.daten { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; margin: 0 0 18px; }
.daten dt { color: var(--text-2); }
.daten dd { margin: 0; }
.notiz { background: #fff8e6; border-radius: 8px; padding: 10px 12px; font-size: .92rem; }

.formular, .feld { display: flex; flex-direction: column; gap: 12px; }
.formular label, .feld { font-weight: 600; font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.formular input, .formular textarea, .feld select, .feld textarea, .leistung-form input, .leistung-form textarea, .option-neu input, .plan input {
  font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #d8dbe1; border-radius: 8px; background: #fff;
}
.formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formular button { align-self: flex-start; }
.vw .felder { margin-top: 12px; }

/* Kalender-Woche */
.woche { display: grid; grid-template-columns: 48px repeat(7, minmax(110px, 1fr)); background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; overflow-x: auto; }
.woche-achse { position: relative; margin-top: 40px; height: var(--hoehe); }
.woche-achse span { position: absolute; right: 6px; font-size: .72rem; color: var(--text-2); transform: translateY(-50%); }
.woche-tag { border-left: 1px solid #eef0f3; min-width: 110px; }
.woche-kopf { height: 40px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: .85rem; color: var(--text-2); border-bottom: 1px solid #e3e5ea; }
.ist-heute .woche-kopf { color: var(--haupt); background: var(--haupt-hell); }
.woche-spalte { position: relative; height: var(--hoehe); background: repeating-linear-gradient(#f4f5f7 0 1px, #f8f9fa 1px 66px); }
.bereich-offen { position: absolute; left: 0; right: 0; background: #fff; }
.bereich-gesperrt { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #eceef2 0 6px, #f7f8fa 6px 12px); font-size: .75rem; color: var(--text-2); padding: 4px 6px; }
.termin { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 6px; font-size: .75rem; line-height: 1.25; overflow: hidden; text-decoration: none; color: #fff; border-left: 3px solid rgba(0, 0, 0, .25); }
.termin strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.termin span { display: block; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.termin .web { position: absolute; right: 5px; top: 3px; font-style: normal; font-size: .6rem; color: #fff; }
.termin:hover { filter: brightness(1.08); }
.kat-0 { background: #8c5a4a; } .kat-1 { background: #3f7d6e; } .kat-2 { background: #5a62a8; } .kat-3 { background: #b07a2a; } .kat-4 { background: #7a4f86; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; margin-top: 12px; }
.legende span:not(.leg-web) { color: #fff; padding: 2px 10px; border-radius: 6px; }
.leg-web { color: var(--text-2); }

/* Statistik */
.balken-monate { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 240px; align-items: end; }
.balken-spalte { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.balken { width: 100%; max-width: 64px; background: var(--haupt); border-radius: 6px 6px 0 0; min-height: 2px; }
.balken-wert { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.balken-label { font-size: .82rem; color: var(--text-2); display: flex; flex-direction: column; align-items: center; }
.balken-label small { font-size: .72rem; }
.balken-tabelle td { vertical-align: middle; }
.balken-zelle { width: 45%; }
.balken-h { height: 14px; background: var(--haupt); border-radius: 0 4px 4px 0; min-width: 2px; }

/* Leistungen */
.leistung-karte.inaktiv { opacity: .6; }
.leistung-form { display: grid; grid-template-columns: 2fr 1.3fr 90px 110px auto; gap: 10px; align-items: end; }
.leistung-form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.leistung-form .voll { grid-column: 1 / -2; }
.leistung-form .haken { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 10px; }
.leistung-form button { justify-self: start; }
@media (max-width: 900px) { .leistung-form { grid-template-columns: 1fr 1fr; } .leistung-form .gross, .leistung-form .voll { grid-column: 1 / -1; } }
.optionen-verwaltung { border-top: 1px solid #eef0f3; margin-top: 14px; padding-top: 4px; }
.option-zeile { display: grid; grid-template-columns: 1fr 80px 90px 110px; gap: 10px; padding: 6px 0; font-size: .92rem; border-bottom: 1px dashed #eef0f3; align-items: center; }
.option-zeile.inaktiv span { color: #a0a6b2; text-decoration: line-through; }
.option-neu { display: grid; grid-template-columns: 1fr 80px 90px auto; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .option-zeile, .option-neu { grid-template-columns: 1fr 1fr; } }

/* Arbeitszeiten */
.plan-zeile { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef0f3; }
.plan-bereich { display: flex; align-items: center; gap: 4px; }
.plan-bereich input { width: 100%; min-width: 0; padding: 6px 6px; }
.plan .knopf { margin-top: 14px; }
@media (max-width: 560px) { .plan-zeile { grid-template-columns: 1fr; } }
.sperr-liste { list-style: none; padding: 0; margin: 0; }
.sperr-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef0f3; font-size: .92rem; }

/* Postausgang */
.postfach { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .postfach { grid-template-columns: 1fr; } }
.post-liste { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; overflow: hidden; }
.post-liste a { display: flex; flex-direction: column; padding: 10px 14px; border-bottom: 1px solid #eef0f3; color: var(--text); text-decoration: none; font-size: .9rem; }
.post-liste small { color: var(--text-2); }
.post-liste .aktiv a { background: var(--haupt-hell); }
.post-inhalt { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; overflow: hidden; }
.post-inhalt .mail-kopf { background: #f8f9fa; padding: 12px 16px; margin: 0; border-bottom: 1px solid #e3e5ea; font-size: .9rem; }
.post-inhalt .mail-kopf span { display: inline-block; width: 80px; color: var(--text-2); }
.post-inhalt pre { white-space: pre-wrap; font-family: inherit; padding: 16px; margin: 0; }
.post-inhalt p:last-child { padding: 0 16px 14px; margin: 0; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, var(--warm), var(--haupt-hell)); }
.login-box { background: #fff; padding: 32px; border-radius: 16px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .1); }
.login-box .vw-marke { color: var(--text); margin: 0 0 6px; }
.login-box label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.login-box input { font: inherit; padding: 10px 12px; border: 1px solid #d8dbe1; border-radius: 8px; }
.login-box .knopf { border-radius: 8px; }
.login-box .klein { margin: 0; }
