/* ==========================================================================
   Küchen Ruhl · Küchenstudio Zweibrücken
   style.css – ohne Framework, ohne externe Abhängigkeiten
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, SIL Open Font License) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
}

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Farben – warmes Papier, dazu Signaturblau und Anthrazit aus dem Logo */
  --paper: #f4efe6;
  --paper-2: #ebe4d8;
  --paper-3: #ddd3c3;
  --ink: #1c1b18;
  --ink-2: #47443d;
  --ink-3: #6b665d;
  --line: rgb(28 27 24 / .12);
  --line-strong: rgb(28 27 24 / .26);
  --brand: #1b65b9;      /* Signaturblau */
  --brand-2: #154f93;    /* Signaturblau, dunkler (Hover) */
  --brand-soft: #5c9ce6; /* Signaturblau auf dunklem Grund */
  --coal: #262324;       /* Anthrazit für dunkle Flächen */
  --coal-2: #3a3637;
  --logo-ink: #393536;   /* Anthrazit der Logo-Buchstaben */
  --cream: #f8f4ec;
  --cream-2: #cbc7c2;
  --line-light: rgb(248 244 236 / .18);
  --clay: #a84f22;       /* nur für die Platzhalter-Hinweise auf den Rechtsseiten */

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Optische Größe von Fraunces, für sämtliche Überschriften gleich:
     144 hat ein fast geschlossenes „e“ mit winzigem Auge, 72 das offene, breite „e“. */
  --opsz: 72;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --header-h: 4.5rem;
  --r-sm: .875rem;
  --r-md: 1.5rem;
  --r-lg: 2rem;
  --r-xl: 2.75rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-float: 0 1.25rem 3rem rgb(28 27 24 / .16), 0 0 0 1px var(--line);
}

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* feines Papierkorn */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size: 220px 220px;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

::selection { background: var(--brand); color: var(--cream); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.styles :focus-visible, .contact :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: var(--brand-soft); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }

/* ---------- 3. Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" var(--opsz);
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.125rem, 1.1rem + 3.4vw, 4.25rem);
  line-height: 1.02;
}
h3 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--brand-soft); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 1em; }

/* ---------- 4. Schaltflächen ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--cream);
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3.25rem;
  padding: .8em 1.5em;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 1.125em; height: 1.125em; }
.btn .icon--arrow { transition: transform .35s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); }
.btn--ghost:hover { background: rgb(28 27 24 / .06); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--coal); }
.btn--light:hover { background: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--cream); --btn-line: rgb(248 244 236 / .38); }
.btn--outline:hover { background: rgb(248 244 236 / .1); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: inherit;
  transition: background-color .25s;
}
.icon-btn .icon { width: 1.375rem; height: 1.375rem; }
.icon-btn:hover { background: rgb(28 27 24 / .08); }

/* ---------- 5. Logo & Kopfzeile ---------- */
/* Das Logo steckt als SVG-Symbol in jeder Seite; seine Farben kommen aus den Variablen. */
.logo {
  display: inline-flex;
  flex: none;
  text-decoration: none;
}
.logo-img {
  --logo-script: var(--brand);
  --logo-letters: var(--logo-ink);
  display: block;
  width: auto;
  height: 2.75rem;
  aspect-ratio: 914 / 381;
}
.logo-img--inverse { --logo-script: var(--brand-soft); --logo-letters: var(--cream); }
.footer__brand .logo-img { height: 3.25rem; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  opacity: 0;
  transition: opacity .35s;
}
.header.is-scrolled::before { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding-inline: var(--gutter);
}
.header__actions { display: flex; align-items: center; gap: .4rem; }
.header__cta { display: none; min-height: 2.75rem; padding: .65em 1.3em; font-size: .9375rem; }
.header__cta--always { display: inline-flex; }

.nav { display: none; gap: 2.25rem; }
.nav a {
  position: relative;
  padding: .5rem 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .15rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 1024px) {
  .header .logo-img { height: 3rem; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__call, [data-menu-toggle] { display: none; }
}

/* ---------- 6. Mobilmenü ---------- */
.menu {
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--coal);
  color: var(--cream);
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity .4s;
}
.menu:not([open]) { display: none; }
.menu.is-open { opacity: 1; }
.menu::backdrop { background: rgb(28 27 24 / .4); opacity: 0; transition: opacity .4s; }
.menu.is-open::backdrop { opacity: 1; }
.menu .icon-btn:hover { background: rgb(248 244 236 / .1); }

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.menu__nav {
  display: grid;
  align-content: center;
  gap: .25rem;
  padding-inline: var(--gutter);
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .3rem 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz);
  font-size: clamp(2.25rem, 8.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.menu__nav a span {
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand-soft);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }

.menu__foot {
  display: grid;
  gap: .4rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line-light);
  font-weight: 600;
}
.menu__foot a { text-decoration: none; font-size: 1.0625rem; }
.menu__foot p { font-size: .9375rem; color: var(--cream-2); }

/* ---------- 7. Hero ---------- */
.hero {
  display: grid;
  /* Freie Höhe geht allein an den Text (wird darin mittig gestellt) – das Bild behält seine Proportion.
     Würden beide Zeilen gestreckt, errechnet der Browser die Bildbreite aus der Höhe und es läuft über. */
  grid-template-rows: minmax(min-content, 1fr) auto;
  padding-top: var(--header-h);
  min-height: 100vh;
  min-height: 100svh;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 2.4vh, 1.75rem);
  padding: 1.5rem var(--gutter) 2rem;
}
.hero__title {
  font-size: clamp(2.875rem, 1rem + 9.5vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.hero__title em { color: var(--brand); font-weight: 350; }
.hero__lede { max-width: 32em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-2);
}
.fact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fact .icon { color: var(--brand); }
.fact a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.fact a:hover { color: var(--ink); border-color: currentColor; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--brand);
  color: var(--cream);
  font-size: .8125rem;
  font-weight: 700;
}
.status::before {
  content: "";
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: #8fe3b0;
  box-shadow: 0 0 0 3px rgb(143 227 176 / .25);
}
.status.is-closed { background: var(--paper-3); color: var(--ink); }
.status.is-closed::before { background: currentColor; box-shadow: none; }

.hero__media {
  position: relative;
  width: calc(100% - var(--gutter));
  margin: 0 0 0 var(--gutter);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-xl) 0 0 0;
  background: #bcb6aa;
}
/* Das Bild füllt den Rahmen, ohne dessen Höhe über sein eigenes Seitenverhältnis mitzubestimmen */
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  .hero__content { padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 4vw, 5rem) 3rem var(--gutter); }
  .hero__title { font-size: clamp(4rem, 1rem + 6.2vw, 6.75rem); }
  .hero__media {
    width: auto;
    min-height: 32rem;
    margin-top: calc(var(--header-h) + .75rem);
    aspect-ratio: auto;
  }
  /* etwas mehr vom rechten Rand zeigen, damit der vierte Hocker vollständig bleibt */
  .hero__media img { object-position: 62% 50%; }
}

/* flache Displays (kleine Laptops): Hero kompakter, damit alles in den ersten Bildschirm passt */
@media (min-width: 1024px) and (max-height: 780px) {
  .hero__content {
    gap: 1rem;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }
  .hero__title { font-size: clamp(3.5rem, 1rem + 5.4vw, 6rem); }
  .hero__lede { font-size: 1.125rem; }
  .hero__facts { margin-top: .25rem; }
  .hero__media { margin-top: calc(var(--header-h) + .5rem); }
}

/* Hochkant-Tablets (schmaler als 5:6): Bild unter dem Text, wie auf dem Smartphone */
@media (min-width: 1024px) and (max-aspect-ratio: 5/6) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(min-content, 1fr) auto;
  }
  .hero__content { padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem; }
  .hero__media {
    width: calc(100% - var(--gutter));
    min-height: 0;
    margin: 0 0 0 var(--gutter);
    aspect-ratio: 3 / 2;
  }
  .hero__media img { object-position: 50% 50%; }
}

/* ---------- 8. Laufband ---------- */
.ticker {
  overflow: hidden;
  padding-block: .9rem;
  background: var(--coal);
  color: var(--cream);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz);
  font-style: italic;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.45rem);
  white-space: nowrap;
}
.ticker__list li::after {
  content: "";
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: var(--brand-soft);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 9. Studio ---------- */
.about__grid { display: grid; gap: 2rem; align-items: center; }
.about__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #c8c5bf;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body h2 { margin-bottom: 1.25rem; }
.about__body .prose { font-size: 1.0625rem; }

.checks { display: grid; gap: .9rem; margin-top: 2rem; font-weight: 600; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.checks__icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: .05rem;
  padding: .3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  stroke-width: 2.5;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 7vw, 8rem);
  }
}

/* ---------- 10. Leistungen ---------- */
.services { background: var(--paper-2); }

.section__head {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__head--split {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  max-width: none;
}
.section__head--split h2 { max-width: 14ch; }
.section__head--split .section__lede { max-width: 30em; }

.bento { display: grid; gap: 1rem; }
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
}
.bento__card p { margin-top: .5rem; color: var(--ink-2); font-size: .9375rem; }
.bento__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  color: var(--brand);
}
.bento__icon .icon { width: 1.375rem; height: 1.375rem; }

.bento__card--feature {
  min-height: 30rem;
  justify-content: flex-end;
  background: var(--coal);
  color: var(--cream);
}
.bento__card--feature picture { position: absolute; inset: 0; }
.bento__card--feature img { width: 100%; height: 100%; object-fit: cover; }
.bento__card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(26 22 23 / .93) 0%, rgb(26 22 23 / .62) 34%, rgb(26 22 23 / 0) 68%);
}
.bento__card--feature .bento__text { position: relative; z-index: 1; }
.bento__card--feature h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); }
.bento__card--feature p { max-width: 34em; color: var(--cream-2); font-size: 1rem; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(15.5rem, auto);
  }
  .bento__card--feature { grid-column: span 7; grid-row: span 2; min-height: 0; }
  .bento__card:not(.bento__card--feature) { grid-column: span 5; }
}

/* ---------- 11. Inspiration ---------- */
.styles {
  margin-inline: clamp(.5rem, 1.25vw, 1.25rem);
  border-radius: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--coal);
  color: var(--cream);
}
.styles .section__lede { color: var(--cream-2); }

.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--coal-2);
}
.tile--1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(16 14 15 / .84) 0%, rgb(16 14 15 / .38) 30%, rgb(16 14 15 / 0) 56%);
}
.tile figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: .2rem;
  padding: clamp(1rem, 2.4vw, 1.75rem);
}
.tile__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.tile__desc { display: none; font-size: .9375rem; color: var(--cream-2); }
.styles__note { margin-top: 1.5rem; font-size: .875rem; color: var(--cream-2); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover img { transform: scale(1.035); }
}
@media (min-width: 640px) {
  .mosaic { gap: 1rem; }
  .tile__name { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); }
  .tile__desc { display: block; max-width: 26em; }
}
@media (min-width: 1024px) {
  .section__head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; }
  /* Das Raster bekommt ein festes Höhenverhältnis, damit alle Kacheln einer Zeile gleich hoch sind */
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1.18fr 1fr;
    aspect-ratio: 1.25 / 1;
  }
  .tile, .tile--1 { aspect-ratio: auto; }
  .tile--1 { grid-column: span 7; }
  .tile--2 { grid-column: span 5; }
  .tile--3 { grid-column: span 3; }
  .tile--4 { grid-column: span 4; }
  .tile--5 { grid-column: span 5; }
}

/* ---------- 12. Ablauf ---------- */
.steps { display: grid; gap: 2.5rem; }
.step {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" var(--opsz);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  line-height: 1;
  color: var(--brand);
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: .9375rem; }
.process__foot { margin-top: clamp(3rem, 6vw, 5rem); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* ---------- 13. Kontakt ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
  padding-bottom: calc(clamp(5rem, 12vw, 10rem) + 2.5rem);
  background: var(--coal);
  color: var(--cream);
}
/* das „R“ der Signatur, sehr dezent, als Zeichen im Hintergrund */
.contact__mark {
  position: absolute;
  top: -5rem;
  right: -3rem;
  width: 30rem;
  height: auto;
  opacity: .07;
  pointer-events: none;
}
.contact h2 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 1rem + 6.6vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.contact__lede { max-width: 30em; margin-top: 1.5rem; color: var(--cream-2); }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.contact__grid dt {
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.contact__grid dd { font-size: 1.0625rem; line-height: 1.65; }
.contact__hint { color: var(--cream-2); }
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgb(248 244 236 / .38);
  transition: border-color .2s;
}
.contact__link:hover { border-color: currentColor; }

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .3rem;
  font-variant-numeric: tabular-nums;
}
.hours__row dd { color: var(--cream-2); }
.hours__row.is-today, .hours__row.is-today dd { color: var(--brand-soft); font-weight: 700; }

@media (min-width: 800px) {
  .contact__grid { grid-template-columns: 1.1fr 1.1fr .8fr; }
}

/* ---------- 14. Fußzeile ---------- */
.footer {
  position: relative;
  z-index: 1;
  margin-top: -2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--ink);
  color: var(--cream);
}
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand p { max-width: 22em; margin-top: 1.25rem; color: var(--cream-2); }
.footer__nav { display: grid; gap: .5rem; align-content: start; }
.footer__nav a { color: var(--cream-2); font-weight: 600; text-decoration: none; transition: color .2s; }
.footer__nav a:hover { color: var(--cream); }
.footer__nav address { color: var(--cream-2); }
.footer__title {
  margin-bottom: .5rem;
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .875rem;
  color: var(--cream-2);
}
.footer__legal a { color: var(--cream-2); text-decoration: none; }
.footer__legal a:hover { color: var(--cream); text-decoration: underline; }

@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}
/* Platz für die schwebende Aktionsleiste */
@media (width < 1024px) {
  .footer:not(.footer--plain) { padding-bottom: 4.75rem; }
}

/* ---------- 15. Aktionsleiste (mobil) ---------- */
.callbar {
  position: fixed;
  inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: .4rem;
  padding: .4rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  transform: translateY(150%);
  transition: transform .5s var(--ease-out);
}
.callbar.is-visible { transform: none; }
.callbar .btn { min-height: 3rem; padding: .7em 1em; font-size: .9375rem; }
.callbar .btn--ghost { --btn-line: transparent; background: rgb(28 27 24 / .07); }
.callbar .btn--ghost:hover { background: rgb(28 27 24 / .11); }
@media (min-width: 1024px) { .callbar { display: none; } }

/* ---------- 16. Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .hero__content > * { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .hero__media { animation: media-in 1.3s var(--ease-out) 150ms both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes media-in {
    from { opacity: 0; transform: translateY(20px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 17. Rechtsseiten (Impressum, Datenschutz) ---------- */
.footer--plain { margin-top: 0; }
.legal { padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) clamp(4rem, 8vw, 7rem); }
.legal__wrap { max-width: 46rem; }
.legal h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.02;
}
.legal h2 {
  margin: 2.5rem 0 .75rem;
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0;
}
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal ul + p { margin-top: .75em; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: .35em; }
.legal a { color: var(--brand); text-underline-offset: .18em; }
.legal address { padding: 1.5rem; border-radius: var(--r-md); background: var(--paper-2); line-height: 1.7; color: var(--ink); }
.legal .back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; font-weight: 700; text-decoration: none; color: var(--brand); }

/* deutlich sichtbare Platzhalter: vor Veröffentlichung ersetzen */
.placeholder {
  padding: .1em .4em;
  border-radius: .35em;
  background: color-mix(in srgb, var(--clay) 16%, transparent);
  color: #7c3410; /* dunkler als der Akzent, damit der Kontrast für kleine Schrift reicht */
  font-weight: 700;
}
.legal__note {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: .9375rem;
}

@media print {
  .header, .callbar, .menu, .skip-link, .back, .ticker { display: none !important; }
  body::before { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; }
  .legal { padding-block: 0; }
}
