/* ==========================================================================
   Jobriver v2 – Terminbuchung (/calendar-2/<slug>) und Termin (/termin-2/<token>)
   Fokus-Layout: schmale Markenleiste, Glas-Karte auf Verlauf, Minimal-Footer.
   Das Monatsgitter ist das eine laute Element: Verfügbarkeit als lila Intensität.
   Basis: v2-core.css · Styleguide: docu/design/v2-styleguide.md
   ========================================================================== */

:root {
    --kb-mesh-1: #c9b8ff;
    --kb-mesh-2: #ffc6e6;
    --kb-mesh-3: #b6d6ff;
    --kb-lv-frei: #724fff;         /* viele freie Zeiten (wenig belegt) */
    --kb-lv-knapp: #b8a6ff;        /* mittel */
    --kb-lv-text-frei: #ffffff;
    --kb-lv-text-knapp: #2a1a66;
    --kb-err: #c2255c;
    --kb-ok: #0f9d6e;
}
:root[data-theme="dark"] {
    --kb-mesh-1: #3b2685;
    --kb-mesh-2: #5a2150;
    --kb-mesh-3: #1d3a63;
    --kb-lv-frei: #8466ff;
    --kb-lv-knapp: #4a3a8f;
    --kb-lv-text-knapp: #efeaff;
    --kb-err: #ff7aa8;
    --kb-ok: #4ade9f;
}

/* ---------- Leiste ---------- */
.kb-bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; max-width: var(--edge-max); margin: 0 auto; padding: 18px var(--edge, 16px) 0; }
.kb-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.04em; }
.kb-brand img { width: 20px; height: auto; }

/* ---------- Seite ---------- */
.kb { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 56px) 16px clamp(48px, 7vw, 88px); min-height: calc(100vh - 140px); }
.kb-mesh { position: absolute; inset: -10% -5% 0; z-index: -1; filter: blur(80px); opacity: .7; pointer-events: none; }
.kb-mesh i { position: absolute; border-radius: 50%; }
.kb-mesh i:nth-child(1) { width: 44vw; aspect-ratio: 1; left: -12vw; top: 10%; background: var(--kb-mesh-1); }
.kb-mesh i:nth-child(2) { width: 34vw; aspect-ratio: 1; right: -8vw; top: -4%; background: var(--kb-mesh-2); opacity: .7; }
.kb-mesh i:nth-child(3) { width: 30vw; aspect-ratio: 1; right: 18%; bottom: -10vw; background: var(--kb-mesh-3); opacity: .55; }

.kb-head { max-width: 760px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.kb-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; }
.kb-lead { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
.kb-head .kb-lead { max-width: 58ch; margin-inline: auto; }

.kb-card { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(18px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.kb-card--narrow { max-width: 520px; text-align: center; padding: clamp(28px, 4vw, 48px); }
.kb-card--narrow .btn { margin-top: 22px; }
.kb-code { font-size: 3.5rem; font-weight: 700; letter-spacing: -.05em; color: var(--brand-700); line-height: 1; margin-bottom: 10px; }
.kb--leer { display: grid; place-items: center; }

/* ---------- Schritte (echte Reihenfolge, daher nummeriert) ---------- */
.kb-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; }
.kb-steps li { position: relative; display: flex; align-items: center; gap: 9px; padding-bottom: 12px; font-size: .875rem; font-weight: 550; color: var(--muted); }
.kb-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); }
.kb-steps li::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: var(--brand); transition: width .5s var(--ease); z-index: 1; }
.kb-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); font-size: .75rem; font-variant-numeric: tabular-nums; transition: background-color .3s, border-color .3s, color .3s; }
.kb-steps li.is-on { color: var(--ink); }
.kb-steps li.is-on::before { width: 100%; }
.kb-steps li.is-on span { background: var(--brand); border-color: var(--brand); color: #fff; }

.kb-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, var(--kb-err) 10%, transparent); border: 1px solid color-mix(in oklab, var(--kb-err) 30%, transparent); color: var(--kb-err); font-size: .9375rem; }
.kb-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); color: var(--ink-2); font-size: .9375rem; }
.kb-note--ok { background: color-mix(in oklab, var(--kb-ok) 10%, transparent); color: var(--ink); }

/* ---------- Drei Spalten ---------- */
.kb-grid { display: grid; grid-template-columns: 270px minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }

/* Gastgeber */
.kb-host { display: flex; flex-direction: column; gap: 8px; padding-right: clamp(0px, 2vw, 24px); border-right: 1px solid var(--line); }
.kb-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kb-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.kb-avatar--mono { display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 650; }
.kb-person__name { font-weight: 600; font-size: 1.0625rem; }
.kb-person__role { font-size: .875rem; color: var(--muted); }
.kb-label { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.kb-select { position: relative; }
.kb-select select { width: 100%; height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.kb-select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.kb-select select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(114, 79, 255, .15); }

.kb-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; padding: 4px; border-radius: 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.kb-seg label { position: relative; display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-size: .875rem; font-weight: 550; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.kb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.kb-seg label.is-gewaehlt, .kb-seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 17, 31, .08), 0 4px 10px -6px rgba(60, 30, 140, .35); }
.kb-seg label:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 1px; }

.kb-facts { list-style: none; display: grid; gap: 8px; margin: 14px 0 0; padding: 0; font-size: .875rem; color: var(--ink-2); }
.kb-facts li { display: flex; gap: 9px; align-items: flex-start; }
.kb-facts svg, .kb-contact svg, .kb-summary svg, .kt-add svg { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kb-tzwarn { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #fff4e0; color: #7a4a00; font-size: .8125rem; line-height: 1.45; }
:root[data-theme="dark"] .kb-tzwarn { background: #3a2a10; color: #ffd38a; }
.kb-tzwarn[hidden] { display: none; }

.kb-contact { display: grid; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.kb-contact__k { margin-bottom: 4px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.kb-contact__row { display: flex; gap: 9px; align-items: center; min-height: 36px; padding: 0 8px; margin-inline: -8px; border-radius: 10px; font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; transition: background-color .15s, color .15s; }
.kb-contact__row:hover { background: var(--brand-50); color: var(--brand-700); }

/* Monat */
.kb-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kb-cal__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.kb-nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, background-color .2s; }
.kb-nav svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kb-nav:hover { border-color: var(--ink); }
.kb-nav.is-aus { opacity: .35; pointer-events: none; }

.kb-week, .kb-days { display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr)); gap: 5px; }
.kb-week { margin-bottom: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); text-align: center; }
.kb-kw { display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.kb-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / .92; min-height: 44px; border-radius: 12px; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.kb-day b { font-size: .95rem; font-weight: 600; }
.kb-day i { font-style: normal; font-size: .6875rem; font-weight: 600; opacity: .85; }
.kb-day--pad { visibility: hidden; }
.kb-day.buch-tag--frei { background: var(--kb-lv-frei); color: var(--kb-lv-text-frei); }
.kb-day.buch-tag--knapp { background: var(--kb-lv-knapp); color: var(--kb-lv-text-knapp); }
.kb-day.buch-tag--gesperrt { color: var(--muted); background: transparent; }
.kb-day.buch-tag--ausgebucht { color: var(--muted); background: repeating-linear-gradient(135deg, var(--tint) 0 5px, transparent 5px 9px); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--muted) 60%, transparent); }
.kb-day[aria-disabled="true"] { cursor: default; }
.kb-day:not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(60, 30, 140, .7); }
.kb-day.is-heute::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.kb-day.is-gewaehlt { background: var(--ink) !important; color: var(--bg) !important; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.kb-day:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.kb-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; font-size: .75rem; color: var(--muted); }
.kb-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lv { width: 12px; height: 12px; border-radius: 4px; }
.lv--frei { background: var(--kb-lv-frei); }
.lv--knapp { background: var(--kb-lv-knapp); }
.lv--gesperrt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.lv--ausgebucht { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 4px); }

/* Zeiten */
.kb-times { display: flex; flex-direction: column; min-width: 0; }
.kb-times__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; min-height: 40px; display: flex; align-items: center; }
.kb-times__sub { margin: -4px 0 10px; font-size: .8125rem; color: var(--muted); min-height: 1.2em; }
.kb-slots { max-height: 420px; overflow-y: auto; padding: 2px 6px 18px 2px; margin-right: -6px; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.kb-slotlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kb-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.kb-slot span { font-weight: 600; font-variant-numeric: tabular-nums; }
.kb-slot small { font-size: .6875rem; color: var(--muted); }
.kb-slot input { position: absolute; opacity: 0; pointer-events: none; }
.kb-slot:hover { border-color: var(--brand); transform: translateY(-1px); }
.kb-slot.is-gewaehlt, .kb-slot:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.kb-slot.is-gewaehlt small, .kb-slot:has(input:checked) small { color: rgba(255, 255, 255, .8); }
.kb-slot:has(input:focus-visible), .kb-slot:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.kb-empty { padding: 22px 16px; border-radius: 14px; background: var(--tint); color: var(--ink-2); font-size: .9375rem; text-align: center; }
.kb-next { margin-top: 14px; }
.kb-next[hidden] { display: none; }

/* Skeleton waehrend des Nachladens */
.kb-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kb-skel i { height: 52px; border-radius: 12px; background: linear-gradient(90deg, var(--tint) 25%, var(--brand-50) 50%, var(--tint) 75%); background-size: 200% 100%; animation: kbShimmer 1.2s linear infinite; }
@keyframes kbShimmer { to { background-position: -200% 0; } }
.kb-days.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- Schritt 2 ---------- */
.kb-details { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); animation: kbIn .45s var(--ease) both; }
.kb-details[hidden] { display: none; }
@keyframes kbIn { from { opacity: 0; transform: translateY(10px); } }
.kb-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--brand-50); }
.kb-summary > svg { width: 22px; height: 22px; color: var(--brand-700); }
.kb-summary > div { flex: 1; min-width: 0; }
.kb-summary__k { font-size: .75rem; font-weight: 600; color: var(--brand-700); }
.kb-summary__v { font-weight: 600; }
.kb-summary__edit { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 550; color: var(--ink-2); }
.kb-summary__edit:hover { border-color: var(--ink); color: var(--ink); }
.kb-details__title { margin: 22px 0 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.kb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kb-field--wide { grid-column: 1 / -1; }
.kb-field label { font-size: .875rem; font-weight: 550; }
.kb-field input, .kb-field textarea { width: 100%; padding: 0 14px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.kb-field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; }
.kb-field input:focus, .kb-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(114, 79, 255, .15); }
.kb-field input[aria-invalid="true"], .kb-field.is-invalid input, .kb-field.is-invalid textarea { border-color: var(--kb-err); box-shadow: 0 0 0 4px color-mix(in oklab, var(--kb-err) 14%, transparent); }
.kb-ferr { font-size: .8125rem; color: var(--kb-err); }
.buch-pflicht { color: var(--kb-err); }
.kb-hint { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.kb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kb-privacy { margin-top: 18px; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.kb-privacy a { color: var(--brand-700); font-weight: 550; }
.kb-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.kb-submit__btn { position: relative; min-width: 220px; min-height: 52px; }
.kb-spinner { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; opacity: 0; animation: kbSpin .7s linear infinite; }
.kb-submit__btn.is-loading .kb-submit__label { opacity: 0; }
.kb-submit__btn.is-loading .kb-spinner { opacity: 1; }
.kb-submit__btn.is-loading { pointer-events: none; }
@keyframes kbSpin { to { transform: rotate(360deg); } }

.kb-sperre { max-width: 560px; margin: 0 auto; padding: 18px 0; text-align: center; }
.kb-sperre h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.kb-sperre p { margin: 10px 0 20px; color: var(--ink-2); }
.kb-foot-note { max-width: 760px; margin: 20px auto 0; font-size: .8125rem; color: var(--muted); text-align: center; line-height: 1.55; }
.kb-foot-note--in { margin-top: 26px; text-align: left; max-width: none; }

/* ---------- Termin-Seite ---------- */
.kb-card--termin { max-width: 760px; }
.kt-head { display: flex; gap: clamp(16px, 3vw, 28px); align-items: flex-start; }
.kt-date { display: flex; flex-direction: column; align-items: center; flex: none; width: 92px; padding: 10px 0 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kt-date__m { font-size: .8125rem; font-weight: 650; color: #fff; background: var(--brand); width: calc(100% - 16px); text-align: center; border-radius: 10px; padding: 2px 0; }
.kt-date__d { font-size: 2.6rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kt-date__w { font-size: .8125rem; color: var(--muted); font-weight: 550; }
.kt-date.is-off { opacity: .45; filter: grayscale(1); }
.kt-ok { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; background: color-mix(in oklab, var(--kb-ok) 14%, transparent); color: var(--kb-ok); font-size: .8125rem; font-weight: 650; animation: kbIn .5s var(--ease) both; }
.kt-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kt-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.kt-badge { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-2); font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.kt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.kt-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kt-facts > div:nth-child(odd):not(.kt-facts__wide) { padding-right: 16px; }
.kt-facts__wide { grid-column: 1 / -1; }
.kt-facts dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.kt-facts dd { margin: 2px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.kt-facts dd small { color: var(--muted); font-weight: 450; }
.kb-zone-line { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.kt-add { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kt-add .btn { gap: 8px; }
.kt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.kt-cancel { margin-top: 18px; border-top: 1px solid var(--line); }
.kt-cancel summary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 550; color: var(--kb-err); cursor: pointer; list-style: none; }
.kt-cancel summary::-webkit-details-marker { display: none; }
.kt-cancel__form { display: grid; gap: 12px; padding: 4px 0 6px; }
.kt-cancel__btn { justify-self: start; background: var(--kb-err); color: #fff; }
.kt-cancel__btn:hover { background: color-mix(in oklab, var(--kb-err) 85%, #000); }
.kt-move { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.kt-move h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.kt-move__head { margin-top: 16px; }
.kt-daychips { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.kt-daychip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s; }
.kt-daychip small { font-size: .6875rem; color: var(--muted); }
.kt-daychip b { font-weight: 600; }
.kt-daychip:hover { border-color: var(--brand); }
.kt-daychip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kt-daychip.is-on small { color: var(--bg); opacity: .7; }
.kt-daychip.is-off { opacity: .4; border-style: dashed; }
.kt-move__sub { margin: 20px 0 10px; font-size: 1rem; font-weight: 600; }
.kt-move__slots { display: grid; }

/* ---------- Schlanke Ansicht ---------- */
.kb2--minimal .kb { padding-top: 16px; min-height: 0; }
.kb2--minimal .kb-mesh { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .kb-host { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
    .kb-person, .kb-facts, .kb-tzwarn, .kb-contact { grid-column: 1 / -1; }
    .kb-contact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 6px; border-top: 0; padding-top: 0; }
    .kb-contact__k { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .kb { padding-inline: 12px; }
    .kb-card { padding: 16px 14px; border-radius: 24px; }
    .kb-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    /* Handy: Gastgeber-Block aufloesen, Kontaktwege ans Ende – der Kalender soll frueh kommen */
    .kb-host { display: contents; }
    .kb-person { margin-bottom: 4px; }
    .kb-facts { margin-top: 4px; }
    .kb-cal { order: 5; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
    .kb-times { order: 6; }
    .kb-contact { order: 9; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
    .kb-slots { -webkit-mask-image: none; mask-image: none; padding-bottom: 2px; }
    .kb-steps li { font-size: .75rem; gap: 6px; }
    .kb-steps li span { width: 20px; height: 20px; }
    .kb-week, .kb-days { grid-template-columns: 22px repeat(7, minmax(0, 1fr)); gap: 4px; }
    .kb-day { border-radius: 10px; min-height: 40px; }
    .kb-day i { display: none; }
    .kb-slots { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
    .kb-slotlist, .kb-skel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kb-fields { grid-template-columns: minmax(0, 1fr); }
    .kb-summary { flex-wrap: wrap; }
    .kb-submit__btn { width: 100%; }
    .kt-head { flex-direction: column; }
    .kt-facts { grid-template-columns: minmax(0, 1fr); }
    .kt-facts > div:nth-child(odd):not(.kt-facts__wide) { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .kb-details, .kt-ok { animation: none; }
    .kb-skel i { animation: none; }
}
