/* ════════════════════════════════════════════════════════════════
   STUDIO SEMPLICE · Design System (geteiltes Stylesheet)
   Quelle der Wahrheit: Zermatt/site-v4-semplice/index.html
   Theme: warm paper / ink / taupe — light, locked.
   Shapes: scharfe Kanten (radius 0). Tiefe = Hairlines, nie Schatten.
   Akzent: --tan (einziger Akzent), locked.
   ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Farben — Pure Minimalist: Schwarz-Weiss, Name ist Programm */
  --bg:      #FFFFFF;  /* Canvas / Seitenhintergrund (Weiss) */
  --bg-2:    #F7F7F7;  /* alternierende Sektion / leichte Schicht (kühl) */
  --paper:   #FFFFFF;  /* Karten, die Bilder/Pläne rahmen */
  --ink:     #111111;  /* Text (Schwarz) */
  --ink-dim: #6B6B6B;  /* Sekundärtext (neutrales Grau) */
  --tan:     #000000;  /* AKZENT: Buttons, Divider, aktiv, Links, Hover (reines Schwarz) */
  --line:    rgba(0, 0, 0, 0.12);  /* Hairlines / Borders */
  /* heller Text auf Vollbild-Fotos (dunkler Scrim bleibt) */
  --ink-on-dark:     #FFFFFF;
  --ink-on-dark-dim: #DADADA;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 320;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--tan); color: var(--bg); }

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); }

/* ── Typografie ── */
.display {
  font-weight: 560;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.02;
}

h2.display { font-size: clamp(2rem, 4.6vw, 4.2rem); }

.eyebrow {
  font-size: 11px;
  font-weight: 480;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.body-copy {
  color: var(--ink-dim);
  max-width: 62ch;
  font-size: clamp(15px, 1.15vw, 17px);
}
.body-copy p + p { margin-top: 1.2em; }
.body-copy strong { color: var(--ink); font-weight: 460; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.15s var(--ease);
}
.btn .btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--tan); border-color: var(--tan); color: var(--bg); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 64px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
/* Über dem Hero (transparente Nav): heller Text + dezenter Top-Scrim für Lesbarkeit.
   Seiten ohne Foto-Hero setzen <header class="nav is-solid"> sofort solid. */
.nav:not(.is-solid)::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,17,15,0.42), rgba(20,17,15,0));
  pointer-events: none;
  z-index: -1;
}
.nav:not(.is-solid) .nav-logo { color: var(--ink-on-dark); }
.nav:not(.is-solid) .nav-links a { color: rgba(255, 255, 255,0.82); }
.nav:not(.is-solid) .nav-links a:hover,
.nav:not(.is-solid) .nav-links a.is-active { color: var(--ink-on-dark); }
.nav:not(.is-solid) .lang-switch { border-color: rgba(255, 255, 255,0.40); }
.nav:not(.is-solid) .lang-switch button { color: rgba(255, 255, 255,0.82); }
.nav:not(.is-solid) .burger span { background: var(--ink-on-dark); }
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34em;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lg-b   { font-weight: 800; }
.lg-l   { font-weight: 300; }
.lg-sep { font-weight: 300; opacity: 0.45; }
.nav-logo .lg-sep { transform: translateY(-0.04em); }
.nav-links {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  list-style: none;
}
.nav-links a {
  font-size: 11.5px;
  font-weight: 440;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-switch { display: flex; align-items: center; border: 1px solid var(--line); }
.lang-switch button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.lang-switch button[aria-pressed="true"] { color: var(--bg); background: var(--tan); }
.lang-switch button:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95; /* unter .nav (100), damit Logo/Sprache/Burger erreichbar bleiben */
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) 32px 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: grid; gap: 8px; }
.mobile-menu a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 540;
  font-stretch: 118%;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}
.mobile-menu a.is-active { color: var(--tan); }
.mobile-menu .mobile-meta { margin-top: 48px; color: var(--ink-dim); font-size: 13px; line-height: 1.9; }

/* ── Hero (Vollbild-Foto) ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 62% 42%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,17,15,0.92) 0%, rgba(20,17,15,0.55) 30%, rgba(20,17,15,0.16) 58%, rgba(20,17,15,0.32) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 64px) clamp(36px, 5.5vh, 72px);
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(1.4rem, 8.9vw, 9.8rem);
  font-weight: 580;
  font-stretch: 124%;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 0.94;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title .char-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.hero-sub {
  color: var(--ink-dim);
  font-size: clamp(14px, 1.2vw, 16.5px);
  max-width: 46ch;
}
.hero-sub strong { color: var(--ink); font-weight: 440; }

/* ── Sections ── */
section { position: relative; }
.section-pad { padding-block: clamp(90px, 13vh, 170px); }
.section-bg2 { background: var(--bg-2); }

.section-head { margin-bottom: clamp(40px, 6vh, 72px); }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 22px; }

/* Editorial 2-Spalter (sticky Text + Medien), aus Referenz „lage-grid" ── */
.split-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.split-text { position: sticky; top: calc(var(--nav-h) + 40px); }
.split-text h2 { margin-bottom: 28px; }
.split-media { display: grid; gap: clamp(24px, 3vw, 44px); }

.facts {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.fact-label {
  font-size: 10.5px;
  font-weight: 480;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 7px;
}
.fact-value { font-size: 15px; font-weight: 380; color: var(--ink); }

figure.frame { position: relative; overflow: hidden; }
figure.frame img { width: 100%; height: 100%; object-fit: cover; }
figure.frame figcaption,
.fig-caption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
/* Captions in hellen Paper-Karten brauchen einen dunkleren Ton für AA-Kontrast */
.paper-card .fig-caption { color: #5F574B; }

/* parallax inner-zoom figures */
[data-px] { overflow: hidden; }
[data-px] img { height: 116%; width: 100%; object-fit: cover; }

/* ── Full-bleed band (Vollbild-Streifen) ── */
.band {
  position: relative;
  height: clamp(420px, 78vh, 820px);
  overflow: hidden;
}
.band img { width: 100%; height: 118%; object-fit: cover; }
.band-caption {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: 28px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(234, 227, 215, 0.85);
}
.band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,15,0.45), transparent 36%);
  pointer-events: none;
}

/* ── Feature-Liste (Hairline-Dash) ── */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
}
.features li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 15.5px;
  font-weight: 360;
  color: var(--ink);
  padding-block: 6px;
}
.features li::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--tan);
  flex-shrink: 0;
  transform: translateY(-4px);
}

/* ── Stat-Strip ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(36px, 6vw, 96px);
  margin: clamp(48px, 7vh, 80px) 0;
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 4vh, 44px);
}
.stat-number {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 560;
  font-stretch: 116%;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-number sup { font-size: 0.45em; font-weight: 420; margin-left: 2px; }
.stat-label { margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); }

/* ── Prozess / nummerierte Schritte ── */
.prozess-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); }
.prozess-intro h2 { margin-bottom: 26px; }
.prozess-intro { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.steps { position: relative; list-style: none; }
.steps::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.steps .steps-line {
  position: absolute;
  left: 0; top: 8px;
  width: 1px;
  height: calc(100% - 16px);
  background: var(--tan);
  transform-origin: top;
  transform: scaleY(0);
}
.step { position: relative; padding: 0 0 clamp(40px, 6vh, 60px) clamp(32px, 3.5vw, 56px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: -3.5px; top: 10px;
  width: 8px; height: 8px;
  background: var(--bg);
  border: 1px solid var(--tan);
  transform: rotate(45deg);
}
.step-title {
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 520;
  font-stretch: 116%;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
.step-tag {
  font-size: 10px;
  font-weight: 540;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--tan);
  padding: 4px 10px;
}
.step p { color: var(--ink-dim); font-size: 15px; max-width: 52ch; }

/* ── Kontakt ── */
.kontakt { background: var(--bg-2); }
.kontakt-grid { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 130px); }
.kontakt-info h2 { margin-bottom: 24px; }
.kontakt-info .body-copy { margin-bottom: 48px; }
.kontakt-blocks { display: grid; gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.kontakt-block a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.25s; }
.kontakt-block a:hover { border-color: var(--tan); }

/* ── Formular (Kontakt / Bewerbung) ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 480;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field label .req { color: var(--tan); }
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px; /* 16px+ verhindert iOS-Safari Zoom-on-focus */
  font-weight: 360;
  padding: 10px 0 12px;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A79C8B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--tan);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 4px;
}
.form-actions { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--ink-dim); }
.form-status { margin-top: 24px; font-size: 14.5px; min-height: 1.5em; color: var(--ink); }
.form-status.is-ok { color: var(--tan); }
.form-status.is-err { border-left: 2px solid var(--tan); padding-left: 12px; }

/* ── Footer ── */
footer { padding: clamp(70px, 10vh, 120px) 0 40px; overflow: hidden; }
.footer-ghost {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34em;
  font-size: clamp(1.5rem, 4.2vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.9;
}
.footer-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-meta a:hover { border-color: var(--tan); }
.footer-brand { font-weight: 480; color: var(--ink); letter-spacing: 0.04em; }

/* ════════════════════════════════════════════════════════════════
   MEHRSEITIGE KOMPONENTEN (für die Studio-Semplice-Website ergänzt)
   ──────────────────────────────────────────────────────────────── */

/* ── Page-Header für Seiten ohne Foto-Hero (Projekte, Dienstleistungen …) ──
   Nav startet hier sofort solid (Markup: <header class="nav is-solid">),
   darum braucht der Inhalt Abstand nach oben. */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 120px));
  padding-bottom: clamp(36px, 6vh, 72px);
}
.page-head .eyebrow { display: block; margin-bottom: 18px; }
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 560;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.page-head .body-copy { max-width: 64ch; }

/* ── Projekt-Filterleiste (zwei Achsen: Status + Typ) ── */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  border-block: 1px solid var(--line);
  padding-block: 22px;
  margin-bottom: clamp(36px, 5vh, 60px);
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filter-group-label {
  font-size: 10.5px;
  font-weight: 480;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-right: 6px;
}
.filter-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter-pill[aria-pressed="true"] {
  color: var(--bg);
  background: var(--tan);
  border-color: var(--tan);
}
.filter-pill:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* ── Projekt-Raster (3 Spalten Desktop) ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-2);
}
.project-card[hidden] { display: none; }
.project-card .project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.project-card .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
/* Scrim, der bei Hover einblendet (dunkelt + trägt den Text) */
.project-card .project-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,17,15,0.78) 0%, rgba(20,17,15,0.18) 45%, rgba(20,17,15,0) 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: 1;
}
.project-card .project-info {
  position: absolute;
  left: clamp(16px, 1.6vw, 24px);
  right: clamp(16px, 1.6vw, 24px);
  bottom: clamp(16px, 1.8vw, 26px);
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.project-card .project-name {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 540;
  font-stretch: 118%;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink-on-dark);
  margin-bottom: 6px;
}
.project-card .project-meta {
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--ink-on-dark-dim);
}
/* Hover/Focus: leichter Zoom + Scrim + Info einblenden (KEINE verspielte Einzel-Anim) */
.project-card:hover .project-media img,
.project-card:focus-visible .project-media img { transform: scale(1.05); }
.project-card:hover .project-scrim,
.project-card:focus-visible .project-scrim { opacity: 1; }
.project-card:hover .project-info,
.project-card:focus-visible .project-info { opacity: 1; transform: translateY(0); }
.project-card:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ── Projekt-Detail: Meta-Zeile + Galerie-Grid ── */
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  border-block: 1px solid var(--line);
  padding-block: 26px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.detail-meta .meta-item { display: flex; flex-direction: column; gap: 6px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.gallery-grid figure { overflow: hidden; }
.gallery-grid figure.span-2 { grid-column: 1 / -1; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.03); }

/* Pläne / Grundrisse separat in heller Paper-Karte */
.plan-card {
  background: var(--paper);
  padding: clamp(16px, 2vw, 32px);
  border: 1px solid var(--line);
}
.plan-card img { width: 100%; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* Projekt-Detail Navigation (zurück + Nachbarn) */
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: clamp(48px, 7vh, 90px);
}
.detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.detail-nav a:hover { color: var(--ink); }

/* ── Team-Grid (Büro-Seite) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.team-member figure { overflow: hidden; margin-bottom: 18px; aspect-ratio: 3 / 4; background: var(--bg-2); }
.team-member img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.team-member:hover img { transform: scale(1.04); }
.team-name {
  font-size: 1.05rem;
  font-weight: 540;
  font-stretch: 116%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.team-role { font-size: 12px; letter-spacing: 0.08em; color: var(--tan); text-transform: uppercase; margin-bottom: 12px; }
.team-quali { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 14px; line-height: 1.5; }
.team-contact { font-size: 13px; line-height: 1.7; }
.team-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.25s; }
.team-contact a:hover { border-color: var(--tan); }

/* ── Dienstleistungs-Einstiegskarten (grosse Karten → Unterseite) ── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease);
}
.service-card:hover { border-color: var(--tan); }
.service-card:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.service-card .service-media { overflow: hidden; aspect-ratio: 4 / 3; }
.service-card .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-card .service-body { padding: clamp(24px, 2.4vw, 38px); display: flex; flex-direction: column; flex: 1; }
.service-card .eyebrow { margin-bottom: 14px; }
.service-card .service-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 540;
  font-stretch: 116%;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
}
.service-card .service-desc { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 24px; }
.service-card .service-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
}
.service-card .service-more .btn-arrow { transition: transform 0.35s var(--ease); }
.service-card:hover .service-more .btn-arrow { transform: translateX(5px); }

/* Casa-Semplice Handwerks-Raster (kompakter, ohne Bild) */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line); /* Hairline-Raster via 1px-Gaps */
  border: 1px solid var(--line);
}
.craft-cell {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s var(--ease);
}
.craft-cell:hover { background: var(--bg-2); }
.craft-cell:focus-visible { outline: 2px solid var(--tan); outline-offset: -2px; }
.craft-cell .craft-title {
  font-size: 1.15rem;
  font-weight: 540;
  font-stretch: 116%;
  text-transform: uppercase;
  line-height: 1.1;
}
.craft-cell .craft-desc { font-size: 13.5px; color: var(--ink-dim); }
.craft-cell .craft-more {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
}

/* ── Lightbox (vanilla) ── */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(20,17,15,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 4vmin; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; background: #fff; cursor: zoom-out; transition: transform .25s var(--ease); }
.lightbox.zoomed img { cursor: grab; }
.lightbox-close { position: fixed; top: 24px; right: 28px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255,.4); background: transparent; color: var(--ink-on-dark); font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255,.12); }

/* ── v4 Semplice: Text bleibt hell über Vollbild-Foto-Sektionen (Scrims bleiben) ── */
.hero-title,
.band-caption { color: var(--ink-on-dark); }
.hero-eyebrow { color: var(--ink-on-dark-dim); }
.hero-sub { color: var(--ink-on-dark-dim); }
.hero-sub strong { color: var(--ink-on-dark); }
.hero-content .btn { color: var(--ink-on-dark); border-color: rgba(255, 255, 255, 0.38); }
.hero-content .btn:hover { color: var(--bg); border-color: var(--tan); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .split-grid, .prozess-grid { grid-template-columns: 1fr; }
  .split-text, .prozess-intro { position: static; }
  .project-grid, .team-grid, .service-cards, .craft-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; }
  .hero-media img, .hero-media video { object-position: 58% 45%; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.15em; }
  .gallery-grid, .plan-grid { grid-template-columns: 1fr; }
  /* Hover-Info auf Touch immer sichtbar, da kein Hover */
  .project-card .project-scrim { opacity: 1; }
  .project-card .project-info { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .project-grid, .team-grid, .service-cards, .craft-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h2.display { hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 400px) {
  /* Logo nicht überlaufen lassen auf schmalen Screens */
  .nav-logo { font-size: 13px; letter-spacing: 0.12em; gap: 0.26em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Projekt-Video (YouTube-Embed) ── */
.project-video{ margin-top: clamp(40px,6vh,72px); }
.project-video .eyebrow{ margin-bottom: 1.25rem; }
.project-video .video-frame{ position:relative; width:100%; aspect-ratio:16/9; background:var(--ink); overflow:hidden; border:1px solid var(--line); }
.project-video .video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
@supports not (aspect-ratio: 16 / 9){ .project-video .video-frame{ height:0; padding-top:56.25%; } }

/* ── Hero Scroll-Scrubbing (Bildsequenz aus Projektvideo) ── */
.hero-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; transition:opacity .6s ease; z-index:1; }
.hero-canvas.is-ready{ opacity:1; }
.hero-fallback{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:0; }

/* ── FAQ (Leistungsseiten) ── */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: '+'; font-weight: 400; color: var(--ink-dim); transition: transform 0.25s var(--ease); }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > p { color: var(--ink-dim); padding: 0 0 24px; max-width: 64ch; font-size: clamp(15px,1.1vw,16px); }

/* Einzugsgebiet-Tag */
.area-tag { display:inline-block; margin-top:20px; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--ink-dim); border:1px solid var(--line); padding:8px 14px; }
.cross-note { margin-top: 28px; font-size: clamp(15px,1.1vw,16px); color: var(--ink-dim); }
.cross-note a { color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.cross-note a:hover { border-color: var(--tan); }

/* ── Leistungs-Bildband (Casa-Semplice-Seiten) ── */
.leistung-figure { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leistung-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Casa-Semplice-Branding (Wortmarke im Studio-Stil, CASA statt STUDIO) ── */
.casa-lockup { display:inline-flex; align-items:baseline; gap:0.28em; margin:0.15em 0 0.35em; text-transform:uppercase; letter-spacing:0.05em; line-height:1; font-size:clamp(2.6rem, 7.5vw, 6rem); color:var(--ink); }
.casa-tagline { font-size:clamp(1.05rem, 2.2vw, 1.7rem); font-weight:540; text-transform:uppercase; letter-spacing:0.03em; line-height:1.1; color:var(--ink); margin-bottom:1.6rem; }
