/**
 * Host Grid CSS - Gastgeber-Kacheln
 *
 * Gastgeberverzeichnis (Seite „Unterkünfte", Seitenaufbau nach Vorschlag
 * des Kunden): weiße Karte, Bild 3:2 oder Platzhalter (Fröbel-Muster +
 * Haus-Symbol), hervorgehobener Ort, Name, Beschreibung, Kontakt, Button.
 * Kein Artboard im Webdesign — Schriften/Farben aus dem CD (Kachel-Grid,
 * Kontaktbox).
 *
 * Konsumiert Theme-Tokens (--aktd-*) mit Fallbacks.
 */

.akt-host-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 30px;
    margin: 0 0 32px;
}

.akt-host-grid--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Karte */
.akt-host-grid__card {
    display: flex;
    flex-direction: column;
    background: var(--aktd-color-white, #ffffff);
    box-shadow: 0 2px 14px rgba(27, 27, 27, 0.08);
    color: var(--aktd-color-font, #1b1b1b);
}

/* Bild / Platzhalter */
.akt-host-grid__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.akt-host-grid__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.akt-host-grid__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--aktd-color-petrol, #008f7d);
    background-size: cover;
    background-position: center;
}

.akt-host-grid__placeholder-icon {
    width: auto;
    height: 46%;
    opacity: 0.9;
}

.akt-host-grid__placeholder--bg-gruen-dreiecke {
    background-image: url("../img/patterns/gruen-dreiecke.jpg");
}

.akt-host-grid__placeholder--bg-blau-blaetter {
    background-image: url("../img/patterns/blau-blaetter.jpg");
}

.akt-host-grid__placeholder--bg-blau-raster {
    background-image: url("../img/patterns/blau-raster.jpg");
}

.akt-host-grid__placeholder--bg-blau-figuren {
    background-image: url("../img/patterns/blau-figuren.jpg");
}

.akt-host-grid__placeholder--bg-rot-kreise {
    background-image: url("../img/patterns/rot-kreise.jpg");
}

.akt-host-grid__placeholder--bg-rot-herzen {
    background-image: url("../img/patterns/rot-herzen.jpg");
}

/* Inhalt */
.akt-host-grid__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 24px 26px;
}

/* Ort – hervorgehoben (Kundenwunsch) */
.akt-host-grid .akt-host-grid__place {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-family: var(--aktd-font-accent, sans-serif);
    font-size: 18px; /* wie Subline */
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aktd-color-script-heading, #26836f);
}

.akt-host-grid__place-icon {
    flex: 0 0 auto;
}

.akt-host-grid .akt-host-grid__name {
    margin: 0 0 4px;
    font-family: var(--aktd-font-base, sans-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--aktd-color-font, #1b1b1b);
}

.akt-host-grid .akt-host-grid__kind {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--aktd-color-font-muted, #3a3f3e);
}

.akt-host-grid .akt-host-grid__text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
}

/* Kontakt */
.akt-host-grid .akt-host-grid__contact {
    margin: 0 0 18px;
    padding: 12px 0 0;
    border-top: 1px solid #dfe7e4;
    list-style: none;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere; /* lange E-Mail-Adressen */
}

.akt-host-grid .akt-host-grid__contact li {
    margin: 0;
}

.akt-host-grid__label {
    font-weight: 700;
}

.akt-host-grid .akt-host-grid__contact a {
    color: var(--aktd-color-script-heading, #26836f);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.akt-host-grid .akt-host-grid__contact a:hover,
.akt-host-grid .akt-host-grid__contact a:focus {
    text-decoration-thickness: 2px;
}

.akt-host-grid__actions {
    margin-top: auto;
}

/* Leerzustand (nur für Redakteure sichtbar) */
.akt-host-grid__no-content {
    padding: 16px;
    border: 2px dashed #c3c4c7;
    border-radius: 3px;
    color: #646970;
    font-size: 14px;
    text-align: center;
}

/* Responsive — Breakpoints wie Astra */
@media (max-width: 1024px) {

    .akt-host-grid {
        gap: 26px 22px;
    }
}

@media (max-width: 921px) {

    .akt-host-grid,
    .akt-host-grid--columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 544px) {

    .akt-host-grid,
    .akt-host-grid--columns-2 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .akt-host-grid__body {
        padding: 18px 18px 22px;
    }
}

/* Barrierefreiheit / Print */
@media (prefers-contrast: high) {

    .akt-host-grid__card {
        box-shadow: none;
        border: 2px solid currentColor;
    }
}

@media print {

    .akt-host-grid {
        display: block;
    }

    .akt-host-grid__card {
        break-inside: avoid;
        margin-bottom: 12px;
        box-shadow: none;
        border: 1px solid #000;
    }

    .akt-host-grid__media,
    .akt-host-grid__actions {
        display: none;
    }
}

/* ==========================================================================
 * Gastgeberverzeichnis (Quelle „Gastgeberverzeichnis“, seit 2026-11-11):
 * Filterleiste, Gliederung nach Kategorie, Sterne, Merkmale, Bearbeiten-Link
 * ========================================================================== */
.akt-host-grid__card[hidden],
.akt-host-dir__group[hidden],
.akt-host-dir [hidden] {
    display: none !important;
}

.akt-host-dir__filter {
    margin: 0 0 40px;
    padding: 20px 24px;
    background: var(--aktd-color-surface, #f1f5f4);
    border-top: 4px solid var(--aktd-color-script-heading, #26836f);
}

.akt-host-dir .akt-host-dir__filter-title {
    margin: 0 0 12px;
    font-family: var(--aktd-font-accent, sans-serif);
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aktd-color-script-heading, #26836f);
}

.akt-host-dir__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: flex-end;
}

.akt-host-dir__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 190px;
    flex: 1 1 190px;
    font-size: 14px;
    font-weight: 600;
}

.akt-host-dir__field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 400;
    border: 1px solid #8a9592;
    background: var(--aktd-color-white, #ffffff);
    color: var(--aktd-color-font, #1b1b1b);
}

.akt-host-dir__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    min-height: 44px;
    align-items: center;
    font-size: 15px;
}

.akt-host-dir__checks label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.akt-host-dir__checks input {
    width: 20px;
    height: 20px;
    accent-color: var(--aktd-color-script-heading, #26836f);
}

.akt-host-dir__status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin-top: 14px;
}

.akt-host-dir .akt-host-dir__count {
    margin: 0;
    font-weight: 600;
}

.akt-host-dir__reset {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aktd-color-script-heading, #26836f);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.akt-host-dir .akt-host-dir__group-title {
    margin: 0 0 24px;
    scroll-margin-top: 120px;
}

.akt-host-dir__group + .akt-host-dir__group {
    margin-top: 24px;
}

.akt-host-dir__group {
    scroll-margin-top: 120px;
}

.akt-host-dir .akt-host-dir__empty {
    padding: 18px 22px;
    background: var(--aktd-color-mint, #ddfcf2);
    font-weight: 600;
}

.akt-host-grid .akt-host-grid__stars {
    margin: 0 0 6px;
    color: #9a6a00; /* Gold, Kontrast 4,6:1 auf Weiß */
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.akt-host-grid .akt-host-grid__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.akt-host-grid .akt-host-grid__chips li {
    margin: 0;
    padding: 2px 10px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--aktd-color-mint, #ddfcf2);
    color: #145c4c;
}

.akt-host-grid .akt-host-grid__chips li::before {
    content: none;
}

.akt-host-grid .akt-host-grid__edit {
    margin: 12px 0 0;
    font-size: 13px;
}

@media (max-width: 544px) {
    .akt-host-dir__filter {
        padding: 16px;
    }
    .akt-host-dir__field {
        flex-basis: 100%;
    }
}
