/* =========================================================================
   maciejlucki.de — Design System
   Modern-Minimal / Handwerk
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --ink:         #101215;
  --ink-70:      rgba(16, 18, 21, 0.7);
  --ink-50:      rgba(16, 18, 21, 0.5);
  --ink-10:      rgba(16, 18, 21, 0.1);
  --ink-05:      rgba(16, 18, 21, 0.05);
  --surface:     #F9F8F5;
  --surface-alt: #F1EFEA;
  --paper:       #FFFFFF;
  --muted:       #6E7278;
  --line:        #E4E1DA;
  --line-soft:   #EFEDE7;
  --accent:      #B4531A;
  --accent-hover:#963E10;
  --accent-soft: #F6E9DC;
  --accent-ink:  #FFFFFF;
  --success:     #2E7D32;
  --focus:       #1F5FCB;

  /* Typography */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", var(--font-sans);

  /* Type scale — clamp for fluid */
  --fs-hero:    clamp(2.75rem, 5.5vw + 0.5rem, 5.25rem);   /* 44 → 84 */
  --fs-display: clamp(2.25rem, 3.5vw + 0.5rem, 3.75rem);   /* 36 → 60 */
  --fs-h1:      clamp(2rem, 2.6vw + 0.5rem, 3rem);         /* 32 → 48 */
  --fs-h2:      clamp(1.625rem, 1.6vw + 0.5rem, 2.25rem);  /* 26 → 36 */
  --fs-h3:      clamp(1.25rem, 0.9vw + 0.5rem, 1.5rem);    /* 20 → 24 */
  --fs-lead:    clamp(1.125rem, 0.4vw + 0.9rem, 1.375rem); /* 18 → 22 */
  --fs-body:    1.0625rem; /* 17 */
  --fs-small:   0.9375rem; /* 15 */
  --fs-xs:      0.8125rem; /* 13 */

  --lh-tight:   1.08;
  --lh-snug:    1.2;
  --lh-normal:  1.55;
  --lh-loose:   1.7;

  --tracking-tight:  -0.03em;
  --tracking-normal: -0.01em;
  --tracking-loose:  0.08em;

  /* Spacing (8pt) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  40px;
  --s-8:  56px;
  --s-9:  72px;
  --s-10: 96px;
  --s-11: 128px;
  --s-12: 160px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(16,18,21,.05), 0 0 0 1px rgba(16,18,21,.04);
  --shadow-2: 0 4px 12px rgba(16,18,21,.06), 0 1px 3px rgba(16,18,21,.05);
  --shadow-3: 0 12px 32px rgba(16,18,21,.10), 0 4px 12px rgba(16,18,21,.06);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast:  200ms;
  --dur-med:   400ms;
  --dur-slow:  600ms;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 72px;
}

/* ---------- 2. Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--s-4);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 600; }
p  { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.hero-title    { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-hero);    line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 var(--s-5); text-wrap: balance; }
.display-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.03em;  margin: 0 0 var(--s-5); text-wrap: balance; }
.lead          { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-70); max-width: 60ch; }
.eyebrow       { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--tracking-loose); text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-3); display: inline-block; }
.muted         { color: var(--muted); }
.small         { font-size: var(--fs-small); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section  { padding-block: clamp(64px, 8vw, 128px); }
.section--tight  { padding-block: clamp(48px, 5vw, 80px); }
.section--paper  { background: var(--paper); }
.section--alt    { background: var(--surface-alt); }
.section--dark   { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.grid-3--keep-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3.grid-3--keep-2 { grid-template-columns: 1fr; }
}

/* ---------- 5. Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(249, 248, 245, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease-out-cubic),
              border-color var(--dur-med) var(--ease-out-cubic);
}
.header.is-scrolled {
  background: rgba(249, 248, 245, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; font-family: var(--font-display); letter-spacing: var(--tracking-normal); font-size: 1.05rem; }
.brand img { width: 40px; height: auto; }
.brand-text { line-height: 1; }
.brand-text small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-list { display: flex; align-items: center; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.nav-list a { font-size: 0.95rem; color: var(--ink-70); font-weight: 500; padding: 6px 2px; position: relative; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-cta { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav-tel { display: none; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-full); transition: border-color var(--dur-fast); }
.nav-tel:hover { text-decoration: none; border-color: var(--ink); }
.nav-tel svg { width: 14px; height: 14px; color: var(--accent); }
@media (min-width: 720px) { .nav-tel { display: inline-flex; } }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: transform var(--dur-fast) var(--ease-out-cubic); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform var(--dur-fast) var(--ease-out-cubic), top var(--dur-fast); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-6);
    border-bottom: 1px solid var(--line);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease-out-quart), opacity var(--dur-med), visibility var(--dur-med);
  }
  .nav-list.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-list a { display: block; padding: var(--s-4) 0; font-size: 1.1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--accent); }
  .nav-cta.is-mobile { display: none; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease-out-cubic),
              background var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast),
              box-shadow var(--dur-fast);
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary  { background: var(--ink); color: var(--paper); }
.btn-primary:hover  { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-10); }
.btn-secondary:hover { border-color: var(--ink); background: var(--paper); }
.btn-ghost { padding: 12px 4px; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-lg { padding: 18px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Arrow that slides on hover */
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out-cubic); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 7. Hero (Karussell zentral, Logo mittig groß) ---------- */
.hero {
  padding-top: calc(var(--header-h) + var(--s-9));
  padding-bottom: clamp(64px, 8vw, 128px);
  position: relative;
  overflow: hidden;
}

/* -------- Hero variant: full carousel with centered logo -------- */
.hero-carousel {
  position: relative;
  min-height: min(92vh, 900px);
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: var(--s-9);
  padding-inline: var(--gutter);
  color: var(--paper);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--ease-out-cubic);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: kenburns 12s ease-out both;
}
.hero-slide.is-active img { animation-play-state: running; }
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.09); }
}
.hero-scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,18,21,0.55) 0%, rgba(16,18,21,0.35) 40%, rgba(16,18,21,0.75) 100%);
}
.hero-scrim::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(16,18,21,0.15) 0%, rgba(16,18,21,0.55) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
  text-align: center;
  padding-block: var(--s-6);
}
.hero-logo {
  display: block;
  margin: 0 auto var(--s-7);
  width: clamp(140px, 18vw, 240px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.35));
}
.hero-carousel .hero-meta { justify-content: center; margin-bottom: var(--s-5); }
.hero-carousel .chip {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-color: rgba(255,255,255,0.22);
}
.hero-carousel .chip-dot { box-shadow: 0 0 0 4px rgba(46,125,50,.25); }

.hero-carousel .hero-title {
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  font-size: clamp(2.25rem, 4.4vw + 0.5rem, 4.25rem);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-4);
}
.hero-carousel .lead {
  color: rgba(255,255,255,0.9);
  margin-inline: auto;
  max-width: 56ch;
}
.hero-carousel .hero-ctas { justify-content: center; margin-top: var(--s-7); }
.hero-carousel .btn-secondary {
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.hero-carousel .btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.8); }
.hero-carousel .btn-primary { background: var(--paper); color: var(--ink); }
.hero-carousel .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }

/* Carousel controls */
.hero-dots {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 32px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  transition: background var(--dur-fast), width var(--dur-med) var(--ease-out-cubic);
}
.hero-dot.is-active { background: var(--paper); width: 48px; }
.hero-dot:hover { background: rgba(255,255,255,0.7); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--paper);
  z-index: 2;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.hero-arrow:hover { background: rgba(255,255,255,0.24); }
.hero-arrow.prev { left: clamp(12px, 3vw, 32px); }
.hero-arrow.next { right: clamp(12px, 3vw, 32px); }
.hero-arrow svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .hero-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img { animation: none; transform: scale(1); }
  .hero-slide { transition: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-meta { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--ink-70);
  font-weight: 500;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.chip-stars { color: var(--accent); letter-spacing: 1px; }

.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  transform: translateY(0);
  will-change: transform;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out-quart);
}
.hero-visual:hover img { transform: scale(1.03); }
.hero-badge {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  box-shadow: var(--shadow-2);
}
.hero-badge strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.hero-badge .stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }
.hero-badge small { color: var(--muted); font-size: 0.78rem; }

/* USP strip below hero */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: var(--s-9);
}
.usp {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: 0.95rem;
}
.usp svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.usp strong { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.usp span   { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
@media (max-width: 900px) { .usp-strip { grid-template-columns: repeat(2,1fr); gap: var(--s-5); } }
@media (max-width: 480px) { .usp-strip { grid-template-columns: 1fr; } }

/* ---------- 8. Section head ---------- */
.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-70); font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- 9. Bento (services) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--s-4);
}
.bento-item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--dur-med) var(--ease-out-quart),
              box-shadow var(--dur-med),
              border-color var(--dur-med);
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--ink-10); }
.bento-item h3 { margin-bottom: var(--s-2); }
.bento-item p  { color: var(--ink-70); font-size: 0.95rem; margin: 0; }
.bento-item .bento-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--s-5); }
.bento-item .bento-icon svg { width: 24px; height: 24px; }
.bento-cta { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.bento-cta .arrow { transition: transform var(--dur-fast) var(--ease-out-cubic); }
.bento-item:hover .bento-cta .arrow { transform: translateX(3px); color: var(--accent); }

.bento-item--wide { grid-column: span 4; }
.bento-item--tall { grid-column: span 2; grid-row: span 2; }
.bento-item--sq   { grid-column: span 2; }
.bento-item--img  { padding: 0; }
.bento-item--img img { width: 100%; height: 100%; object-fit: cover; }
.bento-item--img .bento-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: var(--s-6);
  background: linear-gradient(180deg, transparent 40%, rgba(16,18,21,.75) 100%);
  color: var(--paper);
}
.bento-item--img .bento-overlay h3 { color: var(--paper); margin: 0; }
.bento-item--img .bento-overlay p  { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--wide, .bento-item--tall, .bento-item--sq { grid-column: span 2; grid-row: span 1; }
  .bento-item { min-height: 220px; }
}

/* ---------- 10. Before/After slider ---------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--ink);
  box-shadow: var(--shadow-2);
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after  { clip-path: inset(0 0 0 var(--pos, 50%)); transition: clip-path var(--dur-fast) linear; }
.ba.is-dragging .ba-after { transition: none; }
.ba-label {
  position: absolute;
  top: var(--s-4);
  padding: 6px 12px;
  background: rgba(16,18,21,0.7);
  color: var(--paper);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.ba-label--before { left: var(--s-4); }
.ba-label--after  { right: var(--s-4); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--paper);
  left: var(--pos, 50%);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  pointer-events: none;
  transition: transform var(--dur-fast) var(--ease-out-cubic);
}
.ba:hover .ba-knob { transform: translate(-50%, -50%) scale(1.06); }
.ba-knob svg { width: 20px; height: 20px; color: var(--ink); }

/* ---------- 11. Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--dur-med) var(--ease-out-quart), box-shadow var(--dur-med);
}
.testi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.testi-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.testi blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  quotes: "„" "\"" "‚" "'";
}
.testi blockquote::before { content: open-quote; margin-right: 1px; }
.testi blockquote::after  { content: close-quote; margin-left: 1px; }
.testi-person { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line-soft); }
.testi-person img { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-alt); }
.testi-person strong { font-size: 0.9rem; }
.testi-person span { color: var(--muted); font-size: 0.8rem; display: block; }

/* Rating hero panel */
.rating-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.rating-panel h2 { color: var(--paper); }
.rating-panel p  { color: rgba(255,255,255,.75); }
.rating-num { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.rating-stars { color: var(--accent); font-size: 1.6rem; letter-spacing: 6px; margin: var(--s-3) 0; }
.rating-desc small { color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
@media (max-width: 720px) { .rating-panel { grid-template-columns: 1fr; text-align: left; } }

/* ---------- 12. Gallery / cards ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.gcard {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  cursor: zoom-in;
}
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out-quart); }
.gcard:hover img { transform: scale(1.05); }
.gcard-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(180deg, transparent, rgba(16,18,21,.7));
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-med) var(--ease-out-cubic), transform var(--dur-med) var(--ease-out-cubic);
}
.gcard:hover .gcard-caption, .gcard:focus-visible .gcard-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16,18,21,.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.lightbox.is-open { display: flex; animation: fade-in var(--dur-med) var(--ease-out-cubic); }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--paper);
  display: grid; place-items: center;
  transition: background var(--dur-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--paper);
  display: grid; place-items: center;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 13. Trennwand stepped-grid ---------- */
.steps { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.step { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-alt); }
.step img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.step-num {
  position: absolute; top: var(--s-3); left: var(--s-3);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  font-family: var(--font-display);
}
.step-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-4);
  background: linear-gradient(180deg, transparent, rgba(16,18,21,.75));
  color: var(--paper); font-size: 0.85rem;
}
/* First large, others smaller — asymmetric */
.step:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.step:nth-child(2) { grid-column: span 4; }
.step:nth-child(3) { grid-column: span 3; }
.step:nth-child(4) { grid-column: span 4; }
.step:nth-child(5) { grid-column: span 3; }
.step:nth-child(6) { grid-column: span 12; grid-row: span 2; }
.step:nth-child(6) img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { grid-column: span 1 !important; grid-row: span 1 !important; }
  .step:nth-child(6) { grid-column: span 2 !important; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(6) { grid-column: span 1 !important; }
}

/* ---------- 14. Process (Ablauf) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; }
.process-item {
  padding: var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}
.process-item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.process-item h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.process-item p  { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- 15. Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-full { grid-column: span 2; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .field.field-full { grid-column: span 1; } }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.field small { font-size: 0.75rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,18,21,0.06);
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field.has-error input, .field.has-error textarea { border-color: #B4271A; }
.field.has-error small { color: #B4271A; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field-check label { font-size: 0.85rem; color: var(--ink-70); line-height: 1.4; }
.form-status { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: 0.9rem; }
.form-status.ok  { background: rgba(46,125,50,.1); color: var(--success); }
.form-status.err { background: rgba(180,39,26,.1); color: #B4271A; }

/* Kontakt page 2-col grid */
.kontakt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* ---------- 16. FAQ (accordion) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform var(--dur-med) var(--ease-out-cubic);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: var(--s-3); color: var(--ink-70); max-width: 70ch; }

/* ---------- 17. Info blocks (contact) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.info-block h3 { font-size: 1.1rem; margin-bottom: var(--s-3); }
.info-block p, .info-block li { font-size: 0.95rem; margin: 0 0 4px; color: var(--ink-70); }
.info-block ul { list-style: none; padding: 0; margin: 0; }
.info-block .info-value { color: var(--ink); font-weight: 500; font-size: 1.05rem; margin-top: 6px; display: block; }
.info-block a { color: var(--ink); }
.info-block a:hover { color: var(--accent); }
.info-block .icon-box {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: var(--s-4);
}
.info-block .icon-box svg { width: 20px; height: 20px; }
.hours-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.closed span:last-child { color: var(--muted); }

/* ---------- 18. Map ---------- */
.map-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--surface-alt);
  margin-top: var(--s-6);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--s-5);
  text-align: center;
  background: var(--surface-alt);
}
.map-consent p { max-width: 42ch; margin-bottom: var(--s-4); color: var(--ink-70); font-size: 0.95rem; }
.map-consent.is-hidden { display: none; }

/* ---------- 19. CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.cta-banner h2 { color: var(--paper); margin: 0 0 var(--s-3); }
.cta-banner p  { color: rgba(255,255,255,.7); margin: 0; }
.cta-banner .btn-primary { background: var(--paper); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.cta-banner-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .cta-banner-actions { justify-content: flex-start; }
}

/* ---------- 20. Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: var(--s-10) 0 var(--s-6);
  margin-top: var(--s-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.footer h4 { color: var(--paper); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-4); }
.footer a  { color: rgba(255,255,255,.7); font-size: 0.9rem; display: block; padding: 4px 0; }
.footer a:hover { color: var(--paper); text-decoration: none; }
.footer p  { font-size: 0.9rem; color: rgba(255,255,255,.7); }
.footer .brand-text { color: var(--paper); }
.footer .brand-text small { color: rgba(255,255,255,.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { display: inline-block; padding: 0; margin-right: var(--s-4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- 21. Two-col text/image (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-alt); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-quart); }
.split-media:hover img { transform: scale(1.03); }

/* value list */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value { display: flex; gap: var(--s-3); }
.value .icon-box { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.value .icon-box svg { width: 18px; height: 18px; }
.value h4 { font-family: var(--font-sans); font-size: 1rem; margin: 0 0 4px; letter-spacing: 0; }
.value p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Numeric strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-5); }
.stat { border-left: 2px solid var(--accent); padding-left: var(--s-4); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.stat span { font-size: 0.85rem; color: var(--muted); margin-top: 4px; display: block; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2,1fr); gap: var(--s-6); } }

/* ---------- Parallax ---------- */
img.parallax-media { will-change: transform; }
.split-media img.parallax-media,
.hero-visual img.parallax-media {
  width: 100%;
  height: 112%;
  margin-top: -6%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .split-media img.parallax-media,
  .hero-visual img.parallax-media { height: 100%; margin-top: 0; transform: none !important; }
}

/* Sticky-stack showcase (used on selected key sections) */
.stack {
  position: relative;
}
.stack .stack-panel {
  position: sticky;
  top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stack .stack-panel:nth-child(even) { background: var(--surface); }
.stack .stack-panel:nth-child(odd)  { background: var(--paper); }
.stack .stack-panel.stack-dark      { background: var(--ink); color: var(--paper); }
.stack .stack-panel.stack-dark h2   { color: var(--paper); }
.stack .stack-inner { width: 100%; padding-block: var(--s-8); }
@media (max-width: 900px) {
  .stack .stack-panel { position: relative; top: 0; min-height: auto; padding-block: var(--s-9); }
}
@media (prefers-reduced-motion: reduce) {
  .stack .stack-panel { position: relative; top: 0; min-height: auto; }
}

/* ---------- 22. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out-quart), transform var(--dur-slow) var(--ease-out-quart); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 60ms; }
.reveal-2 { transition-delay: 120ms; }
.reveal-3 { transition-delay: 180ms; }
.reveal-4 { transition-delay: 240ms; }
.reveal-5 { transition-delay: 300ms; }
.reveal-6 { transition-delay: 360ms; }

/* ---------- 23. Legal pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--s-8); margin-bottom: var(--s-4); }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink-70); font-size: 1rem; line-height: 1.7; }
.prose ul { padding-left: 1.4em; margin: 0 0 var(--s-4); }
.prose a  { color: var(--accent); }
.prose strong { color: var(--ink); }
.notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-6);
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- 24. Skip link + a11y ---------- */
.skip { position: absolute; left: -9999px; top: 0; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 300; }
.skip:focus { left: 12px; top: 12px; text-decoration: none; }

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-visual:hover img,
  .split-media:hover img,
  .gcard:hover img { transform: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .header, .footer, .cta-banner, .btn, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
