/* Buchungsportal KFZ Pinger
   Das Farb- und Schriftbild entspricht der Hauptseite kfz-pinger.de,
   damit Portal und Website als ein Auftritt wahrgenommen werden. */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
    --black: #0C0C10;
    --bg: #14141A;
    --bg-light: #1C1C24;
    --bg-mid: #252530;
    --border: #2E2E3A;
    --border-soft: #24242E;
    --blue: #1B4D8E;
    --blue-light: #2566B5;
    --blue-glow: rgba(27, 77, 142, .25);
    --white: #FFFFFF;
    --text: #D0D0D8;
    --text-muted: #8A8A9A;
    --text-faint: #6A6A7A;
    --green: #2E9E63;
    --green-soft: rgba(46, 158, 99, .14);
    --amber: #C88A22;
    --amber-soft: rgba(200, 138, 34, .14);
    --red: #C4483F;
    --red-soft: rgba(196, 72, 63, .14);
    --side-pad: clamp(20px, 5vw, 64px);
    --max-w: 1240px;
    --radius: 10px;
    --radius-lg: 16px;
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5 { color: var(--white); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--white); }
img { display: block; max-width: 100%; }
strong, b { color: var(--white); font-weight: 600; }
small { font-size: 13px; }
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--side-pad); width: 100%; }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 1000px; }

/* ---------- Kopfbereich ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 12, 16, .94);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: flex; align-items: center; gap: 14px; }
.site-logo img { height: 40px; width: auto; }
.site-logo .tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); border-left: 1px solid var(--border); padding-left: 14px; }
.site-nav { display: flex; align-items: center; gap: 26px; list-style: none; }
.site-nav a { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.78); position: relative; }
.site-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1.5px; background: var(--blue-light); transition: width .3s; }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* ---------- Grundgerüst ---------- */

.page { flex: 1 0 auto; padding: 48px 0 80px; }
.page--tight { padding-top: 32px; }
.page-head { margin-bottom: 36px; }
.page-head .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px; }
.page-head p.lead { color: var(--text-muted); font-size: 17px; font-weight: 300; max-width: 620px; margin-top: 12px; }

.site-footer { background: var(--black); border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; font-weight: 600; }
.footer-grid p, .footer-grid li { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.footer-grid ul { list-style: none; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-faint); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Schaltflächen ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; font-size: 15px; font-weight: 600;
    border-radius: 8px; border: none; cursor: pointer;
    font-family: inherit; line-height: 1.3; text-align: center;
    transition: background .25s, transform .2s, box-shadow .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-light); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 26px var(--blue-glow); }
.btn-secondary { background: rgba(255,255,255,.07); color: #fff; border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.13); border-color: var(--blue-light); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { color: #fff; border-color: var(--blue-light); }
.btn-danger { background: transparent; color: #E8867C; border: 1px solid rgba(196,72,63,.45); }
.btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 7px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row--end { justify-content: flex-end; }

/* ---------- Karten ---------- */

.card {
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
}
.card--flat { background: var(--bg); }
.card--pad-sm { padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin-bottom: 0; }
.card-header .sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.card-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-sidebar { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 32px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- Fahrzeugkarten ---------- */

.offer-card {
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .35s, transform .35s, box-shadow .35s;
}
.offer-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 34px rgba(0,0,0,.32); }
.offer-media { position: relative; aspect-ratio: 16/10; background: var(--black); overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-media .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg, var(--bg-mid), var(--black)); color: var(--text-faint); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.offer-media .badge-float { position: absolute; top: 16px; left: 16px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 6px 12px; border-radius: 6px; }
.offer-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3 { margin-bottom: 6px; }
.offer-body .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.offer-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.offer-specs li { font-size: 12.5px; color: var(--text); background: var(--bg-mid); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.offer-price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.offer-price .from { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }
.offer-price .amount { font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.1; }
.offer-price .unit { font-size: 14px; color: var(--text-muted); }

/* ---------- Preistabelle ---------- */

.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tier-table td { padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; color: var(--white); font-weight: 600; }
.tier-table tr.is-active td { color: var(--white); }
.tier-table tr.is-active td:first-child::before { content: '▸ '; color: var(--blue-light); }

/* ---------- Formulare ---------- */

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 7px; letter-spacing: .01em; }
.field .hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.5; }
.field .error { font-size: 13px; color: #E8867C; margin-top: 6px; }
.required::after { content: ' *'; color: var(--blue-light); }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=number], input[type=url],
input[type=datetime-local], input[type=search], select, textarea {
    width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
    color: var(--white); background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; transition: border-color .25s, box-shadow .25s, background .25s;
    line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(37,102,181,.18); background: var(--bg-light);
}
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); }
textarea { resize: vertical; min-height: 96px; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238A8A9A' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    padding-right: 38px;
}
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }

.check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; cursor: pointer; }
.check:last-child { margin-bottom: 0; }
.check input[type=checkbox], .check input[type=radio] {
    width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; cursor: pointer;
    accent-color: var(--blue-light);
}
.check span { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.check span a { text-decoration: underline; text-underline-offset: 3px; }
.check--boxed { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.check--boxed:hover { border-color: var(--blue-light); }

.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.field-row--wide-first { grid-template-columns: 2fr 1fr; }
.field-row--narrow-first { grid-template-columns: 1fr 2fr; }
.fieldset { border: none; margin-bottom: 26px; }
.fieldset:last-child { margin-bottom: 0; }
.fieldset > legend { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 16px; padding: 0; }

/* ---------- Meldungen ---------- */

.alert { border-radius: 10px; padding: 15px 18px; font-size: 14.5px; line-height: 1.65; margin-bottom: 22px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.alert:last-child { margin-bottom: 0; }
.alert strong { display: block; margin-bottom: 3px; }
.alert ul { margin: 6px 0 0 18px; }
.alert-info { background: rgba(37,102,181,.10); border-color: rgba(37,102,181,.35); color: var(--text); }
.alert-success { background: var(--green-soft); border-color: rgba(46,158,99,.4); color: #A8E0C2; }
.alert-warning { background: var(--amber-soft); border-color: rgba(200,138,34,.4); color: #EBC98A; }
.alert-error { background: var(--red-soft); border-color: rgba(196,72,63,.45); color: #F0A69E; }
.alert .icon { flex-shrink: 0; font-size: 16px; line-height: 1.5; }

.note-box { background: rgba(37,102,181,.08); border-left: 3px solid var(--blue-light); border-radius: 0 9px 9px 0; padding: 16px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.note-box strong { color: var(--white); }

/* ---------- Kennzeichnungen ---------- */

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge-neutral { background: var(--bg-mid); border-color: var(--border); color: var(--text-muted); }
.badge-blue { background: rgba(37,102,181,.16); border-color: rgba(37,102,181,.4); color: #8FB8E8; }
.badge-green { background: var(--green-soft); border-color: rgba(46,158,99,.4); color: #7ED4A5; }
.badge-amber { background: var(--amber-soft); border-color: rgba(200,138,34,.4); color: #E5C079; }
.badge-red { background: var(--red-soft); border-color: rgba(196,72,63,.42); color: #E8938B; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-grey { background: var(--text-faint); }

/* ---------- Beschreibungslisten ---------- */

.dl { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 22px; font-size: 14.5px; }
.dl dt { color: var(--text-muted); }
.dl dd { color: var(--white); }
.dl--lines { gap: 0; }
.dl--lines dt, .dl--lines dd { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.dl--lines dt { padding-right: 20px; }
.dl--lines > :nth-last-child(-n+2) { border-bottom: none; }

/* ---------- Tabellen ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-light); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
table.data th {
    text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-faint);
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    background: var(--bg-mid); white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: rgba(255,255,255,.026); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data .primary-cell { color: var(--white); font-weight: 600; }
table.data .muted { color: var(--text-faint); font-size: 13px; }
.table-empty { padding: 44px 20px; text-align: center; color: var(--text-faint); font-size: 14.5px; }

/* ---------- Kalender ---------- */

.calendar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.calendar-head .month { font-weight: 700; color: var(--white); font-size: 16px; }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button, .calendar-nav a {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 7px;
    color: var(--text); cursor: pointer; font-size: 15px; transition: all .2s;
}
.calendar-nav button:hover:not(:disabled), .calendar-nav a:hover { border-color: var(--blue-light); color: #fff; }
.calendar-nav button:disabled { opacity: .35; cursor: not-allowed; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .dow { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 6px 0 10px; font-weight: 600; }
.cal-day {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 7px; font-size: 14px; border: 1px solid transparent;
    background: var(--bg-light); color: var(--text); cursor: pointer;
    font-family: inherit; transition: all .18s; position: relative; padding: 0;
}
.cal-day:hover:not(:disabled) { border-color: var(--blue-light); color: #fff; }
.cal-day.is-empty { background: transparent; cursor: default; }
.cal-day.is-past, .cal-day.is-closed { background: transparent; color: var(--text-faint); opacity: .4; cursor: not-allowed; }
.cal-day.is-blocked { background: rgba(196,72,63,.13); color: #C08A85; cursor: not-allowed; }
.cal-day.is-partial { background: var(--amber-soft); color: #E5C079; }
.cal-day.is-free { background: var(--bg-light); }
.cal-day.is-selected { background: var(--blue); color: #fff; border-color: var(--blue-light); font-weight: 700; }
.cal-day.is-range { background: rgba(27,77,142,.32); color: #fff; }
.cal-day .marker { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-light); }
.cal-day.is-selected .marker { background: #fff; }
button.cal-day.is-free { border-color: rgba(37, 102, 181, .32); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Zeitfenster ---------- */

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 9px; }
.slot {
    padding: 13px 10px; text-align: center; border-radius: 9px; cursor: pointer;
    background: var(--bg-light); border: 1px solid var(--border);
    color: var(--text); font-size: 14.5px; font-weight: 500; font-family: inherit;
    transition: all .2s;
}
.slot:hover:not(:disabled) { border-color: var(--blue-light); color: #fff; transform: translateY(-1px); }
.slot.is-selected { background: var(--blue); border-color: var(--blue-light); color: #fff; font-weight: 700; }
.slot:disabled, .slot.is-busy { opacity: .32; cursor: not-allowed; text-decoration: line-through; }
.slot-group + .slot-group { margin-top: 22px; }
.slot-group h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; font-weight: 600; }

/* ---------- Preisübersicht ---------- */

.summary { position: sticky; top: 92px; }
.summary-lines { list-style: none; }
.summary-lines li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
.summary-lines li:last-child { border-bottom: none; }
.summary-lines .label { color: var(--text-muted); }
.summary-lines .label small { display: block; color: var(--text-faint); font-size: 12.5px; }
.summary-lines .value { color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.summary-total .label { font-size: 15px; color: var(--white); font-weight: 600; }
.summary-total .value { font-size: 28px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.summary-vat { font-size: 12.5px; color: var(--text-faint); text-align: right; margin-top: 4px; }

/* ---------- Fortschritt ---------- */

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-faint); }
.step .num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-mid); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.step.is-active { color: var(--white); }
.step.is-active .num { background: var(--blue); border-color: var(--blue-light); color: #fff; }
.step.is-done { color: var(--text-muted); }
.step.is-done .num { background: var(--green-soft); border-color: rgba(46,158,99,.45); color: #7ED4A5; }
.step-sep { width: 26px; height: 1px; background: var(--border); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--black); border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, rgba(27,77,142,.22), transparent 58%); }
.hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { max-width: 700px; margin-bottom: 18px; }
.hero p { max-width: 560px; color: var(--text-muted); font-size: 17px; font-weight: 300; margin-bottom: 30px; }
.hero .accent { color: var(--blue-light); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tile {
    background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 38px 34px; display: flex; flex-direction: column;
    transition: border-color .35s, transform .35s, box-shadow .35s; position: relative; overflow: hidden;
}
.tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); opacity: 0; transition: opacity .35s; }
.tile:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 22px; margin-bottom: 12px; }
.tile > p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }
.tile ul { list-style: none; margin-bottom: 28px; }
.tile ul li { padding: 7px 0; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.tile ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); flex-shrink: 0; }
.tile .btn { margin-top: auto; }

/* ---------- Rechtstexte ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 15px; line-height: 1.85; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hilfsklassen ---------- */

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.big-amount { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* ---------- Verwaltungsbereich ---------- */

.admin-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--black); border-right: 1px solid var(--border); padding: 22px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .brand { padding: 0 22px 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.admin-side .brand img { height: 32px; }
.admin-side .brand .tag { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }
.admin-nav { list-style: none; padding: 0 12px; }
.admin-nav .group { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); padding: 18px 10px 8px; font-weight: 600; }
.admin-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text);
    transition: background .2s, color .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.is-active { background: rgba(27,77,142,.24); color: #fff; font-weight: 600; }
.admin-nav .count { font-size: 11.5px; background: var(--bg-mid); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--text-muted); }
.admin-side .side-foot { margin-top: auto; padding: 18px 22px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }
.admin-side .side-foot .name { color: var(--white); font-weight: 600; font-size: 14px; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 20; background: rgba(20,20,26,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 22px; }
.admin-top .crumbs { font-size: 12.5px; color: var(--text-faint); margin-bottom: 3px; }
.admin-top .crumbs a { color: var(--text-muted); }
.admin-body { padding: 28px 32px 64px; flex: 1; }
.admin-body > .container { padding: 0; max-width: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.stat .label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 8px; }
.stat .value { font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.stat.is-alert { border-color: rgba(200,138,34,.45); background: linear-gradient(160deg, var(--amber-soft), var(--bg-light)); }
.stat.is-alert .value { color: #E5C079; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.filter-bar .field { margin-bottom: 0; }
.filter-bar input, .filter-bar select { min-width: 160px; }
.filter-bar .grow { flex: 1; min-width: 220px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% -10%, rgba(27,77,142,.2), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; }
.login-card .brand { text-align: center; margin-bottom: 30px; }
.login-card .brand img { height: 42px; margin: 0 auto 16px; }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; overflow-x: auto; }
.tabs a { padding: 11px 16px; font-size: 14.5px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all .2s; }
.tabs a:hover { color: #fff; }
.tabs a.is-active { color: #fff; border-bottom-color: var(--blue-light); font-weight: 600; }

.timeline { list-style: none; position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 18px; font-size: 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-mid); border: 2px solid var(--border); }
.timeline li.is-highlight::before { background: var(--blue-light); border-color: var(--blue-light); }
.timeline .when { font-size: 12px; color: var(--text-faint); display: block; }
.timeline .who { color: var(--text-muted); font-size: 12.5px; }

.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.week-day { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-height: 130px; }
.week-day.is-today { border-color: var(--blue-light); }
.week-day .head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.week-day.is-today .head { color: var(--blue-light); }
.week-event { display: block; background: var(--bg-mid); border-left: 2px solid var(--blue-light); border-radius: 5px; padding: 7px 9px; font-size: 12.5px; margin-bottom: 7px; color: var(--text); }
.week-event:hover { background: rgba(37,102,181,.18); color: #fff; }
.week-event .t { color: var(--white); font-weight: 600; display: block; font-size: 12px; }
.week-event.is-rental { border-left-color: var(--green); }
.week-event.is-testdrive { border-left-color: var(--blue-light); }

.fuel-scale { display: flex; gap: 5px; }
.fuel-scale input { position: absolute; opacity: 0; pointer-events: none; }
.fuel-scale label {
    flex: 1; text-align: center; padding: 10px 4px; font-size: 13px; cursor: pointer;
    background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
    color: var(--text-muted); transition: all .2s; margin-bottom: 0;
}
.fuel-scale label:hover { border-color: var(--blue-light); color: #fff; }
.fuel-scale input:checked + label { background: var(--blue); border-color: var(--blue-light); color: #fff; font-weight: 700; }

.fee-preview { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.fee-preview .line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
.fee-preview .line:last-of-type { border-bottom: none; }
.fee-preview .total { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 16px; }
.fee-preview .total strong { font-size: 20px; }
.fee-preview .release { color: #7ED4A5; }
.fee-preview .capture { color: #E5C079; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumb { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--black); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 6px; right: 6px; background: rgba(12,12,16,.86); border: 1px solid var(--border); color: #E8867C; border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
.thumb .rm:hover { background: var(--red); color: #fff; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 7px; font-size: 14px; border: 1px solid var(--border); background: var(--bg-light); color: var(--text-muted); }
.pagination a:hover { border-color: var(--blue-light); color: #fff; }
.pagination .is-current { background: var(--blue); border-color: var(--blue-light); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .4; }

.repeat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 10px; }
.repeat-row .field { margin-bottom: 0; }
.window-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.window-row .day-name { font-size: 14px; color: var(--white); font-weight: 600; }
.window-row input { padding: 8px 10px; font-size: 14px; }

/* ---------- Druck ---------- */

@media print {
    .site-header, .site-footer, .admin-side, .admin-top, .btn, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .table-wrap { border-color: #ccc; background: #fff; }
    h1, h2, h3, strong, .dl dd { color: #000; }
    .admin-shell { display: block; }
    .admin-body { padding: 0; }
}

/* ---------- Schmale Ansichten ---------- */

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-sidebar { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-side .side-foot { padding-bottom: 16px; }
    .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .admin-nav .group { width: 100%; padding-top: 12px; }
    .admin-body, .admin-top { padding-left: 20px; padding-right: 20px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .site-nav { display: none; }
    .site-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--border); padding: 10px var(--side-pad) 18px; }
    .site-nav.is-open li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    .nav-toggle { display: flex; }
    .grid-2, .grid-3, .grid-4, .field-row, .field-row--3, .field-row--wide-first, .field-row--narrow-first { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl--lines dt { padding-bottom: 2px; border-bottom: none; }
    .dl--lines dd { padding-top: 0; }
    .hero .container { padding-top: 48px; padding-bottom: 48px; }
    .page { padding: 32px 0 56px; }
    .repeat-row, .window-row { grid-template-columns: 1fr; }
    .btn-block-mobile { width: 100%; }
}
