/* Buchungslink-Frontend — Design: macOS/Apple-inspiriert (weiche Rundungen,
   viel Weißraum, dezente Schatten, System-Blau/-Grün/-Rot), Mulish als
   Schrift (lokal vendored, siehe fonts/). Workflow weiterhin nach dem
   Fewosoft-Altsystem: Suchleiste → Kalender-/Unterkünfte-Accordion →
   Anfrage-Bereich mit Frei-Schild, Gesamtpreis und Formular. */

@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/css/fonts/mulish-variable.woff2') format('woff2');
}

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

:root {
    --font: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --bg: #f2f2f7;                    /* iOS/macOS systemGroupedBackground */
    --card-bg: #ffffff;
    --text: #000;                  /* Schwarz */
    --text-leise: rgba(60, 60, 67, .6);
    --border: rgba(60, 60, 67, .18);
    --border-fein: rgba(60, 60, 67, .1);

    --accent: #0071e3;                /* Apple-Blau */
    --accent-hover: #0067cf;
    --accent-tint: rgba(0, 113, 227, .1);

    --gruen: #34c759;                 /* iOS System-Grün: frei/verfügbar */
    --gruen-dunkel: #1f8b3d;
    --gruen-tint: #e6f9ea;

    --rot: #ff3b30;                   /* iOS System-Rot: belegt */
    --rot-tint: #ffe9e7;
    --rot-text: #b42318;

    --radius-l: 10px;
    --radius-m: 14px;
    --radius-s: 10px;
    --radius-pill: 35px;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
    --shadow-popover: 0 16px 48px rgba(0, 0, 0, .18);

    /* Variablen der PMS-pikaday.css, auf diese Farbwelt gemappt */
    --bg-white: var(--card-bg);
    --body-text: var(--text);
    --form-bg: #f9fafb;
    --muted: var(--text-leise);
    --muted-light: #b0b0b6;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background: var(--bg);
    -webkit-user-select: none;
    user-select: none;
}

.versteckt { display: none !important; }

/* ── Seitenkopf ── */

.seitenkopf {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border-fein);
}

.seitenkopf-inhalt {
    max-width: 1050px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.seitenkopf-titel { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

.seitenkopf-preis {
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: inherit;
}

.seitenkopf-preis--sichtbar { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }

.seitenkopf-preis strong { font-size: 1.2rem; }

.seitenkopf-icon { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; }

/* ── Grundgerüst ── */

.buchung {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 20px 50px;
}

.text-leise { color: var(--text-leise); font-size: .9rem; }

.zwischentitel { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }

/* ── Suchleiste (Apple-Pille: weiß, rund, Schatten) ── */

.suchbox {
    background: var(--card-bg);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .16);
    padding: 8px;
    margin-bottom: 30px;
    position: relative;
    margin-top: 10px;
}

.suchbox-felder {
    display: flex;
    align-items: stretch;
}

.suchfeld {
    flex: 1;
    min-width: 0;
    padding: 8px 18px;
    position: relative;
    transition: background-color .15s ease;
}

.suchfeld:not(:last-child) { border-right: 1px solid var(--border-fein); }

.suchfeld--button {
    flex: 0 0 auto;
    border-right: none;
    padding: 6px;
    display: flex;
    align-items: stretch;
}

.feld-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
    padding-left: 9px;
}

.eingabe {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
    color: #000;
    padding: 8px;
    text-align: left;
}

.eingabe--datum { cursor: pointer; }

.eingabe:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-tint);
    border-radius: var(--radius-s);
}

.eingabe--trigger {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ── Gäste-Popover (Zähler statt Dropdowns) ── */

.suchfeld--gaeste { position: static; }

.gaeste-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: auto;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: var(--card-bg);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-popover);
    border: 1px solid var(--border-fein);
    padding: 18px 20px;
    z-index: 500;
}

.gaeste-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-fein);
}

.gaeste-zeile--letzte { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.gaeste-info { display: flex; flex-direction: column; gap: 2px; }
.gaeste-info strong { font-size: .95rem; font-weight: 600; }

.zaehler { display: flex; align-items: center; gap: 12px; }

.zaehler-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}

.zaehler-btn:active { transform: scale(.94); }

.zaehler-wert { min-width: 18px; text-align: center; font-weight: 600; }

.alter-zeile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-fein);
}

.alter-felder { display: flex; flex-wrap: wrap; gap: 8px; }

.eingabe--alter {
    width: 64px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 7px 8px;
    background: var(--card-bg);
    color: var(--text);
}

/* ── Buttons ── */

.knopf {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}

.knopf:active { transform: scale(.98); }
.knopf:disabled { background: #c7c7cc; cursor: default; transform: none; }

.knopf--suche { width: 100%; height: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; }

.knopf-icon { width: 22px; height: 22px; }

.knopf--senden { display: block; width: 100%; max-width: 320px; padding: 13px 24px; }

/* ── Accordion ── */

.acc {
    background: var(--card-bg);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    overflow: hidden;
}

.acc-kopf {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 44px 16px 20px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid var(--border-fein);
    transition: background-color .15s ease;
}


.acc-kopf:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.acc-kopf::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: transform .2s;
}

.acc--zu .acc-kopf::after { transform: rotate(-45deg); margin-top: -5px; }

.acc-inhalt { padding: 15px; }

.acc--zu .acc-inhalt { display: none; }

.acc-inhalt--animiert { overflow: hidden; padding-top: 0; padding-bottom: 0; }

/* ── Foto-Slider der gewählten Einheit (keen-slider, vendored) ── */

.einheit-foto-box { margin-bottom: 16px; }

.einheit-foto {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.einheit-foto .keen-slider { height: 100%; }

.einheit-foto .keen-slider__slide { position: relative; }

.einheit-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 5;
    opacity: 1;
    transition: opacity .15s ease, background-color .15s ease;
}


.foto-nav--prev { left: 12px; }
.foto-nav--next { right: 12px; }

/* kompakte Variante für den Slider innerhalb einer Einheiten-Karte */
.foto-nav--klein {
    width: 26px;
    height: 26px;
    font-size: 1rem;
}
.foto-nav--klein.foto-nav--prev { left: 6px; }
.foto-nav--klein.foto-nav--next { right: 6px; }

/* Positions-Punkte unter/über dem aktuellen Foto */
.foto-punkte {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.foto-punkt {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    transition: background-color .15s ease, transform .15s ease;
}

.foto-punkt--aktiv {
    background: #fff;
    transform: scale(1.3);
}

/* ── Einheiten-Karten (bei mehreren Einheiten) ── */

.einheiten {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.einheit-karte {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-l);
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: border-color .15s ease, transform .15s ease;
}

.einheit-karte--sel { border-color: var(--accent); }

.einheit-karte:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.einheit-bild {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.einheit-bild--leer {
    background: linear-gradient(135deg, #e5e5ea 0%, #f2f2f7 100%);
}

.einheit-bild .keen-slider { height: 100%; }
.einheit-bild .keen-slider__slide { position: relative; }

.einheit-bild img,
.einheit-bild-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.einheit-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
}

.einheit-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.01em;
}

.einheit-merkmale { color: var(--text-leise); font-size: .88rem; margin: 3px 0 auto; }

.einheit-preis { font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.einheit-preis span { font-weight: 400; font-size: .85rem; color: var(--text-leise); }

/* ── Kalender gemeinsam ── */

.kalender-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.kalender-legende {
    font-size: .85rem;
    color: var(--text-leise);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legende-feld {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legende-feld--frei { background: var(--card-bg); border: 1px solid var(--border); }
.legende-feld--belegt { background: var(--rot-tint); border: 1px solid var(--rot); }
.legende-feld--kein-anreise {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: inset 0 -3px 0 var(--text-leise);
}

.kalender-nav { display: flex; gap: 6px; }

.kalender-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--form-bg);
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
}

.kalender-btn:disabled { opacity: .3; cursor: default; }

.kalender-btn--jahr {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 14px;
    font-size: .82rem;
    font-weight: 600;
}

/* Jahresansicht: 12 Monate im Raster */
.kalender-monate--jahr { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 760px) {
    .kalender-monate--jahr { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .kalender-monate--jahr { grid-template-columns: repeat(4, 1fr); }
}

/* ── Einzel-Kalender (Monatsraster) ── */

.kalender-monate {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 12px;
}

.kal-monat-titel { font-weight: 700; margin-bottom: 8px; text-align: center; }

.kal-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }

.kal-tabelle th {
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted-light);
    padding: 4px 0;
}

.kal-tabelle td {
    text-align: center;
    padding: 2px 0;
    height: 40px;
    font-size: .92rem;
}

.kal-tabelle td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: background-color .12s ease;
}

/* frei: weiß mit dunkler Zahl, wie iOS Kalender */
.kal-tag { cursor: pointer; color: var(--text); }

.kal-tag:focus-visible { outline: none; }
.kal-tag:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }

.kal-tag--we { color: var(--text-leise); }

/* belegt: dezentes Rot, wie iOS "beschäftigt" */
.kal-tag--belegt {
    color: var(--rot-text);
    cursor: default;
}
.kal-tag--belegt span { background: var(--rot-tint); }

.kal-tag--vergangen { color: var(--muted-light); }

/* nicht als Anreise erlaubt (Saison-Anreisetage-Regel) — kleiner Punkt wie iOS-Termin-Indikator */
.kal-tag--kein-anreise span { box-shadow: inset 0 -8px 0 -6px var(--muted-light); }

/* Auswahl: Apple-Blau-Kreise (wie iOS/macOS Kalender selektierter Tag) */
.kal-tag--von span, .kal-tag--bis span {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.kal-tag--zwischen span { background: var(--accent-tint); color: var(--accent); }

/* ── Multi-Kalender (Matrix: Einheiten × Tage) ── */

.mk-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    grid-column: 1 / -1;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-fein);
}

.mk-tabelle { border-collapse: collapse; width: 100%; }

.mk-tabelle th { font-weight: 600; }

.mk-eck {
    text-align: left;
    font-size: .82rem;
    color: var(--text-leise);
    padding: 6px 10px;
    position: sticky;
    left: 0;
    background: var(--card-bg);
    z-index: 2;
}

.mk-monat {
    font-size: .88rem;
    text-align: left;
    padding: 4px 10px 8px;
    border-left: 1px solid var(--border-fein);
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-leise);
}

.mk-tag-kopf {
    font-size: .66rem;
    color: var(--text-leise);
    text-align: center;
    padding: 4px 0 6px;
    min-width: 28px;
    line-height: 1.25;
    background: var(--form-bg);
    font-weight: 600;
}

.mk-tag-kopf--we { background: #eef0f3; }

.mk-name {
    font-size: .88rem;
    font-weight: 500;
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    max-width: 150px;
    cursor: pointer;
    position: sticky;
    left: 0;
    background: var(--card-bg);
    z-index: 2;
    border-top: 1px solid var(--border-fein);
}

.mk-name--sel { font-weight: 700; color: var(--accent); }

.mk-name:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.mk-pers {
    font-size: .8rem;
    color: var(--text-leise);
    text-align: center;
    padding: 0 6px;
    background: var(--form-bg);
    border-top: 1px solid var(--card-bg);
}

.mk-zelle {
    height: 32px;
    min-width: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-fein);
    cursor: pointer;
    transition: background-color .12s ease;
}


.mk-zelle--we { background: var(--form-bg); }

.mk-zelle--belegt { background: var(--rot-tint); cursor: default; }

.mk-zelle--kein-anreise { box-shadow: inset 0 -3px 0 var(--muted-light); }

.mk-zelle--von, .mk-zelle--bis { background: var(--accent); }
.mk-zelle--zwischen { background: var(--accent-tint); }

/* Zeitraum-Vorschau beim Überfahren (Anreise gewählt, Abreise offen) */
.kal-tag.vorschau span { background: var(--accent-tint); color: var(--accent); }
.mk-zelle.vorschau { background: var(--accent-tint); }

/* ── Hinweise ── */

.hinweis {
    padding: 12px 16px;
    border-radius: var(--radius-m);
    background: var(--accent-tint);
    color: var(--accent);
    font-size: .9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.hinweis--fehler { background: var(--rot-tint); color: var(--rot-text); }
.hinweis--warnung { background: #fff6e0; color: #93650a; }

/* ── Anfrage-Bereich ── */

.anfrage-bereich {
    clear: both;
    background: var(--card-bg);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 22px 20px 26px;
}

.frei-schild { margin: 0 0 14px; min-height: 28px; }

.frei-schild > span {
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    background-color: var(--gruen);
    color: #fff;
    font-weight: 700;
    animation: blinkenFrei 2s infinite;
}

@keyframes blinkenFrei {
    20%, 80% { opacity: .75; }
}

.anfrage-kopf {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.anfrage-info { display: flex; flex-direction: column; }

.anfrage-einheit { font-weight: 700; letter-spacing: -.01em; }

.reise-label { font-size: .92rem; color: var(--text-leise); }

/* Foto-Slider der gewählten Einheit, volle Breite unterhalb von Name/Zeitraum/Preis */
.anfrage-foto-box { margin: 14px 0; }

.anfrage-foto {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--form-bg);
    box-shadow: var(--shadow-card);
}

.anfrage-foto .keen-slider { height: 100%; }
.anfrage-foto .keen-slider__slide { position: relative; }

.anfrage-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gesamt { text-align: right; }

.gesamt-label {
    display: block;
    font-size: .8rem;
    color: var(--text-leise);
}

.gesamtpreis {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -.01em;
}

@keyframes preisWechsel {
    0% { color: var(--accent); transform: scale(1.06); }
    100% { color: inherit; transform: scale(1); }
}

.preis-neu { display: inline-block; animation: preisWechsel .5s ease; }

.positionen { width: 100%; max-width: 480px; border-collapse: collapse; margin: 14px 0 10px; }

.positionen td {
    padding: 7px 4px;
    font-size: .92rem;
    border-bottom: 1px solid var(--border-fein);
    vertical-align: top;
}

.positionen-einheit { color: var(--text-leise); font-size: .85rem; }
.positionen-summe { text-align: right; white-space: nowrap; }

/* ── Extras ── */

.extras { margin: 18px 0; max-width: 480px; }

.extra-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .92rem;
}

.extra-zeile--inklusive { color: var(--text-leise); }
.extra-label { flex: 1; }

.eingabe--extra {
    width: 64px;
    height: 36px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
}

.form-zeile { margin-bottom: 14px; max-width: 480px; }
.form-zeile--doppel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.form-zeile--code { margin-top: 16px; }
.form-zeile--code .eingabe { max-width: 200px; }

.form-zeile .feld-label { margin-bottom: 6px; }

.form-zeile .eingabe,
.form-zeile--code .eingabe,
select.eingabe,
textarea.eingabe {
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 10px 12px;
    background: var(--card-bg);
    color: var(--text);
}

.form-zeile .eingabe:focus,
.form-zeile--code .eingabe:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.anfrage-form { margin-top: 26px; }

/* Zweispaltig ab Tablet: links die schmalere Zusammenfassung, rechts das Formular */
@media (min-width: 760px) {
    .anfrage-spalten {
        display: grid;
        grid-template-columns: minmax(240px, 1fr) 2fr;
        gap: 40px;
        align-items: start;
    }
    .anfrage-form { margin-top: 0; }
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.datenschutz-hinweis {
    font-size: .82rem;
    color: var(--text-leise);
    margin: 14px 0;
    max-width: 480px;
}

/* ── Modal (Muster wie im PMS: app-modal / appModalOpen / appModalClose) ── */

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s;
    padding: 16px;
    background: rgba(0, 0, 0, 0);
}

.app-modal.hidden { display: flex !important; }

.app-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.app-modal-box {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-popover);
    width: 100%;
    max-width: 500px;
    padding: 22px 26px 26px;
    transform: translateY(-12px) scale(.97);
    transition: transform .2s ease;
}

.app-modal--open .app-modal-box { transform: translateY(0) scale(1); }

.app-modal-box--lg { max-width: 720px; max-height: 85vh; overflow-y: auto; }

.app-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.01em;
}

.app-modal-close {
    background: var(--form-bg);
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}


.app-modal-inhalt p { margin-bottom: 12px; }
.app-modal-inhalt .zwischentitel:not(:first-child) { margin-top: 20px; }

@media (max-width: 640px) {
    .app-modal { align-items: flex-end; padding: 0; }
    .app-modal-box {
        max-width: 100%;
        border-radius: var(--radius-l) var(--radius-l) 0 0;
        max-height: 88vh;
    }
}

/* ── Fußzeile ── */

.fusszeile {
    text-align: center;
    color: var(--muted-light);
    font-size: .82rem;
    padding: 24px 0 32px;
}

/* ── Desktop ── */

@media (min-width: 640px) {
    .kalender-monate { grid-template-columns: 1fr 1fr; gap: 24px; }
    .einheiten { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .einheiten { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
    .suchbox-felder { flex-direction: column; }
    .suchfeld:not(:last-child) { border-right: none; }
    .suchfeld { border-right: none; border-bottom: 1px solid var(--border-fein); padding: 10px 16px; }
    .suchfeld:last-child, .suchfeld--button { border-bottom: none; }
    .suchfeld--button { padding: 20px 10px 12px 10px; }
    .gaeste-popover { left: 12px; right: 12px; width: auto; }
    .anfrage-kopf { flex-direction: column; }
    .gesamt { text-align: left; }
}

@media (max-width: 639px) {
    .buchung { padding: 16px 12px 40px; }
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

.acc-titel { font-weight: 700; }

/* ── Preisberechnung: Bottom-Sheet, fährt langsam von unten ein ── */

.app-modal--sheet {
    align-items: flex-end;
    padding: 0;
    transition: opacity .5s ease, visibility .5s;
}

.app-modal--sheet .app-modal-box {
    max-width: 640px;
    max-height: 80vh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.app-modal--sheet.app-modal--open .app-modal-box { transform: translateY(0); }
