/* Zentrale Gästemappenübersicht (m7.3a144 Partner / m7.3a145 Agentur). Gestaltung der Gästemappe: warme helle Flächen, Oliv für
   Hauptaktionen, Georgia für Überschriften, Inter für Text/Tabellen/Formulare, dezente Rahmen. Neutraler Hintergrund ohne Regionsbild.
   Status immer mit Text. Unter 860 px Listenbreite werden die Tabellenzeilen zu Karten (Containerabfrage), ohne horizontales Scrollen. */
.gu-seite {
  --gu-flaeche: #FFFFFF; --gu-warm: #FBF9F3; --gu-sand: #F4F1E8; --gu-linie: #E4E1D6; --gu-linie-stark: #CFCBBD;
  --gu-oliv: #5A6A32; --gu-oliv-dunkel: #3D4A22; --gu-oliv-hell: #EEF1E2; --gu-text: #23241D; --gu-leise: #5B5D50;
  --gu-titel-schrift: Georgia, "Times New Roman", serif;
  color: var(--gu-text);
}
.main:has(> .outlet > .gu-seite) { background: #FBF9F3; min-height: calc(100dvh - 64px); }
.gu-seite h1, .gu-seite .gu-zaehler-titel, .gu-seite .gu-dialog-titel { font-family: var(--gu-titel-schrift); font-weight: 600; letter-spacing: 0; }
.gu-seite .gu-titel { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); color: var(--gu-oliv-dunkel); }
.gu-seite .btn-primary { background: var(--gu-oliv); border-color: var(--gu-oliv); }
.gu-seite .btn-primary:hover:not(:disabled) { background: var(--gu-oliv-dunkel); border-color: var(--gu-oliv-dunkel); }
.gu-seite .btn { min-height: 44px; }
.gu-seite .btn-klein { min-height: 40px; }
.gu-seite :focus-visible, .gu-dialog :focus-visible { outline: 3px solid var(--gu-oliv-dunkel, #3D4A22); outline-offset: 2px; }
.gu-unsichtbar { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gu-klein { font-size: .86rem; color: var(--gu-leise); }
.gu-umfang { margin: .35rem 0 0; font-size: .92rem; color: var(--gu-leise); }
.gu-kopf { align-items: flex-end; }

/* Statusübersicht */
.gu-zaehler { margin: 0 0 1.1rem; }
.gu-zaehler-titel { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--gu-oliv-dunkel); }
.gu-zaehler-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.gu-zaehler-knopf { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem;
  background: var(--gu-flaeche); border: 1px solid var(--gu-linie); border-radius: 12px; padding: .55rem .85rem; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.gu-zaehler-knopf:hover { border-color: var(--gu-linie-stark); background: #FFFEFA; }
.gu-zaehler-knopf[aria-pressed="true"] { border-color: var(--gu-oliv); box-shadow: inset 0 0 0 1px var(--gu-oliv); background: var(--gu-oliv-hell); }
.gu-zaehler-zahl { font-size: 1.45rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gu-zaehler-text { font-size: .86rem; color: var(--gu-leise); }
.gu-zaehler-eintrag.ist-teil .gu-zaehler-knopf { border-style: dashed; }
@media (max-width: 720px) { .gu-zaehler-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Suche und Filter */
.gu-suchbereich { background: var(--gu-flaeche); border: 1px solid var(--gu-linie); border-radius: 14px; padding: .9rem 1rem; margin: 0 0 .8rem; }
.gu-suchzeile { display: flex; gap: .6rem; align-items: flex-end; }
.gu-suche { flex: 1 1 auto; min-width: 0; }
.gu-suche .label { display: block; margin: 0 0 .3rem; font-weight: 600; }
.gu-suche-feld { width: 100%; min-height: 44px; box-sizing: border-box; }
.gu-mobil-filter { display: none; }
.gu-filterzeile, .gu-weitere { margin: .7rem 0 0; }
.gu-weitere { padding: .7rem 0 0; border-top: 1px dashed var(--gu-linie); }
.gu-filter-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.gu-auswahl-rahmen { position: relative; }
.gu-auswahl { display: inline-flex; align-items: center; gap: .4rem; }
.gu-auswahl.ist-gesetzt { border-color: var(--gu-oliv); background: var(--gu-oliv-hell); }
.gu-anzahl { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--gu-oliv); color: #fff; font-size: .78rem; font-weight: 700; }
.gu-pfeil::after { content: ""; display: inline-block; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: .15rem; }
.gu-auswahl[aria-expanded="true"] .gu-pfeil::after { transform: translateY(2px) rotate(-135deg); }
.gu-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(22rem, calc(100vw - 32px)); max-height: 22rem; overflow: auto;
  background: var(--gu-flaeche); border: 1px solid var(--gu-linie-stark); border-radius: 12px; box-shadow: 0 10px 30px rgba(35,36,29,.14); padding: .6rem .7rem; }
.gu-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gu-legende { font-weight: 650; padding: 0; margin: 0 0 .4rem; }
.gu-optionen { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .1rem; }
.gu-option { display: flex; align-items: flex-start; gap: .55rem; padding: .3rem .25rem; border-radius: 8px; }
.gu-option:hover { background: var(--gu-warm); }
.gu-option input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--gu-oliv); flex: 0 0 auto; }
.gu-option label { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; flex: 1 1 auto; min-width: 0; cursor: pointer; min-height: 28px; }
.gu-option-text { overflow-wrap: anywhere; }
.gu-option-zusatz { font-size: .84rem; color: var(--gu-leise); }
.gu-option-anzahl { margin-left: auto; font-size: .8rem; color: var(--gu-leise); font-variant-numeric: tabular-nums; }
.gu-optionen-suche { width: 100%; min-height: 40px; margin: 0 0 .3rem; box-sizing: border-box; }

/* Aktive Filter */
.gu-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .8rem; }
.gu-chips:empty { display: none; }
.gu-chips-titel { font-size: .88rem; color: var(--gu-leise); }
.gu-chip-liste { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.gu-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .2rem .4rem .2rem .75rem; border-radius: 999px; border: 1px solid var(--gu-oliv);
  background: var(--gu-oliv-hell); color: var(--gu-oliv-dunkel); font: inherit; font-size: .88rem; cursor: pointer; max-width: 100%; text-align: left; }
.gu-chip > span:first-child { overflow-wrap: anywhere; }
.gu-chip-x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: 1rem; line-height: 1; flex: 0 0 auto; }

/* Listenkopf: Veröffentlichung, Sortierung, Trefferzahl */
.gu-listenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .7rem 1rem; margin: 0 0 .5rem; }
.gu-pub-rahmen { display: flex; flex-direction: column; gap: .3rem; }
.gu-pub-titel { font-weight: 600; font-size: .92rem; }
.gu-segmente { display: inline-flex; border: 1px solid var(--gu-linie-stark); border-radius: 10px; overflow: hidden; background: var(--gu-flaeche); }
.gu-segment { min-height: 44px; padding: 0 1rem; border: 0; border-right: 1px solid var(--gu-linie); background: transparent; font: inherit; color: inherit; cursor: pointer; }
.gu-segment:last-child { border-right: 0; }
.gu-segment[aria-pressed="true"] { background: var(--gu-oliv); color: #fff; font-weight: 650; }
.gu-sort-rahmen { display: flex; flex-direction: column; gap: .3rem; }
.gu-sort-rahmen .label { font-weight: 600; font-size: .92rem; }
.gu-sortierung { min-height: 44px; min-width: 15rem; }
.gu-treffer { font-family: var(--font); font-size: 1rem; font-weight: 650; margin: .4rem 0 .6rem; color: var(--gu-text); }
.gu-treffer:focus { outline: none; }
.gu-treffer:focus-visible { outline: 3px solid var(--gu-oliv-dunkel); }

/* Liste: Tabelle (breit) bzw. Karten (schmal) */
.gu-liste { container-type: inline-size; container-name: gu-liste; }
.gu-liste.ist-laedt { opacity: .55; transition: opacity .15s; }
.gu-tabellen-rahmen { background: var(--gu-flaeche); border: 1px solid var(--gu-linie); border-radius: 14px; }
.gu-tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.gu-tabelle th { text-align: left; font-size: .8rem; font-weight: 650; color: var(--gu-leise); text-transform: none; padding: .75rem .7rem; border-bottom: 1px solid var(--gu-linie); background: var(--gu-sand); }
.gu-tabelle th:first-child { border-top-left-radius: 14px; } .gu-tabelle th:last-child { border-top-right-radius: 14px; }
.gu-tabelle td { padding: .85rem .7rem; vertical-align: top; border-bottom: 1px solid var(--gu-linie); }
.gu-tabelle tr:last-child td { border-bottom: 0; }
.gu-zelle > * { display: block; }
.gu-zelle > * + * { margin-top: .2rem; }
.gu-unterkunft { display: flex !important; gap: .7rem; align-items: flex-start; min-width: 14rem; }
.gu-bild-rahmen { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--gu-sand); border: 1px solid var(--gu-linie); }
.gu-bild { width: 64px; height: 48px; object-fit: cover; display: block; }
.gu-bild.ist-ersatz { object-fit: contain; padding: 4px; box-sizing: border-box; }
.gu-unterkunft-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gu-betrieb { font-weight: 650; overflow-wrap: anywhere; }
.gu-mappentitel { font-size: .86rem; color: var(--gu-text); font-style: italic; overflow-wrap: anywhere; }
.gu-art, .gu-region { font-size: .82rem; color: var(--gu-leise); }
.gu-hinweis { font-size: .8rem; color: #7A3B12; }
.gu-fehlt { color: var(--gu-leise); font-style: italic; }
.gu-status { display: inline-block !important; width: fit-content; font-size: .8rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; border: 1px solid transparent; }
.gu-status.ist-veroeffentlicht, .gu-status.ist-aenderungen { background: #E3EBD3; color: #2F3C14; border-color: #B9C79A; }
.gu-status.ist-entwurf { background: #F1EEE4; color: #4A4A40; border-color: #D9D4C3; }
.gu-status.ist-deaktiviert { background: #F3E6E1; color: #6E2E1E; border-color: #DDBFB4; }
.gu-status.ist-aenderungen-marke { background: #FCF0CF; color: #5E4300; border-color: #E5CC85; margin-left: 0; }
.gu-zusatz { font-size: .82rem; color: var(--gu-leise); }
.gu-zusatz.ist-nein { color: #7A3B12; }
.gu-zusatz.ist-ok { color: #3D4A22; }
.gu-sprachen { list-style: none; margin: 0; padding: 0; display: flex !important; flex-wrap: wrap; gap: .25rem; }
.gu-sprache { font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: .1rem .4rem; border: 1px solid var(--gu-linie-stark); border-radius: 6px; background: var(--gu-warm); }
.gu-naeherung { font-size: .8rem; color: var(--gu-leise); }
.gu-einheiten summary { cursor: pointer; color: var(--gu-oliv-dunkel); font-size: .86rem; min-height: 32px; display: list-item; }
.gu-einheiten ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .86rem; }
.gu-aktionen { display: flex !important; align-items: center; gap: .35rem; flex-wrap: nowrap; }
.gu-haupt { white-space: nowrap; }
.gu-nur-lesen { white-space: nowrap; }
.gu-menue-rahmen { position: relative; }
.gu-menue-knopf { display: inline-flex; align-items: center; gap: .3rem; min-width: 44px; justify-content: center; }
.gu-menue-text { font-size: .86rem; }
.gu-menue { position: absolute; z-index: 40; right: 0; top: calc(100% + 4px); min-width: 15.5rem; list-style: none; margin: 0; padding: .3rem;
  background: var(--gu-flaeche); border: 1px solid var(--gu-linie-stark); border-radius: 10px; box-shadow: 0 10px 28px rgba(35,36,29,.16); }
.gu-menue-punkt { display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: 8px; color: var(--gu-text); text-decoration: none; }
.gu-menue-punkt:hover, .gu-menue-punkt:focus { background: var(--gu-oliv-hell); outline: none; }
.gu-menue-punkt:focus-visible { outline: 3px solid var(--gu-oliv-dunkel); outline-offset: -3px; }
.gu-extern { font-size: .8rem; color: var(--gu-leise); margin-left: .25rem; }
.gu-seiten { margin: .9rem 0 0; }
.gu-leer { background: var(--gu-flaeche); border: 1px dashed var(--gu-linie-stark); border-radius: 14px; padding: 1.6rem 1.2rem; text-align: left; }
.gu-leer .state-title { font-family: var(--gu-titel-schrift); font-size: 1.15rem; margin: 0 0 .3rem; }
.gu-leer-aktion { margin: .8rem 0 0; }

@container gu-liste (max-width: 860px) {
  .gu-tabellen-rahmen { background: transparent; border: 0; }
  .gu-tabelle, .gu-tabelle tbody { display: block; }
  .gu-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gu-tabelle tr.gu-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .55rem .9rem; background: var(--gu-flaeche); border: 1px solid var(--gu-linie);
    border-radius: 14px; padding: .85rem .9rem; margin: 0 0 .7rem; }
  .gu-tabelle td { display: block; padding: 0; border: 0; min-width: 0; }
  .gu-tabelle td[data-label]:not(.gu-z-unterkunft):not(.gu-z-aktionen)::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 650; color: var(--gu-leise); margin: 0 0 .1rem; }
  .gu-z-unterkunft { grid-column: 1 / -1; }
  .gu-z-status { grid-column: 1 / -1; }
  .gu-z-aktionen { grid-column: 1 / -1; padding-top: .55rem !important; border-top: 1px solid var(--gu-linie) !important; }
  .gu-unterkunft { min-width: 0; }
  .gu-aktionen { justify-content: space-between; }
  .gu-haupt { flex: 1 1 auto; justify-content: center; }
}
@container gu-liste (max-width: 360px) {
  .gu-tabelle tr.gu-zeile { grid-template-columns: minmax(0, 1fr); padding: .75rem; }
}

/* Dialoge (Filter mobil, Anlegen): native <dialog> – Fokusfalle, Escape und inerter Hintergrund durch den Browser */
.gu-dialog { --gu-oliv: #5A6A32; --gu-oliv-dunkel: #3D4A22; --gu-linie: #E4E1D6; --gu-leise: #5B5D50; --gu-warm: #FBF9F3; --gu-flaeche: #fff; --gu-oliv-hell: #EEF1E2; --gu-linie-stark: #CFCBBD; --gu-sand: #F4F1E8;
  width: min(34rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--gu-linie); border-radius: 16px; background: var(--gu-warm); color: #23241D;
  display: flex; flex-direction: column; font-family: var(--font); }
.gu-dialog:not([open]) { display: none; }
.gu-dialog::backdrop { background: rgba(35, 36, 29, .45); }
.gu-dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem .6rem; border-bottom: 1px solid var(--gu-linie); }
.gu-dialog-titel { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; margin: 0; color: var(--gu-oliv-dunkel); }
.gu-dialog-koerper { padding: .8rem 1rem; overflow: auto; flex: 1 1 auto; display: grid; gap: 1rem; }
.gu-dialog-koerper > div { display: grid; gap: 1.1rem; }
.gu-dialog .gu-fieldset { background: #fff; border: 1px solid var(--gu-linie); border-radius: 12px; padding: .6rem .7rem; }
.gu-dialog-fuss { display: flex; justify-content: space-between; gap: .6rem; padding: .7rem 1rem .9rem; border-top: 1px solid var(--gu-linie); background: #fff; border-radius: 0 0 16px 16px; }
.gu-dialog-fuss .btn { min-height: 44px; flex: 1 1 0; }
.gu-dialog .btn-primary { background: var(--gu-oliv); border-color: var(--gu-oliv); }
.gu-dialog .label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.gu-dialog input[type="search"] { width: 100%; min-height: 44px; box-sizing: border-box; }
.gu-anlage-eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.gu-anlage-eintrag { display: flex; align-items: center; justify-content: space-between; gap: .7rem; background: #fff; border: 1px solid var(--gu-linie); border-radius: 12px; padding: .6rem .7rem; }
.gu-anlage-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gu-anlage-text .gu-betrieb { font-weight: 650; }
.gu-anlage-text .gu-zusatz { font-size: .82rem; }
.gu-anlage .gu-zusatz.ist-nein { color: #7A3B12; } .gu-anlage .gu-zusatz.ist-ok { color: #3D4A22; }
.gu-anlage .gu-klein { font-size: .84rem; color: var(--gu-leise); }

/* Mobil: Suche direkt sichtbar, Filter über "Filter (n)" im Dialog */
@media (max-width: 767px) {
  .gu-mobil-filter { display: inline-flex; flex: 0 0 auto; }
  .gu-filterzeile, .gu-weitere { display: none !important; }
  .gu-suchbereich { padding: .75rem; }
  .gu-listenkopf { flex-direction: column; align-items: stretch; }
  /* Spalten nach Textbreite (gleich breite Drittel schnitten „Unveröffentlicht“ bei 390 px ab); Umbruch im Knopf nur als Notfall */
  .gu-segmente { display: grid; grid-template-columns: auto auto auto; }
  .gu-segment { min-width: 0; padding: .3rem .4rem; white-space: normal; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
  .gu-sortierung { min-width: 0; width: 100%; }
  .gu-kopf .page-head-actions { width: 100%; }
  .gu-anlegen { width: 100%; }
  .gu-anlage-eintrag { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .gu-zaehler-knopf { padding: .5rem .6rem; }
  .gu-zaehler-zahl { font-size: 1.25rem; }
  .gu-segment { font-size: .86rem; }
  .gu-menue-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gu-liste.ist-laedt { transition: none; } }
