:root {
    /* Farbschema Algarve4U */
    --sky: #5eb1d1;          /* Himmel – oberer Verlauf */
    --sand: #fdf8ef;         /* Seitenhintergrund */
    --surface: #ffffff;      /* Karten, Header, Eingabefelder */
    --accent: #e9a84a;       /* Button / Akzent (Gold-Orange) */
    --accent-hover: #d8963a;
    --accent-text: #94601f;  /* Akzent als Schrift auf hellem Grund, z. B. Kicker (Kontrast mind. 4,7:1) */
    --on-accent: #3a3330;    /* Schrift auf Akzent (Kontrast 6:1) */
    --text: #3a3330;         /* Fließtext */
    --muted: #7a6a5a;        /* Nebentexte */
    --sea: #3d6a7a;          /* Links, Footer, Welle, Tooltips */
    --border: #e8e0d6;       /* Rahmen */
    --shadow: rgba(58,51,48,.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--sand) linear-gradient(180deg, color-mix(in srgb, var(--sky) 45%, var(--sand)) 0, var(--sand) 480px) no-repeat; line-height: 1.6; min-height: 100vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 10; transition: transform .25s ease; }
/* Header blendet sich beim Runterscrollen aus und beim Hochscrollen wieder ein */
header.header-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 20px; }
.header-claim { font-size: 13px; color: var(--muted); padding-left: 20px; border-left: 1px solid var(--border); line-height: 1.3; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
/* Sprachumschalter (includes/header.php): Knopf mit Weltkugel + Kürzel, darunter die Liste der Sprachen */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--text); }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu .lang-chevron { width: 14px; height: 14px; transition: transform .15s; }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: 14px; box-shadow: 0 10px 30px var(--shadow); z-index: 30; }
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text); text-decoration: none; }
.lang-list a:hover { background: var(--sand); }
.lang-list a.active { background: color-mix(in srgb, var(--border) 60%, var(--surface)); font-weight: 600; }

/* Zurück-Link, Teilen */
/* Brotkrumen-Zeile: Zurück | Algarve › … › Ort  ···  Teilen */
.crumbs { display: flex; align-items: center; gap: 14px; margin: 18px 0 -8px; min-width: 0; }
.crumbs .share-btn { margin-left: auto; }
.crumbs .back-link { flex-shrink: 0; position: relative; padding-right: 14px; margin-right: 0; }
.crumbs .back-link::after { content: ""; position: absolute; right: 0; top: 50%; height: 16px; margin-top: -8px; border-right: 1px solid var(--border); }
.breadcrumbs { min-width: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; white-space: nowrap; overflow: hidden; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 9px 0 7px; border-right: 1.5px solid color-mix(in srgb, var(--muted) 70%, transparent); border-top: 1.5px solid color-mix(in srgb, var(--muted) 70%, transparent); transform: rotate(45deg); flex-shrink: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs li:last-child a { color: var(--text); }
.breadcrumbs .bc-more { display: none; }

/* Filter-Chips (Suche: Checkbox in <label class="chip">, Blog: Link <a class="chip">) – Genutzt in: search.php, blog.php
   Aktiv: Checkbox angehakt bzw. Link mit .is-on (aktuelle Kategorie). Icons: script/search/filter_icons.php */
.chip { margin: 0; position: relative; cursor: pointer; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text); white-space: nowrap; transition: border-color .15s, background .15s, padding .25s ease, font-size .25s ease; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span, .chip.is-on span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 600; }
.chip input:focus-visible + span, a.chip:focus-visible span { outline: 2px solid var(--sea); outline-offset: 2px; }
a.chip { display: inline-block; text-decoration: none; }
a.chip:focus-visible { outline: none; }

/* Runde Buttons auf dem Foto (nur Handy) */
.photo-btn { display: none; position: absolute; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.94); color: var(--text); align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(58,51,48,.22); cursor: pointer; }
.photo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo-back { left: 12px; }
.photo-share { right: 12px; }
.back-link, .share-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; background: none; border: none; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.back-link:hover, .share-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.back-link svg, .share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn span { text-decoration: underline; text-underline-offset: 3px; }

/* Waagerecht scrollbare Listen mit Pfeilen links/rechts (Filterleiste der Suche, weitere Häuser)
   Aufbau: .hscroll > Pfeile (hscroll_arrows()) + .hscroll-track · Verhalten: script/js/hscroll.js
   Die Pfeile erscheinen nur, wenn die Liste überläuft. --hscroll-arrow-top: Höhe der Pfeile. */
.hscroll { position: relative; --hscroll-arrow-top: 50%; }
.hscroll-arrow { position: absolute; top: var(--hscroll-arrow-top); z-index: 2; width: 38px; height: 38px; margin-top: -19px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 30%, var(--border)); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(58,51,48,.25); cursor: pointer; transition: background .15s; }
.hscroll-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* Sandton beim Antippen (Handy) und – nur bei Maus – beim Überfahren
   (hover nur mit Maus, sonst bleibt der Ton am Handy nach dem Tippen "hängen") */
.hscroll-arrow:active { background: color-mix(in srgb, var(--border) 55%, var(--surface)); }
@media (hover: hover) { .hscroll-arrow:hover { background: color-mix(in srgb, var(--border) 55%, var(--surface)); } }
.hscroll-arrow:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.hscroll-prev { left: 6px; }
.hscroll-next { right: 6px; }
.hscroll-arrow.is-hidden { display: none; }
/* Liste läuft unter den Pfeilen weich aus (Maske statt Farbfläche → passt zu jedem Hintergrund) */
.hscroll.can-next .hscroll-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 70px), transparent calc(100% - 8px)); mask-image: linear-gradient(to right, #000 calc(100% - 70px), transparent calc(100% - 8px)); }
.hscroll.can-prev .hscroll-track { -webkit-mask-image: linear-gradient(to right, transparent 8px, #000 70px); mask-image: linear-gradient(to right, transparent 8px, #000 70px); }
.hscroll.can-prev.can-next .hscroll-track { -webkit-mask-image: linear-gradient(to right, transparent 8px, #000 70px, #000 calc(100% - 70px), transparent calc(100% - 8px)); mask-image: linear-gradient(to right, transparent 8px, #000 70px, #000 calc(100% - 70px), transparent calc(100% - 8px)); }
/* Häuser-Kacheln: Pfeile auf Höhe der Bilder, 6 px vom Bildschirm- bzw. Popup-Rand
   (die Liste ragt am Handy 24 px über den Inhalt hinaus, siehe .similar-grid unten) */
.hscroll-cards { --hscroll-arrow-top: 38%; }
.hscroll-cards .hscroll-prev { left: -18px; }
.hscroll-cards .hscroll-next { right: -18px; }

/* Weitere Häuser */
.similar { border-top: 1px solid var(--border); padding-top: 32px; margin-bottom: 56px; }
.similar h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.similar-card { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; font-size: 14px; }
.similar-img { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: var(--border); }
.similar-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, transform .3s; }

/* Merkliste (script/js/favorites.js): Herz auf Karten, Hausseite und im Header. Ohne JavaScript ausgeblendet (hidden –
   hier mit !important, weil .share-btn und .photo-btn selbst display setzen). Gemerkt = .is-on (rot gefüllt). */
[hidden].fav-btn, [hidden].fav-toggle, [hidden].fav-link, [hidden].photo-fav { display: none !important; }
.similar-img { position: relative; }   /* Bezug für das Herz oben rechts */
/* Badges oben links auf dem Foto: "Top-bewertet", "Oft angefragt", "Wintermiete" (untereinander) – Genutzt in: search.php,
   similar_card() (Startseite). Vorher in search.css. */
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 13px; font-weight: 700; color: var(--text); box-shadow: 0 2px 6px rgba(58,51,48,.15); }
.card-badge .rs-star { font-size: 15px; }
.card-badge svg { width: 15px; height: 15px; fill: none; stroke: var(--sea); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Handy: nur das Symbol in einem kleinen Kreis – der Text bleibt für Screenreader erhalten, verdeckt aber nicht das Foto */
@media (max-width: 640px) {
    .card-badges { top: 8px; left: 8px; flex-direction: row; gap: 4px; }
    .card-badge { width: 26px; height: 26px; padding: 0; gap: 0; justify-content: center; }
    .card-badge .rs-star { font-size: 13px; }
    .card-badge svg { width: 13px; height: 13px; }
    .card-badge-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,.94); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(58,51,48,.2); cursor: pointer; }
.fav-btn svg, .fav-toggle svg, .fav-link svg, .photo-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fav-btn.is-on, .fav-toggle.is-on, .fav-link.has-items, .photo-fav.is-on { color: #d6455d; }
.fav-btn.is-on svg, .fav-toggle.is-on svg, .fav-link.has-items svg, .photo-fav.is-on svg { fill: currentColor; }
.photo-btn.photo-fav { right: 58px; }   /* Hausseite am Handy: neben „Teilen“ auf dem Foto */
.crumbs .fav-toggle { margin-left: 8px; }
.fav-toggle.is-on { color: var(--text); }
.fav-toggle.is-on svg { color: #d6455d; }
/* Header: Herz mit Anzahl (öffnet das Popup „Merkliste“) */
.fav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text); text-decoration: none; }
.fav-link:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.fav-link svg { width: 21px; height: 21px; }
.fav-count { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d6455d; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
/* Hinweis unten („Auf deiner Merkliste“, „Merkliste ist voll“) */
.fav-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fav-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* Popup „Merkliste“ (script/popups/popup-favorites.php) */
.fav-list { list-style: none; margin: 0; padding: 0; }
.fav-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fav-row:first-child { padding-top: 0; }
.fav-row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.fav-row-img { flex: none; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--border); }
.fav-row-img img { width: 100%; height: 100%; object-fit: cover; }
.fav-row-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.fav-row-text strong { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-row-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.fav-row-price { color: var(--text); }
.fav-row-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.fav-row-actions .h-btn { padding: 8px 12px; font-size: 14px; }
.fav-row-done { font-size: 14px; font-weight: 600; color: #2f6f45; white-space: nowrap; }
.fav-row-remove { width: 34px; height: 34px; border: none; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fav-row-remove:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.fav-row-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fav-share-wrap { margin-top: 18px; }   /* Teilen direkt unter der Liste */
.js-fav-share-icons[hidden], .js-fav-share-native[hidden] { display: none; }   /* .share-options / .share-btn setzen selbst display */
.popup-favorites .popup-body p.fav-share-head { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.popup-favorites .popup-body p.fav-import-wrap { margin: 0 0 14px; }
.popup-body p.fav-next { margin: 0 0 16px; }   /* Popup „Anfrage gesendet“: „Nächstes Haus deiner Merkliste anfragen“ */
@media (max-width: 640px) {
    .fav-row { flex-wrap: wrap; }
    .fav-row-actions { width: 100%; justify-content: flex-end; }
}
.similar-card:hover .similar-img img { filter: brightness(.88); transform: scale(1.03); }
.similar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.similar-name { color: var(--muted); }
.similar-price { margin-top: 2px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--sea); text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.logo-spiral { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
/* Galerie mit fester Höhe, damit Titel und Bewertungen ohne Scrollen sichtbar sind */
.gallery { position: relative; display: flex; gap: 8px; margin: 24px 0; width: 100%; height: clamp(300px, 52vh, 520px); align-items: stretch; }
.gallery-main { width: 50%; position: relative; border-radius: 16px; overflow: hidden; }
.gallery-main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery img { transition: filter .2s ease; }
.gallery img:hover { filter: brightness(.85); }
.gallery-side { width: 50%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-side img { width: 100%; height: 100%; min-height: 0; object-fit: cover; cursor: pointer; border-radius: 12px; display: block; }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin: 32px 0 64px; }
.title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.meta { color: var(--muted); margin-bottom: 24px; }
/* Galerie-Button & Sprunglinks */
.gallery-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--text); background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(58,51,48,.15); }
.gallery-all:hover { background: var(--sand); }
.gallery-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Sprunglinks: kleben beim Scrollen unter dem Header; Hintergrund läuft über die volle Breite */
.jumpnav { position: sticky; top: var(--hdr, 69px); transition: top .25s ease; z-index: 9; display: flex; gap: 6px 26px; flex-wrap: wrap; align-items: center; padding: 8px 0 10px; background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; }
.jumpnav.stuck { box-shadow: 0 0 0 100vmax var(--surface); background: var(--surface); clip-path: inset(0 -100vmax -12px); filter: drop-shadow(0 4px 6px rgba(58,51,48,.06)); }
.jumpnav a { color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.jumpnav a:hover, .jumpnav a.active { border-bottom-color: var(--text); }
.jumpnav-sentinel { height: 1px; margin-bottom: -1px; }
html { scroll-behavior: smooth; }
#photos, #description, #ratings, #amenities, #availability, #location, #request { scroll-margin-top: calc(var(--jump-h, 52px) + 24px); }

/* Bewertungszeile unter dem Titel */
.rating-summary { position: relative; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -12px 0 22px; color: var(--text); font-size: 15px; }
.rs-item { display: inline-flex; align-items: center; gap: 6px; }
.rs-star { color: var(--accent); font-size: 18px; line-height: 1; }
.rs-meta { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
.rs-meta:hover { text-decoration-color: currentColor; }

/* Info-Knopf "i" am Algarve4U-Score (Tooltip per Hover bzw. Antippen = Fokus) */
.rs-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: none; color: var(--muted); font: 700 11px/1 'Inter', system-ui, sans-serif; text-transform: none; letter-spacing: 0; cursor: help; vertical-align: middle; }
.rs-info:hover, .rs-info:focus-visible { border-color: var(--sea); color: var(--sea); }
.rs-info-wrap { display: inline-flex; }
/* Tooltip an der ganzen Zeile bzw. Score-Karte ausrichten statt am kleinen "i" –
   sonst ragt er auf schmalen Bildschirmen rechts aus dem Bild */
.rating-summary .tooltip, .rating-a4u .tooltip { position: static; }
.rating-summary .tip.tip-left { left: 0; width: min(320px, 100%); bottom: calc(100% + 8px); }
.rating-a4u { position: relative; }
.rating-a4u .tip.tip-left { left: 16px; right: 16px; width: auto; bottom: auto; top: 52px; }
.rating-summary .tip::after, .rating-a4u .tip::after { display: none; }
.rating-summary .tip, .rating-platform .tip { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.5; color: #fff; }

/* Eigentümer im Anfrageformular */
.owner { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.owner-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.owner-initials { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 30%, #fff); color: var(--text); font-size: 22px; font-weight: 700; }
.owner-name { font-size: 17px; font-weight: 700; }
.owner-role { font-size: 13px; color: var(--muted); line-height: 1.4; }

.map-sub { color: var(--muted); margin: -8px 0 16px; }
.map { position: relative; height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background:
    linear-gradient(color-mix(in srgb, var(--sea) 7%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, color-mix(in srgb, var(--sea) 7%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    color-mix(in srgb, var(--sky) 10%, var(--sand)); z-index: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.map-consent-icon { width: 48px; height: 48px; }
.map-consent p { max-width: 340px; font-size: 13px; color: var(--muted); }
.map-load { background: var(--surface); border: 1px solid var(--text); border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.map-load:hover { background: var(--sand); }
/* Pin mit Spiral-Logo */
.a4u-pin { width: 46px; height: 56px; }
.a4u-pin svg { width: 46px; height: 56px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(58,51,48,.35)); }
/* Ausflugsorte: Beiträge des Reiseblogs mit Ort (a4uBlogPinsAdd() in script/js/common.js) – klassischer Tropfen-Pin in der
   Farbe der Spiralsonne (--accent) mit dem Icon der Kategorie: ein Quadrat mit drei runden Ecken, um 45° gedreht, die spitze
   Ecke zeigt nach unten auf den Ort; das Icon wird zurückgedreht. Kachel im Popup wie die Hauskachel (240 px) */
.blog-pin-wrap { background: none; border: none; }
.blog-pin { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--accent); border: 2px solid #fff; box-shadow: -2px 2px 6px rgba(58,51,48,.3); transform: rotate(-45deg); cursor: pointer; transition: transform .15s; }
.blog-pin:hover { transform: rotate(-45deg) scale(1.1); }
.blog-pin svg { width: 16px; height: 16px; transform: rotate(45deg); fill: none; stroke: var(--on-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.blog-pin-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; }
.blog-pin-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.blog-pin-card { font-size: 14px; line-height: 1.4; color: var(--text); }
.blog-pin-card .blog-pin-card-post { display: block; color: var(--text); text-decoration: none; }
.blog-pin-card-post img { display: block; width: 100%; height: 150px; object-fit: cover; }
.blog-pin-card-body { display: block; padding: 10px 12px 12px; }
.blog-pin-card-category { display: block; font-size: 12px; color: var(--accent-text); margin-bottom: 2px; }
.blog-pin-card-body strong { display: block; line-height: 1.35; }
a.blog-pin-card-post:hover strong { text-decoration: underline; }
.blog-pin-card-subtitle { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--muted); }
.blog-pin-card-more { display: block; margin-top: 8px; font-size: 13px; color: var(--sea); }
.blog-pin-card-partner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px; padding: 10px 0 12px; border-top: 1px solid var(--border); }
.blog-pin-card a.blog-pin-card-book { padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.blog-pin-card a.blog-pin-card-book:hover { background: var(--accent-hover); }
.blog-pin-card-ad { font-size: 11px; color: var(--muted); }
/* Ferienhaus auf der Karte im Blogbeitrag (script/js/blog.js): kleiner weißer Kreis mit Haus-Icon */
.house-dot-pin-wrap { background: none; border: none; }
.house-dot-pin { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--sea); box-shadow: 0 2px 5px rgba(58,51,48,.3); cursor: pointer; }
.house-dot-pin svg { width: 13px; height: 13px; fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map .leaflet-control-attribution { font-size: 11px; }

/* Abschnitte */
.section { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 40px; }
.section h2, .ratings h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

/* Badges */
.badges { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
/* Badge-Tooltips hängen an der Badge-Zeile, damit sie nie über den Bildschirmrand ragen;
   Position und Pfeil setzt das Script unten */
.badges .badge.tooltip { position: static; }
.badges .tip.tip-left { width: min(280px, 100%); bottom: calc(100% + 10px); }
.badges .tip.tip-left::after { left: var(--arrow-x, 22px); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: help; outline: none; }
.badge svg { width: 17px; height: 17px; flex-shrink: 0; }
.badge-gold, .badge-sea { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.badge-sea svg { fill: none; stroke: var(--sea); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }

/* Beschreibung */
.description { margin: 0 0 8px; }
.desc-lead { font-size: 21px; line-height: 1.45; font-weight: 600; margin-bottom: 24px; max-width: 34em; }
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.desc-item { display: flex; gap: 16px; align-items: flex-start; }
.desc-item:first-child { grid-column: 1 / -1; }
.desc-icon { flex-shrink: 0; width: 28px; height: 28px; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.desc-icon i { font-size: 20px; }
.desc-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.desc-item p { font-size: 15px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.desc-quote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 19px; line-height: 1.5; font-style: italic; color: var(--text); }

/* Bewertungen */
.ratings { margin-top: 40px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff) 0%, #fff 55%, color-mix(in srgb, var(--sky) 16%, #fff) 100%); border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff); box-shadow: 0 10px 30px rgba(58,51,48,.08); }
.ratings-head { margin-bottom: 20px; }
.ratings-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 6px; }
.ratings h2 { font-size: 26px; margin-bottom: 0; }
.ratings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rating-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; padding: 20px 22px; border: 1px solid var(--border); color: var(--text); }
.rating-platform { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rating-score { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.rating-score small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.rating-stars { position: relative; display: inline-block; font-size: 24px; line-height: 1; letter-spacing: 2px; align-self: flex-start; }
.rating-stars .stars-bg { color: var(--border); }
.rating-stars .stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }

/* Algarve4U-Score in der Kachel */
.rating-basis { font-size: 14px; color: var(--muted); margin-top: 6px; }
.rating-how { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.rating-how:hover { color: var(--text); }

/* Portal-Kästen "Top bewertet auf …" – führen über das Popup go-to-portal zum Inserat */
.rating-portals { justify-content: center; gap: 12px; }
.portal-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.portal-link:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 6px 16px rgba(58,51,48,.08); }
.portal-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.portal-text { display: flex; flex-direction: column; line-height: 1.4; }
.portal-text strong { font-size: 15px; }
.portal-text span { font-size: 13px; color: var(--muted); }
.portal-arrow { margin-left: auto; color: var(--sea); font-size: 18px; }
.ratings-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.ratings-checked { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--sea); }   /* „Von Algarve4U geprüft“ (Bewertungs-Ausnahme) */
.ratings-checked + .ratings-note { margin-top: 6px; }
.ratings-checked-mark { font-size: 14px; }

/* Belegungskalender */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: relative; box-shadow: 0 6px 24px rgba(58,51,48,.06); }
.cal-nav { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-btn { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.cal-btn:hover:not(:disabled) { background: var(--sand); }
.cal-btn:disabled { opacity: .35; cursor: default; }
.cal-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cal-month h3 { text-align: center; font-size: 16px; font-weight: 700; margin: 6px 0 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.cal-day { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; border: none; background: none; color: var(--text); font-family: inherit; padding: 0; }
.cal-day > span { position: relative; z-index: 1; width: 100%; max-width: 40px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
button.cal-day { cursor: pointer; }
button.cal-day:hover > span { box-shadow: inset 0 0 0 1.5px var(--text); }
.cal-day.checkout-ok { cursor: pointer; }
.cal-day.checkout-ok > span { text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, #fff); }
.cal-day.past { color: var(--muted); }   /* heller als freie Tage (--text), Kontrast 5,2:1 */
.cal-day.rule-off { color: var(--muted); opacity: .55; }   /* nach den Buchungsregeln des Gastgebers nicht wählbar */
.cal-day.booked > span { color: var(--muted); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--border) 80%, transparent) 4px 6px); }
.cal-day.today > span::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-hover); }
.cal-day.in-range::before { content: ""; position: absolute; inset: 12% 0; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.cal-day.sel-start::before { content: ""; position: absolute; inset: 12% 0 12% 50%; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.cal-day.sel-end::before { content: ""; position: absolute; inset: 12% 50% 12% 0; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.cal-day.sel-start.sel-end::before { display: none; }
.cal-day.sel-start > span, .cal-day.sel-end > span { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lg-free { border: 1.5px solid var(--text); }
.lg-booked { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--border) 3px 5px); border: 1px solid var(--border); }
.lg-sel { background: var(--accent); }
.cal-reset { background: none; border: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* Kalender am Anfrageformular (#cal-pop): gleicher Aufbau wie der Belegungsplan, script/js/property.js öffnet ihn
   is-side = links neben der klebenden Seitenleiste (fest im Bildschirm), sonst unter den Datumsfeldern
   is-wide = Platz für zwei Monate */
#anfrage-form { position: relative; }
.sidebar { z-index: 5; }   /* klebende Seitenleiste bildet eine eigene Ebene – sonst liegt der Belegungsplan über dem Kalender */
.cal-pop { position: absolute; left: 0; right: 0; z-index: 60; margin-top: -6px; padding: 16px; box-shadow: 0 14px 40px rgba(58,51,48,.22); }
.cal-pop[hidden] { display: none; }
.cal-pop.is-side { position: fixed; right: auto; width: 340px; margin: 0; }
.cal-pop.is-side.is-wide { width: 660px; }
.cal-pop .cal-nav { top: 12px; left: 12px; right: 12px; }
.cal-pop .cal-months { grid-template-columns: 1fr; }
.cal-pop.is-wide .cal-months { grid-template-columns: 1fr 1fr; }
.cal-pop .cal-foot { margin-top: 10px; padding-top: 12px; }
.cal-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cal-close { background: var(--text); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.form-group.is-picking input { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.avail-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.avail-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--sea); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.avail-note p { font-weight: 500; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 32px 0; }
.feature { display: flex; align-items: center; gap: 8px; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: sticky; top: calc(var(--hdr, 69px) + var(--jump-h, 52px) + 20px); transition: top .25s ease; align-self: start; box-shadow: 0 6px 24px rgba(58,51,48,.10); }
.submit-slot { position: relative; }
/* Preis in der Anfrage-Box */
.price { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.price-unit { color: var(--muted); }
.price-from { font-size: 15px; font-weight: 500; color: var(--muted); }   /* „ab“ / „geschätzt ab“ vor dem Preis */
.price-note { margin: 6px 0 20px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.price-cleaning { margin: 2px 0 0; font-size: 12px; color: var(--muted); }   /* „inkl. Reinigungsgebühr“ unter dem Gesamtpreis */
.price-cleaning[hidden] { display: none; }
.price-rules { margin: -12px 0 20px; font-size: 13px; line-height: 1.45; }   /* Buchungsregeln des Gastgebers unter dem Hinweis */
/* Falle für Spam-Programme im Anfrageformular: für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin-top: 10px; font-size: 12px; color: var(--muted); }
.form-privacy a { color: inherit; }
/* Fehlerhinweise im Anfrageformular */
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.field-msg { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 500; color: #b03a2e; }
.field-msg::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #b03a2e; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
/* Schwebender Button: weißer Ring + feine Kontur + Schatten = Kontrast auf jedem Untergrund */
button.primary.floating { position: fixed; z-index: 50; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(58,51,48,.18), 0 10px 28px rgba(58,51,48,.35); }
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,168,74,.25); }
textarea { min-height: 100px; resize: vertical; }
button.primary { width: 100%; background: var(--accent); color: var(--on-accent); border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
button.primary:hover { background: var(--accent-hover); }
/* Gesperrt: in den ersten 2 Sekunden und während der Wartezeit (Countdown, property.js) */
button.primary:disabled { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); cursor: not-allowed; }
button.primary:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.tooltip { position: relative; }
.tooltip .tip { visibility: hidden; opacity: 0; width: 260px; background: var(--sea); color: #fff; text-align: left; border-radius: 8px; padding: 10px 12px; position: absolute; z-index: 20; bottom: 130%; left: 50%; transform: translateX(-50%); font-size: 13px; transition: opacity .2s; }
.tooltip:hover .tip, .tooltip:focus-within .tip { visibility: visible; opacity: 1; }
.tooltip .tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--sea); }
.tooltip .tip.tip-left { left: 0; transform: none; }
.tooltip .tip.tip-left::after { left: 22px; }
/* Küsten-Panorama über dem Footer: skaliert mit der Breite, maximal 200 px hoch.
   Auf breiten Screens laufen Meer und Hügel seitlich weiter. */
.coast { display: block; width: 100%; height: min(200px, calc(100vw * 260 / 1440)); margin-bottom: -1px; overflow: hidden; }
.coast .c-sun { fill: var(--accent); }
.coast .c-glow-in { stop-color: var(--accent); stop-opacity: .45; }
.coast .c-glow-out { stop-color: var(--accent); stop-opacity: 0; }
.coast .c-reflect { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .75; }
.coast .c-hill-far { fill: color-mix(in srgb, var(--sea) 18%, var(--sand)); }
.coast .c-hill-near { fill: color-mix(in srgb, var(--accent) 24%, var(--sand)); }
.coast .c-beach { fill: color-mix(in srgb, var(--accent) 12%, var(--sand)); }
.coast .c-tree { fill: color-mix(in srgb, #6f7d4b 75%, var(--sand)); }
.coast .c-castle { fill: color-mix(in srgb, #b4583a 70%, var(--sand)); }
.coast .c-castle-dark { fill: var(--text); opacity: .35; }
.coast .c-cliff { fill: var(--accent-hover); }
.coast .c-shade { fill: var(--text); opacity: .14; }
.coast .c-strata { fill: none; stroke: var(--text); stroke-width: 2; opacity: .1; stroke-linecap: round; }
.coast .c-sea1 { fill: var(--sky); }
.coast .c-foam { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .7; stroke-linecap: round; }
.coast .c-sea2 { fill: var(--sea); opacity: .55; }
.coast .c-sea3 { fill: var(--sea); }
footer { background: var(--sea); color: #fff; padding: 24px 0 32px; text-align: center; font-size: 14px; margin-top: 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-brand strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
/* Footer-Texte ohne Deckkraft (voll weiß): Untertitel und Copyright 5,9:1, WhatsApp-Zeile 5,0:1 – mit .7–.9 meldete Google zu wenig Kontrast */
/* WhatsApp-Kontakt im Footer (includes/footer.php): Logo + zwei Zeilen Text */
.footer-wa { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; text-align: left; padding: 8px 18px 8px 8px; border-radius: 30px; background: rgba(255,255,255,.08); }
.footer-wa:hover { background: rgba(255,255,255,.16); }
.footer-wa:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-wa img { width: 44px; height: 44px; flex: none; }
.footer-wa-text strong { display: block; font-size: 15px; }
.footer-wa-text span { font-size: 13px; }   /* voll weiß: Kontrast 5,0:1 auf der aufgehellten Fläche */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; }
.footer-nav a { color: #fff; text-decoration: none; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.footer-nav .footer-cta { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 6px 16px; opacity: 1; }
.footer-nav .footer-cta:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.footer-copy { font-size: 13px; }   /* voll weiß: Kontrast 5,9:1 */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; overflow: hidden; }
.lightbox.active { display: block; }
html.lightbox-open { overflow: hidden; }   /* Seite dahinter scrollt nicht mit (script/js/property.js) */
/* Fotoleiste (script/js/property.js): waagerecht scrollend, rastet immer genau auf einem Foto ein (scroll-snap).
   Wischen macht der Browser selbst; scroll-snap-stop: always = ein Wisch geht höchstens ein Foto weiter.
   Breiten nur in % der Leiste – keine vw/vh, die auf dem iPhone von der sichtbaren Fläche abweichen können. */
.lightbox-scroller { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lightbox-scroller::-webkit-scrollbar { display: none; }
.lightbox-scroller.is-dragging { scroll-snap-type: none; cursor: grabbing; }   /* PC: mit gedrückter Maus ziehen */
.lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; box-sizing: border-box; padding: 72px 12px; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.lightbox-slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lightbox-slide img:not([src]) { visibility: hidden; }
.lightbox.is-single .lightbox-nav { display: none; }
.lightbox-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 48px; width: 60px; height: 80px; cursor: pointer; border-radius: 8px; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close { position: absolute; z-index: 2; top: 20px; right: 20px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Niedrige Bildschirme quer (Handy im Querformat): Platz oben/unten für das Bild, das X steht rechts daneben –
   deshalb Abstand links und rechts statt oben und unten (auch über die Kerbe/Notch des iPhones hinweg) */
@media (orientation: landscape) and (max-height: 500px) {
    .lightbox-slide { padding: 8px calc(64px + env(safe-area-inset-right, 0px)) 8px calc(64px + env(safe-area-inset-left, 0px)); }
}
/* Touch-Geräte: wischen statt Pfeile; X unter der Statusleiste des iPhones */
@media (pointer: coarse) {
    .lightbox-nav { display: none; }
    .lightbox-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
}

/* Popups – Rahmen: includes/popup.php, Verhalten: script/js/popup.js
   Ohne JavaScript erscheint das Popup direkt beim Laden; das X und der Hintergrund sind Links. */
.popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(58,51,48,.55); }
.popup-box { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.popup-box:focus { outline: none; }
/* Schließen-X: Form wie .lightbox-close (dreht sich beim Hover), aber hell auf der weißen Box */
.popup-close { top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; color: var(--text); background: var(--sand); border: 1px solid var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.popup-close:hover { background: color-mix(in srgb, var(--border) 55%, var(--surface)); }
/* Kopf: immer Verlauf Himmelblau → Sand wie der Seitenhintergrund oben (body in style.css) */
.popup-head { padding: 22px 72px 16px 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 45%, var(--sand)) 0%, var(--sand) 100%); }
.popup-head-center { padding: 18px 64px 16px; text-align: center; }
.popup-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface); }
.popup-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.popup-icon-success { border: 2px solid #3f8f5a; box-shadow: 0 4px 12px rgba(63,143,90,.22); }
.popup-icon-success svg { stroke: #3f8f5a; }
.popup-title { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 0; }
.popup-subtitle { margin-top: 4px; font-size: 14px; color: var(--muted); }
.popup-body { padding: 18px 28px 24px; }
.popup-body p { font-size: 16px; margin-bottom: 12px; }
/* Rechtstexte in Popups: Impressum, Datenschutz für Gäste und Gastgeber (script/popups/popup-imprint.php, popup-privacy*.php) */
.popup-body .legal-text h3 { font-size: 17px; margin: 22px 0 8px; }
.popup-body .legal-text h3:first-child { margin-top: 4px; }
.popup-body .legal-text p, .popup-body .legal-text li { font-size: 15px; line-height: 1.55; }
.popup-body .legal-text ul { margin: 0 0 12px; padding-left: 20px; }
.popup-body .legal-text li { margin-bottom: 6px; }
.popup-body .legal-text a { color: var(--sea); }
.popup-body p.legal-date { margin-top: 20px; font-size: 13px; color: var(--muted); }
.popup-body p.legal-host-link { margin: 0 0 6px; }   /* Knopf „Mein Haus verwalten“ / „Login für Gastgeber“ über dem Datenschutz für Gastgeber */
/* Hinweis-Kasten, Button und Textlink in Popups */
.popup-body .popup-note { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-left: 4px solid var(--accent); font-size: 15px; margin-bottom: 18px; }
/* "Lieber über ein Portal buchen? … auch auf Airbnb · Booking.com" unter dem Anfrageformular */
.portal-alt { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.portal-alt a { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; }
.portal-alt a:hover { color: var(--text); }
.popup-btn { display: block; text-align: center; background: var(--accent); color: var(--on-accent); padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.popup-btn:hover { background: var(--accent-hover); }
.popup-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.popup-link { display: block; margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.popup-link:hover { color: var(--text); }
/* Popup "Teilen" – Haus und Suche (script/popups/popup-share.php) */
.share-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; }
.share-card img { flex: none; width: 96px; height: 72px; border-radius: 10px; object-fit: cover; }
.share-card strong { display: block; font-size: 17px; line-height: 1.3; }
.share-card span { display: block; font-size: 14px; color: var(--muted); }
.share-card em { display: block; font-style: normal; font-size: 13px; color: var(--sea); margin-top: 2px; }
.share-dates { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 14px; cursor: pointer; }
.share-dates input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--sea); }
.share-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; padding: 16px 8px; border: 1px solid var(--border); border-radius: 14px; }
.share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.share-option:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.share-option[hidden] { display: none; }
/* Icon-Kreis: offizielle Logos als Bild (img/share/), E-Mail und Link als eigene Symbole.
   Der helle Kreis bleibt sichtbar, falls eine Logo-Datei fehlt. */
.share-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--border) 45%, var(--surface)); }
.share-icon img { width: 100%; height: 100%; object-fit: contain; }
.share-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-icon-link, .share-icon-mail { background: var(--sea); }
.share-url { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.share-url input { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); }
/* Popup "So entsteht der Algarve4U-Score" (script/popups/popup-a4u-score.php) */
.sc-steps { display: flex; flex-direction: column; gap: 18px; }
.sc-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.sc-num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--sky) 22%, #fff); color: var(--sea); font-size: 15px; font-weight: 700; }
.sc-step h3 { font-size: 16px; font-weight: 700; margin: 5px 0 4px; }
.popup-body .sc-step p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.sc-sources { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-src { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; }
.sc-src i { font-style: normal; color: var(--accent-hover); }
/* Zwei Skalen untereinander: Booking.com oben, Algarve4U-Score unten, gleiche Punkte übereinander */
.sc-scale { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--sand); }
.sc-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.sc-row + .sc-row { margin-top: 6px; }
.sc-bar { position: relative; height: 30px; }
.sc-line { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--border); }
.sc-tick { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: var(--text); }
.sc-tick::before { content: ""; order: -1; width: 2px; height: 18px; margin-bottom: 2px; background: var(--sea); }
/* Anteile nach Anzahl der Bewertungen */
.sc-weights { display: flex; height: 14px; border-radius: 999px; overflow: hidden; }
.sc-weights div { background: var(--sea); }
.sc-weights div + div { background: var(--accent-hover); }
.popup-body .sc-step p.sc-example { margin-bottom: 8px; font-size: 13px; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--sea); }
.sc-legend span + span i { background: var(--accent-hover); }
/* Ergebnis und Hinweise */
.sc-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.sc-hints span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }

/* Popup "Anfrage gesendet": Zusammenfassung (der Tipp ist ein .popup-note mit .request-tip) */
.request-summary { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; }
.request-summary img { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.request-summary small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.request-summary strong { display: block; font-size: 17px; line-height: 1.3; margin: 2px 0; }
.request-summary span { font-size: 14px; color: var(--muted); }
.popup-sub { font-size: 16px; font-weight: 700; margin: 18px 0 10px; }
.popup .similar-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.popup .similar-img { aspect-ratio: 4 / 3; }   /* flachere Bilder: Popup passt auch auf kleine Laptop-Bildschirme */

/* Link "Weitere Häuser ansehen" im Popup "Anfrage gesendet" – bewusst ein Textlink, kein
   zweiter orangefarbener Button (der steht für "Anfrage senden") */
.inquiry-more { display: inline-block; font-weight: 600; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.inquiry-more:hover { color: var(--text); }

/* Allgemeiner Fehler über dem Formular (z. B. Mail konnte nicht zugestellt werden) */
.form-alert { margin: 0 0 16px; border-color: #c0392b; }
.form-alert svg { color: #b03a2e; }

/* Hinweis "Du hast dieses Haus bereits am … angefragt" über dem Formular */
.inquiry-before { margin: 0 0 16px; }
.inquiry-before p { font-size: 14px; }


@media (max-width: 1100px) {
    /* Rechte Spalte (Bild 3 und 5) ausblenden – Bild 2 und 4 untereinander */
    .gallery-side img:nth-child(2),
    .gallery-side img:nth-child(4) { display: none; }
    .gallery { align-items: stretch; }
    .gallery-main { width: 66.666%; }
    .gallery-side {
        width: 33.333%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
    .gallery-side img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }
}
@media (max-width: 1000px) {
    .header-claim { display: none; }
    /* Brotkrumen kürzen: Algarve › … › Ort */
    .breadcrumbs .bc-mid { display: none; }
    .breadcrumbs .bc-more { display: flex; }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lang-menu summary { padding: 6px 10px; }
    /* Header mit Herz der Merkliste: engere Abstände, damit alles in eine Zeile passt */
    .header-nav { gap: 10px; }
    .fav-link { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
    /* kleinste Handys (z. B. iPhone SE, 320 px): Kopfzeile enger, damit nichts über den Rand ragt – sonst wird die
       ganze Seite breiter als der Bildschirm, und das iPhone verschiebt feste Ebenen wie die Lightbox */
    .header-nav { gap: 6px; }
    .logo { font-size: 19px; gap: 8px; }
    .logo svg { width: 30px; height: 30px; }
    .fav-link { width: 30px; }
}
@media (max-width: 420px) {
    /* sehr schmale Handys: Sprachknopf nur mit Kürzel und Pfeil (ohne Weltkugel) */
    .lang-menu summary { padding: 6px 8px; }
    .lang-menu summary svg:not(.lang-chevron) { display: none; }
    /* Weitere Häuser: seitlich wischbar */
    /* scroll-padding: beim Einrasten bleibt links derselbe Abstand wie der Seitenrand */
    .similar-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; gap: 14px; margin: 0 -24px; padding: 0 24px 6px; scrollbar-width: none; }
    .similar-grid::-webkit-scrollbar { display: none; }
    /* feste Breite wie die Kacheln im Popup am PC – sonst wären sie am Handy größer als dort */
    .similar-card { flex: 0 0 180px; scroll-snap-align: start; }
    .desc-grid, .ratings-grid { grid-template-columns: 1fr; }
    /* mobil: eine Zeile, seitlich wischbar */
    .jumpnav { flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
    .jumpnav::-webkit-scrollbar { display: none; }
    .cal-months { grid-template-columns: 1fr; }
    .ratings { padding: 22px 18px; }
    .popup-head { padding: 20px 64px 14px 24px; }
    .popup-head-center { padding: 18px 56px 14px; }
    .popup-body { padding: 16px 24px 22px; }
    .popup-title { font-size: 19px; }
    .popup-body .request-tip { display: none; }   /* am Handy ohne Tipp – kürzer */
    .ratings h2 { font-size: 22px; }
    .desc-lead { font-size: 19px; }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .gallery { flex-direction: column; height: auto; }
    .crumbs { display: none; }
    .photo-btn { display: inline-flex; }
    .gallery-main { width: 100%; aspect-ratio: 4 / 3; }
    .gallery-side { display: none; }
}


/* ------------------------------------------------------------------
   GASTGEBER-BEREICH – Host-Popup (script/hosts/popup-host.php), Vorschau-Hinweis (property.php),
   Link im Header (includes/header.php), Seite "Link ungültig" (host.php)
   ------------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.host-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sea); text-decoration: none; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.host-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.host-link:hover { border-color: var(--sea); }
.host-msg { max-width: 560px; margin: 12vh auto; padding: 28px; background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(58,51,48,.16); }
.host-msg h1 { font-size: 22px; margin-bottom: 8px; }

/* Vorschau eines Hauses, das nicht online ist */
.preview-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 14px 0 4px; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-left: 4px solid var(--accent); font-size: 15px; }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.preview-btn { padding: 9px 14px; border-radius: 8px; border: 0; background: var(--accent); color: var(--on-accent); font: 600 14px/1.3 'Inter', system-ui, sans-serif; cursor: pointer; }
.preview-link { font-size: 14px; font-weight: 600; color: var(--sea); }
/* Zeile unter dem Vorschau-Text: „FAQ für Gastgeber · Datenschutz für Gastgeber“ (property.php) */
.preview-text { flex: 1 1 320px; }
.preview-text p { margin: 0; }
.preview-text .preview-more { margin-top: 6px; font-size: 14px; color: var(--muted); }
.preview-text .preview-more a { color: var(--sea); text-decoration: none; white-space: nowrap; }
.preview-text .preview-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.preview-btn { display: inline-block; text-decoration: none; }   /* „Haus veröffentlichen“ (Link, sieht aus wie ein Button) */

/* Popup „Haus veröffentlichen“ (script/hosts/popup-claim.php) – Felder und Buttons wie im Host-Popup (.h-…) */
.popup-claim .h-flash, .popup-host-login .h-flash, .popup-request-listing .h-flash { margin: 0 0 14px; }   /* auch in „Login für Gastgeber“ (script/hosts/popup-host-login.php) und „Hausseite erstellen lassen“ */
/* Popup „Kontakt“ (script/popups/popup-contact.php): WhatsApp-Empfehlung oben, darunter das Formular */
.popup-contact .h-flash { margin: 0 0 14px; }
.popup-contact .contact-wa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-left: 4px solid var(--accent); color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }   /* Kasten wie .popup-note */
.popup-contact .contact-wa:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.popup-contact .contact-wa img { width: 40px; height: 40px; flex: none; }
.popup-contact .contact-wa strong { display: block; color: var(--sea); }
.popup-contact .popup-body p.contact-or { margin: 20px 0 10px; font-size: 15px; }
.contact-form .h-field { margin-top: 10px; }
.contact-form textarea { display: block; margin-top: 3px; }
.popup-contact .popup-body p.h-hint { font-size: 12px; margin: 12px 0 0; }   /* Datenschutz-Hinweis: klein und grau wie .h-hint (sonst gilt .popup-body p mit 16px) */
.popup-host-login .popup-head { padding-bottom: 0; }   /* Popup „Login für Gastgeber“: Reiter „Login“ / „Konto anlegen“ unten im Kopf (.ph-tabs wie im Host-Popup) */
.claim-pending { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--sand); border: 1px solid var(--border); font-size: 15px; }
.claim-pending p { margin: 0 0 8px; font-size: 15px; }
.claim-form > summary { font-size: 15px; font-weight: 600; color: var(--sea); cursor: pointer; margin-bottom: 10px; }
.claim-form .h-field { margin-top: 4px; }
/* Popup „Hausseite erstellen lassen“ (script/hosts/popup-request-listing.php): Kasten mit Haus und AL-Nummer wie .claim-pending */
.request-house { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--sand); border: 1px solid var(--border); font-size: 15px; }
.request-house p { margin: 0; font-size: 15px; }
.request-express { margin: 6px 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.request-express summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.request-express[open] summary { margin-bottom: 6px; }
.request-form .h-field { margin-top: 10px; }
.request-form .h-field textarea { display: block; margin-top: 3px; }
.popup-request-listing .h-hint a, .popup-request-listing .popup-body > p a { color: var(--sea); font-weight: 600; }   /* Links (Anleitung, „Schreibe uns“) wie im Host-Popup */

/* Popup-Rahmen: breiter, Kopf mit Haus und Reitern */
.popup-host .popup-box { max-width: 780px; }
.popup-host .popup-head { padding-bottom: 0; }
.popup-host .popup-body { padding: 0; }
.ph-house { display: flex; gap: 14px; align-items: center; }
.ph-house img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.ph-house-text { min-width: 0; }
.ph-house .popup-title { font-size: 20px; }
.ph-house p { font-size: 13px; color: var(--muted); margin: 1px 0 0; }
.ph-view { font-size: 13px; font-weight: 600; color: var(--sea); }
.ph-switch { position: relative; }
.ph-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ph-switch summary::-webkit-details-marker { display: none; }
.ph-switch summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg) translateY(-3px); }
.ph-switch ul { position: absolute; z-index: 5; top: 100%; left: 0; min-width: 260px; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(58,51,48,.16);
	max-height: 560px; overflow-y: auto; }   /* HÖHE DER HAUSAUSWAHL: ca. 10 Häuser (je ca. 54px), danach scrollen */
.ph-switch li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.ph-switch li a:hover, .ph-switch li a[aria-current] { background: var(--sand); }
.ph-switch li a span { font-size: 12px; color: var(--muted); }
.ph-switch li a .ph-switch-name { display: grid; font-size: 15px; color: var(--text); }   /* Name, darunter Ort · AL */
.ph-switch li a .ph-switch-name small { font-size: 12px; color: var(--muted); }
.ph-switch li a .ph-switch-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }   /* Online / Offline mit Punkt */
.ph-switch-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ph-switch-state.is-online::before { background: #3f8f57; }
.ph-switch-state.is-offline::before { background: #d6455d; }
.ph-switch li a { align-items: center; }
/* Blättern in „Anfragen & Rechnungen“ (script/hosts/popup-host.php, .h-pager) */
.h-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.h-pager a { color: var(--sea); text-decoration: none; font-weight: 600; }
.h-pager a:hover { text-decoration: underline; }
.ph-tabs { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; }
/* Reiter als Karteikarten: inaktive Karten leicht getönt mit feinem Rand, die aktive in der Farbe des Inhalts (verschmilzt mit ihm) */
.ph-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px 10px 0 0; white-space: nowrap;
	background: rgba(255,255,255,.45); border: 1px solid var(--border); border-bottom: 0; }
.ph-tabs a:hover { color: var(--text); background: rgba(255,255,255,.75); }
.ph-tabs a.on { background: var(--surface); color: var(--text); }
/* Reiter, der eine eigene Seite öffnet (Popup „Login für Gastgeber“: „FAQ →“) – etwas abgesetzt, ca. Breite eines „H“ */
.ph-tabs a.ph-tab-page { margin-left: 10px; }
.t-short { display: none; }

/* Abschnitte */
.h-sec { padding: 18px 28px; border-top: 1px solid var(--border); }
/* Sprungleiste oben in der Karte (script/hosts/popup-host/jump_bar.php): eine Zeile grauer Textlinks, getrennt durch „·“,
   ohne Rahmen – gehört zur Karte, nicht klebend. Zu breit (Handy) → seitlich wischen, ohne sichtbaren Balken.
   Der Punkt steht als inline-block vor dem Link, damit er beim Darüberfahren nicht mit unterstrichen wird. */
.h-jump { display: flex; overflow-x: auto; white-space: nowrap; padding: 12px 28px 10px; border-bottom: 1px solid var(--border); font-size: 13px; scrollbar-width: none; }
.h-jump::-webkit-scrollbar { display: none; }
.h-jump a { flex: none; color: var(--muted); text-decoration: none; }
.h-jump a + a::before { content: "·"; display: inline-block; margin: 0 8px; color: var(--muted); }
.h-jump a:hover, .h-jump a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.h-jump + .h-sec { border-top: 0; }   /* kein doppelter Strich unter der Leiste */
/* „Nach oben“ im Host-Popup (script/hosts/popup-host.php, script/js/host.js Abschnitt 6) – Aussehen wie im Blog
   (css/blog.css .blog-float-btn). Block ohne Höhe am Ende des Popups, klebt unten im Popup (sticky), der Knopf ragt
   nach oben; so liegt er immer unten rechts im Popup, egal wie groß es ist. Abstand oben (60 px), damit er am Ende
   des Popups nichts von der Fußzeile verdeckt. */
.h-to-top-wrap { position: sticky; bottom: 16px; height: 0; margin-top: 60px; display: flex; justify-content: flex-end; align-items: flex-end; padding-right: 16px; pointer-events: none; }
.h-to-top { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.16); text-decoration: none; }
.h-to-top[hidden] { display: none; }
.h-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-to-top:hover { border-color: var(--text); }
.h-sec:first-child, .h-house > .h-sec:first-child { border-top: 0; }
.h-sec.h-sec-joined { border-top: 0; padding-top: 4px; }   /* Online/Offline direkt unter der Bildfreigabe */
.h-sec h3 { font-size: 16px; margin: 0 0 2px; }
.h-row { display: flex; align-items: flex-start; gap: 14px; }
.h-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent-hover); font-size: 16px; }
.h-ico.ok { background: #e6f2ea; color: #3f8f5a; }
.h-ico-svg svg { display: block; }   /* eigenes Icon (z. B. Direktbuchung: Zielscheibe mit Pfeil) */
.h-txt { flex: 1; min-width: 0; }
.h-txt > p { font-size: 15px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); margin: 0; }
/* TEXTREGEL IM HOST-POPUP
   Schwarz, 16 px (normales <p>): Erklärtext direkt unter einer Überschrift (h3, .h-subhead, legend) – bis zum ersten
   Feld oder Knopf; zwei Absätze hintereinander sind beide schwarz.
   Grau, 13 px (.h-hint und .h-meta, gleich groß): alles andere – Hinweise an Feldern, unter Formularen und Schaltern,
   Stand/Datum, Fragen mit Link. Ausgenommen: Meldungen (.h-flash), Feldbeschriftungen (.h-label) und Inhalte
   (Vertragstext, Übersicht der Bedingungen, Preistabellen).
   „.popup-body p.…“ ist nötig, weil sonst .popup-body p (16 px) gewinnt. */
.h-txt p.h-meta, .h-meta, .popup-body p.h-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.h-meta a, .h-txt a { color: var(--sea); font-weight: 600; }
.h-flash { margin: 14px 28px 4px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }   /* immer oben im Host-Popup */
.h-flash a { color: inherit; font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.h-flash-ok { background: #e6f2ea; color: #2f6f45; }
.h-flash-error { background: #fbe9e4; color: #9a3412; }
.h-flash-warn { background: #fdf3d3; color: #7a5300; }
/* Ladeanzeige über dem Host-Popup (script/js/host.js), z. B. beim Herunterladen der Bilder */
.h-loading { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: color-mix(in srgb, var(--surface, #fff) 96%, transparent); text-align: center; }
.h-loading p { margin: 0; font-size: 16px; font-weight: 600; color: var(--text, #3a3330); max-width: 320px; }
.h-loading-bar { position: relative; display: block; width: 220px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.h-loading-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px; background: var(--sea); animation: h-loading 1.2s ease-in-out infinite; }
@keyframes h-loading { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .h-loading-bar::after { animation: none; left: 0; width: 100%; opacity: .5; } }
.h-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--sand); flex: none; font: 600 14px/1.4 'Inter', system-ui, sans-serif; cursor: pointer; }
/* Ein Knopf für den ganzen Schalter (popup-host.php): jeder Klick schaltet um – die beiden Wörter sind nur Anzeige */
.h-switch span { padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.h-switch.is-locked { cursor: not-allowed; opacity: .55; }   /* Schalter „Online / Offline“ gesperrt, solange es noch keine Beschreibung gibt (popup-host.php) */
.h-switch span.on { background: #3f8f5a; color: #fff; }
.h-switch span.off { background: var(--text); color: #fff; }
.h-switch:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.h-prices { margin: 10px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 15px; }
.h-prices dt small { color: var(--muted); font-size: 13px; margin-left: 6px; }
.h-prices dd { margin: 0; font-weight: 600; text-align: right; }
.h-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
/* Lange Formulare: Speichern-Knopf bleibt unten im Popup sichtbar (Hintergrund wie das Formular) */
.h-edit .h-btns { position: sticky; bottom: 0; z-index: 2; margin: 12px -16px -14px; padding: 10px 16px 14px; background: var(--sand); border-radius: 0 0 12px 12px; }
.h-btn { display: inline-block; padding: 10px 16px; border-radius: 8px; font: 600 15px/1.3 'Inter', system-ui, sans-serif; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.h-btn:hover { border-color: var(--muted); }
.h-btn.main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.h-btn.main:hover { background: var(--accent-hover); }
.h-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, #fff); color: #8a5a14; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.h-badge.ok { background: #e6f2ea; color: #2f6f45; }
.h-badge.grey { background: var(--sand); color: var(--muted); border: 1px solid var(--border); }
.h-details { margin-top: 12px; }
.h-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 12px; }
.h-actions > form, .h-actions > .h-details { margin: 0; }
.h-actions > .h-details[open] { flex-basis: 100%; }
.h-details > summary { list-style: none; }
.h-details > summary::-webkit-details-marker { display: none; }
.h-details[open] > summary { display: none; }
.h-edit { margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--sand); }
.h-season { --season-color: var(--sea); min-width: 0; border: 0; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }   /* --season-color: Farbe des Zeitstrahls, je Saison im style-Attribut (popup-host.php) */
.h-season-head { display: flex; align-items: center; gap: 8px; }
.h-season-del { flex: none; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.h-season-del:hover { color: #9a3412; border-color: #9a3412; }
.h-season-name { width: 100%; max-width: 280px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font: 600 14px 'Inter', sans-serif; }
/* Zeitstrahl je Saison (script/js/host.js zeichnet Balken und Punkte; ohne JavaScript verborgen) */
.h-timeline { display: grid; gap: 2px; }
.h-timeline-months { display: grid; grid-template-columns: repeat(12, 1fr); margin-right: 104px; font-size: 11px; color: var(--muted); text-align: center; }
.h-timeline-row { display: flex; align-items: center; gap: 10px; }
.h-timeline-track { position: relative; flex: 1; height: 22px; touch-action: none; }
.h-timeline-track::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--border); border-radius: 1px; }
.h-timeline-bar { position: absolute; top: 8px; height: 6px; border-radius: 3px; background: var(--season-color); }
.h-timeline-dot { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--season-color); cursor: ew-resize; touch-action: none; }
.h-timeline-add { flex: none; width: 94px; border: 0; background: none; padding: 0; font: 600 13px 'Inter', sans-serif; color: var(--sea); cursor: pointer; text-align: right; white-space: nowrap; }
/* Zeiträume: Tag + Monat → Tag + Monat */
.h-periods { display: grid; gap: 6px; }
.h-period { display: grid; grid-template-columns: 58px minmax(0, 96px) auto 58px minmax(0, 96px) 28px; align-items: center; gap: 6px; }
.h-period .h-day { width: 58px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font: 15px 'Inter', sans-serif; background: #fff; }
.h-period .h-month { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font: 15px 'Inter', sans-serif; background: #fff; }
.h-period-arrow { color: var(--muted); }
.h-period-del { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; display: none; }
.h-period-del:hover { color: #9a3412; border-color: #9a3412; }
html.h-js .h-period-del { display: block; }   /* nur mit JavaScript (Klasse setzt script/js/host.js) – ohne: Felder leeren */
.h-period:last-child .h-period-del { visibility: hidden; }   /* leere Zeile unten: nichts zu löschen */
.h-season-price { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.h-season-price input { width: 100px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.h-hint, .popup-body p.h-hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }   /* grau 13 px wie .h-meta (Textregel oben) */
.popup-body p.h-hint-why { line-height: 1.5; margin: 10px 0 0; }   /* „Warum der Quelltext?“ im Reiter „AL eintragen“ – Größe und Farbe wie .h-hint */
.popup-body p.h-ical-failed { font-size: 14px; color: #9a3412; margin: 6px 0 0; }   /* Kalender: letzter Abruf eines Links gescheitert (Abschnitt „Kalender“, Reiter „Mein Haus“) – Farbe wie .h-flash-error */
.popup-body p.h-ical-ok { font-size: 14px; font-weight: 600; color: #2f6f45; margin: 0 0 4px; }   /* Kalender: „3 Kalender verbunden: Airbnb, Booking.com, Vrbo“ – Grün wie .h-badge.ok */
.h-ical-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }   /* Kalender-Formular: ein Feld je Link, untereinander (script/js/host.js fügt das nächste leere an) */
.h-edit .h-ical-list input[type="url"] { margin-top: 0; }   /* Abstand kommt vom gap */
.h-label { display: block; font-size: 13px; color: var(--muted); }
.h-edit input[type="url"], .h-link { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: 15px 'Inter', sans-serif; background: #fff; }
.h-paste { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed color-mix(in srgb, var(--muted) 50%, var(--border)); border-radius: 10px; font: 13px/1.4 'Inter', sans-serif; background: var(--sand); resize: vertical; }
.h-more { margin-top: 10px; }
.h-more > summary { font-size: 14px; color: var(--sea); font-weight: 600; cursor: pointer; }
.h-howto { margin: 8px 0 0 20px; font-size: 14px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.h-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 10px; }
.h-field { display: block; }
.h-field.full { grid-column: 1 / -1; }
.h-field input, .h-field select { display: block; width: 100%; margin-top: 3px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: 15px 'Inter', sans-serif; color: var(--text); background: #fff; }
.h-static { display: block; margin-top: 3px; padding: 9px 0; font-size: 15px; font-weight: 600; }
.h-check { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; color: var(--muted); }
.h-check.ok { color: #2f6f45; } .h-check.bad { color: #9a3412; }
.h-model { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--sand); border: 1px solid var(--border); font-size: 15px; }
.h-model b { display: block; font-size: 16px; margin-bottom: 4px; }
.h-model ul { margin: 6px 0 0 18px; padding: 0; }
.h-model li { margin: 0 0 8px; }   /* Abstand zwischen den Punkten wie in den AGB (.agb-doc li) */
/* Vor der Modellwahl: zwei Reiter „Pro Anfrage“ / „Pro Buchung“ (script/hosts/popup-host.php), umgeschaltet ohne JavaScript */
.h-model-tab-input { position: absolute; opacity: 0; pointer-events: none; }
.h-model-tabs { display: flex; gap: 6px; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
.h-model-tabs label { padding: 6px 12px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 8px 8px 0 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.h-model:has(#h-model-tab-inquiry:checked) label[for="h-model-tab-inquiry"],
.h-model:has(#h-model-tab-commission:checked) label[for="h-model-tab-commission"] { border-color: var(--border); border-bottom-color: var(--sand); background: var(--sand); color: var(--text); font-weight: 600; }
.h-model:has(.h-model-tab-input) .h-model-panel { display: none; }
.h-model:has(#h-model-tab-inquiry:checked) .h-model-panel-inquiry,
.h-model:has(#h-model-tab-commission:checked) .h-model-panel-commission { display: block; }
.h-model .h-model-valid { margin: 0 0 8px; font-size: 13px; color: var(--muted); }   /* „Gültig seit …“ (a4u_owners.billing_valid_from) */
/* Teile, die nur im Ausdruck erscheinen (Zahlungsbedingungen: Kopf, Titel, Gastgeber, Fuß – script/hosts/popup-host.php) */
.print-only { display: none; }
.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.h-stats-two { grid-template-columns: repeat(2, 1fr); }   /* Anfragemodell „Alle Häuser“: ohne Kachel „nächste abgerechnete“ */
.h-stats div { padding: 12px; border-radius: 12px; background: var(--sand); text-align: center; }
.h-stats b { display: block; font-size: 22px; }
.h-stats span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }   /* Beschriftung über der Zahl */
.h-empty { font-size: 15px; color: var(--muted); margin-top: 8px; }
.h-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.h-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.h-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.h-table .r { text-align: right; }
.h-table a { color: var(--sea); font-weight: 600; }
.h-table .h-hint { margin-top: 2px; }
.h-table .h-value b { font-weight: 600; color: var(--text); }   /* Host-Popup „Anfragen“: Wert der Anfrage hervorheben */
.h-table .r .h-badge { margin-left: 0; }   /* Abrechnungs-Badge rechtsbündig ohne Abstand links */
.h-fee { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }   /* Rechenweg unter dem Badge: „6 % von Ø 1.080 € (Nr. 2–4)“ */
/* Provisionsmodell: Knöpfe in der Anfragenzeile und aufklappbare Formular-Zeile (script/hosts/popup-host.php).
   Ohne JavaScript: das versteckte Häkchenfeld .h-confirm-toggle wird über sein <label> umgeschaltet, die Zeile darunter
   (.h-confirm-row) erscheint nur, solange es angehakt ist. */
.h-btn.small { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.h-row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 6px 0 0 8px; vertical-align: middle; }
.h-row-actions form { display: inline; }
.h-row-house { display: block; font-size: 13px; color: var(--sea); }
.h-confirm-row { display: none; }
tr:has(.h-confirm-toggle:checked) + .h-confirm-row { display: table-row; }
tr:has(.h-cancel-toggle:checked) + .h-confirm-row + .h-cancel-row { display: table-row; }   /* „Stornieren“: zweite Zeile mit dem einbehaltenen Betrag */
.h-confirm-row > td { padding-top: 0; }
.h-confirm-row form { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--sand); }
.h-confirm-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.h-confirm-fields label { flex: 1 1 140px; font-size: 12px; font-weight: 600; color: var(--muted); }
.h-confirm-fields select { display: block; width: 100%; margin-top: 3px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; font: 14px 'Inter', sans-serif; color: var(--text); background: #fff; box-sizing: border-box; }
.h-confirm-fields .h-confirm-house { flex: 2 1 220px; }
/* Stornieren: Grund (breit) und Freitext nur bei „Sonstiges“ (ohne JavaScript über :has) */
.h-confirm-fields label:has(.h-cancel-reason) { flex: 2 1 220px; }
.h-cancel-row .h-cancel-note { display: none; flex: 1 1 100%; }
.h-cancel-row:has(.h-cancel-reason option[value="other"]:checked) .h-cancel-note { display: block; }
.h-confirm-fields input { display: block; width: 100%; margin-top: 3px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; font: 14px 'Inter', sans-serif; color: var(--text); background: #fff; box-sizing: border-box; }
.h-confirm-fields .h-btn { flex: 0 0 auto; }
.h-confirm-row .h-hint { margin: 8px 0 0; }
/* Filter über der Anfragenliste: „Aktuelles Haus / Alle Häuser“ · „Alle / Unbestätigt / Bestätigt“ */
.h-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 12px; }
/* Filter als Aufklapp-Menü (<details>, ohne JavaScript): dezent, Menü klappt unter der Zeile auf */
.h-filter { position: relative; }
.h-filter summary { list-style: none; cursor: pointer; padding: 5px 28px 5px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--muted); background: #fff; position: relative; }
.h-filter summary::-webkit-details-marker { display: none; }
.h-filter summary::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.h-filter[open] summary::after { margin-top: -1px; transform: rotate(225deg); }
.h-filter summary b { font-weight: 600; color: var(--text); }
.h-filter-menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 100%; padding: 4px 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.h-filter-menu a { display: block; padding: 6px 12px; font-size: 13px; color: var(--text); text-decoration: none; white-space: nowrap; }
.h-filter-menu a:hover { background: var(--sand); }
.h-filter-menu a.active { font-weight: 600; color: var(--sea); }
.h-link-row { margin-top: 12px; }
.h-link-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; color: var(--text); font-size: 14px; }
.h-link-name small { font-weight: 400; color: var(--muted); font-size: 13px; }
.h-link-name .h-link-taken { color: #2f6f45; }
.h-profile { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
.h-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.h-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--sand); border: 1px solid var(--border); font-size: 26px; font-weight: 700; color: var(--muted); }
.h-profile-fields { flex: 1; margin-top: 0; grid-template-columns: 1fr; }
.h-field input[type="file"] { padding: 7px; background: var(--sand); }
.h-check-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); }
.h-check-line input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--accent); }
/* Host-Popup „Mein Haus“ → Preise: Art der Preise und „Im Preis enthalten“ (popup-host.php) */
.h-price-type { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.h-subhead { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.h-price-type .h-subhead + .h-form { margin-top: 0; }
/* Wahl „ab“-Preise / Festpreise: Pille wie .h-switch, ein Ankreuzfeld – Klick irgendwo schaltet um, gewählte Hälfte grün */
.h-switch-choice { position: relative; }
.h-switch-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.h-switch-choice input:not(:checked) ~ .h-choice-from, .h-switch-choice input:checked ~ .h-choice-fixed { background: #3f8f5a; color: #fff; }
.h-switch-choice:has(input:focus-visible) { outline: 2px solid var(--sea); outline-offset: 2px; }
.h-price-type .h-hint + .h-subhead { margin-top: 14px; }
/* Hinweis der gewählten Art (ohne JavaScript) */
.popup-body .h-price-type p.h-price-fixed-only { display: none; }   /* spezifischer als .popup-body p.h-hint (display: block) */
.h-price-type:has(input[name="price_fixed"]:checked) .h-price-fixed-only { display: block; }
.h-price-type:has(input[name="price_fixed"]:checked) .h-price-from-only { display: none; }
.h-edit:has(input[name="price_fixed"]:checked) .h-season-from { display: none; }   /* Festpreise: kein „ab“ vor dem Preis */
.h-form.h-form-3 { grid-template-columns: repeat(3, 1fr); }   /* Personen · weitere Person · Endreinigung in einer Zeile */
@media (max-width: 560px) { .h-form.h-form-3 { grid-template-columns: 1fr; } }
.h-prices.h-prices-extras { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }   /* Zusatzkosten unter den Saisons */
/* Uhrzeit: Stunde : Minute als zwei Auswahllisten (Buchungsregeln) */
.h-time { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.h-field .h-time select { width: auto; min-width: 72px; margin-top: 0; }
.h-time-unit { font-size: 14px; color: var(--muted); }
/* Host-Popup „Mein Haus“ → Buchungsregeln: Wochentage zum Anklicken (Checkbox im Label, ohne JavaScript) */
.h-days { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.h-days label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.h-days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.h-days label:has(input:checked) { background: #fde8e4; border-color: #e7a89b; color: #9a3412; text-decoration: line-through; font-weight: 600; }   /* ausgeschlossen */
.h-days label:has(input:focus-visible) { outline: 2px solid var(--sea); outline-offset: 2px; }
.h-rules-label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.h-rules-label:first-child { margin-top: 0; }
.h-check-line.h-rules-all { margin-top: 12px; }   /* „Diese Einstellung für alle meine Häuser übernehmen“ */
/* Host-Popup „Mein Haus“ → Kalender: Algarve4U-Kalender (Export) und Kalender der anderen Portale (Import) getrennt */
.h-ical-part + .h-ical-part { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.h-ical-part > p { margin: 0 0 4px; }
.h-copy { display: flex; gap: 8px; margin-top: 8px; }
.h-copy input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: 13px 'Inter', sans-serif; background: var(--sand); color: var(--text); }
/* Host-Popup „Mein Haus“ → Direktbuchung: Checkliste */
.h-checklist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; }
.h-checklist li { padding: 2px 0 2px 24px; position: relative; }
.h-checklist li::before { position: absolute; left: 0; font-weight: 700; }
.h-checklist li.ok::before { content: '✓'; color: #2f6f45; }
.h-checklist li.bad { color: var(--muted); }
.h-checklist li.bad::before { content: '–'; color: #9a3412; }
/* Host-Popup „Vertrag & Kontakt“ → Buchungsbedingungen */
.h-bt-title { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.h-warn-text { color: #8a5a14; }
.h-bt-edit .h-subhead { margin-top: 4px; }
.h-bt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: 14px; }
.h-bt-row input { width: 72px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font: 15px 'Inter', sans-serif; background: #fff; }
.h-edit .h-bt-row select { display: inline-block; width: auto; margin: 0; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font: 14px 'Inter', sans-serif; background: #fff; }
.h-edit .h-bt-row input { display: inline-block; margin: 0; }
.h-bt-texts-title { margin-top: 14px; }
.h-bt-langs label:has(input:checked) { background: color-mix(in srgb, var(--accent) 22%, #fff); border-color: var(--accent); color: var(--text); text-decoration: none; }   /* gewählte Sprache (nicht „ausgeschlossen“ wie bei den Tagen) */
.h-bt-edit .h-bt-text { display: none; margin-top: 8px; }
.h-bt-text textarea { display: block; width: 100%; margin-top: 3px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: 14px/1.45 'Inter', sans-serif; background: #fff; resize: vertical; }
.h-bt-edit:has(input[name="text_lang[]"][value="de"]:checked) .h-bt-text[data-lang="de"],
.h-bt-edit:has(input[name="text_lang[]"][value="en"]:checked) .h-bt-text[data-lang="en"],
.h-bt-edit:has(input[name="text_lang[]"][value="es"]:checked) .h-bt-text[data-lang="es"],
.h-bt-edit:has(input[name="text_lang[]"][value="fr"]:checked) .h-bt-text[data-lang="fr"],
.h-bt-edit:has(input[name="text_lang[]"][value="nl"]:checked) .h-bt-text[data-lang="nl"],
.h-bt-edit:has(input[name="text_lang[]"][value="pl"]:checked) .h-bt-text[data-lang="pl"],
.h-bt-edit:has(input[name="text_lang[]"][value="pt"]:checked) .h-bt-text[data-lang="pt"] { display: block; }   /* Textfeld der gewählten Sprachen (Liste wie $language_names) */
/* Buchungsbedingungen eines Gastgebers (Popup „Buchungsbedingungen“ und „Vertrag & Kontakt“, booking_terms_view.php) */
.booking-terms-block { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.booking-terms-block h3 { margin: 0 0 6px; font-size: 15px; }
.booking-terms-block ul { margin: 0; padding-left: 18px; font-size: 14px; }
.popup-body .booking-terms-block p { margin: 0; font-size: 14px; line-height: 1.5; }
.popup-body p.booking-terms-date { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.h-terms .h-check-line { align-items: flex-start; margin: 14px 0 4px; line-height: 1.4; }
.h-terms .h-check-line input[type="checkbox"] { margin-top: 1px; }
.h-terms-links { flex-basis: 100%; display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }   /* „Dein Abrechnungsmodell · AGB“ unter „Vertrag“ */
.h-terms-links a { color: var(--muted); }
/* Modellwahl beim Vertrag (script/hosts/popup-host.php): zwei Karten, die gewählte mit Rahmen in der Akzentfarbe */
.h-model-choice { margin: 14px 0 6px; padding: 0; border: 0; }
.h-model-choice legend { padding: 0; font-weight: 700; font-size: 16px; }
.h-model-choice .h-hint, .h-model-choice > p { margin: 4px 0 8px; }
.h-model-choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-model-card { display: block; position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.45; }
.h-model-card input[type="radio"] { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.h-model-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.h-model-card span { color: var(--muted); }
.h-model-card .h-model-tag { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--text); font-size: 12px; font-style: normal; font-weight: 600; vertical-align: 1px; }   /* „Empfohlen“ / „Am einfachsten“ in der Modellwahl */
.h-model-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Schalter statt Häkchen (Host-Popup, „Die Bilder aus diesem Inserat dürfen verwendet werden“) – das
   echte Häkchen bleibt im Formular (unsichtbar, per Tastatur bedienbar), angezeigt wird die Schiene */
.h-toggle { position: relative; display: flex; gap: 10px; align-items: center; margin: 10px 0 0; font-size: 14px; color: var(--text); cursor: pointer; }
.h-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.h-toggle-track { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: var(--border); transition: background .2s; }
.h-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.h-toggle input:checked + .h-toggle-track { background: #3f8f5a; }
.h-toggle input:checked + .h-toggle-track::after { transform: translateX(18px); }
.h-toggle input:focus-visible + .h-toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
#h-images form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h-toggle-small { margin: 6px 0 0; font-size: 13px; }
.h-tip { margin-top: 6px; }
.h-tip .tip { width: 280px; }
.h-foot { padding: 14px 28px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--sand) 60%, #fff); }
.h-foot a { color: var(--sea); text-decoration: none; }   /* unterstrichen nur bei Mouseover – wie im Footer der Website */
.h-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-foot .h-wa { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text); text-decoration: none; }
.h-foot .h-wa:hover { text-decoration: none; }
.h-foot .h-wa:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.h-foot .h-wa img { width: 26px; height: 26px; flex: none; }
/* Fußzeile im Popup „Login für Gastgeber“ (script/hosts/popup-host-login.php): bis an den Rand – gleicht das Innen-Polster von .popup-body aus */
.h-foot-login { margin: 22px -28px -24px; }
@media (max-width: 640px) { .h-foot.h-foot-login { margin: 20px -24px -22px; padding: 12px 24px 16px; } }   /* passend zum schmaleren Polster von .popup-body am Handy, Text bündig mit dem Inhalt */
.h-foot .h-wa strong { color: var(--sea); }
@media (max-width: 640px) {
	/* Preise: Zeiträume schmaler, „+ hinzufügen“ unter dem Zeitstrahl */
	.h-timeline-months { margin-right: 0; font-size: 10px; }
	.h-timeline-row { flex-wrap: wrap; }
	.h-timeline-track { flex-basis: 100%; }
	.h-timeline-add { width: auto; margin-left: auto; }
	.h-period { grid-template-columns: 34px minmax(0, 1fr) auto 34px minmax(0, 1fr) 26px; gap: 4px; }
	.h-period .h-day, .h-period .h-month { padding: 7px 4px; font-size: 14px; text-align: center; }
	.h-period .h-month { -webkit-appearance: none; appearance: none; }   /* ohne Pfeil – sonst passt der Monatsname nicht */
	.h-period .h-day { width: 100%; -moz-appearance: textfield; }
	.h-period .h-day::-webkit-inner-spin-button, .h-period .h-day::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
	.h-period-del { width: 26px; height: 26px; }
    .h-sec { padding: 16px 18px; }
    .h-jump { padding-left: 18px; padding-right: 18px; }
    .h-flash { margin: 12px 18px 4px; }
    .h-foot { padding: 12px 18px 16px; }
    .h-row-wrap { flex-wrap: wrap; }
    .h-row-wrap .h-txt { flex-basis: calc(100% - 48px); }
    .h-row-wrap form { margin-left: 48px; }
    .h-btns .h-btn, .h-details > summary.h-btn { flex: 1; text-align: center; }
    .h-form { grid-template-columns: 1fr; }
    .h-model-choice-cards { grid-template-columns: 1fr; }
    .ph-tabs { gap: 2px; }
    .ph-tabs a { flex: 1; text-align: center; padding: 9px 6px; }
    .ph-tabs a.ph-tab-page { flex: none; margin-left: 8px; padding: 9px 10px; }   /* „FAQ →“ nur so breit wie nötig */
    .t-long { display: none; } .t-short { display: inline; }
    .h-stats b { font-size: 19px; } .h-stats span { font-size: 12px; line-height: 1.3; display: block; } .h-stats div { padding: 10px 6px; }
    .h-table thead { display: none; }
    .h-table tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--border); }
    .h-table td { border: 0; padding: 2px 0; }
    .h-table td:nth-child(2) { grid-column: 1; }
    .h-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    /* Formular-Zeile (Provisionsmodell): auch am Handy erst nach Klick, dann über die ganze Breite */
    .h-table tr.h-confirm-row { display: none; }
    .h-table tr:has(.h-confirm-toggle:checked) + tr.h-confirm-row,
    .h-table tr:has(.h-cancel-toggle:checked) + tr.h-confirm-row + tr.h-cancel-row { display: block; border-bottom: 0; padding-top: 0; }
    .h-table tr.h-confirm-row td { display: block; }
    .h-fee { max-width: 140px; margin-left: auto; }   /* Rechenweg auf dem Handy umbrechen statt die Spalte zu verbreitern */
    .h-inv td:nth-child(3) { grid-column: 1; grid-row: auto; text-align: left; }
    .h-inv td:nth-child(4) { grid-column: 2; }
    .host-link { padding: 7px; }          /* am Handy nur das Haus-Symbol (Text bleibt für Screenreader im aria-label) */
    .host-link span { display: none; }
    .h-actions > form { flex: 1; } .h-actions > form .h-btn, .h-actions > .h-details { flex: 1; }
    .h-actions > .h-details > summary.h-btn { display: block; }
    .preview-note { font-size: 14px; }
}

/* Vertrag (AGB) im Host-Popup, Reiter „Vertrag & Kontakt“ (script/hosts/popup-host.php)
   – aufklappbar; der Text erscheint wie ein Dokument (weiße Seite, Schrift mit Serifen) */
.h-terms > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; list-style: none; }
.h-terms > summary::-webkit-details-marker { display: none; }
.h-terms > summary h3 { margin: 0; }
/* Überschrift „Vertrag“ wie ein Link: unterstrichen bei Mouseover, der Pfeil zum Aufklappen direkt neben dem Wort */
.h-terms > summary:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.h-terms > summary h3::after { content: "▾"; display: inline-block; margin-left: 6px; color: var(--muted); font-size: .85em; transition: transform .2s; }
.h-terms:not([open]) > summary h3::after { transform: rotate(-90deg); }
.agb-doc { margin: 12px 0; padding: 28px 32px; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 2px 10px rgba(58,51,48,.08); font: 14px/1.6 Georgia, 'Times New Roman', serif; color: #222; }
.agb-doc h4 { margin: 18px 0 6px; font-size: 15px; }
.agb-doc h4:first-child { margin-top: 0; font-size: 17px; text-align: center; }
.agb-doc p, .agb-doc li { margin: 0 0 8px; }
.agb-doc .agb-signed { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--border); font-style: italic; }
@media (max-width: 640px) { .agb-doc { padding: 18px 16px; max-height: 360px; } }

/* Rahmenvertrag (Host-Popup) und AGB (Popup „AGB“): Druckknopf, Kopf und Fuß wie auf den Rechnungen
   (script/hosts/terms/_terms_load.php) – am Bildschirm und im Ausdruck. Drucken: script/js/popup.js (.js-print). */
.legal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.legal-tools .h-flash { margin: 0; flex: 1 1 260px; }
.legal-doc-head { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 18px; font: 700 20px/1 'Inter', system-ui, sans-serif; color: #3d6a7a; }
.legal-doc-head svg { width: 34px; height: 34px; flex: none; }
.legal-doc-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--border); font: 12px/1.5 'Inter', system-ui, sans-serif; color: var(--muted); }
.legal-doc-foot svg { width: 28px; height: 28px; flex: none; }
.legal-doc h3 { font-size: 17px; margin: 0 0 10px; }
.legal-doc h4 { font-size: 15px; margin: 18px 0 6px; }
.legal-doc .legal-valid { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
.agb-doc h3 { text-align: center; }
/* Hinweis auf angekündigte AGB oben im Host-Popup, über den Reitern (script/hosts/popup-host.php) */
.ph-terms-notice { margin: 14px 0 0; }

/* Druckbereich: am Bildschirm unsichtbar. Beim Drucken (html.a4u-printing) NUR er – Seite und Popup bleiben weg.
   Kopf (Logo) und Fuß (Anschrift) stehen in <thead>/<tfoot> der Tabelle .print-frame und erscheinen auf JEDER Seite
   (script/js/popup.js). Eigene Druckseite „legal“ mit Rand 0: Chrome/Edge drucken dann keine Adresse, kein Datum und keine
   Seitenzahl an den Rand – den Abstand zum Papierrand geben Kopf, Fuß und die seitlichen Polster der Tabelle. */
#a4u-print { display: none; }
@page legal { margin: 0; }
@media print {
    html.a4u-printing, html.a4u-printing body { height: auto !important; overflow: visible !important; background: #fff !important; margin: 0 !important; }
    html.a4u-printing body > *:not(#a4u-print) { display: none !important; }
    html.a4u-printing #a4u-print { display: block; page: legal; }
    #a4u-print .print-frame { width: 100%; border-collapse: collapse; }
    #a4u-print .print-frame td { padding: 0 18mm; vertical-align: top; }
    #a4u-print .print-frame thead td { padding-top: 12mm; padding-bottom: 4mm; }
    #a4u-print .print-frame tfoot td { padding-top: 4mm; padding-bottom: 10mm; }
    #a4u-print .legal-doc-head { margin: 0; }
    #a4u-print .legal-doc-foot { margin: 0; }
    #a4u-print .legal-doc { max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; box-shadow: none; font: 11pt/1.5 Georgia, 'Times New Roman', serif; color: #000; }
    #a4u-print .legal-doc a { color: #000; text-decoration: none; }
    #a4u-print .legal-doc h3, #a4u-print .legal-doc h4 { break-after: avoid; }
    #a4u-print .legal-doc li, #a4u-print .legal-doc p { break-inside: avoid; }
    #a4u-print .legal-doc ul { padding-left: 18px; }
    #a4u-print .print-only { display: block; }
    #a4u-print .h-model { background: none; border: 0; border-radius: 0; font-size: 11pt; }
}

/* Host-Popup „Mein Haus“: Bewertungs-Ampel – kleine Info im Online/Offline-Bereich (script/hosts/popup-host.php) */
.h-rating { margin-top: 8px; font-size: 13px; color: var(--muted); }
.h-rating summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; }
.h-rating summary::-webkit-details-marker { display: none; }
.h-rating-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #b8aa9a; transform: translateY(-1px); }
.h-rating.is-green  .h-rating-dot { background: #3f8f5a; }
.h-rating.is-yellow .h-rating-dot { background: #d29a2b; }
.h-rating.is-red    .h-rating-dot { background: #b3412e; }
.h-rating-more { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.h-rating[open] .h-rating-more { display: none; }
.h-sec .h-rating p { margin: 3px 0 0 15px; font-size: 13px; line-height: 1.5; color: var(--muted); }





/* ////// Preise: Monatspreis im Winter (script/hosts/popup-host.php, fieldset.h-season.h-winter) – sieht aus wie jede Saison.
   Schalter ohne JavaScript (.h-toggle). Abgesetzt durch einen „Schnitt“: oberes Stück des Sandkastens, darunter eine
   schmale weiße Fuge über die volle Breite. */
.h-winter { margin: -14px -16px 0; padding: 12px 16px; border-bottom: 6px solid #fff; }
.h-winter .h-winter-toggle { margin: 0 0 0 auto; }
.h-winter:has(.h-winter-toggle input:not(:checked)) .h-winter-toggle { margin: 0; }   /* ausgeschaltet: Schalter zwischen Titel und Einzeiler */
.h-winter-off-title { font-weight: 600; color: var(--text); }
.h-winter .h-season-name[readonly] { background: #fff; color: var(--text); cursor: default; }
.h-winter-off { font-size: 14px; color: var(--muted); }
.h-winter-body { display: grid; gap: 6px; }
.h-timeline-spacer { flex: none; width: 94px; }   /* Platz von „+ hinzufügen“, damit der Zeitstrahl so breit ist wie bei den übrigen Saisons */
.h-winter .h-period { grid-template-columns: 58px minmax(0, 96px) auto 58px minmax(0, 96px) 28px; }
/* Ausgeschaltet: nur Einzeiler + Schalter; eingeschaltet: Name, Hinweis, Zeitstrahl, Zeitraum, Preis */
.h-winter:has(.h-winter-toggle input:not(:checked)) .h-winter-body,
.h-winter:has(.h-winter-toggle input:not(:checked)) .h-season-name,
.h-winter:has(.h-winter-toggle input:checked) .h-winter-off { display: none; }
/* Hinweis Winterpreis auf der Hausseite (property.php, #price-winter – script/js/property.js) */
.price-winter { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--sea); background: var(--surface); font-size: 13px; line-height: 1.45; }
.price-winter[hidden] { display: none; }

/* Popup „Hast du gebucht?“ (script/guests/popup-booking-answer.php) – eine Antwort je Zeile, groß genug zum Tippen */
.guest-answer-buttons { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 12px; }   /* Popup „Hast du gebucht?“ ohne Antwort im Link: zwei Knöpfe */
.guest-answer-buttons .h-btn { width: 100%; padding: 12px 14px; text-align: left; white-space: normal; line-height: 1.4; }


/* DIREKTBUCHUNG – Anfrage-Spalte der Hausseite (property.php) und Popups „Buchung prüfen“ / „Gebucht“
   (script/property/popup-booking.php, popup-booking-done.php). Ladeebene mit der Spiralsonne: script/js/property.js */
.direct-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.direct-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.direct-check a { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; }
.direct-accept { margin-bottom: 12px; }
/* „Lieber erst Fragen klären?“ + Knopf „Unverbindlich anfragen“ unter „Direkt buchen“ (property.php, popup-booking.php):
   Einleitung als eigene Zeile, darunter ein Knopf in voller Breite – umrandet statt gefüllt, damit „Direkt buchen“ die
   erste Wahl bleibt */
.direct-alt { margin: 18px 0 0; text-align: center; }
.direct-alt-intro { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.secondary-btn { width: 100%; padding: 12px 14px; border: 1.5px solid var(--sea); border-radius: 8px; background: var(--surface); color: var(--sea); font-size: 15px; font-weight: 600; cursor: pointer; }
.secondary-btn:hover { background: color-mix(in srgb, var(--sea) 8%, var(--surface)); }
.secondary-btn:disabled { border-color: var(--muted); color: var(--muted); background: var(--surface); cursor: default; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--sea); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-btn:disabled { color: var(--muted); cursor: default; }
/* Ladeebene: die Linie der Spiralsonne zeichnet sich auf, steht kurz, verblasst und zeichnet sich neu (Takt 2 s) */
.booking-loading { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(250,246,240,.92); }
.booking-loading[hidden] { display: none; }
.booking-loading-box { text-align: center; }
.booking-loading svg { width: 96px; height: 96px; fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.booking-loading use { stroke-dasharray: 400; stroke-dashoffset: 400; animation: booking-spiral 2s ease-in-out infinite; }   /* 400 ≈ Länge der Spirale (#logo-spiral) */
.booking-loading p { margin: 14px 0 0; font-size: 16px; font-weight: 600; color: var(--text); }
@keyframes booking-spiral {
    0%   { stroke-dashoffset: 400; opacity: 1; }
    55%  { stroke-dashoffset: 0;   opacity: 1; }
    75%  { stroke-dashoffset: 0;   opacity: 1; }
    95%  { stroke-dashoffset: 0;   opacity: 0; }
    100% { stroke-dashoffset: 400; opacity: 0; }
}
/* Popup „Buchung prüfen“ */
.booking-summary { padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--sand); margin-bottom: 18px; }
.popup-body .booking-summary p { margin: 0 0 4px; font-size: 15px; }
.popup-body .booking-summary .booking-summary-meta { color: var(--muted); }
.popup-body .booking-summary .booking-summary-price { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.booking-summary-price strong { font-size: 20px; color: var(--text); }
.booking-sub { margin: 20px 0 8px; font-size: 16px; }
.booking-checked { margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.popup-body p.booking-partner { font-size: 15px; }
/* „Das haben wir geprüft“: farbig hinterlegt, Haken statt Punkte (wie im Mockup) */
.booking-checked-box { margin: 20px 0 0; padding: 14px 16px; border: 1px solid #cfe3ec; border-radius: 14px; background: #eef6f9; }
.booking-checked-box .booking-sub { margin-top: 0; }
.booking-checked-box .booking-checked { padding-left: 0; list-style: none; }
.booking-checked-box .booking-checked li { position: relative; padding-left: 22px; }
.booking-checked-box .booking-checked li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: #3f8f5a; font-weight: 700; }
.popup-body .booking-checked-box p.booking-partner { margin: 0; font-size: 14px; color: var(--muted); }
.booking-fields { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
/* Fester Teil ab dem Kästchen: klebt unten im Popup (das Formular umschließt den ganzen Inhalt, sonst ginge das nicht) */
.booking-sticky { position: sticky; bottom: 0; z-index: 3; margin: 0 -28px -24px; padding: 14px 28px 24px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 18px rgba(0,0,0,.05); }
.booking-sticky .form-privacy { margin-bottom: 0; }
@media (max-width: 420px) { .booking-sticky { margin: 0 -24px -22px; padding: 12px 24px 22px; } }   /* Abstände wie .popup-body am Handy */
.booking-fixed { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.booking-fixed input[readonly] { background: var(--sand); color: var(--muted); }
/* Popup „Gebucht“: Vertrauenscode */
.booking-code { margin: 4px 0 14px; padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; text-align: center; }
.popup-body .booking-code p { margin: 0; }
.popup-body .booking-code .booking-code-label { font-size: 13px; color: var(--muted); }
.popup-body .booking-code .booking-code-value { margin: 4px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .18em; }
.popup-body .booking-code .booking-code-text { font-size: 13px; color: var(--muted); }

/* NEWSLETTER: Popup „Newsletter“ (script/newsletter/popup-newsletter.php) – Reiter wie „Login für Gastgeber“ (.ph-tabs),
   Kicker, Überschrift, Text, Feld und Knopf in einer Zeile (am Handy untereinander), „Fast geschafft“ mit grünem Haken.
   Dazu das Häkchen „Newsletter“ in den Anfrageformularen (.form-newsletter) und im Host-Popup (.h-check-field). */
.popup-newsletter .popup-head { padding-bottom: 0; }
.popup-newsletter .h-flash { margin: 0 0 14px; }
.nl-intro { margin: 0 0 14px; }
.nl-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent-text); margin-bottom: 6px; }
.nl-headline { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.nl-intro p { line-height: 1.55; }
.nl-row { display: flex; gap: 8px; }
.nl-row input[type=email] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: var(--surface); }
.nl-row button { border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) { .nl-row { flex-direction: column; } }
.nl-done { text-align: center; }
.nl-done .popup-icon { margin: 0 auto 10px; }
.nl-done-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.nl-done .popup-note { text-align: left; }
.form-newsletter { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.form-newsletter input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.h-check-field { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.h-check-field input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
