/* ==========================================================================
   Feinschliff, Design 2
   Dunkel und hochwertig. Grund: tiefes Graphit mit einem Hauch Tannengrün
   (Werkstatt, Maschinenlack). Akzent: helles Schleifholz, sparsam eingesetzt.
   Schrift: Bricolage Grotesque (schmal, kräftig) für Überschriften,
   IBM Plex Sans für Text.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-variable.woff') format('woff');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/ibm-plex-sans-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0e1211;
  --bg-2: #131917;
  --bg-3: #1a211e;
  --line: rgba(236, 238, 232, 0.1);
  --line-strong: rgba(236, 238, 232, 0.2);
  --text: #eceee8;
  --muted: #9aa39d;
  --faint: #6f7872;
  --accent: #d9c7a3;
  --accent-hover: #e9dcc1;
  --on-accent: #12160f;

  --font-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 50;
  --z-menu: 60;
  --z-loader: 100;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a, button, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

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

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- Typo ---- */

.section-title {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 95%;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 18ch;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { text-decoration-color: var(--accent); color: var(--accent-hover); }

/* ---- Buttons ---- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3.1rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 92%;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.35s var(--ease);
}
.btn-pill:hover { background: var(--accent-hover); }
.btn-pill:active { transform: translateY(1px) scale(0.98); }
.btn-pill:disabled { opacity: 0.6; cursor: progress; }
.btn--small { min-height: 2.6rem; padding: 0.55rem 1.15rem; font-size: 0.95rem; }

/* ---- Loader ---- */

.loader { display: none; }
.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-content: center;
  gap: 1.2rem;
  background: var(--bg);
}
.loader-logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 84%;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.loader-bar {
  height: 2px;
  width: 9rem;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: loadbar 1s var(--ease) forwards;
}
@keyframes loadbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Header ---- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
  padding-inline: var(--gutter);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(14, 18, 17, 0.92);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  @media (hover: hover) and (min-width: 900px) {
    .site-header.is-scrolled {
      background: rgba(14, 18, 17, 0.72);
      backdrop-filter: blur(14px) saturate(1.2);
    }
  }
}

.logo-link {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 660;
  font-stretch: 92%;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.logo-mark { width: 26px; height: 26px; flex: none; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.header-cta { display: none; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: 6.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2rem;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav ul { display: grid; gap: 0.9rem; }
.mobile-nav nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 84%;
  font-size: 2.3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mobile-nav__phone { margin-top: auto; color: var(--muted); }
.site-header { z-index: 70; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) clamp(1.5rem, 4svh, 3rem);
  overflow: hidden;
}
.hero::before {
  /* leichtes Licht von rechts oben, wie eine Werkstattlampe */
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(217, 199, 163, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 4svh, 3rem);
  align-items: center;
}

.hero-kicker {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 640;
  font-stretch: 94%;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 13ch;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.75rem;
}

.hero-figure { width: 100%; }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 847;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 20px 60px -40px rgba(217, 199, 163, 0.25);
}
.hero-visual canvas { display: block; width: 100%; height: 100%; }

.hero-visual__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-size: 0.95rem;
}
.hero-visual__labels .hv-label {
  --lit: 0;
  position: relative;
  padding-bottom: 0.35rem;
  color: color-mix(in srgb, var(--text) calc(40% + var(--lit) * 60%), var(--faint));
  transition: color 0.2s linear;
}
.hero-visual__labels .hv-label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--lit));
  transform-origin: left;
}
.hero-visual__labels .hv-label:last-child::after { transform-origin: right; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

/* Handy: Hero kompakt, damit alles auf einen Bildschirm passt */
@media (max-width: 899px) {
  .hero { align-items: flex-start; padding-top: clamp(5.5rem, 13svh, 7rem); }
  .hero-title { font-size: clamp(2.05rem, 8.6vw, 3rem); max-width: 14ch; }
  .hero-sub { font-size: 1rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.4rem; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .hero-sub { display: none; }
}

/* Hero-Festhalten am Handy per CSS (siehe main.js) */
html.hero-sticky .hero-track { height: 250svh; position: relative; }
html.hero-sticky .hero { position: sticky; top: 0; height: auto; min-height: 100svh; }

/* ---- Abschnitte allgemein ---- */

.services,
.work,
.pricing,
.about-teaser,
.contact {
  padding-block: var(--section-pad);
}
.work,
.about-teaser { background: var(--bg-2); }

/* ---- Leistungen ---- */

.services .section-title { margin-bottom: clamp(3rem, 7vw, 6rem); }

.service-name {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 95%;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  hyphens: manual;
}
.service-lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.08rem;
}
.service-points {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.55rem;
}
.service-points li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.service-points li::before {
  content: '';
  flex: none;
  width: 0.9rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-0.3em);
}
.service-price {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  color: var(--muted);
}
.service-price strong {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 90%;
  font-size: 1.5rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.service-price .text-link { margin-left: auto; }

.service--web {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.service-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(217, 199, 163, 0.1), transparent 70%),
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
}
.service-model {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.service-pair {
  margin-top: clamp(4rem, 9vw, 7.5rem);
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .service--web { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; }
  .service-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .service-pair .service { padding-top: 3rem; }
  .service-pair .service:first-child { padding-right: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--line); }
  .service-pair .service:last-child { padding-left: clamp(2rem, 4vw, 4rem); }
}

/* ---- Referenzen ---- */

.work-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.work-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.work-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease);
}
.work-item:hover .work-shot img { transform: scale(1.02); }

.work-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.work-name {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 88%;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}
.work-desc { color: var(--muted); font-size: 0.95rem; }
.tag {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0.05em 0.5em;
  border-radius: var(--radius-sm);
  background: rgba(217, 199, 163, 0.12);
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 500;
}

@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-item--lead { grid-column: 1 / -1; }
  .work-item--lead .work-shot { aspect-ratio: 21 / 10; }
  .work-item--lead .work-name { font-size: 1.7rem; }
}

/* ---- Preise ---- */

.pricing-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.pricing-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.price-calc {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
}
.price-calc__label { color: var(--muted); }
.price-calc__amount {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: clamp(4.2rem, 10vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-calc__currency {
  margin-left: 0.12em;
  font-size: 0.45em;
  color: var(--muted);
  letter-spacing: 0;
}
.price-calc__base { margin-top: 1rem; color: var(--muted); max-width: 44ch; }

.price-calc__options { margin-top: 1.5rem; }
.price-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.price-toggle:last-child { border-bottom: 1px solid var(--line); }
.price-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.price-toggle__box {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  display: grid;
  place-content: center;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.price-toggle__box::after {
  content: '';
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.price-toggle input:checked + .price-toggle__box { background: var(--accent); box-shadow: none; }
.price-toggle input:checked + .price-toggle__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.price-toggle input:focus-visible + .price-toggle__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.price-toggle:hover .price-toggle__box { box-shadow: inset 0 0 0 1.5px var(--accent); }
.price-toggle__delta { color: var(--muted); font-variant-numeric: tabular-nums; }
.price-toggle input:checked ~ .price-toggle__delta { color: var(--accent); }

.price-calc__note { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

.price-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.price-list > div:first-child { padding-top: 0; }
.price-list dt { color: var(--muted); max-width: 30ch; }
.price-list dt small { display: block; margin-top: .2rem; font-size: .85em; color: var(--faint); }
.price-list dd {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 90%;
  font-size: 1.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-side__note { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; max-width: 40ch; }

@media (min-width: 900px) {
  .pricing-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; }
  .price-side { padding-top: 0.5rem; }
}

/* ---- Über mich (Startseite) ---- */

.about-teaser__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-teaser__photo {
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-teaser__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__text .text-link { margin-top: 1.75rem; }

@media (min-width: 900px) {
  .about-teaser__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; }
  .about-teaser__photo { max-width: none; }
}

/* ---- Kontakt ---- */

.contact-inner {
  display: grid;
  gap: 3.5rem;
}
.contact-phone {
  display: inline-block;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--accent-hover); }
.contact-mail {
  display: block;
  width: fit-content;
  margin-top: 0.9rem;
  font-size: 1.15rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}
.contact-mail:hover { text-decoration-color: var(--accent); }
.contact-area { margin-top: 0.9rem; color: var(--muted); }

.contact-form {
  display: grid;
  gap: 1.35rem;
  align-content: start;
}
.form-row { display: grid; gap: 0.45rem; }
.form-row--split { grid-template-columns: 1fr; gap: 1.35rem; }
.form-row--split > div { display: grid; gap: 0.45rem; }
.contact-form label { font-size: 0.95rem; color: var(--muted); }
.contact-form label span { color: var(--faint); }
.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  transition: box-shadow 0.2s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:hover,
.contact-form textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.contact-form textarea { resize: vertical; min-height: 8rem; }

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9rem;
  cursor: pointer;
}
.form-consent input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.form-consent a { text-decoration: underline; text-underline-offset: 0.2em; color: var(--text); }
.contact-form .btn-pill { justify-self: start; }
.form-status { min-height: 1.5em; color: var(--muted); font-size: 0.95rem; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 640px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; }
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.site-footer__nav a,
.site-footer__legal a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.site-footer__nav a:hover,
.site-footer__legal a:hover { color: var(--text); }
.site-footer__legal { display: flex; gap: 1.6rem; }
.site-footer__small {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  color: var(--faint);
  font-size: 0.85rem;
}
.site-footer__small a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 900px) {
  .site-footer__legal { margin-left: auto; }
}

/* ---- Unterseiten: Über mich, Impressum, Datenschutz ---- */

.page {
  padding-top: calc(72px + clamp(3rem, 8vw, 6rem));
  padding-bottom: var(--section-pad);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 640;
  font-stretch: 94%;
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 16ch;
}
.about-inner {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  gap: 2.5rem;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 60ch; color: var(--muted); }
.about-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}

.legal-inner { max-width: 760px; }
.legal-block { margin-top: 2.5rem; }
.legal-block h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 88%;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.legal-block p,
.legal-block li { color: var(--muted); margin-bottom: 0.6rem; }
.legal-block ul { list-style: disc; padding-left: 1.2rem; }
.legal-block a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Einblendungen (nur Überschriften und Blöcke, sparsam) ---- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.reveal-text.is-visible .word-inner { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .word-inner { opacity: 1; transform: none; transition: none; }
  .mobile-nav, .btn-pill, .work-shot img { transition: none; }
  .loader-bar::after { animation: none; }
}

/* ---- Branchen-Umschalter und Wischen ---- */
.hero-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
}
.hero-switch button {
  border: 0;
  background: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.hero-switch button:hover { color: var(--text); }
.hero-switch button[aria-pressed='true'] { background: var(--bg-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }

.hero-visual { cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hero-visual.is-dragging { cursor: grabbing; }
.hero-visual__labels { align-items: baseline; gap: 1rem; }
/* (Hinweistext ersetzt durch Knopf) */
.hero-visual__hint {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}
@media (max-width: 899px) {
  .hero-switch { margin-bottom: 0.7rem; }
  .hero-switch button { padding: 0.4rem 0.8rem; font-size: 0.88rem; }
  /* (Hinweistext ersetzt durch Knopf) */
.hero-visual__hint { display: none; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .hero-kicker { display: none; }
}

/* ---- Schleif-Spur über den Abschnitts-Überschriften ---- */
.section-title { position: relative; }
.section-title[data-sheen]::after {
  content: attr(data-sheen);
  position: absolute;
  inset: 0;
  color: transparent;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, transparent 41%, #d9c7a3 46.5%, #a8916a 50%, #d9c7a3 53.5%, transparent 59%, transparent 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
}
.section-title.is-sheen::after { animation: sheen 1.7s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
@keyframes sheen {
  0% { background-position: 120% 0; opacity: 1; }
  85% { opacity: 1; }
  100% { background-position: -20% 0; opacity: 0; }
}

/* ---- Formular: Fehler und Bestätigung ---- */
.contact-form [aria-invalid='true'] { box-shadow: inset 0 0 0 1.5px #e0907a !important; }
.form-status[data-state='error'] { color: #e8a896; }
.contact-form.is-sent > :not(.form-done) { display: none; }
.form-done {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--muted);
}
.form-done:focus { outline: none; }
.form-done__title {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 95%;
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ---- 404 ---- */
.notfound { min-height: 100svh; display: grid; align-content: center; }
.notfound .page-title { max-width: 14ch; }
.notfound-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.loader-logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.logo-mark--big { width: 38px; height: 38px; }

/* ---- Griff auf der Trennlinie + Knopf "Selbst vergleichen" ---- */
.hero-handle {
  position: absolute;
  top: 50%;
  left: var(--seam, 50%);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 4px rgba(14, 18, 17, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.hero-visual.has-seam .hero-handle { opacity: 1; transform: none; }
.hero-visual.is-dragging .hero-handle { transform: scale(1.12); }
.hero-visual.is-hinting .hero-handle { animation: handle-hint 1.4s var(--ease) 0.35s 2; }
@keyframes handle-hint {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 18, 17, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(217, 199, 163, 0.28), 0 10px 24px rgba(0, 0, 0, 0.45); }
}

.compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 199, 163, 0.14);
  box-shadow: inset 0 0 0 1px rgba(217, 199, 163, 0.45);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.compare-btn:hover { background: var(--accent); color: var(--on-accent); }
.compare-btn:active { transform: scale(0.97); }
.hero-visual__labels { align-items: center; }
.hero-visual__labels .hv-label { align-self: center; }
@media (max-width: 899px) {
  .compare-btn { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual.is-hinting .hero-handle { animation: none; }
}

/* Vorher/Nachher als Knöpfe */
.hv-label {
  border: 0;
  background: none;
  font-size: 0.95rem;
  padding: 0.35rem 0 0.35rem;
  cursor: pointer;
}
.hv-label:hover { color: var(--text); }

/* Handy: 3D-Computer kleiner und ohne Touch-Bedienung */
@media (max-width: 899px), (hover: none) {
  .service-visual { aspect-ratio: 4 / 3; max-width: 520px; }
  .service-model { pointer-events: none; }
}

/* Handy: Startbereich straffen, damit alles auf einen Bildschirm passt */
@media (max-width: 899px) {
  .hero { padding-top: 5.25rem; padding-bottom: 1.25rem; }
  .hero-kicker { font-size: 0.88rem; margin-bottom: 0.6rem; }
  .hero-sub { display: none; }
  .hero-actions { margin-top: 1.1rem; gap: 0.75rem 1.25rem; }
  .hero-actions .btn-pill { min-height: 2.8rem; padding: 0.65rem 1.2rem; font-size: 0.98rem; }
  .hero-actions .text-link { font-size: 0.95rem; white-space: nowrap; }
  .hero-grid { gap: 1.4rem; }
  .hero-visual__labels { margin-top: 0.6rem; }
}
