/* =========================================================
   Haus NOVA – Unsere Wohngruppe NOVA
   DUA GmbH & Co. KG · Kinder- und Jugendhilfe
   ========================================================= */

/* ---------- Schrift (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Mulish"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/mulish-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/mulish-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/mulish-latin-800-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
  --navy: #103650;
  --navy-deep: #0d2c45;
  --accent: #4fb2f5;        /* Hellblau aus dem Logo (Linie unter HAUS NOVA) */
  --accent-dark: #1d76b4;   /* dunklere Variante für Text, Buttons, Hover */
  --accent-soft: #e8f4fd;
  --bg: #ffffff;
  --bg-tint: #f2f5f7;
  --text: #4f5b66;
  --line: #dfe4e8;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Abschnittsüberschrift mit gepunkteter Akzentlinie (Hellblau) ---------- */
.section-title {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: "";
  display: block;
  width: 136px;
  margin: 14px auto 0;
  border-bottom: 3px dotted var(--accent);
}
.section-title.left::after { margin-left: 0; }
.section-title.no-rule::after { display: none; }

.section { padding-block: var(--section-y); }
.tinted { background: var(--bg-tint); }

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px 6px;
  max-width: calc(860px + 2 * var(--gutter));
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-symbol { width: 54px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-company { font-weight: 600; font-size: 0.8rem; margin-top: 2px; }
.brand-sub { font-size: 0.78rem; }

.header-phone { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.phone-number { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.phone-note { display: block; font-size: 0.75rem; color: var(--text); }
.header-phone:hover .phone-number { color: var(--accent-dark); }

.icon-circle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-circle svg { width: 20px; height: 20px; fill: var(--accent); }
.icon-circle.filled { background: var(--accent); border-color: var(--accent); width: 36px; height: 36px; }
.icon-circle.filled svg { fill: #fff; width: 18px; height: 18px; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 30px;
}
.main-nav a {
  display: block;
  padding: 10px 2px 9px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a.is-active { color: var(--accent-dark); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== SEITENTITEL ===================== */
.page-title { text-align: center; padding: 22px var(--gutter) 30px; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 8px; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin-inline: 8px; color: var(--text); }
.page-title h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; }
.hero img {
  width: 100%;
  height: clamp(340px, 50vw, 640px);
  object-fit: cover;
  object-position: center 62%;
}
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-overlay .container { max-width: calc(var(--container) + 2 * var(--gutter)); }
.hero-claim {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.2rem);
  line-height: 1.5;
  color: #fff;
}
.hero-claim span {
  background: var(--navy);
  padding: 0.05em 0.35em 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ===================== INTRO / FAKTEN ===================== */
.intro { padding-bottom: calc(var(--section-y) * 0.75); }
.lead { margin-top: 22px; }

.line-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  fill: none; stroke: var(--accent); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

.facts {
  list-style: none;
  margin: 40px auto 0; padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts li {
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
}
.facts li + li { border-left: 1px solid var(--line); }
.facts .line-icon { width: 52px; height: 52px; }

/* ===================== HAUS & GARTEN ===================== */
.wide-image { margin: 36px 0 0; }
.wide-image img {
  width: 100%;
  height: clamp(300px, 46vw, 680px);
  object-fit: cover;
  object-position: center 55%;
}
.statement {
  margin: 28px auto 0;
  max-width: 820px;
  font-weight: 700;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.55rem);
  line-height: 1.45;
  color: var(--navy);
}

/* ===================== ZIELGRUPPE ===================== */
.split {
  margin-top: var(--section-y);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split-media img { width: 100%; aspect-ratio: 4 / 2.1; object-fit: cover; object-position: center 60%; }
.split-text h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 26px; }

/* ===================== ALLTAG ===================== */
.features {
  list-style: none;
  margin: 46px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 44px;
}
.features li {
  display: flex; gap: 22px;
  padding: 0 clamp(16px, 2.4vw, 34px);
}
.features li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.features h3 { font-size: 1.05rem; font-weight: 800; margin: 2px 0 6px; }
.features p { font-size: 0.97rem; line-height: 1.6; }

/* ===================== GALERIE ===================== */
.gallery-section { padding-top: 0; }
.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 10px;
}
.gallery-item { display: block; overflow: hidden; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 2.9;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ===================== CTA ===================== */
.cta p { margin-top: 18px; }
.buttons {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 240px; justify-content: center;
  padding: 15px 26px;
  font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  border-radius: 0;
  transition: background-color .2s, transform .2s;
}
.btn::before {
  content: ""; width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #1a4a6b; }
.btn-accent { background: var(--accent-dark); }
.btn-accent:hover { background: #155d90; }

/* ===================== KONTAKT ===================== */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: calc(860px + 2 * var(--gutter));
}
.contact-address {
  display: flex; gap: 18px; justify-content: center;
  font-style: normal; font-size: 1.12rem; line-height: 1.7; color: var(--navy);
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.contact-pin { width: 30px; height: 30px; fill: var(--accent); flex-shrink: 0; margin-top: 4px; }
.contact-list { list-style: none; margin: 0; padding: 0 0 0 48px; display: grid; gap: 14px; align-content: start; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-size: 1.12rem; color: var(--navy); }
.contact-list a:hover { color: var(--accent-dark); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-deep); color: #fff; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-block: 34px;
}
.brand-footer { color: #fff; padding-right: 32px; border-right: 1px solid rgba(255,255,255,.25); }
.brand-footer .brand-symbol { width: 58px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 0.9rem; }
.footer-legal {
  display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem;
  padding-left: 32px; border-left: 1px solid rgba(255,255,255,.25);
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--accent); }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 24, 38, .92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1280px, 100%); max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:not(:nth-child(3n)) { border-right: 0; }
  .features li:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .brand-footer { border-right: 0; padding-right: 0; width: 100%; justify-content: center; }
  .footer-legal { flex-direction: row; gap: 22px; border-left: 0; padding-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  .header-top { flex-wrap: nowrap; }
  .header-phone .phone-note { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 2.6; }
  .facts { grid-template-columns: 1fr; max-width: 360px; gap: 18px; }
  .facts li { justify-content: flex-start; white-space: normal; }
  .facts li + li { border-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item:first-child img { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; max-width: 420px; }
  .contact-address { justify-content: flex-start; border-right: 0; padding-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .contact-list { padding-left: 0; }
  .br-desktop { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-phone { margin-left: auto; }
  .header-phone > span:last-child { display: none; }
  .main-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { padding: 13px 0; border-bottom: 0; }
  .main-nav a.is-active { border-left: 3px solid var(--accent); padding-left: 12px; }
  .features { grid-template-columns: 1fr; row-gap: 30px; }
  .features li, .features li:nth-child(odd) { border-right: 0; padding: 0; }
  .footer-nav { gap: 10px 20px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-symbol { width: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-company, .brand-sub { font-size: 0.72rem; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===================== ZIMMER-SEITE ===================== */
.rooms-intro { padding-top: 16px; padding-bottom: var(--section-y); }
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}
.room { background: #fff; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.room-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, #f3f8fc 0 14px, #e9f2fa 14px 28px);
  border: 2px dashed rgba(79, 178, 245, .6);
  color: var(--accent-dark);
  font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.placeholder .line-icon { width: 56px; height: 56px; }
.room-body { padding: 22px 24px 26px; border-top: 3px solid var(--accent); }
.room-label { margin: 0 0 2px; font-size: 0.75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.room-body h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.room-body p:last-child { font-size: 0.97rem; }

.shared-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.shared-grid figure { margin: 0; }
.shared-grid figcaption { margin-top: 12px; text-align: center; font-weight: 700; color: var(--navy); }

.gallery-section .buttons, .shared .buttons { margin-top: 36px; }

@media (max-width: 1024px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .rooms, .shared-grid { grid-template-columns: 1fr; }
}

/* Musterfotos (vorübergehend) */
.photo-wrap { position: relative; }
.sample-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(16, 54, 80, .88); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px;
}

/* =========================================================
   BEWEGUNG & EFFEKTE
   ========================================================= */

/* Header: beim Scrollen kompakter mit Schatten */
.site-header { transition: box-shadow .3s; }
.site-header .header-top { transition: padding .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 54, 80, .08); }
.site-header.is-scrolled .header-top { padding-block: 6px 2px; }
.brand-symbol { transition: transform .4s ease; }
.brand:hover .brand-symbol { transform: translateY(-2px) scale(1.05); }
.header-phone .icon-circle { transition: background-color .25s, transform .25s; }
.header-phone:hover .icon-circle { background: var(--accent); transform: rotate(-12deg); }
.header-phone:hover .icon-circle svg { fill: #fff; }

/* Nav: Unterstrich wächst beim Hover */
.main-nav a { position: relative; }
.main-nav a:not(.is-active)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px;
  background: var(--accent); transition: left .25s, right .25s;
}
.main-nav a:not(.is-active):hover::after { left: 0; right: 0; }

/* Hero: Bildwechsel mit Überblendung und langsamem Zoom */
.hero-slides { position: relative; height: clamp(340px, 50vw, 640px); overflow: hidden; background: var(--navy); }
.hero .hero-slide {
  position: absolute; inset: 0; height: 100%;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.4s ease;
}
.hero .hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.claim-line { display: inline-block; opacity: 0; transform: translateX(-30px); animation: claimIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.claim-line:nth-of-type(2) { animation-delay: .35s; }
@keyframes claimIn { to { opacity: 1; transform: none; } }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: transparent; cursor: pointer; transition: width .3s, background-color .3s, border-radius .3s;
}
.hero-dots button.is-active { width: 30px; border-radius: 6px; background: #fff; }

/* Laufschrift */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.ticker span::after {
  content: ""; width: 7px; height: 7px; margin: 0 28px; border-radius: 50%; background: var(--accent);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Einblenden beim Scrollen (nur mit JS aktiv) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Linie unter Überschriften läuft beim Einblenden auf */
.js .section-title[data-reveal]::after { width: 0; transition: width .9s .35s ease; }
.js .section-title[data-reveal].is-visible::after { width: 136px; }

/* Fakten & Alltag: Icons reagieren beim Hover */
.facts li, .features li { transition: transform .3s ease; }
.facts .line-icon, .features .line-icon { transition: transform .35s ease, stroke .3s; }
.facts li:hover .line-icon, .features li:hover .line-icon { transform: translateY(-4px) scale(1.08); stroke: var(--accent-dark); }
.features li:hover { transform: translateY(-4px); }
.features li h3 { transition: color .25s; }
.features li:hover h3 { color: var(--accent-dark); }
.count { display: inline-block; min-width: 1ch; }

/* Bild Zielgruppe: Zoom beim Hover */
.split-media { overflow: hidden; }
.split-media img { transition: transform .8s ease; }
.split-media:hover img { transform: scale(1.05); }

/* Galerie: Zoom + Beschriftung fährt ein */
.gallery-item { position: relative; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,54,80,.75), rgba(16,54,80,0) 55%);
  opacity: 0; transition: opacity .4s;
}
.gallery-caption {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  color: #fff; font-weight: 700; transform: translateY(12px); opacity: 0; transition: transform .4s, opacity .4s;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { transform: none; opacity: 1; }

/* Buttons: Pfeil bewegt sich, leichtes Anheben */
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,54,80,.18); }
.btn::before { transition: transform .25s; }
.btn:hover::before { transform: translateX(4px) rotate(45deg); }

/* Zimmer-Karten */
.room { transition: transform .35s ease, box-shadow .35s ease; overflow: hidden; }
.room:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,54,80,.12); }
.room .photo-wrap { overflow: hidden; }
.room .photo-wrap img { transition: transform .8s ease; }
.room:hover .photo-wrap img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-slide.is-active, .claim-line, .ticker-track { animation: none !important; }
  .claim-line { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   UNTERSEITEN
   ========================================================= */
.notice {
  margin: 0 auto; max-width: 820px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  color: var(--navy); font-size: 0.9rem; padding: 12px 16px;
}
.page-title + .container .notice { margin-bottom: 8px; }
mark.ph { background: #fff4c2; color: var(--navy); padding: 0 4px; border-radius: 2px; }
.lead.center { text-align: center; }

/* Team-Karten */
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); padding: 32px 26px; text-align: center; transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,54,80,.1); }
.avatar { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.card-role { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }

/* Ablauf-Schritte */
.steps { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
  border-top: 2px dotted var(--accent);
}
.step-no {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.3rem;
  transition: background-color .3s, transform .3s;
}
.steps li:hover .step-no { background: var(--accent-dark); transform: scale(1.08); }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { font-size: 0.95rem; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-dark); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; }

/* Info-Tabelle */
.info-table { margin: 44px auto 0; max-width: 820px; display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.info-table dt, .info-table dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-table dt { font-weight: 800; color: var(--navy); }

/* Downloads */
.downloads { list-style: none; margin: 40px auto 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.downloads li { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 20px; transition: border-color .3s, transform .3s; }
.downloads li:hover { border-color: var(--accent); transform: translateY(-3px); }
.downloads h3 { font-size: 1rem; }
.downloads p { margin: 0; font-size: 0.85rem; }

/* Stellen */
.jobs { list-style: none; margin: 40px auto 0; padding: 0; max-width: 960px; display: grid; gap: 16px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 24px 28px; transition: box-shadow .3s, transform .3s; }
.job:hover { transform: translateX(4px); box-shadow: 0 10px 26px rgba(16,54,80,.08); }
.job h3 { font-size: 1.15rem; }
.job-meta { color: var(--accent-dark); font-weight: 700; font-size: 0.88rem; margin: 4px 0 6px; }
.job .btn { min-width: 0; flex-shrink: 0; }

/* Formular */
.contact-form { margin-top: 36px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid #c9d2da; border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,178,245,.25); }
.contact-form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.contact-form label.check input { width: auto; }
.contact-form label.check a { color: var(--accent-dark); text-decoration: underline; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-note { font-size: 0.82rem; margin: 0; }

.map-placeholder {
  height: 340px; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: left;
  background: repeating-linear-gradient(135deg, #f3f8fc 0 14px, #e9f2fa 14px 28px);
  border: 2px dashed rgba(79,178,245,.6); color: var(--navy); font-weight: 700;
}
.map-placeholder small { font-weight: 400; }

/* Rechtstexte */
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.legal p { font-size: 1rem; }
.legal .notice { margin-bottom: 10px; }
.legal-date { margin-top: 30px; font-size: 0.9rem; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li::after { display: none; }
  .downloads { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .info-table { grid-template-columns: 1fr; }
  .info-table dt { border-bottom: 0; padding-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .job .btn { width: 100%; }
  .contact-form .btn { justify-self: stretch; }
}
.page-title + .section, .page-title + .container + .section { padding-top: clamp(24px, 3vw, 40px); }

/* =========================================================
   INHALTE AUS DEM KUNDEN-PDF (Okt. 2026)
   ========================================================= */
.eyebrow {
  margin: 0 0 10px; font-size: 0.82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow.left { text-align: left; }
.lead p { margin: 0 0 1em; }
.lead strong { color: var(--navy); }
.facts-4 { grid-template-columns: repeat(4, 1fr); max-width: 1120px; }

/* Drei Säulen */
.pillars { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars li {
  background: #fff; padding: 36px 30px 32px; text-align: center; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--accent); transition: transform .35s, box-shadow .35s;
}
.pillars li::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.pillars li:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(16,54,80,.12); }
.pillars li:hover::before { opacity: 1; }
.pillars li > * { position: relative; }
.pillar-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); transition: transform .5s; }
.pillars li:hover .pillar-icon { transform: rotate(-8deg) scale(1.08); }
.pillars h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.pillars h3 span { color: var(--accent-dark); font-weight: 700; font-size: 1.1rem; }

/* Chips */
.chips, .lang-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips { margin: 4px 0 20px; }
.chips li { background: var(--accent-soft); color: var(--navy); font-weight: 700; font-size: 0.9rem; padding: 7px 14px; }
.lang-chips { justify-content: center; margin: 28px 0 30px; }
.lang-chips li {
  border: 2px solid var(--accent); color: var(--navy); font-weight: 800; padding: 8px 18px; border-radius: 999px;
  transition: background-color .25s, color .25s, transform .25s;
}
.lang-chips li:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.lang-chips li:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }

.diversity { background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.quote {
  margin: 30px auto 0; max-width: 680px; position: relative; padding-top: 34px;
  font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 700; color: var(--navy); line-height: 1.4;
}
.quote::before { content: "\201E"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: 4.5rem; color: var(--accent); line-height: 1; }

.split-reverse .split-media { order: 2; }
.highlight { border-left: 4px solid var(--accent); padding-left: 16px; font-weight: 700; color: var(--navy); }

.features-4 { grid-template-columns: repeat(4, 1fr); }
.features-4 li:not(:nth-child(3n)) { border-right: 0; }
.features-4 li:not(:last-child) { border-right: 1px solid var(--line); }
.statement.center { margin-top: 48px; }

/* Galerie 3x2 */
.gallery-6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
.gallery-6 .gallery-item img { height: 100%; aspect-ratio: auto; }
.gallery-6 .gallery-wide { grid-column: span 2; }
.gallery-item .gallery-caption { transform: none; opacity: 1; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.gallery-item::after { opacity: .55; }

/* Dunkler CTA */
.cta-dark { background: var(--navy); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.cta-dark::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,178,245,.35), transparent 70%); animation: float 12s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-120px, 120px); } }
.cta-dark .container { position: relative; }
.cta-dark .section-title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.cta-dark .eyebrow { color: var(--accent); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Kontakt-Labels */
.contact-list li > span:last-child { display: grid; }
.contact-list small { font-size: 0.72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.contact-grid { max-width: calc(940px + 2 * var(--gutter)); }

/* Lightbox mit Pfeilen */
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 700; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
  transition: background-color .2s;
}
.lightbox-nav:hover { background: var(--accent-dark); }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }
.lightbox.single .lightbox-nav { display: none; }
.lightbox img { max-height: 80vh; }

@media (max-width: 1024px) {
  .facts-4 { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .facts-4 li:nth-child(3) { border-left: 0; }
  .features-4 { grid-template-columns: repeat(2, 1fr); }
  .features-4 li:nth-child(2) { border-right: 0; }
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .split-reverse .split-media { order: 0; }
  .facts-4 { max-width: 360px; grid-template-columns: 1fr; }
  .facts-4 li { border-left: 0 !important; }
  .gallery-6 { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-6 .gallery-wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .features-4 { grid-template-columns: 1fr; }
  .features-4 li { border-right: 0 !important; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .cta-dark::before { animation: none; } }

/* ---------- Zimmer-Seite: echte Fotos ---------- */
.room-views { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); cursor: zoom-in; }
.room-views img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease, transform 1.2s ease;
}
.room-views img.is-active { opacity: 1; }
.room-views:hover img.is-active { transform: scale(1.06); }
.room-views:hover img:nth-of-type(2) { opacity: 1; transform: scale(1.06); }
.room-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(16,54,80,.85); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em;
  padding: 5px 10px; text-transform: uppercase;
}
.room-count::before { content: "▣ "; color: var(--accent); }
.room-body h2 { display: flex; align-items: center; gap: 10px; }
.room-icon { width: 30px; height: 30px; }
.room:hover .room-icon { transform: rotate(-10deg) scale(1.1); }

/* Vergleichsregler Tag/Abend */
.compare-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 36px; align-items: start; }
.compare { position: relative; overflow: hidden; --pos: 50%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,.4); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.compare-label {
  position: absolute; top: 12px; z-index: 1; background: rgba(16,54,80,.8); color: #fff;
  font-size: 0.75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; pointer-events: none;
}
.compare-label.l { left: 12px; } .compare-label.r { right: 12px; }

/* Gemeinschaftsräume */
.spaces { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.space { margin: 0; background: #fff; transition: transform .35s, box-shadow .35s; }
.space:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,54,80,.12); }
.space-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.space-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.space:hover .space-cover img { transform: scale(1.06); }
.space figcaption { padding: 18px 20px 22px; display: grid; gap: 4px; border-top: 3px solid var(--accent); }
.space figcaption strong { color: var(--navy); font-size: 1.1rem; }
.space figcaption span { font-size: 0.95rem; }

@media (max-width: 1024px) { .spaces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .spaces, .compare-grid { grid-template-columns: 1fr; }
}
span.highlight { display: block; }
.eyebrow.center { text-align: center; }
.section > .split:first-child { margin-top: 0; }
.contact-note { display: block; font-style: normal; font-size: 0.82rem; color: var(--text); }
.rooms-4 { grid-template-columns: repeat(4, 1fr); }
.rooms-section .lead { margin-top: 18px; }
.avatar-initials { font-weight: 800; font-size: 1.8rem; color: var(--accent-dark); letter-spacing: .04em; }
@media (max-width: 1100px) { .rooms-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .rooms-4 { grid-template-columns: 1fr; } }

/* Fünf Aufnahme-Schritte, Uhrzeiten in den Schritt-Kreisen */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-no { font-variant-numeric: tabular-nums; }
.steps .step-no:not(:empty) { font-size: 1.05rem; }
@media (max-width: 1100px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } .steps-5 li::after { display: none; } }
@media (max-width: 760px) { .steps-5 { grid-template-columns: 1fr; } }
.facts-4 li { white-space: normal; text-align: left; }
html, body { overflow-x: clip; }
.contact-list li > span:last-child { min-width: 0; }
.contact-note { white-space: normal; }
.contact-list li { min-width: 0; }
.contact-list li > span:last-child { overflow-wrap: anywhere; }
.contact-grid > * { min-width: 0; }
