/* =========================================================
   ZWEI ANSICHTEN (js/ansicht.js) – Umschalter, Team-Karten,
   Betten & Zimmer, Team-Preise/Tarife auf der Inseratseite
   ========================================================= */

/* ---------- Kopfbereich: Umschalter + Überschrift ---------- */
.ansicht-band { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin: 0 0 18px; }
.ansicht-band__text { flex: 1; min-width: 240px; }
.ansicht-band__text h1 { font-family: "Cormorant", Georgia, serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.08; }
.ansicht-band__text p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }

.ansicht-schalter {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie); isolation: isolate;
}
.ansicht-schalter__gleiter {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--akzent); box-shadow: var(--schatten); transition: transform .28s cubic-bezier(.3,.7,.2,1);
}
.ansicht-schalter[data-aktiv="team"] .ansicht-schalter__gleiter { transform: translateX(100%); }
.ansicht-schalter button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color .2s;
}
.ansicht-schalter button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ansicht-schalter button[aria-checked="true"] { color: var(--akzent-text); font-weight: 700; }
.ansicht-schalter button:not([aria-checked="true"]):hover { color: var(--text); }
.ansicht-schalter button:focus-visible { outline-offset: -2px; }

/* kurzer Übergang beim Wechsel */
body.ansicht-wechsel .raster, body.ansicht-wechsel .ansicht-band__text { animation: ansichtRein .3s ease both; }
@keyframes ansichtRein { from { opacity: .35; transform: translateY(4px); } }

/* ---------- Team-Suche: Einsatzort ---------- */
.pop--einsatz { width: 420px; padding: 14px; }
.einsatz-suche { display: flex; gap: 8px; }
.einsatz-suche input { flex: 1; min-width: 0; border: 1px solid rgba(127,127,127,.45); border-radius: 12px; padding: 10px 12px; background: var(--hg); font-size: 15px; outline: none; }
.einsatz-suche input:focus { box-shadow: inset 0 0 0 2px var(--text); }
.einsatz-suche .knopf { padding: 10px 14px; }
.einsatz-info { font-size: 12.5px; margin: 10px 4px 4px; }
.einsatzliste { max-height: 320px; overflow-y: auto; }
.einsatzliste i { width: 40px !important; height: 40px !important; }
.einsatz-weg span b { color: var(--text-2); font-weight: 600; }
.suche__feld.leer em { color: var(--text-2); }

/* ---------- Team-Filter ---------- */
.fschalter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--pop); font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.fschalter:hover { border-color: var(--text); }
.fschalter__spur { width: 34px; height: 20px; border-radius: 10px; background: var(--linie); position: relative; transition: background .2s; }
.fschalter__spur i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.fschalter[aria-checked="true"] { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.fschalter[aria-checked="true"] .fschalter__spur { background: var(--akzent); }
.fschalter[aria-checked="true"] .fschalter__spur i { transform: translateX(14px); background: var(--akzent-text); }
.fwahl { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--linie); border-radius: 999px; background: var(--pop); }
.fwahl:focus-within { border-color: var(--text); }
.fwahl select { border: 0; background: none; font-size: 13.5px; font-weight: 600; padding: 0 4px; outline: none; cursor: pointer; color-scheme: light dark; }
.fwahl.aus { opacity: .5; }
.fwahl.aus select { cursor: not-allowed; }

/* ---------- Team-Karten ---------- */
.karte__betten { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.karte__betten .i, .karte__weg .i, .karte__merkmale .i { width: 17px; height: 17px; flex-shrink: 0; }
.karte__merkmale { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-2); font-size: 12.5px; }
.karte__merkmale span { display: inline-flex; align-items: center; gap: 4px; }
.karte__weg { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; }
.karte__zimmer { position: relative; z-index: 3; justify-self: start; font-size: 13px; padding: 2px 0; }
.karte__preisinfo { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; margin-top: 1px; }

/* Einsatzort auf der Karte */
.einsatzpin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; background: #D9534F; color: #fff; font-size: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.35); white-space: nowrap; }
.einsatzpin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Betten & Zimmer (Fenster) ---------- */
.zf-fenster { position: fixed; inset: 0; z-index: 96; display: grid; place-items: start center; padding: 6vh 16px 24px; background: rgba(5, 8, 12, .55); overflow-y: auto; }
.zf-karte { position: relative; width: min(760px, 100%); background: var(--pop); border: 1px solid var(--linie); border-radius: 24px; box-shadow: var(--schatten-pop); padding: 26px; display: grid; gap: 14px; animation: popAuf .18s ease both; }
.zf-karte h2 { font-family: "Cormorant", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1; padding-right: 44px; }
.zf-karte .grau { color: var(--text-2); }
.zf-zu { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.zf-zu:hover { background: var(--flaeche); }
.zf-zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.zf-summen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zf-summen span { border: 1px solid var(--linie); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.zf-summen b { font-size: 22px; font-variant-numeric: tabular-nums; }
.zf-summen small { font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.zf-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.zf-zimmer { border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; display: grid; }
.zf-zimmer img, .zf-ohne { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.zf-ohne { display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--flaeche); color: var(--text-2); }
.zf-ohne .i { width: 26px; height: 26px; }
.zf-zimmer > div { padding: 10px 12px 12px; display: grid; gap: 4px; }
.zf-zimmer p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; }
.zf-zimmer p .i { width: 16px; height: 16px; }
.zf-zimmer small { font-size: 12px; }
.zf-hinweis { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 12px; background: var(--flaeche); }
.zf-hinweis .i { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Inseratseite: Team-Bereiche ---------- */
.team-nur { display: none; }
html[data-ansicht="team"] .team-nur { display: revert; }
html[data-ansicht="team"] .privat-nur { display: none !important; }
.ansicht-hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--linie); background: var(--flaeche); margin: 0 0 18px; font-size: 14px; }
.ansicht-hinweis .i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.ansicht-hinweis div { display: grid; gap: 8px; }
.ansicht-hinweis .aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.inserat-schalter { margin: 0 0 14px; }

.team-block { display: grid; gap: 14px; }
.team-block h2 { display: flex; align-items: center; gap: 10px; }
.team-betten { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--linie); border-radius: 16px; flex-wrap: wrap; }
.team-betten > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.team-betten b { font-size: 18px; }
.team-betten .i { width: 28px; height: 28px; }
.team-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.team-fakten > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 14px; font-size: 14px; }
.team-fakten .i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.team-fakten b { display: block; }
.team-fakten small { color: var(--text-2); font-size: 12.5px; }

/* Buchungsbox: Preis pro Person, Mitarbeiter, Tarife */
.tp-preis { display: grid; gap: 2px; margin-bottom: 14px; }
.tp-preis__gross { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tp-preis__gross b { font-size: 26px; font-variant-numeric: tabular-nums; }
.tp-preis small { font-size: 12.5px; color: var(--text-2); }
.tp-ma { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(127,127,127,.45); border-top: 0; border-radius: 0 0 12px 12px; }
.tp-ma b { display: block; font-size: 13px; }
.tp-ma small { color: var(--text-2); font-size: 12px; }
.tp-regler { display: flex; align-items: center; gap: 12px; }
.tp-regler output { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-regler button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linie); display: grid; place-items: center; }
.tp-regler button:hover:not(:disabled) { border-color: var(--text); }
.tp-regler button:disabled { opacity: .3; }
.tp-regler svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html[data-ansicht="team"] .buchung__felder .buchung__feld--gaeste { display: none; }
html[data-ansicht="team"] .buchung__felder .buchung__feld:first-child { border-radius: 12px 12px 0 0; }
.tp-tarife { display: grid; gap: 6px; margin-top: 14px; border: 0; padding: 0; }
.tp-tarife legend { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.tp-tarif { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; font-size: 13px; }
.tp-tarif input { margin: 3px 0 0; accent-color: var(--akzent); }
.tp-tarif b { font-size: 13.5px; }
.tp-tarif .tp-tarif__preis { text-align: right; font-weight: 700; white-space: nowrap; }
.tp-tarif small { grid-column: 2 / 4; color: var(--text-2); font-size: 12px; line-height: 1.35; }
.tp-tarif:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.tp-tarif.gesperrt { opacity: .7; }
.tp-tarif__frage { grid-column: 2 / 4; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; padding: 8px; border-radius: 10px; background: var(--flaeche); font-size: 12.5px; }
.tp-tarif__frage .knopf { padding: 6px 10px; font-size: 12.5px; }
.tp-kosten { margin-top: 12px; display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.tp-kosten b { color: var(--text); }
.tp-angebot { width: 100%; margin-top: 10px; }

@media (max-width: 760px) {
  .ansicht-band { gap: 10px; }
  .ansicht-schalter { display: grid; width: 100%; }
  .ansicht-schalter button { padding: 0 10px; font-size: 13.5px; }
  .zf-summen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pop--einsatz { width: calc(100vw - 2 * var(--rand)); }
  .zf-fenster { padding: 0; place-items: end stretch; }
  .zf-karte { border-radius: 22px 22px 0 0; padding: 22px 16px; max-height: 94vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ansicht-schalter__gleiter, .fschalter__spur, .fschalter__spur i { transition: none; }
  body.ansicht-wechsel .raster, body.ansicht-wechsel .ansicht-band__text, .zf-karte { animation: none; }
}
/* Mitarbeiter-Zähler sitzt in den Buchungsfeldern unter Anreise/Abreise */
.buchung__felder .tp-ma { border: 0; border-top: 1px solid rgba(127,127,127,.45); border-radius: 0; }
.zimmer-knopf { margin-top: 14px; }
/* Handy: in der Team-Ansicht die Buchungsbox (Preis pro Person, Tarife, PDF) unter dem Kalender zeigen */
@media (max-width: 900px) { html[data-ansicht="team"] .spalten__rechts .buchung { display: block; position: static; margin-top: 8px; } }
/* Team: Buchungsbox ist mit Tarifen höher als der Bildschirm → nicht mitlaufen lassen, sonst sind Tarife/PDF unerreichbar */
html[data-ansicht="team"] .buchung-stapel { position: relative; top: auto; }
/* Screenreader-Text in den Auswahlfeldern im Scrollbereich halten (sonst wird die Seite am Handy breiter) */
.fwahl, .fschalter { position: relative; }
/* Team-Suchleiste am Handy: kürzere Beschriftung, nichts ragt über den Rand */
.suche__feld .nur-gross { font-style: normal; }
@media (max-width: 560px) {
  .suche__feld .nur-gross { display: none; }
  .suche--team .suche__feld span, .suche--team .suche__feld em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .suche--team .suche__teil { min-width: 0; }
  .suche--team .suche__teil:first-child { flex: .9; }
  .suche--team .suche__feld { padding: 6px 10px; }
}
/* Suchleiste darf am Handy schmaler werden als ihr Inhalt (Texte kürzen sich mit „…“) */
@media (max-width: 900px) { .suche { min-width: 0; } }

/* =========================================================
   Monteur-Ausbau (23.11. spät): Kombinationen, Arbeitsalltag,
   Arbeitsweg, Staffel, Wochenmodell, Ankunft, Bedingungen
   ========================================================= */
.demo-preis { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: #FFF1C9; color: #6B5300; vertical-align: middle; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .demo-preis { background: #4A3D12; color: #F5DB8B; } }
.gz__zahl { width: 64px; text-align: center; font-weight: 700; font-size: 15px; border: 1px solid rgba(127,127,127,.45); border-radius: 10px; padding: 6px 4px; background: var(--hg); color-scheme: light dark; }
.gz__zahl:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }

/* Kombinationen */
.kombis { display: grid; gap: 14px; margin-bottom: 28px; }
.kombis__kopf h2 { font-size: 19px; }
.kombis__kopf .grau { font-size: 13.5px; margin-top: 2px; }
.kombi { border: 1px solid var(--linie); border-radius: 18px; padding: 14px; display: grid; gap: 12px; background: var(--pop); }
.kombi__wohnungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kombi__wohnung { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--linie); transition: border-color .15s; }
.kombi__wohnung:hover { border-color: var(--text); }
.kombi__wohnung img { width: 58px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.kombi__wohnung span { display: grid; min-width: 0; }
.kombi__wohnung b { font-size: 14px; }
.kombi__wohnung small { font-size: 12px; color: var(--text-2); }
.kombi__fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 14px; margin: 0; }
.kombi__fakten dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.kombi__fakten dd { margin: 0; font-size: 14px; }
.kombi__knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.warn { color: #B2443F; } .gut { color: #1E6B35; }
@media (prefers-color-scheme: dark) { .warn { color: #F0A09C; } .gut { color: #8FDBA8; } }

/* Arbeitsalltag */
.alltag { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.alltag__karte { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px; border: 1px solid var(--linie); border-radius: 16px; }
.alltag__karte > div { display: grid; gap: 2px; }
.alltag__karte b { font-size: 14.5px; }
.alltag__karte small { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.alltag__karte .link { grid-column: 2; justify-self: start; font-size: 13px; }
.alltag__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; }
.alltag__icon svg, .alltag__icon .i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zf-karte--schmal { width: min(560px, 100%); }
.zf-ohne--breit { aspect-ratio: 21 / 8; border-radius: 14px; }
.if-liste { margin: 0; display: grid; border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.if-zeile { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 14px; font-size: 14px; }
.if-zeile + .if-zeile { border-top: 1px solid var(--linie); }
.if-zeile dt { color: var(--text-2); font-size: 13px; }
.if-zeile dd { margin: 0; }

/* Arbeitsweg bei der Karte */
.arbeitsweg { margin-top: 18px; }
.aw { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); }
.aw > b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.aw .i { width: 20px; height: 20px; }
.aw__zahlen { display: flex; gap: 12px; flex-wrap: wrap; }
.aw__zahlen span { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--pop); border: 1px solid var(--linie); min-width: 160px; }
.aw__zahlen b { font-size: 18px; }
.aw__zahlen small { color: var(--text-2); font-size: 12px; }
.aw .knopf { justify-self: start; }

/* Aufenthaltsbedingungen */
.bedingungen { display: grid; border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; }
.bedingungen details + details { border-top: 1px solid var(--linie); }
.bedingungen summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.bedingungen summary::-webkit-details-marker { display: none; }
.bedingungen summary span { display: grid; gap: 2px; }
.bedingungen summary small { color: var(--text-2); font-size: 13px; }
.bedingungen summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; transition: transform .2s; }
.bedingungen details[open] summary svg { transform: rotate(180deg); }
.bedingungen details p { padding: 0 16px 14px; font-size: 14px; color: var(--text-2); }
.bedingungen summary:hover { background: var(--flaeche); }

/* Buchungsbox: Teamgröße, Staffel, Woche, Ankunft, Tarif-Kacheln */
.tp-gross { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--flaeche); margin-top: 12px; }
.tp-gross .i { width: 18px; height: 18px; flex-shrink: 0; }
.tp-staffel { margin-top: 12px; border: 1px solid var(--linie); border-radius: 12px; padding: 0 12px; }
.tp-staffel summary { cursor: pointer; padding: 11px 0; font-size: 13.5px; font-weight: 600; }
.tp-staffel[open] { padding-bottom: 12px; }
.tp-staffel[open] > * + * { margin-top: 8px; }
.tp-staffel__zeile { display: flex; gap: 6px; align-items: center; }
.tp-staffel__zeile input { border: 1px solid rgba(127,127,127,.45); border-radius: 10px; padding: 7px 8px; background: var(--hg); font-size: 13.5px; color-scheme: light dark; min-width: 0; }
.tp-staffel__zeile input[type=date] { flex: 1; }
.tp-staffel__zeile input[type=number] { width: 66px; }
.tp-staffel__zeile .link { font-size: 12px; }
.tp-staffel__summe { font-size: 12.5px; font-weight: 600; }
.tp-staffel .knopf { padding: 8px 12px; font-size: 13px; width: 100%; }
.tp-staffel .knopf[disabled] { opacity: .45; cursor: not-allowed; }
.tp-woche { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tp-woche legend, .tp-ankunft span { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.tp-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-kachel { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; font-size: 13px; }
.tp-kachel input { position: absolute; opacity: 0; pointer-events: none; }
.tp-kachel small { color: var(--text-2); font-size: 11.5px; }
.tp-kachel:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--akzent-weich); }
.tp-kachel:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.tp-tage { display: flex; gap: 4px; flex-wrap: wrap; }
.tp-tage label { cursor: pointer; }
.tp-tage input { position: absolute; opacity: 0; pointer-events: none; }
.tp-tage span { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--linie); font-size: 12.5px; font-weight: 600; }
.tp-tage input:checked + span { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.tp-tage input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 1px; }
.tp-woche .grau.klein, .tp-woche .link { font-size: 12px; }
.tp-ankunft { margin-top: 14px; display: grid; gap: 4px; font-size: 13px; }
.tp-ankunft label { display: grid; }
.tp-ankunft input { border: 1px solid rgba(127,127,127,.45); border-radius: 10px; padding: 8px 10px; background: var(--hg); font-size: 14px; color-scheme: light dark; max-width: 140px; }
.tp-ankunft p { font-size: 12.5px; font-weight: 600; }
.tp-ankunft .link { font-size: 12.5px; }
/* Tarife als Kacheln */
.tp-tarife { grid-template-columns: 1fr; }
@media (min-width: 1200px) { .tp-tarif { padding: 12px 14px; } }
@media (max-width: 560px) {
  .if-zeile { grid-template-columns: 1fr; gap: 2px; }
  .kombi__wohnungen { grid-template-columns: 1fr; }
}

/* =========================================================
   Team-Detailseite schlank (23.11. spät): klare Hierarchie
   ========================================================= */
/* Überblick unter den Bildern */
html[data-ansicht="team"] #teamInfo { padding-top: 0; gap: 8px; }
.ueberblick { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; font-weight: 600; }
.ueberblick li { display: inline-flex; align-items: center; gap: 7px; }
.ueberblick .i { width: 19px; height: 19px; color: var(--text-2); }
.ueberblick__sub { font-size: 13.5px; }
.ueberblick__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; }
.ueberblick__links .link { font-size: 13.5px; }
/* Beschreibung: 2–3 Sätze sichtbar */
html[data-ansicht="team"] .beschreibung__text { -webkit-line-clamp: 3; }
html[data-ansicht="team"] .beschreibung__text.offen { -webkit-line-clamp: unset; }
html[data-ansicht="team"] .beschreibung__kurz { display: none; }
/* Details-Inhalte */
.bedingungen__inhalt { padding: 0 16px 14px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.bedingungen__inhalt b { color: var(--text); }
.bedingungen__inhalt .ausstattung { margin: 0; }

/* Buchungsbox: Reihenfolge Preis → Daten/Mitarbeiter → Button → Gesamt → Optionen */
html[data-ansicht="team"] .buchung { display: flex; flex-direction: column; }
html[data-ansicht="team"] .buchung > #tpPreis { order: 1; }
html[data-ansicht="team"] .buchung > .buchung__felder { order: 2; }
html[data-ansicht="team"] .buchung > .buchung__knopf { order: 3; margin-top: 14px; font-size: 16px; padding: 14px 20px; }
html[data-ansicht="team"] .buchung > .buchung__hinweis { order: 4; }
html[data-ansicht="team"] .buchung > #rechnung { order: 5; }
html[data-ansicht="team"] .buchung > #tpExtra { order: 6; }
html[data-ansicht="team"] .buchung > .rabatt-zeile { order: 7; }
html[data-ansicht="team"] .tp-preis { margin-bottom: 12px; }
.tp-inkl { font-size: 12.5px; margin-top: 10px; }
.tp-rabatt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.tp-rabatt .i { width: 16px; height: 16px; flex-shrink: 0; }
.tp-rabatt .link { font-size: 13px; }
.tp-auf { margin-top: 10px; border: 1px solid var(--linie); border-radius: 12px; }
.tp-auf summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.tp-auf summary::-webkit-details-marker { display: none; }
.tp-auf summary span { display: grid; }
.tp-auf summary b { font-size: 13.5px; }
.tp-auf summary small { font-size: 12px; color: var(--text-2); }
.tp-auf summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; flex-shrink: 0; transition: transform .2s; }
.tp-auf[open] summary svg { transform: rotate(180deg); }
.tp-auf__inhalt { padding: 0 12px 12px; display: grid; gap: 12px; }
.tp-auf__inhalt .tp-tarife, .tp-auf__inhalt .tp-woche, .tp-auf__inhalt .tp-ankunft { margin-top: 0; }
.tp-staffel { border: 0; padding: 0; display: grid; gap: 8px; }
.tp-staffel__titel { font-size: 12.5px; }
.tp-neben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.tp-neben .link { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.tp-neben .i { width: 16px; height: 16px; }
.tp-angebot { width: auto; margin-top: 0; }
/* Desktop: kompakte Box läuft wieder mit; bei geöffneten Bereichen innen scrollbar (Kalender darf überstehen) */
@media (min-width: 901px) {
  html[data-ansicht="team"] .buchung-stapel { position: sticky; top: calc(var(--kopf-h) + 76px); max-height: calc(100vh - var(--kopf-h) - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 2px; }
  html[data-ansicht="team"] .buchung-stapel:has(.pop--box:not([hidden])) { overflow: visible; max-height: none; }
}
/* Kombinations-Übersicht */
.kombi-box { border: 1px solid var(--linie); border-radius: 18px; padding: 16px; background: var(--pop); box-shadow: var(--schatten); display: grid; gap: 8px; }
.kombi-box h2 { font-size: 16px; }
.kombi-box__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kombi-box__liste a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--linie); }
.kombi-box__liste li.aktiv a { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.kombi-box__liste img { width: 54px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.kombi-box__liste span { display: grid; min-width: 0; }
.kombi-box__liste b { font-size: 14px; }
.kombi-box__liste small { font-size: 12px; color: var(--text-2); }
.kombi-box__knopf { width: 100%; }
/* Assistent als dezente Einladung */
html[data-ansicht="team"] .as-inserat.zu { box-shadow: none; }
html[data-ansicht="team"] .as-inserat.zu .as-inserat__kopf { padding: 10px 14px; }
@media (max-width: 900px) { html[data-ansicht="team"] .kombi-box { margin-bottom: 8px; } }
/* Team: Vorteile-Liste (steht in den Details) und Minikarte (große Karte weiter unten) nicht doppelt zeigen */
html[data-ansicht="team"] .spalten__rechts > .vorteile, html[data-ansicht="team"] .spalten__rechts > .minimap { display: none; }
/* Team-Bereiche in der Privat-Ansicht sicher ausblenden (spätere display-Regeln dürfen das nicht überschreiben) */
html:not([data-ansicht="team"]) .team-nur { display: none !important; }

/* =========================================================
   Alternativen-Hilfe (Team-Detailseite): Einstieg, Panel, fester Knopf
   ========================================================= */
/* Reihenfolge in der Box: … Reservieren → Hinweis → „Passt noch nicht ganz?“ → Preisaufschlüsselung → Optionen */
html[data-ansicht="team"] .buchung > #tpHilfe { order: 5; }
html[data-ansicht="team"] .buchung > #rechnung { order: 6; }
html[data-ansicht="team"] .buchung > #tpExtra { order: 7; }
html[data-ansicht="team"] .buchung > .rabatt-zeile { order: 8; }
.tp-hilfe { margin: 4px 0 12px; padding: 10px 12px 12px; border: 1px solid var(--linie); border-radius: 14px; display: grid; gap: 8px; }
.tp-hilfe__titel { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.tp-hilfe__optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-hilfe__optionen button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--linie); border-radius: 999px; font-size: 12.5px; font-weight: 600; background: transparent; transition: border-color .15s, background .15s; }
.tp-hilfe__optionen button:hover { border-color: var(--text); background: var(--flaeche); }
.tp-hilfe__optionen .i { width: 15px; height: 15px; color: var(--text-2); }
.tp-hilfe__belegt { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: #FCEBD6; color: #6E3B00; }
.tp-hilfe__belegt .i { width: 16px; height: 16px; flex-shrink: 0; }
.tp-hilfe__belegt .link { font-size: 12.5px; color: inherit; }
@media (prefers-color-scheme: dark) { .tp-hilfe__belegt { background: #3D2A12; color: #F2C185; } }
/* Panel: Desktop seitlich rechts */
.as-panel { position: fixed; inset: 0; z-index: 97; background: rgba(5, 8, 12, .35); display: flex; justify-content: flex-end; }
.as-panel__blatt { width: min(440px, 100%); height: 100%; background: var(--pop); border-left: 1px solid var(--linie); box-shadow: var(--schatten-pop); display: flex; flex-direction: column; animation: panelRein .22s ease both; }
@keyframes panelRein { from { transform: translateX(24px); opacity: .4; } }
.as-panel__kopf { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--linie); touch-action: none; }
.as-panel__kopf b { flex: 1; font-size: 17px; }
.as-panel__griff { display: none; }
.as-panel__zu { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.as-panel__zu:hover { background: var(--flaeche); }
.as-panel__zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.as-panel__inhalt { flex: 1; overflow-y: auto; padding: 14px 16px 20px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
html.as-panel-offen { overflow: hidden; }
/* Assistent im Panel: ohne Rahmen/Kopf, Inhalt direkt */
.as-panel .as-inserat { border: 0; background: transparent; }
.as-panel .as-inserat__inhalt { padding: 0; }
.as-panel .as-belegt { margin: 0 0 10px; }
.as-panel .as-optionen { grid-template-columns: 1fr 1fr; }
/* Ergebnisse im Panel: Karten untereinander */
.as-panel__ergebnis { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.as-panel__ergebnis h2 { font-family: "Cormorant", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.1; outline: none; }
.as-panel__zurueck { justify-self: start; font-size: 13px; }
.as-panel .vg-raster { grid-template-columns: 1fr; }
.as-panel .vg-spalte > img { aspect-ratio: 16 / 7; }
.as-panel .vg-datum img { width: 72px; height: 54px; }
/* Fester Knopf „Alternative finden“ */
.as-schwebe { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--pop); color: var(--text); border: 1px solid var(--linie); box-shadow: var(--schatten-pop); font-size: 13.5px; font-weight: 600; }
.as-schwebe .i { width: 17px; height: 17px; }
.as-schwebe:hover { border-color: var(--text); }
/* Handy: Blatt von unten, Knopf über der Buchungsleiste */
@media (max-width: 900px) {
  .as-panel { align-items: flex-end; justify-content: stretch; }
  .as-panel__blatt { width: 100%; height: auto; max-height: 88vh; border-left: 0; border-radius: 22px 22px 0 0; animation: blattAuf .22s ease both; transition: transform .15s; }
  .as-panel__kopf { flex-wrap: wrap; padding-top: 8px; cursor: grab; }
  .as-panel__griff { display: block; flex-basis: 100%; height: 5px; margin: 0 auto 6px; max-width: 44px; border-radius: 3px; background: var(--linie); }
  .as-panel__inhalt { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .as-schwebe { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); height: 38px; padding: 0 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .as-panel__blatt { animation: none; transition: none; } }
/* Handy: „Alternative finden“ in der Buchungsleiste */
.handyleiste .as-schwebe { position: static; height: 36px; padding: 0 10px; font-size: 12px; box-shadow: none; flex-shrink: 0; margin-left: auto; margin-right: 8px; }
.handyleiste .as-schwebe .i { width: 15px; height: 15px; }
@media (max-width: 380px) { .handyleiste .as-schwebe span { display: none; } .handyleiste .as-schwebe { width: 36px; padding: 0; justify-content: center; } .handyleiste .as-schwebe::after { content: ""; } }
@media (max-width: 900px) {
  .as-panel__kopf { position: relative; padding-top: 18px; }
  .as-panel__griff { position: absolute; top: 7px; left: 50%; width: 44px; height: 5px; margin: 0; transform: translateX(-50%); flex: none; }
}
/* Team-Bereiche behalten ihr Raster (die allgemeine .team-nur-Regel setzt sonst display: block) */
html[data-ansicht="team"] .tp-hilfe, html[data-ansicht="team"] .kombi-box:not([hidden]), html[data-ansicht="team"] #teamInfo { display: grid; }
