@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('fonts/BricolageGrotesque.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Reines Weiß gibt es auf der Hauptseite nicht (Two-Ground-Regel:
       jede Fläche ist Creme oder Tiefschwarz) - Karten bekommen daher
       Creme-Dim statt #fff, gedämpfter Text läuft über Tiefschwarz mit
       reduzierter Deckkraft statt eines eigenen Grau-Braun-Tons, exakt wie
       auf der Hauptseite (Folio-Nummern, Kicker-Zeilen etc.). */
    --bg: #fff9f9;
    --bg-card: #ffffff;
    --text: #0b0b0c;
    --muted: rgba(11, 11, 12, 0.55);
    --accent: #ff2c6d;
    --accent-dark: #d41654;
    --accent-light: #ffe1ec;
    --error-bg: #fbe4e0;
    --error-text: #b04632;
    --radius: 2px;
    --radius-sm: 2px;
    --shadow: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Safari (v.a. iOS) tönt native Formularelemente sonst mit seiner eigenen
   System-Akzentfarbe statt der Marke - accent-color erzwingt Pink auch
   dort, wo eigenes CSS die native Steuerelement-Farbe nicht übersteuern
   kann. */
:root { accent-color: var(--accent); }

body {
    margin: 0;
    /* Direkt statt var(--bg): auf manchen Geräten/Browsern hing hier
       hartnäckig der alte Cache-/Cascade-Wert fest, obwohl die Variable
       selbst schon korrekt war - der Literalwert räumt jede Unklarheit aus. */
    background: #fff9f9;
    color: var(--text);
    font-family: 'Hanken Grotesk', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.booking-app {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    /* Kein min-height:100vh mehr - das war für den früheren Alleinstand
       ohne Footer gedacht, hätte jetzt mit echtem Footer direkt darunter
       nur eine große Leerfläche vor kurzen Schritten (z.B. Startbildschirm)
       erzeugt. */
    transition: max-width .2s ease;
}
/* Breiter fuer den kombinierten Kalender+Uhrzeit-Schritt (Kalender links,
   Uhrzeiten rechts daneben - passt in 560px nicht nebeneinander) */
.booking-app.is-wide { max-width: 820px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Hanken Grotesk', sans-serif;
}

h1.booking-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

h1.booking-title em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.booking-subtitle {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px;
}

.logo-wrap {
    text-align: center;
    margin: 8px 0 32px;
}
.logo-wrap img { max-width: 64px; height: auto; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 28px;
    background-color: var(--accent);
    color: #0b0b0c;
    border: none;
    border-radius: var(--radius);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    transition: filter .15s ease;
}
.btn-primary:hover { filter: brightness(0.93); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 24px;
}
.btn-secondary:hover { color: var(--text); }

/* Auswahlkarten (Kategorie / Terminart / Ort) */
.option-card {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg-card);
    border: 1.5px solid rgba(11,11,12,0.12);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.option-card:hover { border-color: var(--accent); }
.option-card.selected { border-color: var(--accent); background: var(--accent-light); }

.option-card .option-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}
.option-card .option-meta {
    color: var(--muted);
    font-size: 14px;
}

/* Kalender */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 24px;
}
.calendar-nav button {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 6px 10px;
}
.calendar-nav button:disabled { color: #ddd6cc; cursor: default; }
.calendar-month-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 25px;
}

/* Kombinierte Ansicht: Kalender links, Uhrzeiten fuer den gewaehlten Tag
   direkt rechts daneben - kein Schrittwechsel noetig, um Zeiten zu sehen. */
.calendar-time-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 640px) {
    .calendar-time-layout { grid-template-columns: 1fr 1fr; }
}
.slots-panel { min-width: 0; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-weekday {
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
    padding-bottom: 8px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
}
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.unavailable { background: #efeae2; color: #c9c2b6; cursor: not-allowed; }
.calendar-day.available:hover { border-color: var(--accent); }
.calendar-day.selected { background: var(--accent); color: #0b0b0c; }

/* Zeit-Slots - eine Spalte, volle Breite (passt zur schmaleren rechten
   Haelfte im kombinierten Kalender+Uhrzeit-Schritt) */
.slot-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.slot-btn {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11,11,12,0.15);
    background: var(--bg-card);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }

/* Formular */
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: .5px;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11,11,12,0.15);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237a7268' stroke-width='1.6'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}
.form-field select:hover { border-color: rgba(11,11,12,0.3); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--accent); }

/* Fehlermeldung */
.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

/* Neutraler Hinweis (kein Fehler) - z. B. wenn eine vorher gewaehlte
   Uhrzeit wegen der gewaehlten Terminart nochmal neu gewaehlt werden muss */
.alert-notice {
    background: var(--accent-light);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Bestaetigungsscreen */
.confirmation {
    text-align: center;
    padding: 40px 0;
}
.confirmation .checkmark {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b0b0c;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
}
.confirmation-summary {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: left;
    margin: 24px 0;
    font-size: 15px;
}
.confirmation-summary div { padding: 6px 0; }
.confirmation-summary .k { color: var(--muted); display: inline-block; width: 100px; }

.step-hidden { display: none; }

.loading-spinner {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

/* Fängt jedes interaktive Element ab, das keine eigene :focus-Regel hat -
   sonst fällt der Browser auf sein Default-Outline zurück (auf manchen
   Browser/OS-Kombinationen auffällig orange/gelb), statt den Marken-Akzent
   zu zeigen wie auf der Hauptseite. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
