/* The HUB / KFZ-HUB – schlicht, schnell, ohne Schnickschnack */

:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --ink: #1c1f24;
    --muted: #6b7280;
    --line: #e3e6ea;
    --accent: #1f6feb;
    --accent-dark: #1857c4;
    --ok: #1a7f4b;
    --warn: #b45309;
    --err: #b42318;
    --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-size: 16px;
}

.wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Footer */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}
.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.2px;
}
.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px;
    font-size: 15px;
}
.nav a:hover { color: var(--accent); }

main.wrap { padding-top: 32px; padding-bottom: 48px; }

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

/* Typo */
h1 { font-size: 28px; margin: 0 0 12px; letter-spacing: -0.4px; }
h2 { font-size: 20px; margin: 28px 0 12px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
a { color: var(--accent); }

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary {
    background: #eef1f5;
    color: var(--ink);
}
.btn.secondary:hover { background: #e2e6ec; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.danger { background: var(--err); }

/* Forms */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Auswahl-Optionen */
.choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
}
.choice:hover { border-color: var(--accent); }
.choice input { width: auto; margin-right: 10px; }
.choice .price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-label { display: flex; align-items: center; }

/* Tage-Grid */
.days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.day {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
}
.day:hover { border-color: var(--accent); }
.day input { position: absolute; opacity: 0; }
.day .d-date { font-weight: 600; }
.day .d-free { font-size: 13px; color: var(--muted); }
.day.selected, .day:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* Termin-Tage mit Zeitfenstern (aufklappbar) */
details.slot-day {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
}
details.slot-day > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 600;
}
details.slot-day > summary > span:first-child { flex: 1; }
details.slot-day > summary::-webkit-details-marker { display: none; }
details.slot-day > summary::after {
    content: "\25BE"; /* ▾ */
    color: var(--muted);
    font-weight: 400;
    transition: transform 0.15s ease;
}
details.slot-day[open] > summary::after { transform: rotate(180deg); }
details.slot-day[open] > summary { border-bottom: 1px solid var(--line); }
details.slot-day > summary:hover { color: var(--accent); }
.slot-day-free { font-weight: 400; font-size: 13px; color: var(--muted); }
details.slot-day .days { padding: 14px 16px; }

/* Meldungen */
.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; font-size: 15px; }
.alert.ok  { background: #e7f6ee; color: var(--ok); border: 1px solid #bfe6cf; }
.alert.err { background: #fdecea; color: var(--err); border: 1px solid #f4c7c0; }
.alert.info{ background: #eaf1fd; color: var(--accent-dark); border: 1px solid #c5d8f7; }

/* Code-Box */
.code-box {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag.offen { background: #eaf1fd; color: var(--accent-dark); }
.tag.erledigt { background: #e7f6ee; color: var(--ok); }
.tag.storniert { background: #f1f2f4; color: var(--muted); }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }

.inline-form { display: inline; }
.table-wrap { overflow-x: auto; }
