.terminwahl {
    max-width: 940px;
    font-size: 18px;
}

.terminwahl-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.terminwahl-titel {
    font-size: 21px;
    font-weight: 600;
}

.terminwahl-untertitel {
    color: #6c757d;
    font-size: 17px;
    margin-top: 3px;
}

.terminwahl-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminwahl-nav button {
    width: 42px;
    height: 42px;
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.terminwahl-nav button:hover:enabled {
    background: #f2f3f3;
}

.terminwahl-nav button:disabled {
    opacity: .4;
    cursor: default;
}

.terminwahl-monat {
    min-width: 170px;
    text-align: center;
    font-weight: 600;
}

.terminwahl-anfragehinweis {
    margin-top: 12px;
    color: #495057;
    font-size: 16px;
}

.terminwahl-legende {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin: 16px 0;
    color: #495057;
    font-size: 16px;
}

.terminwahl-punkt {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -1px;
}

.terminwahl-punkt-frei {
    background: #4caf50;
}

.terminwahl-punkt-knapp {
    background: #ff9800;
}

.terminwahl-punkt-belegt {
    background: #ced4da;
}

.terminwahl-wochenendhinweis {
    color: #adb5bd;
}

.terminwahl-raster {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.terminwahl-wochentag {
    text-align: center;
    color: #adb5bd;
    font-size: 16px;
    padding-bottom: 3px;
}

.terminwahl-kachel {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    min-height: 70px;
    padding: 9px 6px 7px;
    text-align: center;
    user-select: none;
}

/* Kinder für Maus-Events unsichtbar, sonst feuern mouseover/mouseout beim
   Schwenken innerhalb der Kachel und die Zeitraum-Markierung flackert */
.terminwahl-kachel > span {
    pointer-events: none;
}

.terminwahl-tagnummer {
    display: block;
    font-size: 19px;
    font-weight: 600;
}

.terminwahl-tagstatus {
    display: block;
    font-size: 14px;
    margin-top: 3px;
    /* Längere Statustexte („nicht verfügbar") dürfen nicht umbrechen, sonst werden einzelne Rasterzeilen höher */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminwahl-tagpreis {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.terminwahl-leerfeld {
    border: none;
}

.terminwahl-folgemonat {
    opacity: .55;
}

.terminwahl-folgemonat:hover,
.terminwahl-folgemonat.terminwahl-vorschau,
.terminwahl-folgemonat.terminwahl-vorschau-blockiert,
.terminwahl-folgemonat.terminwahl-auswahl {
    opacity: 1;
}

.terminwahl-inaktiv {
    background: #fafafa;
    border-color: #f1f3f5;
}

.terminwahl-inaktiv .terminwahl-tagnummer {
    color: #ced4da;
    font-weight: 400;
}

.terminwahl-frei {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
    cursor: pointer;
}

.terminwahl-knapp {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
    cursor: help;
}

.terminwahl-belegt {
    background: #f5f5f5;
    border-color: #e9ecef;
    color: #9e9e9e;
    cursor: not-allowed;
}

.terminwahl-vorschau {
    outline: 2px solid #1976d2;
    outline-offset: -1px;
}

.terminwahl-vorschau-blockiert {
    outline: 2px solid #d32f2f;
    outline-offset: -1px;
}

.terminwahl-auswahl {
    outline: 2px solid #1976d2;
    outline-offset: -1px;
    box-shadow: 0 0 0 4px #bbdefb;
}

.terminwahl-fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #dee2e6;
    margin-top: 18px;
    padding-top: 16px;
}

.terminwahl-keinauswahl {
    color: #6c757d;
}

.terminwahl-zeitraum {
    font-weight: 600;
}

.terminwahl-preis {
    display: block;
    margin-top: 4px;
    color: #37474f;
}

.terminwahl-aktionen {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.terminwahl-anfragen {
    background: #fff;
    color: #1976d2;
    border: 1px solid #1976d2;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
}

.terminwahl-anfragen:hover {
    background: #e3f2fd;
}

.terminwahl-pruefhinweis {
    align-self: center;
    color: #6c757d;
    font-size: 16px;
}

.terminwahl-buchen {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
}

.terminwahl-buchen:hover {
    background: #1b5e20;
}

.terminwahl-buchungshinweis {
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    background: #fff8e1;
    color: #5d4037;
}

.terminwahl-buchungshinweis-titel {
    font-weight: 600;
    margin-bottom: 8px;
}

.terminwahl-buchungshinweis ul {
    margin: 0;
    padding-left: 22px;
}

.terminwahl-buchungshinweis-fuss {
    margin-top: 8px;
    color: #6d4c41;
}

.terminwahl-leer {
    color: #6c757d;
    padding: 16px 0;
}

/* ---- Verfügbarkeitsanfrage: Eingabemaske vor der Terminwahl ---- */

.anfrage {
    max-width: 940px;
    font-size: 18px;
}

.anfrage-untertitel {
    color: #6c757d;
    font-size: 17px;
    margin-bottom: 18px;
}

.anfrage-karten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.anfrage-karte {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 18px 20px 20px;
}

.anfrage-karte-titel {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 14px;
}

.anfrage-feld {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.anfrage-feld:last-child {
    margin-bottom: 0;
}

.anfrage-feld label {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

.anfrage-pflicht {
    color: #d32f2f;
}

.anfrage-feld input,
.anfrage-feld select {
    font: inherit;
    font-size: 17px;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.anfrage-feld input:focus,
.anfrage-feld select:focus {
    outline: 2px solid #1976d2;
    outline-offset: -1px;
    border-color: #1976d2;
}

.anfrage-zeile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.anfrage-zeile .anfrage-feld {
    margin-bottom: 0;
}

.anfrage-zeile-plzort {
    grid-template-columns: 140px 1fr;
}

.anfrage-fehler {
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    background: #fdecea;
    color: #842029;
}

.anfrage-fehler-titel {
    font-weight: 600;
}

.anfrage-fehler ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.anfrage-fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #dee2e6;
    margin-top: 18px;
    padding-top: 16px;
}

.anfrage-pruefen {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
}

.anfrage-pruefen:hover:enabled {
    background: #125ea8;
}

.anfrage-pruefen:disabled {
    opacity: .5;
    cursor: default;
}

@media (max-width: 800px) {
    .anfrage-karten {
        grid-template-columns: 1fr;
    }

    .anfrage-zeile {
        grid-template-columns: 1fr;
    }

    .anfrage-zeile .anfrage-feld {
        margin-bottom: 14px;
    }

    .anfrage-zeile .anfrage-feld:last-child {
        margin-bottom: 0;
    }

    .anfrage-zeile-plzort {
        grid-template-columns: 140px 1fr;
    }
}
