/* Look angelehnt an das Schulungsflow-Dashboard: Manrope, Slate, weiße Karten, Emerald-Akzent */
:root {
  --bg: #f8fafc; --card: #ffffff; --ink: #0f172a; --ink-2: #334155; --ink-soft: #64748b; --mute: #94a3b8;
  --line: #e2e8f0; --line-2: #cbd5e1; --field: #ffffff;
  --accent: #059669; --accent-dark: #047857; --accent-tint: #d1fae5; --accent-soft: #ecfdf5;
  --warn: #b45309; --warn-tint: #fef3c7; --bad: #dc2626; --bad-tint: #fee2e2;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-lg: 28px; --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.06);
  --shadow-lg: 0 18px 45px rgba(15,23,42,.12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 500; letter-spacing: -.018em; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -.045em; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: none; background: none; }
.serif { font-family: var(--font); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow, .label { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; min-height: 46px;
  padding: 0 20px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--line-2); }
.btn-terra { background: var(--accent); color: #fff; }
.btn-terra:hover { background: var(--accent-dark); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-danger { color: var(--bad); border: 1px solid #fecaca; background: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }

/* Forms */
label.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field { width: 100%; min-height: 46px; border: 1px solid var(--line-2); background: var(--field); border-radius: 12px;
  padding: 10px 13px; font-size: 15px; outline: none; }
.field::placeholder { color: var(--mute); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(5,150,105,.14); }
textarea.field { resize: vertical; min-height: 120px; }
.msg { font-size: 13px; font-weight: 600; margin-top: 10px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--accent-dark); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* App shell (Portal + Admin) */
.app-header { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; max-width: 1120px; margin: 0 auto; }
.app-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.app-brand .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.app-brand small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.app-user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.app-user a { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 10px; }
.app-user a:hover { background: #f1f5f9; }
.app-user button { font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; color: var(--ink-2); }

.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-box { width: 100%; max-width: 430px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.login-card { padding: 32px 28px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 30px; margin-bottom: 6px; }
.login-card .sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; margin-top: 4px; }
.login-alt { margin-top: 14px; text-align: center; font-size: 13.5px; }
.login-alt button { color: var(--accent-dark); font-weight: 700; }
.login-alt button:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.login-foot a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.demo-note { margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: var(--warn-tint); color: #78350f; font-size: 13px; line-height: 1.5; }
.demo-note code { font-size: 12px; font-weight: 700; }

/* Kalender */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.cal h4 { font-size: 14px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 11px; text-align: center; color: var(--mute); font-weight: 700; padding-bottom: 2px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; border-radius: 8px; background: #f1f5f9; color: var(--mute); }
.cal-day.b { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.own { background: #94a3b8; color: #fff; }
.cal-day.x { background: transparent; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.cal-day.b.today { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.legend span { display: flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw-b { background: var(--accent); } .sw-own { background: #94a3b8; } .sw-free { background: #f1f5f9; border: 1px solid var(--line); }
.app-brand { white-space: nowrap; }
@media (max-width: 480px) { .app-brand small { display: none; } .app-user { gap: 4px; } }
