/* Developed by Enjyn Gruppe — https://enjyn.de */

:root {
    --bg: #f6f4ee;
    --surface: #ffffff;
    --surface-2: #fbfaf6;
    --ink: #1b212b;
    --ink-soft: #515b69;
    --muted: #8b94a3;
    --line: #e7e3d8;
    --line-soft: #f0ece2;

    --brand: #0e5b49;
    --brand-strong: #0a4a3b;
    --brand-soft: #e6f0ea;
    --brand-tint: #f1f7f3;

    --gold: #b6873f;
    --danger: #c0392b;
    --danger-soft: #fbeae7;

    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --font-logo: "Nasalization", "Michroma", "Inter", sans-serif;

    --r-sm: 9px;
    --r: 13px;
    --r-lg: 20px;
    --pill: 999px;

    --shadow-sm: 0 1px 2px rgba(27, 33, 43, .06);
    --shadow: 0 14px 38px -18px rgba(20, 38, 32, .26);
    --shadow-lg: 0 30px 64px -26px rgba(20, 38, 32, .36);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --shell: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Versteckte Elemente bleiben versteckt, auch wenn Komponenten ein display setzen. */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
    outline-offset: 2px;
    border-radius: 4px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.main { flex: 1 0 auto; }

/* ---------- Single-Screen-Modus (nur Ticket-Seite) ---------- */
.page.stage-page { height: 100vh; height: 100dvh; overflow: hidden; }
.page.stage-page .main { flex: 1 1 auto; display: flex; overflow: hidden; min-height: 0; }

/* ---------- Topbar + Logo ---------- */
.topbar {
    flex: none;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__title { font-family: var(--font-logo); font-size: 1.32rem; font-weight: 400; letter-spacing: .015em; }
.brand__by { font-family: var(--font-logo); font-size: .6rem; letter-spacing: .34em; text-transform: lowercase; color: var(--brand); margin-top: 5px; }
.brand__own { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.topbar__nav { display: flex; align-items: center; gap: .5rem; }
.topbar__user { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-size: .9rem; font-weight: 500; }
.topbar__user i { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    padding: .8rem 1.25rem;
    border-radius: var(--pill);
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: default; transform: none; }
.btn i { font-size: 1.15em; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { --btn-bg: var(--brand-strong); box-shadow: var(--shadow-lg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-soft); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--brand); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Flash & Alerts ---------- */
.flash { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--r); font-weight: 500; border: 1px solid; }
.flash i { font-size: 1.25rem; flex: none; }
.flash--success { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-strong); }
.flash--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }

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

/* ---------- Stage (Ticket-Seite) ---------- */
.stage { flex: 1 1 auto; display: flex; align-items: center; padding-block: clamp(1rem, 3.5vh, 2.4rem); overflow: hidden; min-height: 0; }
.stage__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; min-height: 0; }

.intro { align-self: center; }
.intro__eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .4rem .8rem; border-radius: var(--pill); }
.intro__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 1.1rem; letter-spacing: -.02em; }
.intro__title em { color: var(--brand); font-style: italic; }
.intro__lead { margin-top: 1rem; font-size: 1.06rem; color: var(--ink-soft); max-width: 38ch; }
.intro__points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.intro__points li { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .95rem; }
.intro__points i { color: var(--brand); font-size: 1.3rem; flex: none; }

/* ---------- Wizard ---------- */
.wiz { display: flex; flex-direction: column; padding: clamp(1.3rem, 2.4vw, 1.9rem); max-height: 100%; }
.wiz__head { flex: none; margin-bottom: 1.1rem; }
.wiz__progress { display: flex; flex-direction: column; gap: .5rem; }
.wiz__count { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.wiz__count b { color: var(--brand); }
.wiz__count span { color: var(--muted); font-weight: 400; }
.wiz__bar { height: 6px; border-radius: var(--pill); background: var(--line-soft); overflow: hidden; }
.wiz__bar span { display: block; height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--brand), var(--brand-strong)); transition: width .35s var(--ease); }

.wiz__alert { display: flex; gap: .6rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); color: var(--danger); margin-bottom: 1rem; font-size: .9rem; }
.wiz__alert i { font-size: 1.3rem; flex: none; }
.wiz__alert strong { display: block; }
.wiz__alert ul { margin: .2rem 0 0; padding-left: 1.1rem; }

.wiz__view { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* Progressive Enhancement: ohne JS alle Schritte zeigen, mit JS nur den aktiven */
.wstep { display: block; }
.wstep + .wstep { margin-top: 1.6rem; }
.wiz.is-enhanced .wstep { display: none; }
.wiz.is-enhanced .wstep.is-active { display: block; animation: stepIn .32s var(--ease) both; }
.wiz.is-enhanced .wstep + .wstep { margin-top: 0; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.wstep__title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.wstep__hint { color: var(--ink-soft); margin-top: .25rem; margin-bottom: 1.1rem; font-size: .92rem; }
.wstep__error { display: flex; align-items: center; gap: .4rem; margin: .8rem 0 0; color: var(--danger); font-size: .88rem; font-weight: 500; }
.wstep__error::before { content: "\26A0"; }

.wiz__nav { flex: none; display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.wiz__spacer { flex: 1; }
/* Ohne JS: Navigation/Progress verstecken, Absenden zeigen */
.wiz:not(.is-enhanced) .wiz__head,
.wiz:not(.is-enhanced) [data-prev],
.wiz:not(.is-enhanced) [data-next] { display: none; }
.wiz:not(.is-enhanced) [data-submit][hidden] { display: inline-flex; }
.wiz:not(.is-enhanced) [data-error] { display: none; }

/* ---------- Kategorie-Grid (kompakt) ---------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.catcard { position: relative; cursor: pointer; }
.catcard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.catcard__inner {
    display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
    height: 100%; padding: .85rem .45rem .75rem;
    border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface);
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
    font-weight: 600; font-size: .73rem; line-height: 1.25; color: var(--ink-soft);
}
.catcard__inner i {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand); font-size: 1.4rem;
    transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.catcard__label { white-space: nowrap; }
.catcard:hover .catcard__inner { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.catcard:hover .catcard__inner i { transform: scale(1.08) rotate(-3deg); }
.catcard input:checked + .catcard__inner { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); transform: translateY(-2px); }
.catcard input:checked + .catcard__inner i { background: var(--brand); color: #fff; }
.catcard input:focus-visible + .catcard__inner { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Betriebssystem-Auswahl ---------- */
.osgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.oscard { position: relative; cursor: pointer; }
.oscard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.oscard__inner {
    display: flex; align-items: center; gap: .7rem; height: 100%;
    padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
    font-weight: 600; font-size: .92rem; color: var(--ink-soft);
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.oscard__inner i {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px;
    background: var(--brand-soft); color: var(--brand); font-size: 1.35rem;
    transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.oscard__inner span { white-space: nowrap; }
.oscard:hover .oscard__inner { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.oscard:hover .oscard__inner i { transform: scale(1.08); }
.oscard input:checked + .oscard__inner { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); transform: translateY(-2px); }
.oscard input:checked + .oscard__inner i { background: var(--brand); color: #fff; }
.oscard input:focus-visible + .oscard__inner { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Formularfelder ---------- */
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; gap: 1rem; }
.hint { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.counter { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

.input {
    width: 100%; font: inherit; color: var(--ink); background: var(--surface-2);
    border: 1.5px solid var(--line); border-radius: var(--r); padding: .75rem .95rem;
    transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.input--area { resize: vertical; min-height: 96px; }

.prio { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r); padding: .3rem; }
.prio__opt { position: relative; }
.prio__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.prio__opt span { display: block; text-align: center; padding: .5rem .3rem; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .16s var(--ease); }
.prio__opt:hover span { color: var(--ink); }
.prio__opt input:checked + span { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }
.prio__opt--hoch input:checked + span { color: var(--gold); }
.prio__opt--dringend input:checked + span { color: var(--danger); background: var(--danger-soft); }
.prio__opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

/* ---------- Bestätigung ---------- */
.confirm { padding: clamp(3rem, 9vw, 6rem) 0; }
.confirm__inner { max-width: 560px; margin-inline: auto; text-align: center; }
.confirm__icon { font-size: 4.5rem; color: var(--brand); line-height: 1; animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.6rem); margin-top: 1rem; }
.confirm__lead { color: var(--ink-soft); margin-top: .8rem; font-size: 1.08rem; }
.confirm__code { display: inline-flex; flex-direction: column; gap: .3rem; margin: 2rem auto 0; padding: 1.2rem 2.2rem; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: var(--r-lg); }
.confirm__code-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.confirm__code-value { font-family: ui-monospace, "SF Mono", monospace; font-size: 1.7rem; letter-spacing: .06em; color: var(--brand-strong); }
.confirm__actions { margin-top: 2rem; }
.confirm__hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.2rem; font-size: .9rem; color: var(--muted); }
.confirm__hint i { color: var(--brand); font-size: 1.2rem; }

/* ---------- Auth ---------- */
.authwrap { padding: clamp(2.5rem, 8vw, 5rem) 0; }
.authcard { max-width: 420px; margin-inline: auto; padding: clamp(1.8rem, 4vw, 2.6rem); }
.authcard__head { text-align: center; margin-bottom: 1.6rem; }
.authcard__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 1.7rem; margin-bottom: 1rem; }
.authcard__head h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.authcard__head p { color: var(--ink-soft); margin-top: .35rem; font-size: .95rem; }
.authform .btn { margin-top: .4rem; }

/* ---------- Admin ---------- */
.adminhead { padding: clamp(1.8rem, 5vw, 3rem) 0 1.5rem; }
.adminhead__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
.adminhead__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.adminhead__sub { color: var(--ink-soft); margin-top: .3rem; }
.search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--pill); padding: .35rem .35rem .35rem 1rem; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search i { color: var(--muted); font-size: 1.15rem; }
.search__input { border: 0; background: none; font: inherit; padding: .4rem 0; min-width: 180px; outline: none; color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1.6rem; }
.stat { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.stat--active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.stat__icon { font-size: 1.3rem; color: var(--muted); }
.stat__num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.stat.is-open .stat__icon { color: #2f6fb0; }
.stat.is-progress .stat__icon { color: var(--gold); }
.stat.is-wait .stat__icon { color: #7b6bbd; }
.stat.is-done .stat__icon { color: var(--brand); }

.tablewrap { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.tablecard { padding: .5rem; overflow: hidden; }
.ttable { width: 100%; border-collapse: separate; border-spacing: 0; }
.ttable th { text-align: left; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .8rem 1rem; }
.ttable td { padding: .85rem 1rem; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.ttable tbody tr { cursor: pointer; transition: background .16s var(--ease); }
.ttable tbody tr:first-child td { border-top: 0; }
.ttable tbody tr:hover { background: var(--brand-tint); }
.ttable tbody tr:hover .tavatar { background: var(--brand); color: #fff; }
.ttable tbody tr:hover .cell-action .btn { border-color: var(--brand); color: var(--brand); }

.tcell { display: flex; align-items: center; gap: .7rem; }
.tavatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: .95rem; transition: background .16s var(--ease), color .16s var(--ease); }
.tcell__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mono { font-family: ui-monospace, "SF Mono", monospace; font-size: .82rem; font-weight: 600; color: var(--brand-strong); white-space: nowrap; }
.cell-sub { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-subject { font-weight: 600; max-width: 280px; }

.catpill { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.catpill__ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; }

.cell-date { white-space: nowrap; }
.cell-date__d { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); }
.cell-date__t { display: block; font-size: .78rem; color: var(--muted); }
.cell-action { text-align: right; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.tag i { font-size: 1.05rem; color: var(--brand); }

.prio-badge { display: inline-block; font-size: .76rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--pill); }
.prio-badge--niedrig { background: #eef1f4; color: #5a6472; }
.prio-badge--normal { background: var(--brand-soft); color: var(--brand-strong); }
.prio-badge--hoch { background: #fbf1df; color: var(--gold); }
.prio-badge--dringend { background: var(--danger-soft); color: var(--danger); }

.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--pill); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--offen { background: #eaf2fb; color: #2f6fb0; }
.status--in_bearbeitung { background: #fbf1df; color: var(--gold); }
.status--wartet { background: #efecf9; color: #7b6bbd; }
.status--erledigt { background: var(--brand-soft); color: var(--brand-strong); }
.status--lg { font-size: .9rem; padding: .45rem 1rem; }

.empty { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; }
.empty i { font-size: 3rem; color: var(--muted); }
.empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-top: .8rem; }
.empty p { color: var(--ink-soft); margin-top: .4rem; }

/* ---------- Detail ---------- */
.detailwrap { padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.backlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.backlink:hover { color: var(--brand); text-decoration: none; }
.detailgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.detail { padding: clamp(1.5rem, 4vw, 2.4rem); }
.detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.detail__code { font-size: .85rem; }
.detail__subject { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: .3rem; }
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.3rem 0; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
.detail__time { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.detail__h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.detail__body { color: var(--ink); line-height: 1.7; }
.detailside { display: flex; flex-direction: column; gap: 1.4rem; }
.sidecard { padding: 1.5rem; }
.sidecard__title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; }
.sidecard__title i { color: var(--brand); font-size: 1.2rem; }
.sidecard__foot { font-size: .8rem; color: var(--muted); margin-top: .9rem; text-align: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1.2rem; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { flex: none; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; padding-block: .9rem; font-size: .85rem; }
.footer__brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.footer__brand-title { font-family: var(--font-logo); font-size: .98rem; color: var(--ink); }
.footer__brand-by { font-family: var(--font-logo); font-size: .54rem; letter-spacing: .3em; text-transform: lowercase; color: var(--brand); margin-top: 3px; }
.footer__sep { color: var(--muted); }
.footer__copy { color: var(--ink-soft); }
.footer__credit { color: var(--muted); margin-left: auto; }

/* ---------- Verlauf (lokal) ---------- */
.navbadge {
    display: inline-grid; place-items: center;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: var(--pill); background: var(--brand); color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 1; margin-left: .1rem;
}

body.no-scroll { overflow: hidden; }

.histov { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.histov__backdrop { position: absolute; inset: 0; background: rgba(20, 30, 26, .42); backdrop-filter: blur(3px); animation: fadeIn .2s var(--ease) both; }
.histov__panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 540px; max-height: 84vh;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
    animation: panelIn .28s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.histov__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.histov__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; }
.histov__head h2 i { color: var(--brand); }
.histov__x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-soft); cursor: pointer; font-size: 1.2rem; transition: background .15s var(--ease), color .15s var(--ease); }
.histov__x:hover { background: var(--danger-soft); color: var(--danger); }

.histov__body { padding: .8rem 1.4rem; overflow-y: auto; flex: 1 1 auto; }
.histov__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line-soft); }
.histov__note { font-size: .8rem; color: var(--muted); }

.histitem { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); }
.histitem:last-child { border-bottom: 0; }
.histitem__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.histitem__subject { font-weight: 600; margin-top: .35rem; }
.histitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: .4rem; font-size: .84rem; color: var(--muted); }
.histitem__dot { display: inline-flex; align-items: center; }
.histitem__dot::before { content: "·"; margin-right: .5rem; color: var(--line); }
.histitem__meta .tag { font-size: .84rem; }

.histempty { text-align: center; padding: 2.6rem 1rem; color: var(--ink-soft); }
.histempty i { font-size: 2.6rem; color: var(--muted); }
.histempty p { margin-top: .7rem; max-width: 30ch; margin-inline: auto; }

/* ---------- Buttons: Gefahr ---------- */
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--danger:hover { --btn-bg: #9c2f20; }

/* ---------- Admin: Mitarbeiter-Liste ---------- */
.empgrid { display: grid; grid-template-columns: 340px 1fr; gap: 1.4rem; align-items: start; }
.emp-newcard { padding: 1.5rem; }
.emp-listcol { display: flex; flex-direction: column; gap: .8rem; }
.emp-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; color: var(--ink); transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease); }
.emp-row:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.emp-row__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: linear-gradient(150deg, var(--brand), var(--brand-strong)); color: #fff; font-weight: 700; font-size: 1.1rem; }
.emp-row__avatar--lg { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 20px; }
.emp-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emp-row__name { font-weight: 600; }
.emp-row__sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-row__stats { display: flex; gap: .4rem; }
.emp-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: .25rem .6rem; border-radius: var(--pill); }
.emp-chip i { color: var(--brand); }
.emp-row__go { color: var(--muted); font-size: 1.2rem; }

/* ---------- Admin: Mitarbeiter-Detail ---------- */
.emp-detailhead { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; margin-bottom: 1.4rem; }
.emp-detailhead__name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.emp-detailhead__sub { color: var(--ink-soft); margin-top: .2rem; }
.emp-detailhead__seen { font-size: .85rem; color: var(--muted); margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; }

.linkcard { padding: 1.5rem; margin-bottom: 1.4rem; }
.linkcard__hint { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1rem; }
.linkbox { display: flex; gap: .6rem; }
.linkbox__input { font-family: ui-monospace, "SF Mono", monospace; font-size: .85rem; background: var(--surface-2); }
.linkcard__regen { margin-top: .9rem; }

.mb-admin { display: grid; grid-template-columns: 1fr 380px; gap: 1.4rem; align-items: start; }
.mb-admin__list { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mb-admin__h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.mb-admin__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-strong); font-size: .8rem; font-weight: 700; }
.mb-admin__form { padding: 1.5rem; position: sticky; top: 88px; }

.typegrid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.typecard { position: relative; cursor: pointer; }
.typecard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.typecard__inner { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-weight: 600; font-size: .85rem; color: var(--ink-soft); transition: all .16s var(--ease); }
.typecard__inner i { font-size: 1.3rem; color: var(--brand); }
.typecard:hover .typecard__inner { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); }
.typecard input:checked + .typecard__inner { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); }

.dangerzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding: 1rem 1.3rem; border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); border-radius: var(--r); background: var(--danger-soft); }
.dangerzone span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--danger); }

/* ---------- Konto / Passwort ändern ---------- */
.accountgrid { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.4rem; }
.account-id { margin-bottom: 0; }
.account-id .emp-row__avatar--lg { font-size: 2rem; }
.account-form { padding: 1.6rem; }
.account-hint { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.account-hint i { color: var(--brand); font-size: 1.05rem; }

/* ---------- Einstellungen ---------- */
.btn--icon { padding: .55rem .6rem; }
.settingswrap { max-width: 720px; margin-inline: auto; }
.settings-head { margin-bottom: 1.4rem; }
.settings-card { padding: 1.6rem; margin-bottom: 1.2rem; }
.settings-hint { display: block; margin-top: .45rem; font-size: .82rem; color: var(--muted); }
.settings-actions { display: flex; justify-content: flex-end; margin-top: .4rem; }
.reqlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.reqlist li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); }
.reqlist i { font-size: 1.25rem; }
.reqlist .is-ok i { color: var(--brand); }
.reqlist .is-bad { color: var(--danger); font-weight: 600; }
.reqlist .is-bad i { color: var(--danger); }
.settingswrap code { font-family: ui-monospace, "SF Mono", monospace; font-size: .88em; background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; }

.colorrow { display: flex; align-items: center; gap: .7rem; }
.colorpick { width: 52px; height: 46px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--r); background: none; cursor: pointer; }
.colorpick::-webkit-color-swatch-wrapper { padding: 4px; }
.colorpick::-webkit-color-swatch { border: 0; border-radius: 8px; }
.colorhex { max-width: 160px; font-family: ui-monospace, "SF Mono", monospace; }

.toggle { display: flex; align-items: flex-start; gap: .9rem; padding: .8rem 0; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid var(--line-soft); }
.toggle input { position: absolute; opacity: 0; }
.toggle__box { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; border-radius: var(--pill); background: var(--line); transition: background .18s var(--ease); }
.toggle__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease); }
.toggle input:checked + .toggle__box { background: var(--brand); }
.toggle input:checked + .toggle__box::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__box { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.toggle__text { display: flex; flex-direction: column; gap: .15rem; }
.toggle__text strong { font-weight: 600; font-size: .95rem; }
.toggle__text span { font-size: .85rem; color: var(--muted); }

.plan-upsell { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 1.3rem; border: 1.5px solid var(--brand); border-radius: var(--r); background: var(--brand-tint); }
.plan-upsell strong { font-size: 1.02rem; }
.plan-upsell p { color: var(--ink-soft); font-size: .88rem; margin-top: .2rem; }
.domain-status { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding: .7rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.domain-status code { font-family: ui-monospace, "SF Mono", monospace; font-size: .85rem; }
.smtp-head { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); font-weight: 600; font-size: .95rem; }
.smtp-head i { color: var(--brand); }
.smtp-test { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding: .9rem 1.3rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; color: var(--ink-soft); }
.smtp-test i { color: var(--brand); }

/* ---------- Postfach-Karte (geteilt) ---------- */
.mbcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.mbcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mbcard__head { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.mbcard__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; }
.mbcard--anleitung .mbcard__icon, .mbcard--notiz .mbcard__icon { background: #eef4ff; color: #2f6fb0; }
.mbcard__heading { flex: 1; min-width: 0; }
.mbcard__type { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mbcard__title { font-size: 1.08rem; font-weight: 600; margin-top: .1rem; }
.mbcard__del { margin-left: auto; }
.mbcard__delbtn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: all .15s var(--ease); }
.mbcard__delbtn:hover { background: var(--danger-soft); color: var(--danger); }

.mbcard__fields { display: flex; flex-direction: column; gap: .7rem; margin: 0; }
.mbfield { display: flex; flex-direction: column; gap: .2rem; }
.mbfield__label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.mbfield__plain, .mbfield__secret { display: flex; align-items: center; gap: .5rem; }
.mbfield__plainval, .mbfield__value, .mbfield__masked { font-size: .95rem; word-break: break-word; }
.mbfield__masked { letter-spacing: .12em; color: var(--ink-soft); }
.mbfield__value { font-family: ui-monospace, "SF Mono", monospace; }
.mbfield__text { font-size: .92rem; line-height: 1.6; white-space: pre-line; }
.mbfield__btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); cursor: pointer; font-size: 1rem; transition: all .15s var(--ease); }
.mbfield__btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.mbfield__btn.is-done { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- Mitarbeiter-Dashboard ---------- */
.emp-locked { padding: clamp(3rem, 10vw, 6rem) 0; }
.emp-locked__inner { max-width: 480px; margin-inline: auto; text-align: center; }
.emp-locked__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); font-size: 2.1rem; margin-bottom: 1.1rem; }
.emp-locked h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; }
.emp-locked p { color: var(--ink-soft); margin: .8rem 0 1.6rem; }

.emp-hero { padding: clamp(1.6rem, 4vw, 2.6rem) 0 0; }
.emp-greet { position: relative; overflow: hidden; padding: clamp(1.8rem, 4vw, 2.8rem); background: linear-gradient(135deg, var(--brand-tint), var(--surface) 70%); animation: riseIn .5s var(--ease) both; }
.emp-greet__hi { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--brand); }
.emp-greet__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .5rem; }
.emp-greet__lead { color: var(--ink-soft); margin-top: .7rem; max-width: 46ch; font-size: 1.05rem; }
.emp-greet__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.emp-greet__art { position: absolute; top: 0; right: 0; bottom: 0; width: 240px; pointer-events: none; }
.emp-bubble { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--brand); animation: floaty 5s ease-in-out infinite; }
.emp-bubble--1 { width: 62px; height: 62px; font-size: 1.6rem; top: 22%; right: 30%; }
.emp-bubble--2 { width: 50px; height: 50px; font-size: 1.3rem; top: 52%; right: 12%; animation-delay: .8s; }
.emp-bubble--3 { width: 46px; height: 46px; font-size: 1.2rem; top: 16%; right: 8%; animation-delay: 1.6s; color: #2f6fb0; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.emp-section { padding: clamp(1.6rem, 4vw, 2.4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.emp-banner { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; border-radius: var(--r); background: #fbf6e9; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: #7a5b22; font-size: .92rem; margin-bottom: 1.8rem; }
.emp-banner i { font-size: 1.3rem; flex: none; color: var(--gold); }
.emp-banner i.ph-copy { font-size: 1rem; vertical-align: -2px; }

.emp-secthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.emp-secthead--mt { margin-top: 2.4rem; }
.emp-secthead h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.emp-secthead h2 i { color: var(--brand); }
.emp-secthead__count { font-size: .85rem; color: var(--muted); font-weight: 500; }

.mbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.mbgrid .mbcard { animation: riseIn .45s var(--ease) both; }

.emp-empty { text-align: center; padding: 2.4rem 1.5rem; color: var(--ink-soft); }
.emp-empty i { font-size: 2.4rem; color: var(--muted); }
.emp-empty p { margin-top: .6rem; }

.emp-ticketlist { display: flex; flex-direction: column; gap: .7rem; }
.emp-ticket { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; }
.emp-ticket__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.emp-ticket__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emp-ticket__subject { font-weight: 600; }
.emp-ticket__meta { font-size: .82rem; color: var(--muted); }
.emp-ticket__meta .mono { display: inline; }

/* ---------- Landing-Page ---------- */
.lp-hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); text-align: center; }
.lp-hero__inner { max-width: 760px; margin-inline: auto; }
.lp-hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 1.1rem; letter-spacing: -.02em; }
.lp-hero__title em { color: var(--brand); font-style: italic; }
.lp-hero__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.2rem auto 0; max-width: 56ch; }
.lp-hero__cta { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 2rem; }
.lp-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.lp-hero__note { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); }
.lp-hero__note i { color: var(--brand); }

.lp-features { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1.6rem; margin-bottom: 1rem; }
.lp-card h3 { font-size: 1.12rem; font-weight: 600; }
.lp-card p { color: var(--ink-soft); margin-top: .4rem; font-size: .95rem; }

.lp-pricing { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem); }
.lp-pricing__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; margin-bottom: 2rem; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; max-width: 820px; margin-inline: auto; }
.lp-plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.lp-plan--pro { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.lp-plan__badge { position: absolute; top: -12px; left: 2rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: var(--pill); }
.lp-plan__name { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.lp-plan__price { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; margin: .3rem 0 1.2rem; }
.lp-plan__price span { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; color: var(--muted); }
.lp-plan__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.lp-plan__list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; }
.lp-plan__list i { color: var(--brand); font-size: 1.1rem; flex: none; margin-top: .1rem; }
.lp-plan__list .is-muted { color: var(--muted); }
.lp-plan__list .is-muted i { color: var(--muted); }
.lp-plan__list code { font-family: ui-monospace, monospace; font-size: .82em; background: var(--surface-2); padding: .05rem .3rem; border-radius: 5px; }

/* ---------- Onboarding ---------- */
.ob-wrap { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.ob-card { max-width: 520px; margin-inline: auto; padding: clamp(1.8rem, 4vw, 2.6rem); }
.ob-head { margin-bottom: 1.6rem; }
.ob-step { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--brand-soft); padding: .35rem .8rem; border-radius: var(--pill); }
.ob-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; margin-top: .8rem; }
.ob-head p { color: var(--ink-soft); margin-top: .4rem; }
.ob-slug { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.ob-slug:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ob-slug .input { border: 0; box-shadow: none; background: none; flex: 1; }
.ob-slug__suffix { display: flex; align-items: center; padding: 0 .9rem; color: var(--muted); font-size: .92rem; background: var(--line-soft); white-space: nowrap; }
.ob-foot { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.ob-foot i { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .page.stage-page { height: auto; min-height: 100vh; overflow: visible; }
    .page.stage-page .main { overflow: visible; }
    .stage { overflow: visible; }
    .stage__inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .intro { text-align: center; }
    .intro__lead { margin-inline: auto; }
    .intro__points { max-width: 22rem; margin-inline: auto; text-align: left; }
    .detailgrid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .tablecard { overflow-x: auto; }
    .ttable { min-width: 720px; }
    .empgrid { grid-template-columns: 1fr; }
    .mb-admin { grid-template-columns: 1fr; }
    .mb-admin__form { position: static; }
    .emp-greet__art { display: none; }
    .emp-greet__lead { max-width: none; }
}
@media (max-width: 600px) {
    .intro { display: none; }
    .catgrid { grid-template-columns: repeat(3, 1fr); }
    .osgrid { grid-template-columns: repeat(2, 1fr); }
    .prio { grid-template-columns: repeat(2, 1fr); }
    .topbar__user { display: none; }
    .footer__credit { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
