/* tri-hotel.de – projektspezifische Gestaltung. Grundlage ist der Design-Kern unter public/core/
   (tokens.css, base.css, theme.js), den auch triprep.de nutzt. */

.score { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 8px; border-radius: 14px;
  font: 400 2.2rem var(--head); background: var(--score-bg); border: 3px solid var(--score-ring); color: var(--score-text); }
.score.big { min-width: 110px; height: 110px; font-size: 4rem; }
.score.none { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rank-item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--text); }
.rank-item:hover { border-color: var(--accent-strong); }
.rank-item .pos { font: 400 1.6rem var(--head); color: var(--muted); width: 28px; text-align: right; }
.rank-item .info { flex: 1; min-width: 0; }
.rank-item .name { font-weight: 800; }

.facts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.facts-groups { border-top: 1px solid var(--border); }
.facts-cat { border-bottom: 1px solid var(--border); }
.facts-cat > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr minmax(60px, 120px) auto 1.2em; grid-template-areas: "cat bar pts chev" "sub sub sub sub";
  align-items: center; gap: 2px 14px; padding: 12px 0; }
.facts-cat > summary::-webkit-details-marker { display: none; }
.facts-cat > summary::after { content: "›"; grid-area: chev; justify-self: end; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.facts-cat[open] > summary::after { transform: rotate(90deg); }
.facts-cat .cat { grid-area: cat; font-family: "Bebas Neue", sans-serif; font-size: 1.35rem; letter-spacing: .03em; color: var(--heading); }
.facts-cat .bar { grid-area: bar; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.facts-cat .bar > span { display: block; height: 100%; background: var(--accent); }
.facts-cat .pts { grid-area: pts; font-variant-numeric: tabular-nums; font-weight: 700; }
.facts-cat .sub { grid-area: sub; color: var(--muted); }
.facts-cat[open] { padding-bottom: 8px; }
.facts-cat .fact:last-child { border-bottom: 0; }
.fact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.fact > span:first-child { flex: 1 1 14em; min-width: 0; }
.fact .val { flex: 0 1 auto; max-width: 100%; min-width: 0; text-align: right; }
.fact .src { flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.fact .val.unknown { color: var(--muted); font-style: italic; }

.ad { border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.ad .ad-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.map-box { height: 280px; border-radius: var(--radius); background: var(--surface-2); display: grid; place-items: center; text-align: center; padding: 16px; }
.map-box.loaded { display: block; padding: 0; }
.climate td, .climate th { text-align: center; padding: 8px 6px; font-size: .85rem; min-width: 2.6em; }
.climate tr > th:first-child { text-align: left; white-space: nowrap; padding-right: 16px; }
.climate .sel { background: var(--accent-soft); }
figure { margin: 0; }
figcaption { font-size: .78rem; color: var(--muted); }

/* ---------- Landingpage ---------- */
.landing main { padding-block: 0; }
.landing .site-footer { border-top: 0; }
.hero-band { background: radial-gradient(1200px 420px at 85% -10%, var(--accent-soft), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: var(--col-gap); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding-block: 56px 48px; }
.hero-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.eyebrow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-strong); margin: 0; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.2rem); margin: .15em 0 .25em; line-height: .95; }
.hero-title em { font-style: normal; color: var(--accent-strong); }
.hero-title { color: var(--heading); }
.hero-text { font-size: 1.15rem; max-width: 52ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.score-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.score-card .head { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.score-card .head .name { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.score-card .caption { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; }
.bars { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3.4em; gap: 10px; align-items: center; font-size: .9rem; }
.bars .track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bars .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 0; border-block: 1px solid var(--border); background: var(--surface); }
.stats > div { padding: 18px 16px; border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font: 400 2.4rem/1 var(--head); color: var(--heading); }
.stats span { color: var(--muted); font-size: .9rem; }

.section { padding-block: 56px 8px; }
.section > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset: step; }
.process li { position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.process li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 18px; font: 400 2.6rem/1 var(--head); color: var(--accent-strong); }
.process strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.process p { margin: 0; color: var(--muted); }

.weights { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.weights .bars { margin: 0; }
.weights .bars li { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3em; }

.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.principles > div { padding: 4px 0 0 16px; border-left: 3px solid var(--accent); }
.principles strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.principles p { margin: 0; color: var(--muted); }

.cta-band { margin-top: 64px; background: var(--header-bg); color: var(--header-text); }
.cta-band h2 { color: var(--header-text); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 36px; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn { background: var(--cta); color: var(--cta-text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 36px 32px; }
}

/* ---------- Suche ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin: 0 0 18px; }
.hero-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; background: var(--surface); }
.search { margin-bottom: 18px; }
.search-row { display: grid; gap: 10px 14px; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.search-field label { margin: 0 0 4px; font-size: .85rem; }
.search-features { margin-top: 12px; }
.search-features summary { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip input { width: auto; margin: 0; accent-color: var(--primary); }
.chip:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.search-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; }
.feature-line { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .search-row { grid-template-columns: 1fr 1fr; } .search-field.grow { grid-column: 1 / -1; } }

/* ---------- Brotkrumen, Regionen ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.area-hero { padding-block: 8px 12px; }
.area-hero .lead { max-width: 70ch; }
.area-facts { display: flex; flex-wrap: wrap; gap: 12px var(--col-gap); margin: 18px 0 8px; }
.area-facts strong { display: block; font: 400 2.4rem/1 var(--head); color: var(--heading); }
.area-facts strong.months { font-size: 1.6rem; line-height: 1.2; }
.area-facts span { color: var(--muted); font-size: .9rem; }
.shares { list-style: none; padding: 0; margin: 0; }
.shares li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
a.chip { text-decoration: none; color: var(--text); }
a.chip:hover { border-color: var(--primary); }

/* ---------- Leistungen ---------- */
.features { columns: 2 220px; column-gap: var(--col-gap); }
.features .group { break-inside: avoid; margin-bottom: 12px; }
.features h3 { margin: 0 0 4px; font-size: 1.05rem; }
.features ul { list-style: none; padding: 0; margin: 0; }
.features li { padding: 2px 0 2px 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong); transform: rotate(-45deg); }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.admin-nav a { color: var(--header-text); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; opacity: .8; }
.admin-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.admin-nav a.on { opacity: 1; background: rgba(255, 255, 255, .14); }
.nav-count { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--accent); color: #062b27; font-size: .72rem; font-weight: 800; text-align: center; }
.admin-tools { display: flex; align-items: center; gap: 12px; }
.admin-tools > a { color: var(--header-text); text-decoration: none; font-size: .88rem; opacity: .8; }
.admin-user { position: relative; }
.admin-user summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--header-text); font-weight: 800; }
.admin-user summary::-webkit-details-marker { display: none; }
.admin-user-menu { position: absolute; right: 0; top: 40px; z-index: 20; display: grid; gap: 8px; min-width: 200px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.admin-subnav a, .detail-tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.admin-subnav a:hover, .detail-tabs a:hover { color: var(--text); }
.admin-subnav a.on, .detail-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.detail-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.detail-tabs .nav-count { color: #062b27; }
.tab-hidden { display: none !important; }
.admin-detail { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.admin-detail aside { position: sticky; top: 76px; }
.crit-row td { font-size: .9rem; }
.crit-row td select, .crit-row td input { padding: 5px 7px; font-size: .9rem; }
.crit-row .pts { font-weight: 800; white-space: nowrap; }
.crit-row.ko { background: var(--bad-soft); }
.crit-row.changed { background: var(--accent-soft); }
.log-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.log-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.pill-row a { text-decoration: none; }
details summary { cursor: pointer; font-weight: 700; }
pre.json { white-space: pre-wrap; font-size: .8rem; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .admin-detail { grid-template-columns: 1fr; }
  .admin-detail aside { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
  .rank-item, .btn, .theme-toggle { transition: border-color .15s, filter .15s, background-color .15s; }
}

/* ---------- Stimmungsbilder (Medienbibliothek) ---------- */
.photo-credit { position: absolute; right: 10px; bottom: 8px; z-index: 2; font-size: .7rem; line-height: 1.3; color: #fff;
  background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 999px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-band.has-photo, .cta-band.has-photo { position: relative; overflow: hidden; }
.hero-band.has-photo::before, .cta-band.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-band.has-photo > .wrap, .cta-band.has-photo > .wrap { position: relative; z-index: 2; }
/* Text links bleibt lesbar: Verlauf aus der Hintergrundfarbe (hell wie dunkel über Tokens) */
.hero-band.has-photo::before { background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, color-mix(in srgb, var(--bg) 20%, transparent) 100%); }
.cta-band.has-photo::before { background: linear-gradient(90deg, color-mix(in srgb, var(--header-bg) 88%, transparent) 0%, color-mix(in srgb, var(--header-bg) 60%, transparent) 100%); }
.cta-band.has-photo .wrap { padding-block: 56px; }
@media (max-width: 900px) {
  .hero-band.has-photo::before { background: color-mix(in srgb, var(--bg) 84%, transparent); }
}

.region-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); margin-bottom: 16px; }
.region-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); color: #fff; text-decoration: none; }
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.region-card:hover img, .region-card:focus-visible img { transform: scale(1.04); }
.region-card .label { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 40px 16px 14px; display: flex; flex-direction: column;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.region-card .label strong { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; line-height: 1; }
.region-card .label small { color: #fff; opacity: .92; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.region-card .photo-credit { top: 8px; bottom: auto; font-size: .62rem; }

.page-photo { position: relative; margin: 8px 0 20px; aspect-ratio: 21 / 8; max-height: 360px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .page-photo { aspect-ratio: 16 / 9; } }

/* Admin: Medienbibliothek */
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); margin-bottom: 24px; }
.media-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }

/* Redaktioneller Text auf der Profilseite */
.entity-text { max-width: 72ch; }
.entity-text h3 { margin: 1.1em 0 .3em; }
.entity-text p { margin: 0 0 .7em; }
.entity-text ul { margin: 0 0 .7em; padding-left: 1.2em; }

/* Objektbilder auf der Profilseite und in der Admin-Übersicht */
.entity-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.pager { display: flex; gap: 12px; align-items: center; margin: 16px 0; }

/* Admin: Mailvorschau (Mail-HTML bringt eigene Inline-Stile mit, hier nur Rahmen) */
.mail-preview { background: #fff; color: #1b1f24; border-radius: 8px; padding: 16px; overflow-x: auto; }

/* Admin: Prüfliste und Markierung offener Fakten */
.review-list { margin: 0 0 16px; border-left: 4px solid var(--ok); }
.review-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.review-list li { line-height: 1.4; }
.review-list .badge { min-width: 6.5em; text-align: center; margin-right: 6px; }
.crit-row.state-auto td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.crit-row.state-missing td:first-child { box-shadow: inset 4px 0 0 var(--border); }
.crit-row.state-disputed td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.crit-row.state-auto { background: color-mix(in srgb, var(--ok) 7%, transparent); }
.crit-row .evidence { color: var(--muted); font-style: italic; }
.fact-tools { align-items: center; gap: 8px 16px; }
.fact-tools .legend { font-size: .85rem; color: var(--muted); }
.only-open .crit-row.state-ok:not(.accepted) { display: none; }
.crit-row.accepted { background: color-mix(in srgb, var(--good) 8%, transparent); }
[data-accept-fact] { padding: 2px 10px; font-size: .78rem; }
.draft-box { border: 1px dashed var(--ok); border-radius: var(--radius); padding: 12px 14px; }
.review-items { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.review-items li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.review-items .badge { min-width: 6.5em; text-align: center; flex: none; }
.review-items .txt { flex: 1; min-width: 0; }
.review-items .dismiss { flex: none; margin: 0; }
.report summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-strong); text-decoration: underline; cursor: pointer; font: inherit; }

/* Admin: Kanban-Board „Aufgaben“ */
.board-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.new-task { position: relative; }
.new-task > summary { list-style: none; cursor: pointer; }
.new-task > summary::-webkit-details-marker { display: none; }
.new-task[open] > form { position: absolute; right: 0; z-index: 5; width: min(420px, 90vw); margin-top: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.board { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 12px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.task-col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.task-col h2 { font-size: 1.15rem; margin: 2px 4px 10px; display: flex; gap: 8px; align-items: baseline; }
.task-col .count { font-family: inherit; font-size: .85rem; color: var(--muted); }
.task-list { display: grid; gap: 8px; min-height: 60px; border-radius: 8px; transition: background .15s; }
.task-list.drop-target { background: var(--accent-soft); }
.task-list .empty { display: none; text-align: center; margin: 12px 0; }
.task-list .empty:only-child { display: block; }
.task-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: grab; }
.task-card.has-block { border-left: 4px solid var(--bad); }
.task-card.dragging { opacity: .45; }
.task-card header { display: flex; flex-wrap: wrap; gap: 4px; }
.task-card h3 { font-family: inherit; font-size: 1rem; letter-spacing: 0; margin: 6px 0 4px; }
.task-card ul { margin: 0; padding-left: 16px; font-size: .85rem; }
.task-card li.lvl-block { color: var(--bad); }
.task-card footer { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.task-card footer form { display: flex; gap: 4px; align-items: center; margin: 0; }
.task-card footer select { width: auto; padding: 2px 6px; font-size: .8rem; min-height: 0; }
.task-card .meta { margin: 6px 0 0; font-size: .75rem; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
.avatar.none { background: var(--border); color: var(--muted); }
.task-col[data-status="done"] .task-card { opacity: .8; }
/* Label-Farben */
.badge.lbl { border-color: transparent; color: #fff; }
.lbl-review { background: #2563eb; } .lbl-answers { background: #0f766e; } .lbl-draft { background: #7c3aed; }
.lbl-inquiry_failed { background: #cf222e; } .lbl-recheck { background: #b45309; } .lbl-image_rights { background: #be185d; }
.lbl-stuck { background: #57606a; } .lbl-contact { background: #15803d; } .lbl-user_review { background: #ca8a04; } .lbl-camp_partner { background: #c2410c; } .lbl-unconfirmed { background: #0369a1; } .lbl-manual { background: #374151; } .lbl-google_place { background: #4285f4; } .lbl-camp_lead { background: #ff7a59; } .lbl-mail { background: #0e7490; } .lbl-mail_unassigned { background: #b45309; }
.pill-row .badge.lbl:not(.on) { opacity: .55; }
.task-card li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Startseite: Kopfbereich läuft ohne Kante in den Inhalt über */
.hero-band { border-bottom: 0; }
.hero-band.has-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; min-height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 40%,
    color-mix(in srgb, var(--bg) 80%, transparent) 75%, var(--bg) 100%); }
.hero-band + .section { padding-top: 24px; }

/* Rechtstexte */
.legal h2 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.legal h2:first-of-type { margin-top: .4em; }
.legal p, .legal li { max-width: 75ch; }
.legal .notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: 8px; margin: 12px 0; max-width: 75ch; }
.legal table td { padding: 6px 10px; }

/* Trainingscamps: Ratgeber, Anbieterliste, Profil */
.guide-hero { padding: 32px 0 16px; }
.guide-hero .hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .95rem; }
.guide-section { padding: 40px 0 8px; }
.guide-section.narrow { max-width: 820px; }
.guide-section h2, .guide-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .1em 0 .3em; }
.guide-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 18px; }
.guide-cards.two { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.guide-cards .card h3 { margin-top: 0; }
.guide-cards ul, .tone-good ul, .tone-warn ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.guide-timeline { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 4px solid var(--heading); }
.guide-timeline li { padding: 18px 18px 6px 0; }
.guide-timeline .when { font-weight: 800; color: var(--accent-strong); font-size: .9rem; }
.guide-timeline .peak .when { color: var(--cta); }
.guide-timeline h3 { margin: 4px 0; }
.tone-good { background: var(--accent-soft); border-color: transparent; }
.tone-warn { background: color-mix(in srgb, var(--cta) 12%, var(--surface)); border-color: transparent; }
.guide-band { margin: 40px 0 0; background: var(--header-bg); color: var(--header-text); border-radius: var(--radius); }
.guide-band-inner { padding: 36px clamp(16px, 4vw, 40px); }
.guide-band h2, .guide-band h3 { color: var(--header-text); }
.guide-band .lead, .guide-band .muted { color: color-mix(in srgb, var(--header-text) 78%, transparent); }
.guide-band .eyebrow { color: var(--cta); }
.guide-band .card { background: color-mix(in srgb, var(--header-text) 7%, transparent); border-color: transparent; color: var(--header-text); }
.guide-band .card a, .guide-band .muted a { color: var(--header-text); }
.guide-clubs { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-top: 28px; background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 24px; }
.guide-clubs h3, .guide-clubs h4 { color: var(--heading); margin-top: 0; }
.guide-clubs .muted { color: var(--muted); }
.guide-clubs .card { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.guide-clubs .card a, .guide-clubs .muted a { color: var(--accent-strong); }
.guide-clubs .eyebrow { color: var(--cta); }
.guide-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; margin-top: 24px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--header-text) 15%, transparent); }
.guide-prices > div { background: var(--header-bg); padding: 18px; display: grid; gap: 2px; }
.guide-prices strong { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 2rem; letter-spacing: .02em; }
.guide-prices span { font-size: .9rem; opacity: .85; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq details p { margin: 10px 0 0; }
.camp-filter { margin: 16px 0; }
.camp-filter .chip input { margin: 0 4px 0 0; }
.camp-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 12px; }
.camp-card { display: flex; flex-direction: column; gap: 6px; }
.camp-card header { display: flex; flex-wrap: wrap; gap: 4px; }
.camp-card h3 { margin: 4px 0 0; font-family: inherit; font-size: 1.15rem; letter-spacing: 0; }
.camp-card .where { margin: 0; font-size: .9rem; }
.camp-flags { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: .85rem; }
.camp-flags .yes { color: var(--accent-strong); font-weight: 800; }
.camp-flags .no, .camp-flags .unk { color: var(--muted); }
.camp-price { margin: 4px 0 0; }
.camp-actions { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-badge { border-color: var(--muted); color: var(--muted); }
.camp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 8px; }
.camp-head h1 { margin: .1em 0; }
.camp-head-cta { display: flex; gap: 10px; align-items: center; }
.rank-item.static { cursor: default; }
.other-opinions { margin: 12px 0 0; }

/* Hotelseite: beste Reisezeit (Info, nicht im Score) */
.best-time-line { margin: 0 0 10px; }
.best-time-line .bt-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); }
.best-time-line strong { font-size: 1.1rem; margin-left: 6px; }
.g-embed.loaded iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: var(--radius); }

/* Bewertungen */
.review-form .form-h { font-size: 1.25rem; margin: 1.2em 0 .3em; }
.rating-grid { display: grid; gap: 6px 24px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.stars { border: 0; padding: 4px 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.stars legend { float: left; width: 100%; font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 1.7rem; line-height: 1; color: var(--border); cursor: pointer; margin: 0; padding: 0 1px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5a524; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.review-summary { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); margin: 8px 0 16px; }
.review-summary div { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.star-line { color: #f5a524; letter-spacing: 1px; white-space: nowrap; }
.review { border-top: 1px solid var(--border); padding: 14px 0; }
.review h3 { font-family: inherit; font-size: 1.05rem; letter-spacing: 0; margin: 4px 0; }
.review .meta { font-size: .85rem; color: var(--muted); }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.review .reply { margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: .92rem; }

[data-tab], .detail-tabs { scroll-margin-top: 80px; }
.submit-review { margin: 18px 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent-soft); }
.submit-review summary { cursor: pointer; }
.submit-review[open] summary { margin-bottom: 8px; }
.form-error-hint { margin: 12px 0 0; font-weight: 700; }
.form-error-hint a { color: var(--bad); }
button[disabled] { opacity: .7; cursor: progress; }
/* Hotelseite: Galerie (Objektbilder, Gastfotos oder Beispielbilder der Region) */
.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 170px; }
.gallery[data-n="1"] { grid-template-columns: 1fr; grid-auto-rows: 340px; }
.gallery[data-n="2"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
.gallery[data-n="3"] { grid-template-columns: 2fr 1fr; }
.gallery[data-n="4"] figure:last-child { grid-column: span 2; }
.gallery:not([data-n="1"]):not([data-n="2"]) figure:first-child { grid-row: span 2; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--accent-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 14px 8px 4px; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.gallery figcaption .badge { color: #fff; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .7); font-size: .66rem; padding: 0 6px; }
.gallery-note { margin: 0 0 8px; padding: 8px 12px; border-left: 4px solid var(--ok); background: var(--surface); border-radius: 0; }
@media (max-width: 700px) {
  .gallery, .gallery[data-n="3"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery:not([data-n="1"]) figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery[data-n="4"] figure:last-child, .gallery[data-n="2"] figure:last-child { grid-column: span 2; }
}
/* Partnerlinks (Anzeige) */
.partner-links { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 8px; }
.partner-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.partner-links li strong { min-width: 110px; }
.partner-reviews { margin: 8px 0 0; }
.chip-cta { background: var(--cta); color: var(--cta-text); border-color: transparent; font-weight: 700; }
.lead-form { max-width: 780px; }

/* ---------- Direktvergleich ---------- */
.rank-list > li { display: flex; align-items: center; gap: 10px; }
.rank-list > li > .rank-item { flex: 1; min-width: 0; }
.compare-pick { margin: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.compare-pick[hidden] { display: none; }
.compare-pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.compare-pick:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.compare-pick:has(input:disabled) { opacity: .4; cursor: not-allowed; }
[data-compare-toggle].on { border-color: var(--primary); background: var(--accent-soft); }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--header-bg); color: var(--header-text); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); }
.compare-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 12px; }
.compare-bar [data-compare-status] { font-weight: 700; min-width: 0; }
.compare-bar-actions { display: flex; gap: 8px; align-items: center; }
.compare-bar .btn.secondary { color: var(--header-text); border-color: color-mix(in srgb, var(--header-text) 35%, transparent); }
.compare-bar .btn.disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; filter: none; }
body.compare-mode { padding-bottom: 76px; }

.compare-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; }
.compare-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.compare-toggle a { padding: 7px 16px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .9rem; }
.compare-toggle a.on { background: var(--primary); color: var(--primary-text); }
.compare-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { min-width: 640px; }
table.compare th, table.compare td { padding: 9px 12px; vertical-align: top; }
table.compare .lab { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; color: var(--text); font-weight: 600; font-size: .9rem; width: 28%; min-width: 160px; }
table.compare.cols-2 td, table.compare.cols-2 th.ent { width: 36%; }
table.compare.cols-3 td, table.compare.cols-3 th.ent { width: 24%; }
table.compare thead th { vertical-align: bottom; border-bottom: 2px solid var(--border); }
.ent-name { display: block; font: 400 1.4rem/1.1 var(--head); color: var(--heading); text-decoration: none; letter-spacing: .02em; }
.ent-score { display: flex; gap: 10px; align-items: center; margin: 8px 0 4px; font-size: .9rem; color: var(--text); font-weight: 400; }
.ent-score .score { min-width: 52px; height: 52px; font-size: 1.8rem; }
.ent-remove { font-size: .8rem; color: var(--muted); font-weight: 600; }
table.compare tr.sec th { background: var(--surface-2); font: 400 1.15rem var(--head); letter-spacing: .03em; color: var(--heading); text-align: left; }
table.compare tr.sec th.lab { background: var(--surface-2); }
table.compare .sec-pts { font: 700 .9rem var(--body); color: var(--muted); }
table.compare td.best, table.compare th.best { background: var(--accent-soft); font-weight: 700; }
table.compare td.unknown { color: var(--muted); font-style: italic; }
table.compare td.feat { font-weight: 800; font-size: 1.05rem; }
table.compare td.feat.yes { color: var(--good); }
table.compare td.feat.no { color: var(--muted); }
table.compare td.links { display: table-cell; }
table.compare td.links .btn { margin: 0 6px 6px 0; }
table.compare .camp-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
table.compare .pts { color: var(--muted); }
table.compare .ad-label { font: 700 .7rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 8px; }
table.compare.only-diff tr.same, table.compare.only-diff tbody.no-diff { display: none; }
.compare-note { margin-top: 10px; }
@media (max-width: 640px) {
  table.compare { min-width: 0; font-size: .85rem; }
  table.compare.cols-3 { min-width: 520px; }
  table.compare th, table.compare td { padding: 8px 8px; }
  table.compare .lab { width: 34%; min-width: 108px; font-size: .8rem; }
  .ent-name { font-size: 1.15rem; }
  .ent-score .score { min-width: 42px; height: 42px; font-size: 1.4rem; }
  .compare-bar [data-compare-status] { font-size: .85rem; }
  table.compare.cols-2 { table-layout: fixed; width: 100%; }
  table.compare.cols-2 .lab { width: 32%; min-width: 0; }
  table.compare.cols-2 td, table.compare.cols-2 th.ent { width: 34%; overflow-wrap: anywhere; }
}

/* Postfach */
.mail-list tr.unread td { font-weight: 600; }
.mail-list tr.unread td small { font-weight: 400; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 60vh; overflow: auto; }
.mail-thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mail-thread li { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.mail-thread li.out { border-left: 3px solid var(--accent); }
.mail-thread li.in { border-left: 3px solid var(--warn, #ca8a04); }
.mail-thread li.current { background: var(--surface-2, var(--surface)); }
.mail-thread .mail-meta { margin: 0 0 2px; }
.mail-thread .mail-body { margin-top: 6px; max-height: 40vh; }
