/* =========================================================
   Reutter Fliesen – Design-Tokens
   Idee: Die Fuge ist das Gestaltungsmittel. Raster, schmale
   Linien, rechte Winkel – wie eine sauber verlegte Fläche.
   ========================================================= */
:root {
  --kalk: #F4F5F3;       /* Grundfläche, kühles Kalkweiß */
  --fuge: #D6D9DB;       /* Fugengrau: Linien, Raster */
  --schiefer: #1E2A33;   /* Text, dunkle Flächen */
  --blau: #1D4F91;       /* Reutter-Blau aus dem Logo */
  --blau-dk: #153B6D;
  --stein: #B9A68A;      /* Naturstein, Akzent */
  --weiss: #FFFFFF;
  --muted: #5B6770;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118;           /* Breitenachse für Headlines */

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 2px;              /* Fliesenkante: fast eckig */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--schiefer); background: var(--kalk);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: var(--blau); }
h1, h2, h3 { margin: 0; line-height: 1.08; font-variation-settings: "wdth" var(--wide); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--weiss); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--schiefer); --fg: var(--weiss);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1.5px solid var(--bg); border-radius: var(--r);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { /* "Fuge", die beim Hover durchläuft */
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--blau); }
.btn--primary:hover { --bg: var(--blau-dk); }
.btn--ghost { --bg: transparent; --fg: var(--schiefer); border-color: var(--schiefer); }
.btn--ghost:hover { --bg: var(--schiefer); --fg: var(--weiss); }
.btn--light { --bg: var(--weiss); --fg: var(--schiefer); }
.btn--big { padding: 17px 28px; font-size: 17px; }
.btn--small { padding: 9px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(244, 245, 243, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--fuge); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--schiefer); text-decoration: none; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--schiefer); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: calc(120px + env(safe-area-inset-top, 0px)) 0 80px; position: relative; display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero__kicker { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.hero__title { font-size: clamp(46px, 7.4vw, 104px); font-weight: 780; letter-spacing: -.025em; line-height: .96; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; color: var(--blau); }
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { font-size: 19px; max-width: 34em; color: #34424c; opacity: 0; animation: fade .8s .5s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; opacity: 0; animation: fade .8s .65s var(--ease) forwards; }
.hero__trust { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--fuge); display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 15px; color: var(--muted); opacity: 0; animation: fade .8s .8s var(--ease) forwards; }
.hero__trust strong { color: var(--schiefer); font-weight: 700; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Das Fliesenraster: jede Kachel zeigt einen Ausschnitt des Fotos */
.hero__tiles {
  --cols: 5; --rows: 6; --gap: 4px;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr);
  gap: var(--gap); aspect-ratio: 5 / 6; background: var(--fuge); padding: var(--gap);
  position: relative; perspective: 900px;
}
.tile {
  background-size: calc(var(--cols) * 100% + (var(--cols) - 1) * var(--gap) * 1) calc(var(--rows) * 100%);
  background-repeat: no-repeat; background-color: #cfd3d6;
  opacity: 0; transform: translateY(-30px) rotateX(35deg) scale(.9);
  transition: transform .5s var(--ease), filter .4s;
  will-change: transform, opacity;
}
.tile.is-laid { animation: lay .7s var(--ease) forwards; }
@keyframes lay {
  0%   { opacity: 0; transform: translateY(-30px) rotateX(35deg) scale(.9); }
  70%  { opacity: 1; transform: translateY(2px) rotateX(0) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
.hero__tiles.is-done .tile { opacity: 1; animation: none; transform: none; }
.hero__tiles.is-done .tile:hover { transform: translateY(-6px) scale(1.03); filter: brightness(1.08); z-index: 2; box-shadow: 0 14px 24px rgba(30, 42, 51, .25); }
.hero__badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--weiss); padding: 14px 18px; border-left: 4px solid var(--blau);
  font-size: 14px; line-height: 1.35; box-shadow: 0 10px 30px rgba(30, 42, 51, .15);
  opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__badge strong { display: block; font-size: 16px; }
.hero__tiles.is-done .hero__badge { opacity: 1; transform: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--muted); transform: translateX(-50%); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head p { color: var(--muted); font-size: 19px; margin-top: 16px; }

/* Scroll-Reveal: nur ein dezenter Einschub */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Räume ---------- */
.rooms__list { display: grid; gap: clamp(48px, 7vw, 96px); }
.room { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.room--flip .room__img { order: 2; }
.room__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fuge); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.room.is-in .room__img img { transform: scale(1); }
.room__img::after { /* Fliese "fährt" beiseite und gibt das Foto frei */
  content: ""; position: absolute; inset: 0; background: var(--kalk);
  transform-origin: right; transition: transform 1s var(--ease) .1s;
}
.room.is-in .room__img::after { transform: scaleX(0); }
.room--flip .room__img::after { transform-origin: left; }
.room:hover .room__img img { transform: scale(1.04); }
.room__body h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.room__body p { color: #3e4b55; max-width: 30em; margin-bottom: 24px; }

/* ---------- CTA-Streifen ---------- */
.cta-strip { background: var(--blau); color: var(--weiss); padding: 44px 0; position: relative; overflow: hidden; }
.cta-strip::before { /* Fugenraster im Hintergrund */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(var(--weiss) 1px, transparent 1px), linear-gradient(90deg, var(--weiss) 1px, transparent 1px);
  background-size: 60px 60px; animation: gridpan 30s linear infinite;
}
@keyframes gridpan { to { background-position: 60px 60px; } }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.cta-strip p { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; font-variation-settings: "wdth" 110; max-width: 28em; }

/* ---------- Ablauf ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--fuge); border: 4px solid var(--fuge); }
.steps__list li { background: var(--weiss); padding: 32px 26px 30px; transition-delay: calc(var(--i, 0) * 90ms); }
.steps__n { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--schiefer); color: var(--weiss); font-weight: 700; margin-bottom: 22px; }
.steps__list h3 { margin-bottom: 8px; }
.steps__list p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Rechner ---------- */
.calc {
  background-color: var(--weiss);
  background-image: linear-gradient(var(--kalk) 1px, transparent 1px), linear-gradient(90deg, var(--kalk) 1px, transparent 1px);
  background-size: 80px 80px;
  border-top: 1px solid var(--fuge); border-bottom: 1px solid var(--fuge);
}
.calc__layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.calc__form { background: var(--weiss); border: 1px solid var(--fuge); padding: clamp(22px, 3.5vw, 44px); min-height: 520px; position: relative; }
.calc__step { border: 0; margin: 0; padding: 0; display: none; }
.calc__step.is-active { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.calc__step legend { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; font-variation-settings: "wdth" 112; padding: 0; margin-bottom: 26px; line-height: 1.15; }
.calc__stepno { display: block; font-size: 14px; font-weight: 500; color: var(--muted); font-variation-settings: "wdth" 100; margin-bottom: 6px; }
.calc__label { font-weight: 650; margin: 26px 0 12px; }
.calc__hint { color: #b3261e; font-weight: 500; margin-top: 16px; }
.calc__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--fuge); }

/* Raum-Auswahl als Fliesen */
.roomgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--fuge); border: 4px solid var(--fuge); }
.roomopt { position: relative; }
.roomopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.roomopt label { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 118px; padding: 16px; background: var(--weiss); cursor: pointer; transition: background .25s, color .25s; }
.roomopt svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .35s var(--ease); }
.roomopt span { font-weight: 600; font-size: 15px; line-height: 1.25; }
.roomopt label:hover svg { transform: translateY(-3px) rotate(-4deg); }
.roomopt input:checked + label { background: var(--blau); color: var(--weiss); }
.roomopt input:focus-visible + label { outline: 3px solid var(--blau); outline-offset: -3px; }
.roomopt input:checked + label::after { content: "✓"; position: absolute; top: 12px; right: 14px; font-weight: 700; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.areas { display: grid; gap: 10px; margin-top: 22px; }
.area { border: 1px solid var(--fuge); padding: 16px 18px; background: var(--kalk); animation: stepIn .4s var(--ease); }
.area__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.area__head strong { font-size: 17px; }
.area__sum { font-weight: 700; color: var(--blau); white-space: nowrap; }
.area__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.area__row label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.area__helper { font-size: 13px; background: none; border: 0; color: var(--blau); padding: 0; margin-top: 10px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.area__dims { display: none; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.area__dims.is-open { display: grid; }
.area__dims label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

input[type="number"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--schiefer); background: var(--weiss);
  border: 1.5px solid var(--fuge); border-radius: var(--r); padding: 11px 12px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(29, 79, 145, .15); }
input.is-invalid { border-color: #b3261e; }

.chips, .formats, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .formats label, .checks label { position: relative; cursor: pointer; }
.chips input, .formats input, .checks input { position: absolute; opacity: 0; }
.chips span, .checks span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--fuge); background: var(--weiss); font-size: 15px; transition: all .2s; }
.checks { display: grid; grid-template-columns: 1fr 1fr; }
.checks span { width: 100%; }
.checks span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--muted); flex: none; transition: all .2s; }
.checks input:checked + span::before { background: var(--blau); border-color: var(--blau); box-shadow: inset 0 0 0 3px var(--weiss); }
.chips input:checked + span, .checks input:checked + span, .formats input:checked + span { border-color: var(--blau); background: #eaf0f8; color: var(--blau-dk); font-weight: 600; }
.chips input:focus-visible + span, .checks input:focus-visible + span, .formats input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 2px; }
.formats span { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 132px; padding: 16px 10px; border: 1.5px solid var(--fuge); background: var(--weiss); font-size: 14px; text-align: center; transition: all .2s; }
.fmt { display: block; background: var(--stein); }
.fmt--s { width: 30px; height: 30px; background-image: linear-gradient(var(--weiss) 2px, transparent 2px), linear-gradient(90deg, var(--weiss) 2px, transparent 2px); background-size: 10px 10px; }
.fmt--m { width: 36px; height: 36px; background-image: linear-gradient(90deg, transparent 17px, var(--weiss) 17px, var(--weiss) 19px, transparent 19px), linear-gradient(transparent 17px, var(--weiss) 17px, var(--weiss) 19px, transparent 19px); }
.fmt--l { width: 64px; height: 32px; }
.fmt--q { width: 32px; height: 32px; background: var(--fuge); color: var(--muted); display: grid; place-items: center; font-style: normal; font-weight: 700; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blau); flex: none; }

.calc__done { text-align: left; padding: 40px 0; animation: stepIn .6s var(--ease); }
.calc__done h3 { font-size: 34px; margin-bottom: 14px; }
.done__tiles { display: grid; grid-template-columns: repeat(2, 36px); gap: 4px; margin-bottom: 28px; }
.done__tiles i { height: 36px; background: var(--blau); animation: lay .6s var(--ease) both; }
.done__tiles i:nth-child(2) { animation-delay: .1s; background: var(--stein); }
.done__tiles i:nth-child(3) { animation-delay: .2s; background: var(--stein); }
.done__tiles i:nth-child(4) { animation-delay: .3s; background: var(--schiefer); }

/* Live-Zusammenfassung */
.summary { position: sticky; top: 100px; background: var(--schiefer); color: var(--weiss); padding: 28px; }
.summary__label { font-size: 14px; opacity: .7; margin: 0; }
.summary__total { font-size: 64px; font-weight: 780; font-variation-settings: "wdth" 120; line-height: 1; margin: 6px 0 20px; }
.summary__grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 2px; margin-bottom: 8px; min-height: 12px; }
.summary__grid i { aspect-ratio: 1; background: var(--stein); animation: pop .3s var(--ease) both; }
.summary__gridnote { font-size: 12px; opacity: .6; margin-bottom: 20px; }
.summary__rooms { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; display: grid; gap: 8px; }
.summary__rooms li { display: flex; justify-content: space-between; gap: 10px; }
.summary__rooms .muted { color: rgba(255,255,255,.55); }
.summary__progress { height: 4px; background: rgba(255,255,255,.12); margin-top: 24px; }
.summary__progress span { display: block; height: 100%; width: 25%; background: var(--stein); transition: width .5s var(--ease); }

/* ---------- Galerie ----------
   Ruhiges Fliesenraster: 1 großes + 4 kleine Felder, gleiche Fugen.
   Weitere Bilder erst auf Wunsch (Button). */
.gallery__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.gallery__head > div:first-child { max-width: 620px; }
.gallery__head p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 15px; font-weight: 500; padding: 9px 16px; border: 1.5px solid var(--fuge); background: transparent; color: var(--schiefer); cursor: pointer; border-radius: var(--r); white-space: nowrap; transition: all .2s; }
.filter:hover { border-color: var(--schiefer); }
.filter.is-active { background: var(--schiefer); color: var(--weiss); border-color: var(--schiefer); }

.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense;
  gap: 4px; background: var(--fuge); padding: 4px;
}
.gallery__grid[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 38vw, 480px); }
.gallery__grid[data-count="2"] { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 28vw, 380px); }
.gallery__grid figure { margin: 0; position: relative; overflow: hidden; cursor: zoom-in; background: #cfd3d6; animation: fadeOnly .5s var(--ease); }
.gallery__grid figure.is-feature { grid-column: span 2; grid-row: span 2; }
.gallery__grid figure.is-hidden, .gallery__grid figure.is-more { display: none; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__grid figure:hover img { transform: scale(1.05); }
.gallery__grid figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: var(--weiss); font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(30, 42, 51, .75)); transform: translateY(100%); transition: transform .4s var(--ease); }
.gallery__grid figure:hover figcaption, .gallery__grid figure:focus-visible figcaption { transform: none; }
.gallery__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.gallery__count { margin: 0; color: var(--muted); font-size: 15px; }
.gallery__foot .btn[hidden] { display: none; }

/* ---------- Über uns ---------- */
.about { background: var(--weiss); border-top: 1px solid var(--fuge); }
.about__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__text h2 { margin-bottom: 26px; }
.about__text > p { color: #3e4b55; max-width: 36em; }
.about__people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--fuge); }
.about__people h3 { font-size: 19px; margin-bottom: 6px; }
.about__people p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.about__people a { font-weight: 600; text-decoration: none; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--fuge); border: 4px solid var(--fuge); }
.fact { background: var(--kalk); padding: 28px 22px; }
.fact__num, .fact__plus { font-size: clamp(54px, 6vw, 80px); font-weight: 780; font-variation-settings: "wdth" 120; line-height: 1; color: var(--blau); }
.fact p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.fact--img { grid-column: 1 / -1; padding: 0; position: relative; }
.fact--img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fact--img p { position: absolute; left: 0; bottom: 0; margin: 0; padding: 8px 12px; background: var(--weiss); color: var(--schiefer); font-size: 13px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--schiefer); color: var(--weiss); }
.contact__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.contact__lead { opacity: .75; font-size: 19px; margin: 18px 0 30px; }
.contact__phone { display: block; color: var(--weiss); text-decoration: none; font-size: clamp(36px, 6vw, 76px); font-weight: 780; font-variation-settings: "wdth" 120; line-height: 1; letter-spacing: -.02em; transition: color .25s; }
.contact__phone:hover { color: var(--stein); }
.contact__mail { display: inline-block; color: var(--stein); margin-top: 16px; font-size: 20px; }
.contact__addr { font-style: normal; line-height: 1.7; border-left: 4px solid var(--stein); padding-left: 24px; }
.contact__addr .btn { margin-top: 24px; }

.footer { background: #17212a; color: rgba(255,255,255,.6); font-size: 14px; padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: rgba(255,255,255,.8); margin-left: 18px; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px;
  background: var(--blau); color: var(--weiss); text-decoration: none; font-weight: 650;
  box-shadow: 0 12px 30px rgba(29, 79, 145, .35); border-radius: var(--r);
  transform: translateY(140%); transition: transform .5s var(--ease), background .25s;
}
.float-cta.is-visible { transform: none; }
.float-cta:hover { background: var(--blau-dk); }
.float-cta__tile { width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: none;
  background-image: linear-gradient(var(--stein), var(--stein)), linear-gradient(var(--weiss), var(--weiss)), linear-gradient(var(--weiss), var(--weiss)), linear-gradient(var(--stein), var(--stein));
  background-size: 12px 12px; background-repeat: no-repeat; background-position: 0 0, 14px 0, 0 14px, 14px 14px;
  animation: tilespin 4s var(--ease) infinite; }
@keyframes tilespin { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(90deg); } }
.mobile-bar { display: none; }

/* ---------- Popup ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(30, 42, 51, .55); backdrop-filter: blur(4px); animation: fadeOnly .35s ease; }
.popup__card { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; max-width: 820px; width: 100%; background: var(--weiss); overflow: hidden; animation: popIn .55s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.popup__img { min-height: 100%; background: var(--fuge); }
.popup__img img { width: 100%; height: 100%; object-fit: cover; }
.popup__body { padding: 40px 34px 30px; }
.popup__body h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.popup__body p { color: #3e4b55; }
.popup__rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 16px; }
.chipbtn { font: inherit; font-weight: 600; padding: 14px; background: var(--kalk); border: 1.5px solid var(--fuge); cursor: pointer; text-align: left; transition: all .2s; }
.chipbtn:hover { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
.popup__later { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.popup__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.9); font-size: 26px; cursor: pointer; line-height: 1; }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(20, 28, 34, .94); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; animation: popIn .4s var(--ease); }
.lightbox__x, .lightbox__nav { position: absolute; background: none; border: 0; color: var(--weiss); font-size: 44px; cursor: pointer; width: 56px; height: 56px; line-height: 1; }
.lightbox__x { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__cta { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); }
.lightbox__cta:hover { transform: translateX(-50%) translateY(-2px); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--schiefer); color: var(--weiss); padding: 12px 20px; z-index: 120; font-size: 15px; animation: popIn .4s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__tiles { --cols: 6; --rows: 4; aspect-ratio: 6 / 4; order: -1; }
  .hero { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  .hero__badge { left: 10px; bottom: 10px; }
  .calc__layout { grid-template-columns: 1fr; }
  .summary { position: sticky; top: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; z-index: 5; }
  .summary__total { font-size: 38px; margin: 0; grid-row: span 2; }
  .summary__grid, .summary__gridnote, .summary__rooms { display: none; }
  .summary__label { grid-column: 2; }
  .summary__progress { grid-column: 2; margin-top: 4px; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .roomgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav { position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--kalk); border-bottom: 1px solid var(--fuge); padding: 8px var(--gut) 20px; transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--fuge); }
  .nav .btn { margin-top: 16px; }
  .room, .room--flip { grid-template-columns: 1fr; }
  .room--flip .room__img { order: 0; }
  .steps__list, .checks, .fields, .about__people { grid-template-columns: 1fr; }
  .formats span { width: calc(50vw - 60px); }
  .popup__card { grid-template-columns: 1fr; }
  .popup__img { height: 160px; min-height: 0; }
  .popup__body { padding: 26px 22px 20px; }
  .float-cta { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--weiss); border-top: 1px solid var(--fuge); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: grid; place-items: center; padding: 13px; font-weight: 650; text-decoration: none; color: var(--schiefer); border: 1.5px solid var(--schiefer); }
  .mobile-bar a.is-primary { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .lightbox { padding: 60px 12px 90px; }
  .footer a { margin: 0 18px 0 0; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tile, .reveal, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal { padding: calc(130px + env(safe-area-inset-top, 0px)) 0 clamp(70px, 9vw, 110px); }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 760; letter-spacing: -.02em; margin-bottom: 14px; }
.legal__lead { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 680; margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--fuge); }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { overflow-wrap: anywhere; }
.legal__note { background: var(--weiss); border-left: 3px solid var(--stein); padding: 14px 18px; font-size: 15px; color: var(--muted); }
.header--simple { position: absolute; }

/* ---------- Materialien (statische Musterleiste) ---------- */
.materials { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--fuge); }
.materials__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.materials__head h3 { font-size: clamp(22px, 2.4vw, 28px); }
.materials__head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34em; }
.materials__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--fuge); border: 4px solid var(--fuge); }
.materials figure { margin: 0; position: relative; height: clamp(84px, 9vw, 120px); overflow: hidden; background: #cfd3d6; }
.materials img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.materials figure:hover img { transform: scale(1.06); }
.materials figcaption { position: absolute; left: 0; bottom: 0; padding: 5px 10px; background: var(--weiss); color: var(--schiefer); font-size: 13px; font-weight: 600; }

/* ---------- WhatsApp ---------- */
.wa-btn {
  position: fixed; right: 24px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 650; border-radius: 27px;
  box-shadow: 0 10px 26px rgba(18, 140, 126, .35); transition: transform .25s var(--ease), background .25s, bottom .4s var(--ease);
  animation: fadeOnly .6s 1.2s both;
}
.wa-btn:hover { transform: translateY(-2px); background: #1ebe5b; }
.wa-btn svg { width: 28px; height: 28px; flex: none; }
.wa-btn.is-low { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.wa-btn.is-away { transform: translateY(160%); pointer-events: none; }

/* ---------- Mobile-Feinschliff ---------- */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head p, .gallery__head p { font-size: 17px; margin-top: 12px; }
  h2 { font-size: clamp(28px, 8vw, 36px); }

  /* Hero */
  .hero { min-height: 0; padding-top: calc(92px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; }
  .hero__inner { gap: 28px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas { flex-direction: column; margin: 24px 0 26px; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 8px 22px; font-size: 14px; }
  .hero__scroll { display: none; }

  /* Leistungen: kompakter, Bild im Breitformat */
  .rooms__list { gap: 44px; }
  .room { gap: 18px; }
  .room__img { aspect-ratio: 16 / 10; }
  .room__body h3 { font-size: 26px; margin-bottom: 10px; }
  .room__body p { margin-bottom: 18px; }
  .room__body .btn { width: 100%; }
  .cta-strip { padding: 36px 0; }
  .cta-strip .btn { width: 100%; }

  /* Ablauf: Zeilen statt hoher Karten */
  .steps__list li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 18px 16px; }
  .steps__n { width: 40px; height: 40px; margin: 0; grid-row: span 2; }
  .steps__list h3 { font-size: 18px; margin: 0; align-self: center; }
  .steps__list p { font-size: 15px; }

  /* Rechner */
  .calc__form { min-height: 0; padding: 22px 16px; }
  .roomopt label { min-height: 96px; padding: 14px; gap: 12px; }
  .area__dims { grid-template-columns: 1fr 1fr; }
  .area__dims > :last-child { grid-column: 1 / -1; }
  .calc__nav .btn { flex: 1; padding-left: 14px; padding-right: 14px; }
  .calc__nav .btn--big { font-size: 16px; }
  .formats span { width: calc(50vw - 44px); }

  /* Materialien: 2 Spalten, flach */
  .materials__grid { grid-template-columns: 1fr 1fr; }
  .materials figure { height: 72px; }
  .materials figcaption { font-size: 12px; padding: 4px 8px; }

  /* WhatsApp: runder Button über der Mobil-Leiste */
  .wa-btn { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-btn__label { display: none; }
  .wa-btn.is-low { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-btn.is-away { transform: translateY(calc(100% + 110px)); }
  .wa-btn svg { width: 30px; height: 30px; }

  /* Galerie: Wisch-Karussell statt langer Bildwand */
  .gallery__head { margin-bottom: 20px; align-items: stretch; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; scroll-padding-inline: var(--gut); }
  .filters::-webkit-scrollbar { display: none; }
  .gallery__grid {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scroll-padding-inline: var(--gut);
    background: none; scrollbar-width: none;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__grid figure { flex: 0 0 80%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .gallery__grid[data-count="1"] figure { flex-basis: 100%; }
  .gallery__grid figure.is-more { display: block; }
  .gallery__grid figcaption { transform: none; font-size: 13px; padding: 26px 12px 10px; }
  .gallery__foot { margin-top: 14px; }
  .gallery__foot .btn { display: none; }
  .gallery__count::after { content: " · zum Blättern wischen →"; }

  /* Über uns & Kontakt */
  .about__facts .fact { padding: 20px 16px; }
  .fact__num, .fact__plus { font-size: 48px; }
  .contact__inner { gap: 32px; }
  .contact__phone { font-size: clamp(24px, 8vw, 44px); white-space: nowrap; }
  .summary { padding: 10px 16px; gap: 2px 14px; }
  .summary__total { font-size: 30px; }
  .summary__label { font-size: 13px; }
  .contact__mail { font-size: 18px; }
  .contact__addr .btn { width: 100%; }

  /* Lightbox: Bedienelemente unten, Bild groß */
  .lightbox { padding: 56px 0 120px; }
  .lightbox img { max-height: 70vh; }
  .lightbox__nav { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: none; font-size: 36px; }
  .lightbox__nav--prev { left: 12px; } .lightbox__nav--next { right: 12px; }
  .lightbox__cta { width: calc(100% - 32px); }

  /* Footer & Rechtliches */
  .footer__inner { flex-direction: column; }
  .footer nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .footer a { display: inline-block; padding: 6px 0; }
  .legal { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .legal h2 { margin-top: 36px; }
  .header--simple .logo img { height: 38px; }
}
@media (max-width: 380px) {
  .roomgrid { grid-template-columns: 1fr 1fr; }
  .roomopt span { font-size: 14px; }
  .header__inner { height: 68px; }
  .logo img { height: 40px; }
}
