/* ============================================================
   Maison Vivant – Stylesheet (mobile first)
   Farben & Schriften kommen als CSS-Variablen aus tokens.css,
   das beim Build aus site.config.mjs erzeugt wird.
   ============================================================ */

/* ---------- Abstände & Maße ---------- */
:root {
  --line: color-mix(in srgb, var(--c-taupe) 70%, transparent);
  --line-strong: var(--c-mushroom);
  --wrap-max: 82rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --header-h: 4.75rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Basis ---------- */
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-espresso);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 64em) { body { font-size: 1.125rem; } }

::selection { background: var(--c-sand); color: var(--c-espresso); }

:focus-visible {
  outline: 2px solid var(--c-espresso);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--c-espresso); color: var(--c-white);
  padding: .75rem 1.25rem; text-decoration: none; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.muted { color: var(--c-mushroom); }

/* ---------- Typografie ---------- */
.hero-title, .page-title, .section-title, .statement-text, .closing-title,
.project-name, .service-title, .step-title, .index-title, .benefit dt,
.footer-name, .specimen-display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-title {
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(1.875rem, 4.2vw, 2.875rem);
  line-height: 1.08;
  text-wrap: balance;
}
.section-title-small { font-size: clamp(1.5rem, 3vw, 2rem); }
.statement-text {
  font-size: clamp(1.625rem, 4vw, 2.75rem);
  font-style: italic;
  line-height: 1.22;
  text-wrap: pretty;
}
.statement-text-small { font-size: clamp(1.5rem, 3vw, 2.125rem); }
.page-lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.6;
  max-width: 36em;
  color: var(--c-espresso);
}
.prose > * + * { margin-top: 1.25em; }
.prose p { max-width: 38em; }
.prose h2 { font-family: var(--f-display); font-size: 1.75rem; font-weight: 400; line-height: 1.2; margin-top: 2.25em; }
.prose h2:first-of-type { margin-top: 1.5em; }

/* Abschnitts-Bezeichnung in der linken Spalte (Satzschreibung, ruhig) */
.section-label {
  font-family: var(--f-body);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-mushroom);
  padding-top: .5rem;
  border-top: 1px solid var(--line-strong);
  max-width: 12rem;
}

/* ---------- Links & Buttons ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 35% 1px; }
a:hover .text-link { background-size: 35% 1px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 1.75rem;
  border: 1px solid var(--c-espresso);
  border-radius: 999px;
  background: var(--c-espresso);
  color: var(--c-white);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: var(--c-mushroom); border-color: var(--c-mushroom); }
.button:disabled { opacity: .6; cursor: progress; }
.button-small { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: .9375rem; }
.button-light { background: var(--c-ivory); color: var(--c-espresso); border-color: var(--c-ivory); }
.button-light:hover { background: transparent; color: var(--c-ivory); border-color: var(--c-ivory); }
.button-light:focus-visible { outline-color: var(--c-ivory); }

.tag {
  display: inline-block;
  padding: .2rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-espresso);
  background: var(--c-white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(.45rem, 1vw, .85rem);
  min-height: 44px;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: clamp(1rem, 4.35vw, 2.05rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.menu-toggle {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 44px; min-width: 44px; padding: 0 .25rem;
  background: none; border: 0; cursor: pointer;
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.menu-toggle-icon { display: grid; gap: 6px; width: 22px; }
.menu-toggle-icon span { display: block; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile Navigation: Vollbild */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--c-ivory);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-list a {
  display: block;
  padding: .7rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 7vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 300;
  line-height: 1.15;
  text-decoration: none;
}
.nav-list a[aria-current="page"] { font-style: italic; }
.nav-cta { align-self: flex-start; margin-top: 2rem; }
.nav-open { overflow: hidden; }

/* Ohne JavaScript: Navigation immer sichtbar als Liste */
.no-js .menu-toggle { display: none; }
.no-js .site-nav { position: static; visibility: visible; opacity: 1; padding: 0; background: none; flex-direction: row; align-items: center; }
.no-js .header-inner { height: auto; flex-wrap: wrap; padding-block: .75rem; }
.no-js .nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.no-js .nav-list li { border: 0; }
.no-js .nav-list a { font-family: var(--f-body); font-size: 1rem; padding: .5rem 0; }
.no-js .nav-cta { display: none; }

@media (min-width: 60em) {
  :root { --header-h: 5.75rem; }
  .menu-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static; visibility: visible; opacity: 1; padding: 0; background: none;
    flex-direction: row; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); overflow: visible; transition: none;
  }
  .nav-list { display: flex; gap: clamp(1rem, 1.75vw, 2rem); }
  .nav-list li { border: 0; }
  .nav-list a {
    font-family: var(--f-body);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .115em;
    padding: .5rem 0;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s var(--ease);
  }
  .nav-list a:hover, .nav-list a[aria-current="page"] { background-size: 100% 1px; font-style: normal; }
  .nav-cta, .no-js .nav-cta { display: inline-flex; margin: 0; }
  .nav-open { overflow: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; }
.hero-brand-line {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-mushroom);
}
.hero-title {
  font-size: clamp(2.7rem, 10vw, 5.5rem);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-lead {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 33em;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.hero-visual { justify-self: center; width: 100%; max-width: 34rem; }

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .hero-title { font-size: clamp(3.3rem, 6.65vw, 5.5rem); }
}

/* Monogramm und Akzentfarben */
.emblem {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1.08em;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.emblem > span { position: absolute; }
.emblem > span:first-child { top: 0; left: 0; }
.emblem > span:last-child { bottom: 0; right: 0; }
.wordmark .emblem { color: #484c35; }

.page-home {
  --olive: #484c35;
  --coffee: #362c25;
  --stone: #e4dacb;
}
.page-home .hero-brand-line { color: var(--olive); }
.page-home .hero-actions .button { background: var(--olive); border-color: var(--olive); }
.page-home .hero-actions .button:hover { background: var(--coffee); border-color: var(--coffee); }
.hero-artwork {
  display: grid;
  place-items: center;
  min-height: clamp(16rem, 39vw, 32rem);
  color: var(--olive);
}
.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(76%, 23rem);
  aspect-ratio: 4 / 5;
}
.emblem-arches {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.emblem-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.emblem-arc:nth-child(1) { --arch-delay: .25s; color: #62664b; }
.emblem-arc:nth-child(2) { --arch-delay: 1.9s; color: #54583e; }
.emblem-arc:nth-child(3) { --arch-delay: 3.55s; color: #484c35; }
.hero-artwork .emblem {
  font-size: clamp(5.5rem, 12vw, 10rem);
  margin-top: 12%;
}

@media (prefers-reduced-motion: no-preference) {
  .emblem-ready .emblem-arc { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
  .emblem-playing .emblem-arc { animation: emblem-draw 1.55s var(--arch-delay) linear both; }
}
@keyframes emblem-draw {
  from { stroke-dashoffset: 1; opacity: .12; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Statement (Arbeitsweise) ---------- */

.page-home .section-title,
.page-home .statement .section-label {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.statement { background: var(--c-white); padding-block: var(--section); }
.page-home .statement { background: var(--stone); }
.page-home .statement .section-label { max-width: none; color: var(--olive); }
.statement-grid { display: grid; gap: 2rem; }
.statement-note { margin-top: 2rem; max-width: 34em; color: var(--c-mushroom); }
@media (min-width: 56em) {
  .statement-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .statement-grid .section-label { grid-column: 1 / span 4; }
  .statement-body { grid-column: 5 / span 8; }
}

/* ---------- Split-Layout (Titel links, Inhalt rechts) ---------- */
.split { display: grid; gap: 2.25rem; }
.split-aside > * + * { margin-top: 1rem; }
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 6vw, 6rem); }
  .split-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Leistungs-Index (Home) ---------- */
.services-preview { padding-block: var(--section); }
.index-list { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid;
  gap: .4rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.index-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.index-text { color: var(--c-mushroom); max-width: 30em; }
@media (min-width: 48em) {
  .index-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; align-items: baseline; padding-block: 1.75rem; }
}

/* ---------- Projekt-Rahmen ---------- */
.project-frame {
  background: var(--c-white);
  border: 1px solid var(--line);
  padding: clamp(.75rem, 2.2vw, 1.75rem);
  overflow: hidden;
}
.project-image-credit { margin-bottom: .45rem; font-size: .875rem; color: var(--c-mushroom); }
.project-frame img { width: 100%; transition: transform .8s var(--ease); }
a:hover .project-frame img { transform: scale(1.012); }

.work-preview { padding-block: 0 var(--section); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.feature-project { display: grid; gap: 1.75rem; text-decoration: none; }
.feature-meta > * + * { margin-top: .9rem; }
.project-name { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.05; }
.project-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--c-mushroom); font-size: .9375rem; }
.feature-text, .project-summary { max-width: 34em; }
@media (min-width: 56em) {
  .feature-project { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: end; }
}

/* ---------- Ablauf ---------- */
.process { background: var(--c-white); padding-block: var(--section); }
.process-alt { background: var(--c-ivory); border-top: 1px solid var(--line); }
.steps { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); counter-reset: none; }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.step-no {
  display: block;
  font-family: var(--f-display);
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-mushroom);
  margin-bottom: 1rem;
}
.step-title { font-size: 1.625rem; line-height: 1.15; margin-bottom: .6rem; }
.step p { color: var(--c-mushroom); }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Vorteile / Werte ---------- */
.benefits, .values { padding-block: var(--section); }
.values { background: var(--c-white); }
.benefit-list { display: grid; gap: 0; }
.benefit { padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--line); }
.benefit dt { font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.15; margin-bottom: .5rem; }
.benefit dd { margin: 0; color: var(--c-mushroom); max-width: 28em; }
@media (min-width: 48em) {
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}

/* ---------- Abschluss-CTA ---------- */
.closing { background: var(--c-espresso); color: var(--c-ivory); padding-block: var(--section); }
.page-home .closing { background: var(--coffee); }
.page-home .closing-body p { color: var(--stone); }
.closing-inner { display: grid; gap: 2rem; }
.closing-title {
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 12ch;
  text-wrap: balance;
}
.closing-body p { max-width: 28em; margin-bottom: 2rem; color: var(--c-sand); }
@media (min-width: 56em) {
  .closing-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 4rem; align-items: end; }
}

/* ---------- Unterseiten-Intro ---------- */
.page-intro { padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.page-intro-solo { border-bottom: 0; min-height: 55vh; }
.page-intro-grid { display: grid; gap: 1.75rem; }
.page-intro-grid > div > * + * { margin-top: 1.25rem; }
@media (min-width: 56em) {
  .page-intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 4rem; align-items: end; }
}

/* ---------- Leistungen (Detail) ---------- */
.services { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.service { display: grid; gap: 1rem; padding-block: clamp(2rem, 5vw, 3.25rem); border-bottom: 1px solid var(--line); }
.service-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; }
.service-body { max-width: 36em; }
.service-body > * + * { margin-top: .9rem; }
.service-short { font-weight: 500; }
.service-body p:not(.service-short) { color: var(--c-mushroom); }
@media (min-width: 56em) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; }
}

.audience { padding-block: var(--section); background: var(--c-white); }
.audience-body > * + * { margin-top: 2rem; }
.audience-list { border-top: 1px solid var(--line); }
.audience-list li { padding-block: .9rem; border-bottom: 1px solid var(--line); }

.note-band { background: var(--c-sand); padding-block: clamp(3.5rem, 8vw, 6rem); }
.note-band p { max-width: 34em; }
.note-band p + p { margin-top: 1rem; }

/* ---------- Projektliste ---------- */
.project-list { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.project-link { display: grid; gap: 1.75rem; text-decoration: none; }
.project-meta > * + * { margin-top: .9rem; }
.project-entry + .project-entry { margin-top: var(--section); }
@media (min-width: 56em) {
  .project-link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
}

/* ---------- Case Study ---------- */
.case-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.breadcrumb { font-size: .9375rem; color: var(--c-mushroom); margin-bottom: 1.5rem; }
.breadcrumb a { text-underline-offset: .2em; }
.case-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.case-facts dt { font-size: .875rem; color: var(--c-mushroom); }
.case-facts dd { margin: .2rem 0 0; font-weight: 500; }
.case-disclaimer {
  margin-top: 1.75rem; max-width: 40em;
  padding: 1rem 1.25rem; border-left: 2px solid var(--c-taupe);
  background: var(--c-white); font-size: .9375rem;
}
.case-demo-action { margin-top: 1.5rem; }
.case-hero { margin-bottom: var(--section); }
.case-section { padding-bottom: var(--section); }
.case-section > .section-title { margin-bottom: 2rem; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 1rem; }
.swatches li { display: grid; gap: .5rem; font-size: .875rem; }
.swatch { display: block; aspect-ratio: 1; background: var(--sw); border: 1px solid var(--line); }
.swatches code { font-family: var(--f-body); color: var(--c-mushroom); }

.type-specimen { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.specimen-display { font-size: 5.5rem; font-weight: 300; line-height: 1; }
.specimen-body { font-family: var(--f-body); font-size: 4.5rem; line-height: 1.1; }
.specimen-name { font-weight: 500; margin: .75rem 0 .25rem; }
@media (min-width: 40em) { .type-specimen { grid-template-columns: 1fr 1fr; } }

.screens { display: grid; gap: 2.5rem; }
.screen figcaption { margin-top: .9rem; font-size: .9375rem; color: var(--c-mushroom); max-width: 30em; }
.screen-phone { max-width: 20rem; }
@media (min-width: 56em) {
  .screens { grid-template-columns: minmax(0, 8fr) minmax(0, 3.2fr); column-gap: 3rem; align-items: end; }
  .screen-phone { max-width: none; }
}
.case-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 0 var(--section); }
.case-nav::before { content: ""; flex-basis: 100%; height: 1px; background: var(--line); margin-bottom: 1rem; }

/* ---------- Über ---------- */
.about { padding-block: var(--section); }
.placeholder-note {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--c-taupe);
  color: var(--c-mushroom);
  font-size: .9375rem;
  background: color-mix(in srgb, var(--c-white) 60%, transparent);
}

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.contact-grid { display: grid; gap: 3rem; }
.hint-list { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.hint-list li { padding-block: .75rem; border-bottom: 1px solid var(--line); color: var(--c-mushroom); }
.contact-mail { margin-top: 2rem; font-size: .9375rem; }
.contact-aside { order: 2; }
@media (min-width: 56em) { .contact-aside { order: 0; } }
@media (min-width: 56em) {
  .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.form-wrap { background: var(--c-white); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 3rem); }
.form-env-note { margin-bottom: 1.75rem; padding: 1rem 1.25rem; background: var(--c-sand); font-size: .9375rem; }
.contact-form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--c-mushroom); }
.req { color: var(--c-mushroom); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .8rem 1rem;
  font-size: 1rem; /* ≥ 16px verhindert iOS-Zoom */
  background: var(--c-ivory);
  border: 1px solid var(--c-mushroom);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-espresso); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { background: var(--c-white); outline-offset: 0; border-color: var(--c-espresso); }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field select { padding-right: 2.75rem; cursor: pointer; }
.field-check { grid-template-columns: auto 1fr; column-gap: .85rem; align-items: start; }
.field-check input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; accent-color: var(--c-espresso); cursor: pointer; }
.field-check label { font-weight: 400; line-height: 1.55; }
.field-check .field-error { grid-column: 2; }
.field-error { color: var(--c-error); font-size: .9375rem; font-weight: 500; }
.field [aria-invalid="true"] { border-color: var(--c-error) !important; }
.form-required-note { font-size: .875rem; color: var(--c-mushroom); }
.contact-form .button { justify-self: start; min-width: 12rem; }
@media (max-width: 30em) { .contact-form .button { justify-self: stretch; } }

.form-status:empty { display: none; }
.form-status { padding: 1rem 1.25rem; font-size: .9375rem; border-left: 2px solid var(--c-espresso); background: var(--c-ivory); }
.form-status.is-error { border-left-color: var(--c-error); }
.form-status:focus { outline: none; }
.form-success { padding-block: 1rem; }
.form-success h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin-bottom: 1rem; }

/* ---------- Rechtliches ---------- */
.legal { padding-block: clamp(3rem, 8vw, 6rem) var(--section); }
.legal-grid { display: grid; gap: 2rem; }
@media (min-width: 56em) { .legal-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 4rem; } }
.legal-body h2 { font-size: 1.5rem; }
.link-list { display: flex; flex-wrap: wrap; gap: 0 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ivory); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner, .footer-base {
  max-width: var(--wrap-max); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.footer-inner { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem; }
.footer-name { font-size: 2rem; line-height: 1; margin-bottom: 1rem; }
.footer-desc { color: var(--c-mushroom); max-width: 24em; font-size: .9375rem; }
.footer-heading { font-size: .9375rem; font-weight: 500; color: var(--c-mushroom); margin-bottom: .75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-email { font-size: .9375rem; padding-block: .5rem; max-width: 22em; }
.footer-email .pending { color: var(--c-mushroom); font-size: .875rem; }
.footer-email .pending a { display: inline; min-height: 0; text-decoration: underline; font-size: inherit; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
  padding-block: 1.25rem 1.75rem; font-size: .875rem; color: var(--c-mushroom);
  border-top: 1px solid var(--line);
}
.to-top { min-height: 44px; display: inline-flex; align-items: center; }
.footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.footer-brand, .footer-inner > .footer-col:nth-child(3) { grid-column: 1 / -1; }
.footer-inner > .footer-col:nth-child(3) { order: 3; }
.footer-inner > .footer-col:nth-child(4) { order: 2; }
@media (min-width: 40em) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner > .footer-col:nth-child(3) { grid-column: auto; }
  .footer-inner > .footer-col:nth-child(n) { order: 0; }
}
@media (min-width: 64em) { .footer-inner { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); } .footer-brand { grid-column: auto; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Lokaler Gestaltungsvergleich */
.design-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1rem;
  padding: .55rem var(--gutter);
  border-block: 1px solid #d7c7b1;
  background: #eee4d5;
  color: #40362b;
  font-size: .8125rem;
}
.design-switcher span { font-weight: 500; }
.design-switcher a { text-underline-offset: .22em; }
.design-switcher a[aria-current] { background: #514534; color: #fff8ec; padding: .2rem .55rem; text-decoration: none; }

[data-design-preview] .hero { position: relative; isolation: isolate; }
[data-design-preview] .hero-text { position: relative; z-index: 1; }

[data-design-preview="galerie"] .hero {
  background: radial-gradient(ellipse at 91% 41%, #e4d4bc 0, transparent 61%);
}
[data-design-preview="galerie"] .project-frame {
  box-shadow: 0 .65rem 2.25rem #47362724;
  border: 1px solid #b6a487;
}
[data-design-preview="galerie"] .project-frame img { transform: scale(1.025); }
[data-design-preview="galerie"] .project-meta { border-left: 1px solid #b6a487; padding-left: clamp(1rem, 3vw, 2rem); }
.gallery-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.15rem;
  color: #5c4936;
  font-size: .85rem;
  text-underline-offset: .24em;
}

[data-design-preview="licht"] .hero {
  background: radial-gradient(ellipse at 75% 34%, #f7e9cc, transparent 59%),
    linear-gradient(122deg, #f6efe3, #ead8be 78%, #e3d4be);
}
[data-design-preview="licht"] .hero::before {
  content: "";
  position: absolute;
  inset: -30% -15%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 34%, #fff8e797 46%, transparent 63%);
}
[data-design-preview="licht"] .project-name { color: #5d4532; }
[data-design-preview="licht"] .project-link:hover .project-name,
[data-design-preview="licht"] .project-link:focus-visible .project-name {
  color: #684626;
  text-shadow: 0 0 1rem #d6a25875;
}
[data-design-preview="licht"] .hero-title:hover { text-shadow: 0 0 1.35rem #d8aa5966; }

[data-design-preview="baender"] .hero::before,
[data-design-preview="baender"] .statement::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
[data-design-preview="baender"] .hero::before {
  inset: -18% -12% -14% 46%;
  background: repeating-linear-gradient(146deg, #cec0a657 0 4%, transparent 4% 10%),
    linear-gradient(145deg, transparent 20%, #decbb088);
  border-radius: 50% 0 0 50%;
}
[data-design-preview="baender"] .statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e2d5c1;
}
[data-design-preview="baender"] .statement::before {
  inset: 0 -20%;
  background: repeating-linear-gradient(128deg, transparent 0 11%, #f9eddb80 11% 17%, transparent 17% 22%);
  opacity: .66;
}
[data-design-preview="baender"] .project-entry:nth-of-type(even) .project-meta { background: #ece0ce; padding: 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  [data-design-preview] .project-name, [data-design-preview] .hero-title {
    transition: color .45s var(--ease), text-shadow .45s var(--ease), transform .45s var(--ease);
  }
  [data-design-preview="licht"] .hero::before { animation: warm-sidelight 3.8s var(--ease) both; }
  [data-design-preview="baender"] .hero::before,
  [data-design-preview="baender"] .statement.design-in-view::before { animation: slide-bands 3.9s var(--ease) both; }
  [data-design-preview="galerie"] .project-link.design-in-view .project-frame {
    animation: gallery-arrive 1s var(--ease) both;
  }
  [data-design-preview="galerie"] .project-link.design-in-view .project-meta {
    animation: gallery-arrive 1.2s .13s var(--ease) both;
  }
  [data-design-preview="galerie"] .project-link:focus-visible .project-frame img { transform: scale(1.1); }
  @media (hover: hover) {
    [data-design-preview="galerie"] .project-link:hover .project-frame img { transform: scale(1.11) translateX(-1%); }
    [data-design-preview="galerie"] .project-link:hover .project-name,
    [data-design-preview="baender"] .project-link:hover .project-name { transform: translateX(.35rem); }
  }
}
@keyframes warm-sidelight {
  from { transform: translateX(-46%); opacity: .18; }
  to { transform: translateX(16%); opacity: 1; }
}
@keyframes slide-bands {
  from { transform: translateX(15%); }
  to { transform: translateX(0); }
}
@keyframes gallery-arrive {
  from { transform: translateY(.8rem); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}

/* Wärmere Schriftakzente und Übergänge zwischen Studio-Seiten */
:root {
  --text-glow-color: #80512a;
  --text-glow-shadow: #d9aa6c65;
}
:where(.closing, .button) {
  --text-glow-color: #ffe0b7;
  --text-glow-shadow: #edba7d75;
}
.button-light {
  --text-glow-color: #80512a;
  --text-glow-shadow: #d9aa6c65;
}
.button-light:hover { --text-glow-color: #ffe0b7; }
:where(h1, h2, h3, h4, p, li, dt, dd, a, label, summary, button, figcaption, address, .hero-emblem .emblem) {
  transition-property: color, text-shadow;
  transition-duration: .28s;
  transition-timing-function: ease;
}
@media (hover: hover) {
  body :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, a, label, summary, button, figcaption, address, .emblem, .tag):hover,
  .project-link:hover .project-name {
    color: var(--text-glow-color);
    text-shadow: 0 0 .75rem var(--text-glow-shadow);
  }
}
body :is(a, button, summary):focus-visible,
.project-link:focus-visible .project-name {
  color: var(--text-glow-color);
  text-shadow: 0 0 .75rem var(--text-glow-shadow);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: studio-header; }
  main { view-transition-name: studio-content; }
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(studio-header), ::view-transition-new(studio-header) {
    animation: none;
  }
  ::view-transition-group(studio-content) { animation-duration: .36s; }
  ::view-transition-old(studio-content) { animation: studio-page-out .28s ease both; }
  ::view-transition-new(studio-content) { animation: studio-page-in .36s var(--ease) both; }
}
@keyframes studio-page-out {
  to { transform: translateY(-24px); opacity: 0; }
}
@keyframes studio-page-in {
  from { transform: translateY(34px); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}
