/* =====================================================================
   Designsprache (markenneutral, Name folgt)
   Weich und modern: grosse Radien, Glas-Ebenen, Bento-Karten, ruhige Bewegung.
   Schrift:  Instrument Sans
   Farben:   Sand (Hintergrund), Weiss (Karten), Tinte, Nacht, Akzent Glut
   ===================================================================== */
:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #efebe5;
  --ink: #141513;
  --muted: #6e6a63;
  --line: rgba(20, 21, 19, .08);
  --night: #111412;
  --night-2: #1a1e1c;
  --accent: #e8642c;
  --accent-soft: #fdeee6;
  --glass: rgba(255, 255, 255, .72);
  --glass-dark: rgba(18, 21, 19, .72);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 18, 12, .04), 0 18px 48px -18px rgba(40, 30, 15, .16);
  --shadow-lg: 0 2px 4px rgba(20, 18, 12, .04), 0 40px 80px -30px rgba(40, 30, 15, .28);
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; overflow-x: hidden; }
/* dezentes Korn fuer Waerme */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.flip { transform: rotate(180deg); }
.eyebrow { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .9rem; }

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: 50px; padding: 0 1.4em; border: 0; border-radius: 999px; font: 500 .95rem/1 var(--font); cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), background .25s, box-shadow .25s; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill-sm { height: 40px; padding: 0 1.1em; font-size: .86rem; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pill-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 100, 44, .6); }
.pill-glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pill-glass:hover { background: rgba(255,255,255,.24); }
.pill-glass-dark { background: var(--glass-dark); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pill .ic { transition: transform .35s var(--ease); }
.pill:hover .ic { transform: translateX(3px); }
.textlink { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: .5em; height: 34px; padding: 0 .95em; border-radius: 999px; font-size: .84rem; font-weight: 500; }
.chip-glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.chip-glass::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,100,44,.25); }

/* ---------- Navigation (schwebend) ---------- */
.nav { position: fixed; top: 14px; left: 50%; z-index: 80; transform: translateX(-50%); width: min(1180px, 100% - 28px); display: flex; align-items: center; gap: 1rem; height: 60px; padding: 0 10px 0 22px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.6); transition: transform .5s var(--ease); }
.nav.hide { transform: translate(-50%, -130%); }
.nav-mark { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.nav-mark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: .2rem; margin: 0 auto; }
.nav-links a { padding: .55em 1em; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(20,21,19,.05); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 12px; }
.hero-frame { position: relative; height: calc(100svh - 24px); min-height: 640px; border-radius: var(--r-xl); overflow: hidden; background: var(--night); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.08); will-change: transform; z-index: -2; }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,11,.35) 0%, rgba(10,12,11,0) 28%, rgba(10,12,11,.15) 55%, rgba(10,12,11,.78) 100%); }
.hero-content { position: absolute; left: clamp(24px, 4vw, 56px); bottom: clamp(110px, 14vh, 150px); max-width: 1000px; color: #fff; }
.hero h1 { font-size: clamp(3.4rem, 8.2vw, 7.8rem); letter-spacing: -.055em; line-height: .92; margin: 1.1rem 0 1.4rem; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; max-width: 34rem; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero-card { position: absolute; right: 24px; bottom: 24px; width: 300px; padding: 10px; border-radius: var(--r-lg); background: rgba(255,255,255,.14); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 30px 60px -20px rgba(0,0,0,.5); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; transition: transform .5s var(--ease); }
.hero-card:hover { transform: translateY(-4px); }
.hero-card img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.hero-card-txt { display: flex; flex-direction: column; padding: 0 6px 4px; font-size: .82rem; color: rgba(255,255,255,.75); }
.hero-card-txt b { color: #fff; font-weight: 500; font-size: .95rem; }
.hero-card-go { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; margin: 0 4px 4px 0; }
.hero-facts { position: absolute; left: clamp(24px, 4vw, 56px); bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-facts li { height: 40px; display: inline-flex; align-items: center; gap: .35em; padding: 0 1em; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: rgba(255,255,255,.8); font-size: .86rem; }
.hero-facts b { color: #fff; font-weight: 600; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0 0; }
.section-tight { padding-top: clamp(80px, 9vw, 120px); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { margin-top: 1.1rem; font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.note { margin-top: 16px; font-size: .84rem; color: var(--muted); }

/* ---------- Karten / Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); overflow: hidden; }
.card p { color: var(--muted); font-size: .96rem; }
.card h3 { margin: 1.1rem 0 .45rem; }
.bento > .card { grid-column: span 3; }
.bento > .b-wide { grid-column: span 6; grid-row: span 2; }
.card-img { padding: 0; min-height: 420px; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-cap { position: absolute; left: 16px; bottom: 16px; padding: .5em .9em; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .8rem; }
.card-accent { background: var(--accent); color: #fff; }
.card-accent p { color: rgba(255,255,255,.86); }
.card-accent .ic-badge { background: rgba(255,255,255,.18); color: #fff; }
.card-dark { background: var(--night); color: #f1efea; box-shadow: var(--shadow-lg); }
.card-dark p, .card-dark .eyebrow { color: #a19d94; }
.card-plain { background: none; box-shadow: none; padding: 0; overflow: visible; }
.ic-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.ic-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3D-Rundgang ---------- */
.stage-wrap { padding: 0 12px; }
.plan-stage { position: relative; height: min(88vh, 940px); min-height: 560px; border-radius: var(--r-xl); overflow: hidden; background: var(--night); box-shadow: var(--shadow-lg); }
#plan-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#plan-tooltip { display: none; }
.plan-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.plan-stage > :not(canvas):not(.plan-labels) { z-index: 2; }

.room-label { pointer-events: auto; border: 0; padding: .42em .85em; border-radius: 999px; background: rgba(18,21,19,.78); color: #f3f1ec; font: 500 .72rem/1 var(--font); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.room-label.small { font-size: .62rem; opacity: .75; }
.room-label:hover, .room-label.hover { background: rgba(30,34,32,.95); }
.room-label.active { background: var(--accent); color: #fff; }
.room-label.entry { background: var(--accent); color: #fff; pointer-events: none; font-size: .64rem; letter-spacing: .04em; }
.plan-stage[data-mood="day"] .room-label { background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 6px 18px rgba(40,30,15,.15); }
.plan-stage[data-mood="day"] .room-label.active { background: var(--accent); color: #fff; }

.glass-d { background: var(--glass-dark); color: #f1efea; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px -20px rgba(0,0,0,.5); }

#room-info { position: absolute; left: 20px; top: 20px; width: min(340px, calc(100% - 40px)); padding: 22px; border-radius: var(--r-lg); background: var(--glass-dark); color: #f1efea; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px -20px rgba(0,0,0,.5); animation: popIn .45s var(--ease); }
#room-info[data-state="empty"] { display: none; }
.ri-kind { font-size: .78rem; color: var(--accent); font-weight: 500; margin-bottom: .35rem; }
#room-info h3 { font-size: 1.45rem; margin-bottom: .5rem; }
#room-info p { color: #b0aca3; font-size: .9rem; }
.ri-wp { margin-top: .7rem; color: #f1efea !important; font-weight: 500; }
#room-photos { display: flex; gap: 6px; margin-top: .9rem; }
#room-photos button { border: 0; padding: 0; width: 70px; height: 50px; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
#room-photos img { width: 100%; height: 100%; object-fit: cover; }
.ri-actions { display: flex; align-items: center; gap: 8px; margin-top: 1.1rem; }
.icon-pill { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; margin-left: auto; transition: background .2s; }
.icon-pill:hover { background: rgba(255,255,255,.2); }
.icon-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* Dock */
.dock { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: var(--glass-dark); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px -20px rgba(0,0,0,.6); }
.dock-item { position: relative; }
.dock-btn { display: inline-flex; align-items: center; gap: .5em; height: 44px; padding: 0 1.05em; border: 0; border-radius: 999px; background: transparent; color: #ece9e3; font: 500 .88rem var(--font); cursor: pointer; white-space: nowrap; transition: background .2s; }
.dock-btn:hover { background: rgba(255,255,255,.08); }
.dock-btn[aria-expanded="true"], .dock-btn[aria-pressed="true"] { background: #f1efea; color: var(--ink); }
.dock-icon { width: 44px; padding: 0; justify-content: center; }
.dock-sep { width: 1px; height: 22px; background: rgba(255,255,255,.12); margin: 0 4px; }
.pop { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 260px; padding: 16px; border-radius: 22px; background: rgba(18,21,19,.9); color: #f1efea; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -20px rgba(0,0,0,.6); animation: popUp .35s var(--ease); }
.pop-title { font-size: .78rem; color: #a19d94; margin-bottom: .7rem; }
.pop-note { margin-top: .75rem; font-size: .78rem; color: #a19d94; }
.pop input[type="range"] { width: 100%; accent-color: var(--accent); }
#room-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 280px; }
#room-chips button { height: 40px; padding: 0 .9em; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #ece9e3; font: 500 .84rem var(--font); text-align: left; cursor: pointer; transition: background .2s; }
#room-chips button:hover { background: rgba(255,255,255,.12); }
#room-chips button.active { background: var(--accent); color: #fff; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.07); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .5em .95em; border-radius: 999px; font-size: .84rem; font-weight: 500; color: #b7b2a8; cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: #f1efea; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.coach { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); padding: .6em 1.05em; border-radius: 999px; background: rgba(18,21,19,.72); color: #e8e5df; font-size: .8rem; white-space: nowrap; pointer-events: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .5s, transform .5s var(--ease); }
.coach b { color: #fff; font-weight: 500; }
.coach.hide { opacity: 0; transform: translate(-50%, 8px); }
.plan-toast { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); padding: .6em 1.05em; border-radius: 999px; background: rgba(18,21,19,.85); color: #fff; font-size: .82rem; opacity: 0; pointer-events: none; transition: opacity .25s; }
.plan-toast.show { opacity: 1; }
#photo-card { position: absolute; right: 20px; top: 20px; width: 220px; padding: 6px; border: 0; border-radius: 20px; background: var(--glass-dark); color: #ddd; cursor: zoom-in; text-align: left; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: popIn .45s var(--ease); }
#photo-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 15px; }
#photo-card span { display: block; padding: .5rem .5rem .3rem; font-size: .76rem; }
.plan-fallback { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 24px; background: var(--bg); text-align: center; }
.plan-fallback img { max-height: 70%; border-radius: var(--r-md); }
@keyframes popUp { from { opacity: 0; transform: translate(-50%, 8px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Raeume (Karussell) ---------- */
.car-nav { display: flex; gap: 8px; flex: none; }
.round-btn { width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .35s var(--ease); }
.round-btn:hover { transform: scale(1.06); }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - 1240px) / 2)) 24px; scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2)); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.room-card { flex: none; width: clamp(290px, 30vw, 400px); scroll-snap-align: start; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rc-media { display: block; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.rc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.room-card:hover .rc-media img { transform: scale(1.04); }
.rc-body { padding: 22px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.rc-body p { color: var(--muted); font-size: .94rem; }
.rc-link { align-self: flex-start; margin-top: auto; padding-top: .8rem; display: inline-flex; align-items: center; gap: .45em; border: 0; background: none; font-weight: 500; font-size: .9rem; color: var(--ink); cursor: pointer; }
.rc-link .ic { color: var(--accent); transition: transform .35s var(--ease); }
.rc-link:hover .ic { transform: translateX(4px); }

/* ---------- Konditionen ---------- */
.bento-terms > .b-price { grid-column: span 5; display: flex; flex-direction: column; }
.bento-terms > .b-calc { grid-column: span 7; }
.bento-terms > .b-equip { grid-column: span 8; }
.bento-terms > .b-pdf { grid-column: span 4; }
.card .price { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: #fff !important; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: auto; padding-top: 32px; }
.mini dt { font-size: .8rem; color: #8e8a82; }
.mini dd { font-weight: 500; }
.calc-ctl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 0; font-size: .95rem; color: var(--muted); }
.calc-ctl small { color: var(--muted); opacity: .7; font-size: .8rem; }
.seg-light { background: var(--surface-2); }
.seg-light span { color: var(--muted); }
.seg-light input:checked + span { background: var(--ink); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; font-size: 1.05rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 2em; text-align: center; font-weight: 600; }
.calc-rows { margin-top: 8px; }
.calc-rows > div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.calc-rows dt { color: var(--muted); }
.calc-rows dd { font-weight: 500; }
.calc-rows .sum dt, .calc-rows .sum dd { color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.per { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); color: #8a3a16; font-size: .92rem; }
.per b#c-per { font-size: 1.35rem; font-weight: 600; color: var(--accent); white-space: nowrap; margin-left: 12px; }
.equip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.equip li { display: flex; flex-direction: column; gap: .7rem; padding: 16px; border-radius: 16px; background: var(--surface-2); font-size: .9rem; font-weight: 500; line-height: 1.3; }
.equip svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-pdf { display: flex; align-items: center; gap: 16px; border: 0; text-align: left; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; }
.b-pdf:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pdf-txt { display: flex; flex-direction: column; flex: 1; }
.pdf-txt b { font-weight: 500; font-size: 1.1rem; }
.pdf-txt span { color: var(--muted); font-size: .9rem; }
.b-pdf .go { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Lage ---------- */
.bento-loc { align-items: stretch; }
.bento-loc > .b-loctext { grid-column: span 7; display: flex; flex-direction: column; justify-content: center; padding-right: 32px; }
.bento-loc > .b-rings { grid-column: span 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; }
.b-loctext p { margin-top: 1.1rem; font-size: 1.1rem; max-width: 34rem; }
.dist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.dist li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.dist b { grid-row: span 2; font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; align-self: center; min-width: 1.3em; }
.dist span { font-weight: 500; font-size: .95rem; align-self: end; }
.dist em { font-style: normal; color: var(--muted); font-size: .84rem; }
.rings { width: 100%; max-width: 420px; height: auto; }
.rings .r { fill: none; stroke: rgba(255,255,255,.12); stroke-dasharray: 2 5; }
.rings .p { fill: var(--accent); }
.rings text { fill: #c9c5bc; font: 500 12px var(--font); }
.rings .core { fill: rgba(232,100,44,.2); animation: pulse 2.6s ease-in-out infinite; transform-origin: 200px 200px; }
.rings .core-dot { fill: var(--accent); }
.b-rings figcaption { margin-top: 10px; font-size: .78rem; color: #8e8a82; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); }
.contact h2 { color: #fff; }
.contact-head p { margin-top: 1.1rem; font-size: 1.05rem; max-width: 26rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label span { display: block; font-size: .8rem; color: #a19d94; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; font: 400 1rem var(--font); outline: none; resize: vertical; transition: box-shadow .2s, background .2s; }
.form input:focus, .form textarea:focus { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.form-foot { display: flex; align-items: center; gap: 1rem; margin-top: 4px; }
.sent-msg { display: none; color: #a19d94; font-size: .9rem; }
.form.sent .sent-msg { display: block; }

/* ---------- Footer, Mobil-Leiste, Lightbox ---------- */
.footer { padding: 56px 0 40px; font-size: .84rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a:hover { color: var(--ink); }
.mobile-bar { display: none; }
#lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(12,13,12,.92); backdrop-filter: blur(8px); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity .3s; }
#lightbox.on { opacity: 1; }
#lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--r-md); }
#lightbox figcaption { color: #b9b5ab; font-size: .88rem; }

/* =====================================================================
   Scroll-Animationen
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: translateY(40px) scale(.96); }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(10% 10% 10% 10% round var(--r-lg)); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="mask"] img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js [data-reveal="mask"].is-in img { transform: none; }
.split .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split .line > span { display: inline-block; }
.js h1.split[data-reveal] { opacity: 1; transform: none; }
.js h1.split .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js h1.split .line:nth-child(2) > span { transition-delay: .12s; }
.js h1.split.is-in .line > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { height: 54px; padding-left: 18px; }
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
  .hero { padding: 8px; }
  .hero-frame { height: calc(100svh - 16px); min-height: 600px; border-radius: 26px; }
  .hero-content { left: 20px; right: 20px; bottom: 112px; }
  .hero-card { display: none; }
  .hero-facts { left: 20px; right: 20px; bottom: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero-facts li { flex: none; }
  .bento > .card, .bento > .b-wide, .bento-terms > *, .bento-loc > * { grid-column: 1 / -1; grid-row: auto; }
  .card-img { min-height: 280px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .car-nav { display: none; }
  .room-card { width: 82vw; }
  .stage-wrap { padding: 0 8px; }
  .plan-stage { height: 80vh; border-radius: 24px; }
  #room-info { left: 10px; right: 10px; top: auto; bottom: 78px; width: auto; padding: 16px 18px; }
  #room-info h3 { font-size: 1.2rem; }
  #room-info #room-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dock { bottom: 12px; }
  .dock-btn { height: 42px; padding: 0 .8em; font-size: .82rem; }
  .dock-btn span { display: none; }
  .dock-btn[data-pop="cap"] span, .dock-btn[data-pop="light"] span { display: inline; }
  .pop { position: fixed; left: 50%; bottom: 74px; }
  #room-chips { min-width: 0; width: min(320px, 86vw); }
  #photo-card { width: 130px; right: 10px; top: 10px; }
  #photo-card img { height: 84px; }
  #photo-card span { display: none; }
  .coach { bottom: 70px; white-space: normal; text-align: center; width: max-content; max-width: 86%; }
  .equip { grid-template-columns: 1fr 1fr; }
  .dist { grid-template-columns: 1fr; }
  .b-loctext { padding-right: 0 !important; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .form { grid-template-columns: 1fr; }
  .room-label.small { display: none; }
  .mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); transition: transform .5s var(--ease), opacity .3s; }
  .mobile-bar .pill { height: 46px; }
  .mobile-bar .pill-glass-dark { background: var(--ink); }
  .mobile-bar.hide { transform: translateY(140%); opacity: 0; }
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal] img, .js h1.split .line > span { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rings .core { animation: none; }
}

/* ---------- Druck: Expose als PDF ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  body::after, .nav, .mobile-bar, #rundgang, .hero-actions, .hero-card, .car-nav, .rc-link, #btn-print, #kontakt form, .footer nav, #lightbox, .calc-ctl, .b-rings { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero { padding: 0; }
  .hero-frame { height: 95mm; min-height: 0; border-radius: 6mm; }
  .hero-img { transform: none !important; }
  .card, .room-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .card-dark { background: #fff; color: var(--ink); }
  .card-dark p, .price { color: var(--ink) !important; }
  .carousel { flex-wrap: wrap; overflow: visible; padding: 0; }
  .room-card { width: 31%; }
  .section { padding-top: 10mm; }
  .contact { background: #fff; color: var(--ink); border: 1px solid #ddd; }
  .contact h2 { color: var(--ink); }
  .print-only { display: block; padding: 8mm 0; break-before: page; }
  .print-only img { width: 100%; margin: 4mm 0; }
}

/* =====================================================================
   v3: Akzent-Serif, Hero mit Bild in der Headline und Buchungsleiste,
   Vorher/Nachher, Zeitskala, gleitende Schalter, rollende Zahlen,
   Raum-Akkordeon, schwebende Labels, Punktraster
   ===================================================================== */
h1 em, h2 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: .9; }

/* Hero */
.hero-content { bottom: clamp(150px, 19vh, 190px); max-width: 1100px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 9rem); letter-spacing: -.06em; line-height: .9; margin: 1.2rem 0 1.5rem; }
.h-pill { position: relative; display: inline-block; width: 1.75em; height: .74em; margin-left: .04em; vertical-align: .04em; border-radius: 999px; overflow: hidden; background: #2a2c29; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 20px 40px -18px rgba(0,0,0,.6); }
.h-pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 1s var(--ease), transform 3.2s var(--ease); }
.h-pill img.on { opacity: 1; transform: scale(1); }
.hero-sub { max-width: 31rem; }
.hero-bar { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 34px; border-radius: 999px; background: rgba(248,247,244,.9); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); color: var(--ink); }
.hero-bar dl { flex: 1; display: flex; }
.hero-bar dl > div { flex: 1; padding: 4px 26px; border-left: 1px solid rgba(20,21,19,.1); }
.hero-bar dl > div:first-child { padding-left: 0; border-left: 0; }
.hero-bar dt { font-size: .76rem; color: var(--muted); }
.hero-bar dd { font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.hero-bar .pill { height: 56px; padding: 0 1.6em; }

/* Vorher/Nachher */
.compare { user-select: none; -webkit-user-select: none; background: var(--night); }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255,255,255,.92); pointer-events: none; z-index: 2; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .35s var(--ease); }
.compare:hover .cmp-knob, .compare.drag .cmp-knob { transform: translate(-50%, -50%) scale(1.1); }
.cmp-knob svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-tag { position: absolute; top: 16px; z-index: 2; padding: .45em .95em; border-radius: 999px; background: rgba(17,20,18,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: .8rem; font-weight: 500; pointer-events: none; }
.cmp-l { left: 16px; } .cmp-r { right: 16px; }
.cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }

/* Zeitskala im Licht-Popover */
.scrub-time { color: #a19d94 !important; font-size: .9rem; margin-bottom: 8px; }
.scrub-time b { font-size: 2.1rem; font-weight: 500; letter-spacing: -.03em; color: #fff; margin-right: .1em; }
.scrub { position: relative; width: 290px; height: 36px; }
.scrub-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.scrub-ticks i { width: 1.5px; height: 11px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background .15s, height .25s var(--ease); }
.scrub-ticks i.h { height: 20px; }
.scrub-ticks i.on { background: rgba(255,255,255,.8); }
.scrub-ticks i.near { height: 26px; }
#time { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; }
#time::-webkit-slider-runnable-track { height: 100%; background: transparent; }
#time::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 36px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px rgba(232,100,44,.8); }
#time::-moz-range-track { background: transparent; }
#time::-moz-range-thumb { width: 3px; height: 36px; border: 0; border-radius: 3px; background: var(--accent); }
#time:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.scrub-scale { display: flex; justify-content: space-between; width: 290px; margin-top: 6px; font-size: .72rem; color: #8e8a82; }

/* Gleitende Segment-Schalter */
.seg { position: relative; }
.seg label { position: relative; z-index: 1; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #f1efea; transition: left .5s var(--ease), width .5s var(--ease); z-index: 0; }
.seg input:checked + span { background: transparent; color: var(--ink); }
.seg-light .seg-ind { background: var(--ink); }
.seg-light input:checked + span { background: transparent; color: #fff; }

/* Rollende Zahlen */
.roll { display: inline-flex; }
.roll .d { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; }
.roll .col { display: block; transition: transform .9s var(--ease); }
.roll .col span { display: block; height: 1.2em; }

/* Raeume als Akkordeon (Desktop) */
.rc-tab { display: none; }
@media (min-width: 961px) {
  #raeume .car-nav { display: none; }
  .acc { overflow: visible; scroll-snap-type: none; gap: 12px; height: clamp(480px, 42vw, 600px); }
  .acc .room-card { position: relative; flex: 1 1 0; width: auto; min-width: 0; transition: flex-grow .85s var(--ease), box-shadow .4s; cursor: pointer; }
  .acc .room-card.on { flex-grow: 4.2; cursor: default; }
  .acc .rc-media { position: absolute; inset: 0; }
  .acc .room-card:not(.on) .rc-media { pointer-events: none; }
  .acc .rc-media img { height: 100%; aspect-ratio: auto; }
  .acc .rc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55)); opacity: 1; transition: opacity .6s; }
  .acc .room-card.on .rc-media::after { opacity: .35; }
  .acc .rc-body { position: absolute; left: 12px; bottom: 12px; width: min(400px, calc(100% - 24px)); padding: 22px 24px; border-radius: 18px; background: rgba(250,249,246,.93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .6s var(--ease); pointer-events: none; }
  .acc .room-card.on .rc-body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }
  .acc .rc-tab { display: block; position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; color: #fff; font-size: 1.05rem; font-weight: 500; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
  .acc .room-card.on .rc-tab { opacity: 0; }
}

/* Schwebende Labels im Formular */
.form .fl { position: relative; display: block; }
.form .fl span { position: absolute; left: 16px; top: 17px; margin: 0; font-size: 1rem; color: #8e8a82; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .2s; }
.form .fl input, .form .fl textarea { padding: 24px 16px 8px; }
.form .fl input:focus + span, .form .fl input:not(:placeholder-shown) + span,
.form .fl textarea:focus + span, .form .fl textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.74); color: #a19d94; }
.form .fl input:focus + span, .form .fl textarea:focus + span { color: var(--accent); }

/* Punktraster als dezenter Hintergrund */
.section { position: relative; }
.section:not(#rundgang)::before { content: ""; position: absolute; top: 0; right: 0; width: min(60vw, 760px); height: 460px; background-image: radial-gradient(rgba(20,21,19,.2) 1px, transparent 1.5px); background-size: 15px 15px; -webkit-mask-image: radial-gradient(closest-side at 65% 45%, #000 15%, transparent 100%); mask-image: radial-gradient(closest-side at 65% 45%, #000 15%, transparent 100%); pointer-events: none; z-index: -1; }

@media (max-width: 960px) {
  .hero-content { bottom: 250px; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4.6rem); }
  .hero-bar { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 22px; }
  .hero-bar dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-bar dl > div, .hero-bar dl > div:first-child { padding: 0; border: 0; }
  .hero-bar .pill { height: 50px; }
  .scrub, .scrub-scale { width: min(290px, 72vw); }
  .section:not(#rundgang)::before { width: 90vw; height: 320px; }
}
@media print { .hero-bar .pill, .cmp-range, .cmp-line, .cmp-tag, .section::before { display: none !important; } .cmp-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .h-pill img, .roll .col, .acc .room-card, .seg-ind { transition: none !important; } }
.h-pill { height: .66em; vertical-align: 0; }
.hero-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,11,.5) 0%, rgba(10,12,11,.15) 55%, rgba(10,12,11,0) 75%); pointer-events: none; }
.bento > .compare { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 8; min-height: 0; }
@media (max-width: 960px) { .bento > .compare { aspect-ratio: 4 / 3.4; } .bento > .card:not(.compare) { grid-column: span 6; } }
@media (max-width: 560px) { .bento > .card:not(.compare) { grid-column: 1 / -1; } }
.roll { align-items: flex-start; line-height: 1.2em; vertical-align: bottom; }
.roll .s { display: inline-block; height: 1.2em; line-height: 1.2em; white-space: pre; }

.h-pill-m { display: none; }
@media (max-width: 560px) {
  .h-pill { display: none; }
  .h-pill.h-pill-m { display: inline-block; width: 1.5em; }
}

/* =====================================================================
   v4 nach Referenzen: Kapitelkoepfe mit Index und Haarlinie,
   flache Karten, CTA mit rundem Pfeil, Objekt-Steckbrief,
   Zahlen in Kreisen, grosse Wortmarke im Footer
   ===================================================================== */
/* Flach statt Schatten: Haarlinie wie bei redaktionellen Seiten */
.card:not(.card-dark):not(.card-img):not(.card-accent):not(.card-plain) { box-shadow: inset 0 0 0 1px rgba(20,21,19,.07); }
.room-card { box-shadow: none; }

/* Kapitelkopf */
.head-x { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: 18px; border-top: 1px solid rgba(20,21,19,.14); }
.head-x .idx { grid-column: 1 / -1; margin-bottom: clamp(28px, 4vw, 56px); }
.head-x h2 { grid-column: 1; max-width: 13em; }
.head-x > p:not(.idx) { grid-column: 2; margin: 0 0 .35rem; font-size: 1rem; }
.idx { display: flex; align-items: center; gap: .7em; font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.idx span { display: inline-grid; place-items: center; min-width: 2.4em; height: 1.9em; padding: 0 .6em; border-radius: 999px; background: var(--ink); color: #fff; font-size: .76rem; }
.idx-dark { color: #f1efea; margin-bottom: 1.6rem; }
.idx-dark span { background: var(--accent); }
.head-row { align-items: flex-end; }
.head-row > .head-x { flex: 1; }

/* CTA: Pille plus runder Pfeil, Pfeil dreht beim Hover nach oben rechts */
.cta { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-decoration: none; }
.cta-t { display: inline-flex; align-items: center; height: 56px; padding: 0 1.7em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; font-size: .98rem; white-space: nowrap; transition: background .3s; }
.cta-c { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .55s var(--ease), background .3s; }
.cta-c .ic { width: 20px; height: 20px; }
.cta:hover .cta-c { transform: rotate(-45deg); }
.cta:hover .cta-t, .cta:hover .cta-c { background: #d4551f; }
.hero-bar .cta-t, .hero-bar .cta-c { height: 54px; }
.hero-bar .cta-c { width: 54px; }

/* Objekt-Steckbrief */
.bento-terms > .b-sheet { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.bento-terms > .b-calc { grid-column: span 5; }
.sheet-name { margin: 0 !important; font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 400; text-transform: uppercase; letter-spacing: -.055em; line-height: .88; }
.sheet-tags { margin-top: .8rem; font-size: .82rem !important; color: var(--muted); }
.sheet-tags i { font-style: normal; opacity: .45; margin: 0 .3em; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 96px; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); text-align: left; }
.tile span { font-size: .78rem; color: var(--muted); }
.tile b { font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.tile.t-accent { grid-column: span 2; background: var(--accent); }
.tile.t-accent span { color: rgba(255,255,255,.8); }
.tile.t-accent b { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.tile.t-plan { grid-column: span 3; position: relative; flex-direction: row; align-items: center; min-height: 0; padding: 10px 18px 10px 10px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(20,21,19,.1); cursor: zoom-in; font: inherit; transition: box-shadow .3s; }
.tile.t-plan:hover { box-shadow: inset 0 0 0 1px rgba(20,21,19,.3); }
.tile.t-plan img { width: 120px; height: 72px; object-fit: cover; border-radius: 12px; background: #fff; }
.tile.t-plan span { display: inline-flex; align-items: center; gap: .5em; color: var(--ink); font-size: .92rem; font-weight: 500; }
.tile.t-plan .ic { color: var(--accent); }

/* Lage: grosse Zahlen in Kreisen */
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { aspect-ratio: 1; margin-right: -6%; border-radius: 50%; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; box-shadow: 0 0 0 6px var(--bg); }
.stats li:last-child { margin-right: 0; }
.stats b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .85; letter-spacing: -.03em; }
.stats span { margin-top: .5rem; font-weight: 500; font-size: .95rem; }
.stats em { margin-top: .25rem; font-style: normal; color: var(--muted); font-size: .82rem; max-width: 14em; }

/* Footer mit grosser Wortmarke */
.footer { padding: 40px 0 0; overflow: hidden; }
.foot-top { display: grid !important; grid-template-columns: 1fr 1fr auto; align-items: center; padding-top: 18px; border-top: 1px solid rgba(20,21,19,.14); }
.foot-mark { margin-top: clamp(32px, 6vw, 80px); font-size: 12.4vw; font-weight: 500; letter-spacing: -.065em; line-height: .76; white-space: nowrap; text-align: center; color: var(--ink); transform: translateY(.08em); }

@media (max-width: 960px) {
  .head-x { grid-template-columns: 1fr; }
  .head-x > p:not(.idx) { grid-column: 1; margin-top: 1rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.t-accent, .tile.t-plan { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stats li { margin: 0 -3% -6% 0; }
  .foot-top { grid-template-columns: 1fr; gap: 10px; }
  .foot-mark { font-size: 13.5vw; }
  .cta-t { height: 50px; } .cta-c { width: 50px; height: 50px; }
  .hero-bar .cta { width: 100%; } .hero-bar .cta-t { flex: 1; justify-content: center; }
}
@media print { .foot-mark, .idx span { display: none; } .stats li { box-shadow: none; } }
.tile.t-plan { grid-column: span 2; }
@media (max-width: 960px) { .tile.t-plan { grid-column: 1 / -1; } }
h2 { line-height: 1.08; }
h2 em { line-height: 1; }
.footer nav { flex-wrap: wrap; row-gap: .6rem; }
.footer nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .sheet-name { font-size: 9.2vw; }
  .b-sheet { padding: 22px; }
  .sheet-tags { font-size: .78rem !important; }
}
.tile b { white-space: nowrap; }
@media (max-width: 960px) {
  .tile { min-height: 84px; }
  .tile b { font-size: 1.02rem; }
  .tiles > .tile:nth-child(6) { grid-column: 1 / -1; }
}

/* =====================================================================
   v5: Farbpalette Navy / Schiefer / Stahlblau / Mint, keine Serifen-
   Akzente, keine Nummern, Hero mit Grundriss als Zeichnung
   ===================================================================== */
:root {
  --navy: #151b2a; --slate: #354961; --steel: #6790a1; --mint: #d4e9e0;
  --bg: #eef3f1; --surface: #ffffff; --surface-2: #e2ebe7;
  --ink: #151b2a; --muted: #5b6876; --night: #151b2a;
  --accent: #354961; --accent-soft: #d4e9e0; --on-accent: #fff;
  --line: rgba(21, 27, 42, .1);
  --mono: var(--font);
}
/* dunkle Flaechen: Mint als Akzent */
.plan-stage, .card-dark, .hx, .mobile-bar { --accent: var(--mint); --on-accent: var(--navy); }

h1 em, h2 em { font: inherit; }
.idx, .chip-glass::before, .nav-mark .dot { display: none !important; }
.head-x { padding-top: 22px; }
.head-x h2 { margin-top: 0; }

/* Akzentflaechen mit passender Schriftfarbe */
.pill-accent { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.card-accent { background: var(--slate); color: #fff; }
.room-label.active, .room-label.entry, .plan-stage[data-mood="day"] .room-label.active, #room-chips button.active { background: var(--mint); color: var(--navy); }
.ri-kind { color: var(--steel); }
.per { background: var(--mint); color: var(--navy); }
.per b#c-per { color: var(--navy); }
.tile.t-accent { background: var(--slate); }
.tile.t-plan .ic, .rc-link .ic, .b-pdf .go { color: var(--steel); }
.textlink { text-decoration-color: var(--steel); }
#time::-webkit-slider-thumb { background: var(--mint); box-shadow: 0 0 14px rgba(212,233,224,.7); }
.form input:focus, .form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--mint); }
.form .fl input:focus + span, .form .fl textarea:focus + span { color: var(--mint); }
.seg-light .seg-ind { background: var(--navy); }
.cta-t, .cta-c { background: var(--accent); color: var(--on-accent); }
.cta:hover .cta-t, .cta:hover .cta-c { background: #fff; }
.card:not(.card-dark):not(.card-img):not(.card-accent):not(.card-plain) { box-shadow: inset 0 0 0 1px rgba(21,27,42,.08); }
.head-x, .foot-top { border-top-color: rgba(21,27,42,.16); }
.section:not(#rundgang)::before { background-image: radial-gradient(rgba(53,73,97,.22) 1px, transparent 1.5px); }
.stats li { background: var(--surface-2); }
.stats b { font-family: var(--font); font-weight: 400; letter-spacing: -.06em; font-size: clamp(3.6rem, 7vw, 6.6rem); }
.compare { background: var(--navy); }

/* ---------- Hero: Plan-Zeichnung ---------- */
.hx { background: var(--navy); color: #e9f3ef; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); padding: clamp(110px, 14vh, 150px) clamp(24px, 4vw, 56px) 0; }
.hx::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(212,233,224,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,233,224,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 30%, transparent 100%); }
.hx::after { display: none; }
.hx-copy { align-self: center; position: relative; z-index: 1; }
.hx-kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.hx h1 { font-size: clamp(3.2rem, 7.4vw, 7.6rem); letter-spacing: -.06em; line-height: .9; margin: 1.4rem 0 1.6rem; color: #eef6f2; }
.hx .hero-sub { color: rgba(233,243,239,.7); max-width: 30rem; font-size: 1.05rem; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.hx-link { color: #e9f3ef; font-weight: 500; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 5px; }
.hx-link:hover { text-decoration-color: var(--mint); }
.hx-plan { align-self: center; position: relative; margin: 0; }
.hx-title { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(212,233,224,.14); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(212,233,224,.5); }
.hx-title span:first-child { color: var(--mint); }
.hx-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr) ; margin-top: clamp(24px, 4vh, 48px); border-top: 1px solid rgba(212,233,224,.14); }
.hx-facts > div { padding: 22px 0 28px; }
.hx-facts > div + div { padding-left: 28px; border-left: 1px solid rgba(212,233,224,.14); }
.hx-facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.hx-facts dd { margin-top: .45rem; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.02em; color: #eef6f2; }

.hp-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hp-walls line { stroke: var(--mint); stroke-width: 3; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s); }
.hp-walls line.ext { stroke-width: 6; }
.hp-walls line.win { stroke: var(--steel); stroke-width: 1.4; }
.hp-svg.drawn .hp-walls line { stroke-dashoffset: 0; }
.hp-room rect { fill: rgba(103,144,161,0); transition: fill .6s var(--ease); }
.hp-svg.drawn .hp-room rect { fill: rgba(103,144,161,.06); transition-delay: 1.6s; }
.hp-room.pickable { cursor: pointer; outline: none; }
.hp-svg .hp-room.on rect, .hp-svg .hp-room.pickable:focus-visible rect { fill: rgba(212,233,224,.22); transition-delay: 0s; }
.hp-room text { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; fill: rgba(212,233,224,.55); text-anchor: middle; opacity: 0; transition: opacity .6s 1.8s, fill .4s; pointer-events: none; }
.hp-room text.sm { font-size: 10px; fill: rgba(212,233,224,.35); }
.hp-svg.drawn .hp-room text { opacity: 1; }
.hp-room.on text { fill: #fff; transition-delay: 0s; }
.hp-entry path { fill: none; stroke: var(--mint); stroke-width: 2; }
.hp-entry text, .hp-dim text, .hp-north text { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; fill: var(--steel); text-anchor: middle; }
.hp-dim line { stroke: var(--steel); stroke-width: 1; }
.hp-dim line.tick { stroke-width: 2; }
.hp-north circle { fill: none; stroke: var(--steel); stroke-width: 1; }
.hp-north path { fill: var(--steel); }
.hp-north text { text-anchor: start; }
.hp-entry, .hp-dim, .hp-north { opacity: 0; transition: opacity .8s 1.4s; }
.hp-svg.drawn .hp-entry, .hp-svg.drawn .hp-dim, .hp-svg.drawn .hp-north { opacity: 1; }

@media (max-width: 960px) {
  .hx { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 96px 20px 0; height: auto; min-height: 100svh; }
  .hx-plan { order: -1; margin-bottom: 8px; }
  .hx-title span:nth-child(3) { display: none; }
  .hx h1 { font-size: clamp(3rem, 14vw, 4.6rem); margin-top: 1rem; }
  .hx-facts { grid-template-columns: 1fr 1fr; }
  .hx-facts > div { padding: 16px 0 18px; }
  .hx-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hx-facts > div:nth-child(n+3) { border-top: 1px solid rgba(212,233,224,.14); }
  .hp-room text { font-size: 17px; } .hp-room text.sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hp-walls line { stroke-dashoffset: 0 !important; transition: none; } }
@media print { .hx { background: #fff; color: var(--ink); } .hp-walls line { stroke: var(--ink); stroke-dashoffset: 0; } }
.hp-svg.ready .hp-room rect, .hp-svg.ready .hp-room text { transition-delay: 0s; }
@media (max-width: 960px) { .hx-title span:nth-child(2) { display: none; } .hx-kicker { margin-top: 12px; } }

/* ---------- Hero rechts: Gebäude-Loop mit Umschalter zum Grundriss ---------- */
.hx-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: #0e1320; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(212,233,224,.08); }
.hx-video, .hx-planwrap { position: absolute; inset: 0; transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.hx-video video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.hx-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,27,42,0) 55%, rgba(21,27,42,.55) 100%); pointer-events: none; }
.hx-planwrap { display: grid; place-items: center; padding: 6% 7% 12%; background: var(--navy); background-image: linear-gradient(rgba(212,233,224,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,233,224,.05) 1px, transparent 1px); background-size: 32px 32px; }
.hx-planwrap #hero-plan { width: 100%; }
.hx-plan[data-view="haus"] .hx-planwrap { opacity: 0; transform: scale(1.03); pointer-events: none; }
.hx-plan[data-view="plan"] .hx-video { opacity: 0; transform: scale(1.04); }
.hx-switch { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(21,27,42,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(212,233,224,.16); }
.hx-switch button { border: 0; background: none; color: rgba(233,243,239,.75); font: 500 .82rem var(--font); padding: .55em 1.1em; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.hx-switch button[aria-selected="true"] { background: var(--mint); color: var(--navy); }
.hx-plan[data-view="haus"] .cap-plan, .hx-plan[data-view="plan"] .cap-haus { display: none; }
@media (max-width: 960px) { .hx-stage { aspect-ratio: 4 / 3.2; border-radius: 20px; } .hx-planwrap { padding: 8% 5% 18%; } }
@media (prefers-reduced-motion: reduce) { .hx-video, .hx-planwrap { transition: none; } }
.hx h1 { font-size: clamp(2.8rem, 4.9vw, 6.2rem); }
.hx h1 .line > span { white-space: nowrap; }
@media (max-width: 960px) { .hx h1 { font-size: clamp(2.4rem, 11vw, 3.8rem); } }
/* Labels: Hauptschrift in Versalien statt Monospace */
.hx-kicker, .hx-title, .hx-facts dt { font-weight: 500; letter-spacing: .12em; }
.hx-kicker { font-size: .74rem; }
.hx-title, .hx-facts dt { font-size: .68rem; }
.hp-room text, .hp-entry text, .hp-dim text, .hp-north text { font-weight: 500; letter-spacing: .1em; }
.hp-room text.sm { letter-spacing: .02em; font-size: 9px; }

/* ---------- 3D-Rundgang mobil: kompakte Infokarte oben, Hinweis nie über Bedienelementen ---------- */
@media (max-width: 960px) {
  #room-info { top: 10px; bottom: auto; left: 10px; right: 10px; width: auto; padding: 12px 12px 12px 16px; border-radius: 18px; display: grid; }
  #room-info .ri-room { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
  #room-info .ri-kind { grid-column: 1; margin: 0; font-size: .7rem; }
  #room-info h3 { grid-column: 1; font-size: 1.05rem; margin: 0; }
  #room-info #room-text, #room-info #room-photos { display: none !important; }
  #room-info .ri-wp { grid-column: 1; margin: 2px 0 0; font-size: .78rem; }
  #room-info .ri-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; gap: 6px; }
  #room-info .ri-actions .pill-sm { height: 38px; padding: 0 1em; font-size: .8rem; }
  #room-info .icon-pill { width: 38px; height: 38px; margin-left: 0; }
  /* im Raum: Platz für die Fotokarte rechts lassen */
  .plan-stage[data-mode="inside"] #room-info { right: 150px; }
  .plan-stage[data-mode="inside"] #room-info .ri-wp, .plan-stage[data-mode="inside"] #room-info .ri-kind { display: none; }
  #photo-card { top: 10px; }
  /* Hinweis ausblenden, sobald eine Karte offen ist, und nie Klicks abfangen */
  .coach { pointer-events: none; }
  .plan-stage:has(#room-info[data-state="room"]) .coach { display: none; }
}
@media (max-width: 960px) {
  .plan-stage[data-mode="inside"] #room-info .ri-room { grid-template-columns: 1fr; row-gap: 8px; }
  .plan-stage[data-mode="inside"] #room-info .ri-actions { grid-column: 1; grid-row: auto; }
  .plan-stage[data-mode="inside"] #room-info #btn-share { display: none; }
  .plan-stage[data-mode="inside"] #room-info h3 { font-size: .98rem; }
}

/* ---------- Kein seitliches Verschieben der Seite (Karussells scrollen weiter in sich) ---------- */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { max-width: 100%; }
@media (max-width: 960px) {
  .stats li:nth-child(2n) { margin-right: 0; }
}
@media (max-width: 960px) {
  /* Kreise überlappen per Verschiebung statt negativem Rand: bleiben innerhalb der Seite */
  .stats li, .stats li:nth-child(2n) { margin: 0 0 -6% 0; }
  .stats li:nth-child(odd) { transform: translateX(4%); }
  .stats li:nth-child(even) { transform: translateX(-4%); }
  .js .stats li[data-reveal]:not(.is-in):nth-child(odd) { transform: translate(4%, 32px); }
  .js .stats li[data-reveal]:not(.is-in):nth-child(even) { transform: translate(-4%, 32px); }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { min-width: 0; padding: 14%; }
  .stats b { font-size: 3.2rem; }
  .stats span { font-size: .8rem; margin-top: .3rem; }
  .stats em { font-size: .72rem; line-height: 1.3; }
}

/* ---------- Logo vermarktet ---------- */
.nav-mark { gap: 14px; }
.nav-logo { height: 26px; width: auto; display: block; }
.nav-obj { padding-left: 14px; border-left: 1px solid rgba(21,27,42,.18); font-weight: 500; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.foot-brand img { height: 30px; width: auto; display: block; }
@media (max-width: 960px) {
  .nav-logo { height: 22px; }
  .nav-obj { display: none; }
  .foot-brand img { height: 26px; }
}
