/* Silva Gebäudereinigung – Aufbau nach Vorbild mk-liftservice.de (Outfit, große Karten, dunkler Zahlenbereich),
   Akzentfarbe ist das Rot aus dem Silva-Logo. */
@font-face {
  font-family: Outfit;
  src: url('/assets/outfit-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  /* Only the logo's colours: anthracite #252326 (lettering), red #A50E0A / dark red #800903 (roof), silver #A6A5A8 (roof).
     Lighter shades are mixed from these colours with white. */
  --ink: #252326;
  --text: #252326;
  --muted: color-mix(in srgb, #252326 74%, #fff);
  --bg: #ffffff;
  --soft: color-mix(in srgb, #a6a5a8 10%, #fff);
  --line: color-mix(in srgb, #a6a5a8 30%, #fff);
  --accent: #a50e0a;
  --accent-hover: #800903;
  --accent-soft: color-mix(in srgb, #a50e0a 9%, #fff);
  --glow: rgba(165, 14, 10, .09);
  --dark: #252326;
  --dark-2: color-mix(in srgb, #252326 90%, #fff);
  --dark-line: color-mix(in srgb, #a6a5a8 22%, #252326);
  --silver: #a6a5a8;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(37, 35, 38, .04), 0 10px 30px rgba(37, 35, 38, .06);
  --shadow-lift: 0 2px 6px rgba(37, 35, 38, .06), 0 24px 50px rgba(37, 35, 38, .12);
  /* Motion tokens (Emil Kowalski): strong ease-out for UI, ease-in-out for on-screen movement, iOS drawer curve. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --intro-delay: 0ms;
  --header-h: 76px;
}
html.intro { --intro-delay: 1500ms; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* html.intro stays on after the intro (it fixes --intro-delay for the hero); intro-done only unlocks scrolling. */
html.intro:not(.intro-done) body { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, .h3 { color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3, .h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: none; }
address { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: transform 200ms var(--ease-out); }
.skip-link:focus { transform: translateY(76px); }
.muted { color: var(--muted); }
.muted a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 120px); position: relative; }
.soft-bg { background: var(--soft); }
/* Soft red glow at the top of a section (green on the reference site). */
.glow-top { isolation: isolate; }
.glow-top::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 100%); height: 260px; translate: -50% 0; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }

.eyebrow { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Buttons – pills with press feedback scale(0.97) */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button:active { transform: scale(0.97); }
.button svg { width: 18px; height: 18px; }
.button-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.button-primary { background: var(--accent); color: #fff; }
.button-dark { background: var(--ink); color: #fff; }
.button-glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .18); }
.button-outline, .button-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--accent-hover); }
  .button-dark:hover { background: var(--accent); }
  .button-glass:hover { background: rgba(255, 255, 255, .22); }
  .button-outline:hover, .button-ghost:hover { border-color: var(--ink); }
}
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.text-link span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover span { transform: translateX(4px); } }

/* ---------- Intro (first page of a session): the logo is wiped clean by a squeegee, then the curtain lifts ---------- */
#site-intro { display: none; }
html.intro #site-intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400; background: #fff; cursor: pointer;
  animation: intro-lift 650ms var(--ease-drawer) 1150ms forwards;
}
.site-intro-inner { display: grid; justify-items: center; gap: 20px; padding: 0 24px; text-align: center; }
.site-intro-logo { position: relative; width: min(320px, 70vw); }
.site-intro-logo img { width: 100%; clip-path: inset(0 100% 0 0); animation: intro-wipe 850ms var(--ease-in-out) 120ms forwards; }
.site-intro-squeegee { position: absolute; top: -6%; bottom: -6%; left: 0; width: 5px; border-radius: 4px; background: linear-gradient(var(--silver), var(--accent)); box-shadow: 0 0 18px rgba(165, 14, 10, .35); animation: intro-squeegee 850ms var(--ease-in-out) 120ms forwards; }
.site-intro-inner p { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade-up 500ms var(--ease-out) 700ms forwards; }
/* Letter spacing also adds space after the last letter; the same padding on the left keeps the text optically centred. */
.site-intro-inner p { padding-left: .28em; }
@media (max-width: 520px) { .site-intro-inner p span { display: block; } .site-intro-inner p .site-intro-dot { display: none; } .site-intro-inner p { line-height: 1.9; } }
@keyframes intro-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-squeegee { 0% { transform: translateX(0); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(min(320px, 70vw)); opacity: 0; } }
@keyframes intro-lift { to { transform: translateY(-100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Header (MK style): white, logo left, menu in the middle, actions right ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow 250ms ease, border-color 250ms ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(37, 35, 38, .06); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: 128px; }
.main-nav { display: flex; justify-content: center; gap: 2px; }
.main-nav a { padding: 8px 13px; border-radius: 999px; font-weight: 500; color: var(--text); white-space: nowrap; transition: color 200ms ease, background-color 200ms ease; }
.main-nav a[aria-current="page"], .main-nav a[aria-current="true"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { background: var(--soft); } }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .header-icon:hover { background: var(--soft); color: var(--accent); } .header-phone:hover { color: var(--accent); } }
.menu-toggle { display: none; position: relative; z-index: 201; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--soft); place-items: center; align-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 250ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Phone menu: slides in from the right, icon in front of every entry (Startseite = house) */
.mobile-menu { display: none; }
@media (max-width: 1040px) {
  .mobile-menu {
    position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px;
    padding: calc(var(--header-h) + 18px) 20px 32px; overflow-y: auto; background: #fff; box-shadow: -20px 0 60px rgba(37, 35, 38, .18);
    transform: translateX(100%); visibility: hidden; transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms;
  }
  body.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform 380ms var(--ease-drawer), visibility 0s; }
  /* Dark backdrop below the header (z 100) and the menu (z 90). */
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 89; background: rgba(37, 35, 38, .45); animation: fade-in 250ms ease; }
}
.mobile-menu nav { display: grid; gap: 2px; }
.mm-link { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 14px; font-size: 1.1rem; font-weight: 500; color: var(--ink); list-style: none; cursor: pointer; transition: background-color 150ms ease; }
.mm-link::-webkit-details-marker { display: none; }
.mm-link[aria-current="page"], .mm-link.is-current { background: var(--soft); color: var(--accent); }
.mm-icon { width: 22px; height: 22px; color: var(--accent); }
.mm-chevron { display: inline-flex; margin-left: auto; transition: transform 200ms var(--ease-out); }
.mm-chevron svg { width: 18px; height: 18px; }
.mm-group[open] .mm-chevron { transform: rotate(180deg); }
.mm-sub { display: grid; gap: 2px; padding: 4px 0 10px 14px; }
.mm-group[open] .mm-sub { animation: fade-up 260ms var(--ease-out); }
.mm-sub a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-weight: 500; font-size: .98rem; }
.mm-sub a[aria-current="page"] { color: var(--accent); background: var(--soft); }
.mm-cta { min-height: 52px; }
.mm-contact { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.mm-contact strong { margin-bottom: 4px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mm-contact a { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-weight: 500; word-break: break-word; }
.mm-contact svg { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .mm-link:hover, .mm-sub a:hover { background: var(--soft); } }
/* ---------- Hero (home): full-height photo, big headline, two pills, service links ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; overflow: hidden; background: var(--dark); color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; animation: hero-settle 1800ms var(--ease-out) var(--intro-delay) both; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: none; } }
/* A light band sweeps across once, like the shine on a freshly cleaned window. */
.hero-glint { position: absolute; inset: -20% auto -20% 0; width: 40%; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-120%) skewX(-12deg); pointer-events: none; animation: glint 1400ms var(--ease-in-out) calc(var(--intro-delay) + 700ms) both; }
@keyframes glint { to { transform: translateX(320%) skewX(-12deg); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(37, 35, 38, .35) 0%, rgba(37, 35, 38, .55) 45%, rgba(37, 35, 38, .92) 100%), linear-gradient(90deg, rgba(37, 35, 38, .55) 0%, transparent 70%); }
.hero-inner { padding-block: 120px 56px; }
.hero .eyebrow { color: var(--silver); }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 900px; }
.h1-name { display: block; }
.h1-sub { display: block; margin-top: 12px; font-size: clamp(1.4rem, 2.9vw, 2.3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: #fff; }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
/* Service links with lines (idea from lc-abbruch.de) */
.hero-links { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.hero-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); font-weight: 500; font-size: 1.05rem; color: #fff; transition: border-color 250ms ease; }
.hero-links svg { width: 18px; height: 18px; opacity: .7; transition: transform 250ms var(--ease-out), opacity 250ms ease; }
@media (hover: hover) and (pointer: fine) { .hero-links a:hover { border-color: #fff; } .hero-links a:hover svg { transform: translateX(4px); opacity: 1; } }
.hero-step { opacity: 0; animation: fade-up 800ms var(--ease-out) both; }
.hero-step:nth-child(1) { animation-delay: calc(var(--intro-delay) + 150ms); }
.hero-step:nth-child(2) { animation-delay: calc(var(--intro-delay) + 230ms); }
.hero-step:nth-child(3) { animation-delay: calc(var(--intro-delay) + 310ms); }
.hero-step:nth-child(4) { animation-delay: calc(var(--intro-delay) + 390ms); }
.hero-step:nth-child(5) { animation-delay: calc(var(--intro-delay) + 470ms); }

/* ---------- Section headings ---------- */
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }

/* ---------- Service cards: white, large radius, number + red glow in the corner ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease;
}
.soft-bg .service-card { border-color: transparent; }
.service-card::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); transition: transform 500ms var(--ease-out); }
.service-no { position: absolute; right: 28px; top: 26px; font-size: .9rem; font-weight: 500; letter-spacing: .08em; color: var(--silver); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; transition: background-color 250ms ease, color 250ms ease; }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3, .service-card .h3 { font-size: 1.6rem; }
.service-card h3 a::after, .service-card .h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card p { color: var(--muted); flex: 1; }
.card-link { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; gap: 8px; margin-top: 6px; font-weight: 600; font-size: .95rem; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card-link span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
  .service-card:hover::before { transform: scale(1.6); }
  .service-card:hover .service-icon { background: var(--accent); color: #fff; }
  .service-card:hover .card-link span { transform: translateX(4px); }
}
.service-card:active { transform: scale(0.99); }
.service-card.has-photo { padding-top: 0; }
.service-photo { margin: 0 -32px 18px; width: calc(100% + 64px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card.has-photo .service-no { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.mini-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; font-size: .95rem; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; }
.mini-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

/* ---------- About: text + stat tiles, overlapping photo collage ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-text h2 { margin-bottom: 22px; }
.about-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
/* Two feature blocks with icon (idea from lc-abbruch.de) */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--ink); color: #fff; }
.feature h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.feature p { font-size: .95rem; color: var(--muted); }
.line-list { list-style: none; padding: 0; margin: 24px 0 0; }
.line-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.line-list li:first-child { padding-top: 0; }
.line-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 1px; stroke-width: 2.4; }
.line-list.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.line-list.two li:nth-child(2) { padding-top: 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.stat-tiles div { display: grid; justify-items: center; gap: 2px; padding: 18px 10px; border-radius: 18px; background: var(--soft); text-align: center; }
.stat-tiles strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.stat-tiles span { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about-collage { position: relative; padding: 0 0 70px 40px; }
.collage-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.collage-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow-lift); }
.collage-card { position: absolute; right: 18px; bottom: 18px; width: min(300px, 50%); display: grid; gap: 4px; padding: 22px; border-radius: 22px; background: var(--dark); color: #fff; box-shadow: var(--shadow-lift); }
.collage-card small { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: var(--silver); }
.collage-card strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.collage-card span { font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.4; }

/* ---------- Dark section with counters ---------- */
.dark-section { background: var(--dark); color: rgba(255, 255, 255, .78); isolation: isolate; overflow: hidden; }
.dark-section::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(900px, 120%); height: 420px; translate: -50% 0; background: radial-gradient(closest-side, rgba(165, 14, 10, .32), transparent); }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .eyebrow { color: var(--silver); }
.dark-section .section-heading > p:not(.eyebrow) { color: rgba(255, 255, 255, .7); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--dark-line); }
.counter { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 24px; }
.counter + .counter { border-left: 1px solid var(--dark-line); }
.counter strong { font-size: clamp(3.4rem, 7vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.counter strong::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin: 20px auto 0; background: var(--accent); }
.counter h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.counter p { font-size: .95rem; color: rgba(255, 255, 255, .6); }
.center-action { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- References ---------- */
/* ---------- Slider (references, blog): native scroll with snap; the script adds arrows, drag, autoplay ---------- */
.slider { --per-view: 3; --gap: 20px; position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline-offset: 6px; }
.slide { scroll-snap-align: start; min-width: 0; }
.slider.is-dragging .slider-track { scroll-snap-type: none; cursor: grabbing; }
.slider.is-dragging .slide { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .slider.is-ready .slider-track { cursor: grab; } }
.slider-controls { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.slider-controls[hidden] { display: none; }
.slider-btn { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.slider-btn:active { transform: scale(0.94); }
.slider-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; } }
.slider-progress { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.slider-progress span { position: absolute; inset: 0; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, .1)); transition: transform 500ms var(--ease-out); }
.slider-count { min-width: 64px; font-size: .95rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.slider-pause .icon-play, .slider.is-paused .slider-pause .icon-pause { display: none; }
.slider.is-paused .slider-pause .icon-play { display: block; }

/* Reference slides: photo with caption on top, magnifier on hover */
.ref-slide { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft); }
.ref-slide .gallery-open { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; }
.ref-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; transition: transform 800ms var(--ease-out); }
.ref-slide figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 56px 24px 22px; background: linear-gradient(transparent, rgba(37, 35, 38, .9)); color: #fff; pointer-events: none; }
.ref-slide figcaption small { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.ref-slide figcaption strong { font-size: 1.15rem; line-height: 1.3; }
.ref-zoom { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.9); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ref-slide:hover img { transform: scale(1.05); }
  .ref-slide:hover .ref-zoom { opacity: 1; transform: none; }
}

/* ---------- Homepage references: three cards (style of adria-meisterbetrieb.de) ---------- */
.eyebrow-pill { display: inline-block; margin-bottom: 16px; padding: 6px 16px; border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.ref-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 6px 26px rgba(37, 35, 38, .08); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.ref-card-image { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--soft); }
.ref-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.ref-card-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(37, 35, 38, .55); opacity: 0; transition: opacity 250ms ease; }
.ref-card-overlay > span { padding: 10px 20px; border-radius: 999px; background: #fff; font-weight: 600; color: var(--ink); transform: translateY(8px); transition: transform 300ms var(--ease-out); }
.ref-card-image:focus-visible .ref-card-overlay { opacity: 1; }
.ref-card-body { padding: 22px 24px 26px; }
.ref-card-cat { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; font-style: italic; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ref-card h3 { font-size: 1.35rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .ref-card:hover .ref-card-overlay { opacity: 1; }
  .ref-card:hover .ref-card-overlay > span { transform: none; }
  .ref-card:hover img { transform: scale(1.05); }
}
@media (max-width: 960px) { .ref-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ref-cards { grid-template-columns: 1fr; } }

/* Sample review cards: only in the local preview (Development), never online. */
.review-card.is-sample { outline: 2px dashed var(--silver); outline-offset: -2px; }
.sample-badge { padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ---------- Google reviews (style of adria-meisterbetrieb.de, in the logo colours) ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .95rem; color: var(--muted); transition: box-shadow 250ms var(--ease-out), transform 250ms var(--ease-out); }
.rating-badge strong { color: var(--ink); }
.rating-badge-g { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 700; }
.rating-badge-stars { letter-spacing: 1px; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .rating-badge:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); } }

/* Centre mode: one large card in the middle, the neighbours peek in at the sides (faded). */
.slider-center { container-type: inline-size; --slide-w: min(780px, 84cqi); }
.slider-center .slider-track { grid-auto-columns: var(--slide-w); padding-inline: calc((100cqi - var(--slide-w)) / 2); scroll-padding-inline: calc((100cqi - var(--slide-w)) / 2); padding-block: 14px 28px; }
.slider-center .slide { scroll-snap-align: center; opacity: .4; transform: scale(.95); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.slider-center .slide.is-active { opacity: 1; transform: none; }
.slider-controls.center { justify-content: center; margin-top: 8px; }
.slider-dots { display: flex; align-items: center; gap: 4px; }
.slider-dots button { display: grid; place-items: center; width: 24px; height: 32px; padding: 0; border: 0; background: none; }
.slider-dots button span { display: block; width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.slider-dots button[aria-current="true"] { width: 34px; }
.slider-dots button[aria-current="true"] span { width: 28px; background: var(--accent); }

.review-card { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; padding: clamp(28px, 4vw, 44px); border-radius: 18px; border-top: 4px solid var(--accent); background: #fff; box-shadow: 0 6px 26px rgba(37, 35, 38, .08); text-align: center; }
.review-stars { display: inline-flex; gap: 3px; font-size: 1.35rem; line-height: 1; color: var(--line); }
.review-stars .on { color: var(--accent); }
.review-card blockquote { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-style: italic; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-card blockquote::before { content: "„"; color: var(--accent); }
.review-card blockquote::after { content: "“"; color: var(--accent); }
.review-card figcaption { display: flex; align-items: center; gap: 12px; text-align: left; }
.review-author { display: grid; line-height: 1.3; }
.review-author a, .review-author strong { font-weight: 600; color: var(--ink); }
.review-author small { font-size: .85rem; font-style: italic; color: var(--muted); }
.review-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--dark); color: #fff; font-size: .95rem; font-weight: 600; }
.review-note { margin: 18px auto 0; max-width: 820px; font-size: .85rem; text-align: center; color: var(--muted); }
.review-note a { color: var(--accent); text-decoration: underline; }
.review-cta { display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--dark); color: color-mix(in srgb, #fff 75%, var(--dark)); }
.review-cta > div { flex: 1; }
.review-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.review-cta-stars { font-size: 1.5rem; letter-spacing: 2px; color: var(--accent); }
@media (max-width: 760px) { .review-cta { flex-direction: column; align-items: flex-start; } }
/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease; }
.soft-bg .post-card { border-color: transparent; }
.post-card-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; user-select: none; transition: transform 800ms var(--ease-out); }
.post-card-tag { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; color: var(--accent); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.post-meta { font-size: .88rem; color: var(--muted); }
.post-card h3 { font-size: 1.35rem; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card-body > p:not(.post-meta) { color: var(--muted); flex: 1; }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
  .post-card:hover img { transform: scale(1.05); }
  .post-card:hover .card-link span { transform: translateX(4px); }
}

/* ---------- Blog article ---------- */
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.article-body { max-width: 740px; }
.article-figure { margin-bottom: 36px; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.article-body > h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body > h2:first-of-type { margin-top: 0; }
.article-body > p { font-size: 1.08rem; margin-bottom: 14px; }
.article-body > .line-list { margin: 8px 0 14px; }
.article-cta { display: grid; gap: 18px; margin-top: 48px; padding: 32px; border-radius: var(--radius-lg); background: var(--dark); color: color-mix(in srgb, #fff 75%, var(--dark)); }
.article-cta .eyebrow { color: var(--silver); margin-bottom: 6px; }
.article-cta h2 { color: #fff; margin-bottom: 8px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.article-cta .button-outline { background: transparent; color: #fff; border-color: var(--dark-line); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 150ms ease, text-decoration-color 150ms ease; }
.toc a[aria-current="true"] { color: var(--accent); text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--accent); text-decoration-color: var(--accent); } }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-links a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 500; }
.service-icon.small { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.service-icon.small svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .aside-links a:hover { color: var(--accent); } }
.insta-band { margin-top: 24px; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--dark); color: #fff; transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.insta-band:active { transform: scale(0.99); }
.insta-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--accent); }
.insta-icon svg { width: 24px; height: 24px; }
.insta-text { display: grid; flex: 1; line-height: 1.35; }
.insta-text strong { font-size: 1.1rem; }
.insta-text small { color: rgba(255, 255, 255, .65); }
.insta-cta { display: inline-flex; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.insta-cta span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .insta-band:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } .insta-band:hover .insta-cta span { transform: translateX(3px); } }

/* ---------- FAQ: two columns inside one frame ---------- */
.faq-box { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq-col + .faq-col { border-left: 1px solid var(--line); }
.faq-box details { border-bottom: 1px solid var(--line); }
.faq-col details:last-child { border-bottom: 0; }
.faq-box summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 26px; font-weight: 600; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; letter-spacing: -0.01em; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-toggle { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: transform 250ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.faq-toggle svg { width: 16px; height: 16px; }
details[open] > summary .faq-toggle { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-answer { padding: 0 26px 24px; color: var(--muted); }
details[open] .faq-answer { animation: fade-up 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .faq-box summary:hover .faq-toggle { border-color: var(--accent); } }

/* ---------- Contact: dark call card + step-by-step enquiry ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: stretch; }
.call-card { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: var(--radius-lg); background: var(--dark); color: rgba(255, 255, 255, .72); }
.call-card .eyebrow { color: var(--silver); margin-bottom: 0; }
.call-card h3 { color: #fff; font-size: 1.9rem; }
.call-card dl { display: grid; gap: 4px; margin: 10px 0 18px; }
.call-card dt { font-size: .85rem; color: rgba(255, 255, 255, .5); margin-top: 14px; }
.call-card dd { color: #fff; font-weight: 500; }
.call-card dd a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; font-size: 1.15rem; word-break: break-word; }
.call-card .button { margin-top: auto; align-self: flex-start; }
.wizard-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); min-height: 520px; }
.wz-top { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 500; color: var(--muted); }
.wz-top b { font-weight: 600; color: var(--accent); }
.wz-bar { height: 6px; margin: 14px 0 34px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .04)); transition: transform 450ms var(--ease-out); }
.wz-panel { animation: step-in 320ms var(--ease-out); }
.wz-panel.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes step-back { from { opacity: 0; transform: translateY(-14px); } }
.wz-panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); outline: none; }
.wz-sub { color: var(--muted); margin: 10px 0 26px; }
.wz-options { display: grid; gap: 10px; }
.wz-options.cols { grid-template-columns: 1fr 1fr; }
.wz-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 18px; border-radius: 18px; border: 1.5px solid transparent; background: var(--soft); text-align: left; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.wz-option:active { transform: scale(0.98); }
.wz-key { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; font-size: .85rem; font-weight: 600; color: var(--ink); transition: background-color 150ms ease, color 150ms ease; }
.wz-text { display: grid; flex: 1; line-height: 1.3; }
.wz-text strong { font-size: 1.05rem; color: var(--ink); }
.wz-text small { font-size: .88rem; color: var(--muted); }
.wz-arrow { color: var(--silver); transition: transform 200ms var(--ease-out), color 200ms ease; }
.wz-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.wz-option[aria-pressed="true"] .wz-key { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .wz-option:hover { border-color: var(--silver); } .wz-option:hover .wz-arrow { transform: translateX(4px); color: var(--accent); } }
.wz-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.wz-actions .wz-next { margin-left: auto; }
.wz-back { border: 0; background: none; padding: 8px 4px; font-weight: 600; color: var(--muted); }
.wz-next:disabled { opacity: .4; cursor: not-allowed; }
.wz-hint { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.wz-hint kbd { font: inherit; font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); }
.wz-error { color: var(--accent); font-weight: 500; margin-top: 14px; }
.wz-error a { text-decoration: underline; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--ink); }
input, textarea, select { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(165, 14, 10, .12); }
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.form-hint a { color: var(--accent); text-decoration: underline; }
.form-errors:empty { display: none; }
.form-errors { color: var(--accent); font-weight: 500; margin-top: 16px; }
.form-trap { position: absolute; left: -9999px; }
.contact-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Anfahrt card: facts left, tinted map panel right */
.anfahrt-card { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 20px; border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.anfahrt-facts { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 6px; }
.anfahrt-facts h3 { font-size: 2rem; margin-bottom: 10px; }
.anfahrt-facts dl { display: grid; gap: 2px; margin-bottom: 26px; }
.anfahrt-facts dt { font-weight: 600; color: var(--ink); margin-top: 14px; }
.anfahrt-facts dd { color: var(--muted); }
.anfahrt-facts dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.anfahrt-facts .button { align-self: flex-start; }
.map { position: relative; min-height: 420px; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, color-mix(in srgb, #a50e0a 6%, #fff) 0%, color-mix(in srgb, #a50e0a 12%, #fff) 100%); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fade-in 400ms ease; }
.map-consent { display: grid; justify-items: center; gap: 12px; max-width: 380px; text-align: center; }
.map-consent p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.map-consent .eyebrow { margin: 6px 0 0; }
.map-consent a { color: var(--accent); text-decoration: underline; }
.map-pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dark); color: #fff; }
.map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pin-pulse 2.2s ease-out infinite; }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.map-consent .button { margin-top: 8px; min-width: 240px; }
.open-status { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); vertical-align: middle; }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--silver); }
.open-status.is-open { color: #fff; }
.open-status.is-open::before { background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165, 14, 10, .6); } 100% { box-shadow: 0 0 0 7px rgba(165, 14, 10, 0); } }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 6vw, 64px) clamp(56px, 8vw, 96px); background: var(--soft); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; margin-bottom: 20px; }
.page-lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 30px; }
.page-hero .container > *:not(.crumbs), .service-hero > div > *:not(.crumbs) { animation: fade-up 650ms var(--ease-out) both; }
.page-hero .container > *:nth-child(3), .service-hero > div > *:nth-child(3) { animation-delay: 50ms; }
.page-hero .container > *:nth-child(4), .service-hero > div > *:nth-child(4) { animation-delay: 100ms; }
.page-hero .container > *:nth-child(5), .service-hero > div > *:nth-child(5) { animation-delay: 150ms; }
.crumbs { margin-bottom: 28px; font-size: .9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--silver); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.service-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service-hero-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lift); animation: media-reveal 1000ms var(--ease-in-out) 120ms both; }
@keyframes media-reveal { from { clip-path: inset(0 0 100% 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-media figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .85rem; font-weight: 500; }
.service-hero-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); background: radial-gradient(circle at 70% 20%, var(--accent-soft), #fff 70%); }
.service-hero-icon svg { width: 38%; height: 38%; stroke-width: 1.1; }
.detail { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.detail-text h2:not(:nth-child(2)) { margin-top: 48px; }
.detail-text p:not(.eyebrow) { font-size: 1.08rem; margin-bottom: 14px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.aside-card .line-list { margin-top: 4px; }
.aside-card .line-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-dark { background: var(--dark); color: rgba(255, 255, 255, .75); }
.aside-dark .eyebrow { color: var(--silver); }
.aside-dark h3 { color: #fff; margin-bottom: 10px; }
.aside-line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--dark-line); color: #fff; font-weight: 500; word-break: break-word; }
.aside-line svg { color: var(--silver); }
.aside-hours { padding-top: 12px; border-top: 1px solid var(--dark-line); font-size: .9rem; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.way-card { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: var(--radius-lg); background: var(--soft); }
.way-card p { color: var(--muted); }
.way-card .line-list { margin-top: 0; }
.way-card .line-list li:last-child { border-bottom: 0; }

/* Gallery (references page) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.filter-bar button:active { transform: scale(0.97); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .filter-bar button:not([aria-pressed="true"]):hover { border-color: var(--ink); } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { overflow: hidden; border-radius: var(--radius-lg); background: var(--soft); }
.gallery-item.is-hidden { display: none; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery-open:hover img { transform: scale(1.05); } }
.gallery-item figcaption { display: grid; gap: 2px; padding: 18px 22px 22px; }
.gallery-item small { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gallery-item strong { font-size: 1.1rem; color: var(--ink); }
.gallery-item figcaption a { margin-top: 4px; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lightbox { width: 100%; max-width: min(92vw, 880px); padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { animation: modal-in 220ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } }
.lightbox::backdrop { background: rgba(37, 35, 38, .88); backdrop-filter: blur(4px); }
.lightbox-image { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 18px; background: #000; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.lightbox-caption { font-weight: 500; text-align: center; }
.lightbox button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lightbox button:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { background: rgba(255, 255, 255, .26); } }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0, 0, 0, .55) !important; }

/* Legal & confirmation pages */
.legal-page { max-width: 860px; }
.legal-page h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 26px; }
.legal-page h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal-page p { margin-bottom: 12px; }
.legal-page a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.confirmation { max-width: 720px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.confirmation p { color: var(--muted); }
.confirmation p a { color: var(--accent); text-decoration: underline; }
.confirm-check { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: #fff; animation: pop-in 500ms var(--ease-out) both; }
.confirm-check svg { width: 38px; height: 38px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 450ms var(--ease-out) 250ms forwards; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .68); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .9fr 1.2fr; gap: 44px; padding-block: 80px 56px; }
.footer h2 { font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-h2-gap { margin-top: 30px; }
/* White plate so the original logo (black lettering) stays readable on the dark footer. */
.footer-logo { display: inline-block; padding: 12px 18px; border-radius: 16px; background: #fff; margin-bottom: 22px; }
.footer-logo img { width: 140px; }
.footer-about p { max-width: 340px; margin-bottom: 26px; }
.footer-cta { display: flex; align-items: center; gap: 12px; }
.footer-insta { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--dark-line); color: #fff; transition: background-color 200ms ease, border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-insta:hover { background: var(--accent); border-color: var(--accent); } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-facts a:hover { color: #fff; } }
.footer-facts dt { font-size: .85rem; color: rgba(255, 255, 255, .45); margin-top: 12px; }
.footer-facts dt:first-child { margin-top: 0; }
.footer-facts dd { color: #fff; }
.footer-facts a.accent { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--dark-line); font-size: .9rem; }

/* Floating buttons */
.mobile-call { display: none; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.back-to-top[hidden] { display: grid; opacity: 0; transform: translateY(12px); pointer-events: none; }
.back-to-top:active { transform: scale(0.95); }

/* ---------- Scroll reveal (classes set by app.js; nothing is hidden without JavaScript) ---------- */
.reveal { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal-pending { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .main-nav a { padding: 8px 10px; }
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav { display: none; }
  .header-row { grid-template-columns: auto 1fr; }
  .header-actions { justify-content: flex-end; }
  .menu-toggle { display: grid; }
  body.menu-open { overflow: hidden; }
}@media (max-width: 960px) {
  .service-grid, .gallery, .post-grid { grid-template-columns: 1fr 1fr; }
  .slider { --per-view: 2; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .about, .detail, .contact-grid, .anfahrt-card, .service-hero { grid-template-columns: 1fr; }
  .about-collage { max-width: 560px; }
  .detail-aside { position: static; }
  .service-hero-media { max-width: 460px; }
  .hero-links { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
  .faq-box { grid-template-columns: 1fr; }
  .faq-col + .faq-col { border-left: 0; border-top: 1px solid var(--line); }
  .map { min-height: 340px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .brand img { width: 108px; }
  .header-icon, .header-actions .button-small { display: none; }
  .hero { min-height: calc(92svh - var(--header-h)); }
  .hero-inner { padding-block: 72px 36px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-links { margin-top: 36px; }
  .hero-links a { font-size: .98rem; padding: 13px 0; }
  .service-grid, .gallery, .post-grid, .counters, .stat-tiles, .line-list.two, .field-grid, .form-grid, .wz-options.cols, .features { grid-template-columns: 1fr; }
  /* Phones: one card plus a peek of the next one, so it is obvious that you can swipe. */
  .slider { --per-view: 1.18; --gap: 14px; }
  .slider-controls { gap: 10px; }
  .slider-btn { width: 44px; height: 44px; }
  .line-list.two li:nth-child(2) { padding-top: 13px; }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
  .stat-tiles strong { font-size: 1.25rem; }
  .stat-tiles span { font-size: .68rem; letter-spacing: .08em; }
  .service-card { padding: 26px; }
  .service-photo { margin-inline: -26px; width: calc(100% + 52px); }
  .counter + .counter { border-left: 0; border-top: 1px solid var(--dark-line); }
  .counter { padding: 34px 16px; }
  .heading-row { flex-direction: column; align-items: flex-start; }
  .about-collage { padding: 0 0 60px 0; }
  .collage-small { width: 44%; }
  .collage-card { position: relative; right: auto; bottom: auto; width: auto; margin-top: -40px; margin-left: 48%; }
  .insta-band { flex-wrap: wrap; }
  .insta-cta { width: 100%; justify-content: center; }
  .call-card, .wizard-card { padding: 24px; }
  .wizard-card { min-height: 0; }
  .faq-box summary { padding: 20px; font-size: 1rem; }
  .faq-answer { padding: 0 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .mobile-call {
    position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(165, 14, 10, .35);
    transition: transform 160ms var(--ease-out);
  }
  .mobile-call:active { transform: scale(0.97); }
  body.menu-open .mobile-call, body.menu-open .back-to-top { display: none; }
  .back-to-top { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .wz-actions { flex-wrap: wrap; }
  .wz-actions .wz-next { flex: 1; }
}

/* Reduced motion: fewer and gentler – keep fades that help orientation, drop movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #site-intro { display: none !important; }
  html.intro body { overflow: auto; }
  .hero-media img, .hero-glint, .map-pin::after, .open-status.is-open::before { animation: none !important; }
  .hero-glint { display: none; }
  .hero-step, .page-hero .container > *, .service-hero > div > *, .service-hero-media, .confirm-check, .wz-panel, details[open] .faq-answer, .mm-group[open] .mm-sub { animation: fade-in 200ms ease both !important; }
  .reveal-pending { transform: none; }
  .mobile-menu { transition: visibility 0s !important; }
  .service-card, .post-card, .post-card img, .button, .insta-band, .ref-slide img, .gallery-open img, .wz-bar span, .slider-progress span, .slider-center .slide { transition-property: opacity, background-color, color, border-color, box-shadow; }
}
@media print {
  .site-header, .mobile-menu, .footer, .mobile-call, .back-to-top, #site-intro, #kontakt, .slider-controls { display: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
