/* =====================================================================
   Sektionen im Stil des Heros: Schiefer, Signalgelb, Bauplan-Raster
   ===================================================================== */
:root {
  --radius-xl: 20px;
  --blueprint:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px;
}

/* Überschriften: kurzer gelber Balken als Markierung */
.section h2:not(.visually-hidden)::after {
  content: ""; display: block;
  width: 56px; height: 6px; margin-top: 18px;
  background: var(--signal); border-radius: 2px;
}
.section-head-split { max-width: none; display: grid; gap: 8px 64px; align-items: end; margin-bottom: 48px; }
.section-head-split h2 { margin-bottom: 0; }
.section-head-split .lead { margin: 0; }
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-bottom: 56px; }
}

/* Alle Foto-Platzhalter dunkel mit Raster */
.photo-ph-dark {
  background: var(--blueprint), linear-gradient(160deg, #24384a, var(--slate) 70%);
  color: #9fb3c2; border: 0;
}
.photo-ph-dark .icon { color: var(--signal); }
.section-alt .photo-ph.photo-ph-dark { background: var(--blueprint), linear-gradient(160deg, #24384a, var(--slate) 70%); }

/* ---------- Ausstattung: Bento-Raster ---------- */
.bento {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px;
  min-height: 170px;
  background: var(--mist);
  border-radius: var(--radius-xl);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.tile .icon {
  width: 30px; height: 30px; margin-bottom: auto;
  color: var(--blue);
}
.tile h3 { font-size: 1.12rem; line-height: 1.2; margin-top: 18px; }
.tile p { margin: 0; color: var(--text-soft); font-size: .95rem; line-height: 1.45; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,42,53,.45); }

.tile-dark { background: var(--blueprint), linear-gradient(150deg, #24384a, var(--slate) 65%); color: var(--white); }
.tile-dark .icon { color: var(--signal); }
.tile-dark p { color: #c3ced6; }
.tile-signal { background: var(--signal); color: var(--slate); }
.tile-signal .icon { color: var(--slate); }
.tile-signal p { color: rgba(28,42,53,.8); }
.tile-big, .tile-wide { grid-column: 1 / -1; }
.tile-big { min-height: 260px; }
.tile-big h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tile-big p { font-size: 1.02rem; max-width: 26em; }
.tile-room-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.tile-room-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.tile-room-photo {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}
.tile-room-photo:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}
.tile-bath { grid-column: 1 / -1; scroll-margin-top: 100px; }
.tile-bath .tile-room-photo:focus-visible { outline-color: var(--slate); }
@media (min-width: 900px) {
  .tile-bath { grid-column: auto; }
}
.lightbox.is-room-view .lb-photo {
  aspect-ratio: 3 / 4;
  width: min(100%, calc((100vh - 160px) * .75));
}
.tile-lounge { scroll-margin-top: 100px; }
.tile-lounge-photos { grid-template-columns: minmax(0, 1fr); }
.tile-lounge-photos img { aspect-ratio: 16 / 9; max-height: 240px; }
.lightbox.is-single-view .lb-prev,
.lightbox.is-single-view .lb-next { display: none; }
.tile-num {
  position: absolute; right: -6px; bottom: -36px;
  font-size: 13rem; line-height: 1; font-weight: 800; font-stretch: 125%;
  color: rgba(245, 184, 0, .14);
  pointer-events: none;
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
  .tile { padding: 26px; }
  .tile-big { grid-column: span 2; grid-row: span 2; padding: 34px; }
  .tile-big .icon { width: 40px; height: 40px; }
  .tile-wide { grid-column: span 2; }
  .tile-num { font-size: 18rem; bottom: -60px; }
}

/* ---------- Zimmer ---------- */
.room {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 14px 14px 22px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.room:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(28,42,53,.5); }
.room .photo { border-radius: 12px; margin-bottom: 20px; }
.room h3, .room .room-meta, .room .check-list { margin-left: 8px; margin-right: 8px; }
.room h3 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); }
.room-meta {
  display: inline-block;
  margin-top: 10px; margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--signal-soft); border: 1px solid var(--signal);
  border-radius: 999px;
  color: var(--slate); font-size: .9rem; font-weight: 600;
}
.room .check-list li:last-child { border-bottom: 0; }
.room .check-list li:last-child::after { display: none; }

/* Planer als dunkle Steuertafel */
.planner {
  scroll-margin-top: 100px;
  background: var(--blueprint), linear-gradient(160deg, #24384a, var(--slate) 60%);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-xl);
}
.planner-head p { color: #c3ced6; }
.seg span { border-color: rgba(255,255,255,.2); color: var(--white); background: rgba(255,255,255,.04); }
.seg span::before { border-color: rgba(255,255,255,.55); background: transparent; }
.seg span:hover { background: rgba(255,255,255,.1); }
.seg input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--slate); font-weight: 650; }
.seg input:checked + span::before { border-color: var(--slate); background: var(--slate); box-shadow: inset 0 0 0 3px var(--signal); }
.seg input:checked + span:hover { background: #ffc61a; }
.seg input:focus-visible + span { outline-color: var(--signal); }
.occ-room { background: rgba(255,255,255,.06); }
.occ-room.is-b { background: rgba(245,184,0,.16); }
.occ-room.is-unused { opacity: .45; }
.occ-room.is-unused .occ-slots { visibility: hidden; }
.planner-result .btn[disabled] { cursor: not-allowed; }
.occ-label { color: #c3ced6; }
.occ-p { background: var(--white); }
.occ-desk { color: var(--signal); }
.planner-result { border-top-color: rgba(255,255,255,.18); }
.planner-sum strong { color: var(--signal); }

/* Buttons in Signalgelb und Dunkel */
.btn-signal { background: var(--signal); color: var(--slate); }
.btn-signal::before { background: var(--white); }
.btn-signal:hover { color: var(--slate); }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark::before { background: var(--blue); }
.btn-dark:hover { color: var(--white); background: var(--slate); }

/* ---------- Vorteile ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .perks { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.perk {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.perk::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px;
  background: var(--signal); border-radius: 0 0 4px 4px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.perk:hover { border-color: var(--slate); transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(28,42,53,.5); }
.perk:hover::before { transform: scaleX(1); }
.perk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 22px;
  background: var(--slate); color: var(--signal);
  border-radius: 14px;
  transition: transform .5s var(--ease-spring);
}
.perk:hover .perk-icon { transform: rotate(-8deg) scale(1.06); }
.perk-icon .icon { width: 26px; height: 26px; }
.perk h3 { font-size: 1.15rem; margin-bottom: 8px; }
.perk p { margin: 0; color: var(--text-soft); font-size: .98rem; }

/* ---------- Preis: gelber Block mit Stempel ---------- */
.section-signal { background: var(--signal); color: var(--slate); overflow: hidden; }
.section-signal h2::after { display: none; }
.price-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr auto; gap: 64px; } }
.price { max-width: none; }
.price-label { font-weight: 650; font-size: 1.1rem; margin: 0 0 4px; }
.price-main {
  font-size: clamp(3.4rem, 13vw, 8.5rem); line-height: .95;
  font-weight: 800; font-stretch: 125%; letter-spacing: -.03em;
  margin: 0;
}
.price-per { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 600; margin: 10px 0 22px; }
.price-sub { color: rgba(28,42,53,.8); font-size: 1.05rem; max-width: 34em; margin-bottom: 30px; }
.stamp {
  position: relative; justify-self: center;
  width: clamp(180px, 40vw, 260px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp-ring text {
  font-family: var(--font); font-weight: 700; font-size: 13px;
  fill: var(--slate); font-stretch: 115%;
}
.stamp-core {
  width: 52%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--slate); color: var(--signal);
  font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 800; font-stretch: 125%;
  box-shadow: 0 0 0 8px var(--signal), 0 0 0 10px var(--slate);
}

/* ---------- Galerie ---------- */
.g-item .photo { border-radius: 16px; }
.g-cap { font-weight: 600; }

/* ---------- Lage: gezeichnete Karte ---------- */
.map { min-height: 0; }
.map-card {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--blueprint), linear-gradient(160deg, #24384a, var(--slate) 65%);
  color: var(--white);
}
.map-svg { display: block; width: 100%; height: auto; }
.map-river { fill: none; stroke: #4f86b0; stroke-width: 16; stroke-linecap: round; opacity: .55; }
.map-river-label { fill: #8fb6d4; font-family: var(--font); font-size: 15px; font-style: italic; }
.map-route {
  fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 2 9;
}
.map-town circle { fill: var(--slate); stroke: var(--white); stroke-width: 3; }
.map-town text, .map-home text { fill: var(--white); font-family: var(--font); font-weight: 700; font-size: 18px; font-stretch: 115%; }
.map-town .map-time { fill: #c3ced6; font-weight: 500; font-size: 14px; font-stretch: 100%; }
.map-dot { fill: var(--signal); stroke: var(--slate); stroke-width: 4; }
.map-pulse { fill: var(--signal); opacity: .35; }
.map-home text { font-size: 20px; }
.map-card figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #c3ced6;
}
.map-card figcaption strong { color: var(--white); }
.drive > div { padding: 16px 0; }
.drive dd { font-weight: 650; }

/* ---------- Anfrage: dunkler Abschluss ---------- */
.section-contact {
  background: var(--blueprint), linear-gradient(170deg, #22364a, var(--slate) 55%);
  color: var(--white);
}
.section-contact .lead { color: #c3ced6; }
.section-contact .contact-list { border-top-color: rgba(255,255,255,.18); }
.section-contact .contact-list a { color: var(--white); border-bottom-color: rgba(255,255,255,.18); }
.section-contact .contact-list a:hover { color: var(--signal); }
.section-contact .contact-list .icon { color: var(--signal); }
.section-contact .contact-list small { color: #c3ced6; }
.section-contact .inquiry {
  background: var(--white); color: var(--slate);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.site-footer { border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Bewegung für die neuen Elemente ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stamp-ring { transform: rotate(calc(var(--rot, 0) * 1deg)); transition: transform .2s linear; }
  .js .map-route { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease-out); }
  .js .map-route:nth-of-type(3) { transition-delay: .25s; }
  .js .map-route:nth-of-type(4) { transition-delay: .5s; }
  .js .map.is-in .map-route { stroke-dashoffset: 0; }
  .js .map.is-in .map-route { animation: dashify 0s linear 2.3s forwards; }
  .js .map-town { opacity: 0; transition: opacity .6s ease 1.2s; }
  .js .map.is-in .map-town { opacity: 1; }
  .map-pulse { transform-box: fill-box; transform-origin: center; animation: mapPulse 2.4s ease-out 3; }
  .js .tile-num { transform: translateY(40px); opacity: 0; transition: transform 1.2s var(--ease-out) .3s, opacity 1s ease .3s; }
  .js .tile.is-in .tile-num { transform: none; opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dashify { to { stroke-dasharray: 2 9; } }
@keyframes mapPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Ergebnisse aus der Guidelines-Prüfung ---------- */
span.photo { display: block; }
a, button, input, select, textarea, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(10, 90, 140, .15); }
.lightbox { overscroll-behavior: contain; }
@media (max-width: 899px) { html { scroll-padding-bottom: 88px; } }

/* Laufband mit Pause-Knopf */
.ticker { position: relative; }
.ticker-toggle {
  position: absolute; right: 10px; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate); color: var(--signal);
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 6px var(--signal);
}
.ticker-toggle .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.ticker-toggle:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-toggle { display: none; } }
.price-ab { font-size: .45em; font-stretch: 100%; letter-spacing: 0; vertical-align: .55em; margin-right: .1em; }
