/* ==========================================================================
   Scheffczyk Veranstaltungen — scheffczyk-va.de
   Design-System nach Brand Guide V2 (hell dominant)
   Farben: Weiß 50–60 % · Schwarz 25–35 % · Brand Red #880001 5–10 %
   Typo:   Montserrat (Headlines) · Inter (Fließtext), linksbündig
   Signatur: Redline (2 pt ≈ 3 px, ca. 32 mm ≈ 120 px, 1× pro Fläche)
             + Nummerierung 01/, 02/ …

   Diese Datei beschreibt den statischen, ohne JS lesbaren Zustand.
   Alle Bewegungen liegen in motion.css (nur bei prefers-reduced-motion:
   no-preference und aktivem JS).
   ========================================================================== */

/* ---------- Fonts (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
/* Metrisch angeglichene Ersatzschriften: kein Textsprung beim Font-Swap */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  size-adjust: 112.8%;
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---------- Design Tokens ---------- */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --red: #880001;
  --red-hover: #6C0001;
  --red-on-dark: #DB5859;   /* Nummern auf #1C1C1C (Kontrast 4,5:1) */
  --dark: #1C1C1C;          /* Statement-Flächen */
  --mist: #D2D2D2;          /* Raster, Linien, Deko */
  --label: #6E6E6E;         /* Mist Grey für Text, barrierefrei abgedunkelt */
  --grey-line: #ECECEC;     /* feine Linien, Kartenränder */
  --grey-surface: #F7F7F7;  /* helle Kartenflächen */
  --grey-ghost: #F1F1F1;    /* Ghost-Nummern */
  --text: #1C1C1C;
  --text-soft: #555555;

  --font-head: 'Montserrat', 'Montserrat Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Inter Fallback', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);

  --redline-w: 120px;       /* ca. 32 mm */
  --redline-h: 3px;         /* 2 pt */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;

  /* Höhenstufen: mehrlagige Schatten wirken wie echtes Licht */
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.06);
  --shadow-2: 0 2px 4px rgba(0,0,0,.04), 0 12px 24px rgba(0,0,0,.08), 0 36px 72px rgba(0,0,0,.12);
  --shadow-3: 0 4px 8px rgba(0,0,0,.05), 0 24px 48px rgba(0,0,0,.12), 0 60px 120px rgba(0,0,0,.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-align: left; /* linksbündig, kein Blocksatz */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--black);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  h1, h2 { hyphens: auto; }
}

h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.06;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
}

p { max-width: 62ch; text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* Headline-Zeilen (für die Masken-Animation in motion.css) */
.split .line { display: block; }

/* ---------- Signatur: Redline ---------- */
/* Genau 1× pro Fläche/Sektion, linksbündig, unter dem Kicker */
.redline {
  width: var(--redline-w);
  height: var(--redline-h);
  background: var(--red);
  border: 0;
  transform-origin: left center;
}

/* ---------- Signatur: Nummerierung ---------- */
.kicker {
  display: flex;
  align-items: baseline;
  gap: .65em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker .num { color: var(--red); }
.kicker .label { color: var(--label); font-weight: 600; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h1,
.section-head h2 { margin-top: 26px; }
.section-head .lead { margin-top: 18px; }

/* große rote Nummer an Leistungsbausteinen */
.big-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }

.section--dark {
  position: relative;
  background:
    radial-gradient(ellipse 75% 60% at 50% -10%, rgba(255,255,255,.075), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0,0,0,.35), transparent 60%),
    var(--dark);
  color: #E9E9E9;
  isolation: isolate;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .kicker .label { color: rgba(255,255,255,.6); }
.section--dark .kicker .num { color: var(--red-on-dark); }
.section--dark p { color: #CFCFCF; }
.section--dark .lead { color: #CFCFCF; }

/* feine Körnung auf dunklen Flächen (statisch, kein Laufzeit-Filter) */
.section--dark::before,
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section--grey { background: var(--grey-surface); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.mt-s { margin-top: 20px; }
.mt-m { margin-top: 24px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
/* Höhe bleibt konstant (kein Layout-Sprung), nur das Logo skaliert */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header.is-scrolled {
  border-bottom-color: var(--grey-line);
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
  background: rgba(255,255,255,.96);
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 46px;
  width: auto;
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
.site-header.is-scrolled .brand img { transform: scale(.84); }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }

.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  padding-block: 6px;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  margin: 6px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    padding: 8px var(--pad-x) 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 14px; font-size: 1rem; width: 100%; }
  .site-nav a::after { bottom: 8px; width: 40px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px;
  --ty: 0px;
  --lift: 0px;
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  border: 0;
  cursor: pointer;
  transform: translate(var(--tx), calc(var(--ty) + var(--lift)));
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .35s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  --lift: -2px;
  background: var(--red-hover);
  box-shadow: 0 10px 24px rgba(136, 0, 1, .22);
}
.btn--ghost {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}
.btn--ghost:hover {
  --lift: -2px;
  background: var(--black);
  color: var(--white);
}
.section--dark .btn--ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.section--dark .btn--ghost:hover { background: var(--white); color: var(--black); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Textlink mit Pfeil */
.arrow-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}
.arrow-link::after {
  content: '\2192';
  display: inline-block;
  margin-left: .5em;
  transition: transform .25s var(--ease);
}
.arrow-link:hover::after,
.tile:hover .arrow-link::after { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: clamp(84px, 12vw, 170px);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--white) 45%, #F3F3F3 100%);
}
.hero > .wrap { width: 100%; }
.hero h1 { margin-top: 26px; }
.hero .lead { margin-top: 28px; }

/* Tiefenebenen hinter dem Text */
.hero-depth {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 62% 0%;
}
.hero-depth > * { position: absolute; }

/* Hallenboden — das Raster des Standplans, in Perspektive gekippt */
.hero-grid {
  left: -40%;
  right: -40%;
  bottom: -20%;
  height: 120%;
  transform-origin: 50% 100%;
  rotate: x 68deg;
  background-image:
    linear-gradient(to right, #DCDCDC 1px, transparent 1px),
    linear-gradient(to bottom, #DCDCDC 1px, transparent 1px);
  background-size: 90px 90px;
  background-position: center bottom;
  /* zum Horizont hin und unter dem Text ausblenden */
  -webkit-mask-image:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 80%),
    linear-gradient(to right, rgba(0,0,0,.3) 25%, #000 55%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 80%),
    linear-gradient(to right, rgba(0,0,0,.3) 25%, #000 55%);
          mask-composite: intersect;
}

/* Ghost-Nummer als grafisches Element */
.hero-ghost {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: -0.05em;
  bottom: -0.18em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(11rem, 26vw, 24rem);
  line-height: 1;
  color: var(--grey-ghost);
  user-select: none;
}

/* Monogramm als Konturzeichnung */
.hero-mark {
  right: -1vw;
  top: 12%;
  width: clamp(260px, 31vw, 470px);
  overflow: visible;
}
.hero-mark path {
  fill: none;
  stroke: #CFCFCF;
  stroke-width: .45;
  stroke-linejoin: round;
}
.hero-mark path.r { stroke: var(--red); stroke-width: .55; }
@media (max-width: 820px) {
  .hero-mark { width: 300px; right: -90px; top: auto; bottom: 4%; opacity: .4; }
  .hero-grid { height: 90%; background-size: 60px 60px; }
}

/* ---------- Kennzahlen ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.stat { position: relative; padding-left: clamp(18px, 2.5vw, 32px); }
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.22);
  transform-origin: top center;
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { font-size: .45em; font-weight: 700; margin-left: .18em; letter-spacing: .02em; }
.stat-value--text {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  max-width: 14ch;
}
.stat-label {
  margin-top: 10px;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  max-width: 26ch;
}
.section--dark .stat-label { color: rgba(255,255,255,.7); }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr; }
  .stat::before { width: 2px; }
}

/* ---------- Leistungs-Kette (Startseite) ---------- */
.chain {
  --steps: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 680px) { .chain { grid-template-columns: 1fr; } }
@media (min-width: 1100px) {
  .chain { grid-template-columns: repeat(4, 1fr); padding-top: 44px; }
  /* Spur der Wertschöpfungskette */
  .chain::before,
  .chain::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--mist);
  }
  .chain::after { height: 2px; top: -.5px; background: var(--black); transform: scaleX(0); transform-origin: left center; }
  .chain .tile::after {
    content: '';
    position: absolute;
    top: -49px;
    left: clamp(28px, 3.5vw, 44px);
    width: 9px; height: 9px;
    background: var(--white);
    box-shadow: inset 0 0 0 2px var(--black);
  }
}

.tile {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--grey-line);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .45s var(--ease), border-color .35s var(--ease);
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--mist);
}
.tile h3 { margin-top: 18px; }
.tile p { margin-top: 10px; color: var(--text-soft); }
.tile .arrow-link { display: inline-block; margin-top: 22px; }
@media (min-width: 1100px) {
  .chain .tile { display: flex; flex-direction: column; padding: 32px 28px; }
  .chain .tile h3 { font-size: 1.12rem; hyphens: manual; }
  .chain .tile p { font-size: .97rem; }
  .chain .tile::after { left: 28px; }
  .chain .tile .arrow-link { margin-top: auto; padding-top: 22px; }
}

/* ---------- Formate-Band ---------- */
.formats {
  overflow: clip;
  padding-block: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--grey-line);
}
.formats-track {
  display: flex;
  flex-wrap: wrap;
  gap: .1em .5em;
  list-style: none;
  padding-inline: var(--pad-x);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.formats-track + .formats-track { margin-top: .15em; }
.formats-track li { color: var(--black); white-space: nowrap; }
/* Outline-Wörter: Kontur liegt unter einer Füllung in Hintergrundfarbe —
   so verschwinden die überlappenden Glyphen-Konturen von Montserrat */
.formats {
  --band-bg: var(--white);
  --band-ink: var(--black);
  --band-slash: var(--red);
}
.section--dark .formats {
  --band-bg: var(--dark);
  --band-ink: var(--white);
  --band-slash: var(--red-on-dark);
  border-color: rgba(255,255,255,.1);
}
.formats-track li { color: var(--band-ink); }
.formats-track li:nth-child(even),
.formats-track--reverse li:nth-child(odd) {
  color: var(--band-bg);
  -webkit-text-stroke: 3px var(--band-ink);
  paint-order: stroke fill;
}
.formats-track--reverse li:nth-child(even) {
  color: var(--band-ink);
  -webkit-text-stroke: 0;
}
.formats-track li::after {
  content: '/';
  margin-left: .5em;
  color: var(--band-slash);
  -webkit-text-stroke: 0;
}
.formats-track li:last-child::after { content: none; }

/* ---------- Leistungsbausteine (Detailseite) ---------- */
.services { position: relative; }
.service {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--grey-line);
}
.service:last-child { border-bottom: 1px solid var(--grey-line); }
.service h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 0; }
.service p { margin-top: 12px; color: var(--text-soft); }
@media (max-width: 680px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Werte-Karten ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.value-card {
  --x: 50%;
  --y: 50%;
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-line);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .45s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.value-card h3 { margin-top: 16px; }
.value-card p { margin-top: 10px; color: var(--text-soft); }

/* ---------- Statement (Wort-für-Wort) ---------- */
.statement { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.12; max-width: 22ch; }

/* ---------- Foto mit versetztem Rahmen (zweite Ebene) ---------- */
.photo-wrap {
  position: relative;
  isolation: isolate;
  margin: 0 clamp(16px, 2.5vw, 32px) clamp(16px, 2.5vw, 32px) 0;
}
.photo-wrap::before {
  content: '';
  position: absolute;
  inset: clamp(16px, 2.5vw, 32px) calc(clamp(16px, 2.5vw, 32px) * -1) calc(clamp(16px, 2.5vw, 32px) * -1) clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--mist);
  z-index: -1;
}
.photo-wrap .photo-slot { box-shadow: var(--shadow-2); }

/* ---------- Foto-Platzhalter (bis Shooting) ---------- */
.photo-slot {
  position: relative;
  background: linear-gradient(160deg, var(--grey-surface) 0%, #EDEDED 100%);
  border: 1px solid var(--grey-line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-slot--wide { aspect-ratio: 16 / 10; }
.photo-slot > img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-mark { width: 46%; overflow: visible; }
.photo-slot .slot-mark path { fill: #E2E2E2; stroke: none; }
.photo-slot .slot-mark path.r { fill: #E2E2E2; }
.photo-slot::after {
  content: attr(data-label);
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { max-width: 640px; }
.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #8A8A8A;  /* 3,4:1 — Feldgrenze erkennbar (WCAG 1.4.11) */
  border-radius: 0;
  padding: 15px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field textarea { min-height: 190px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(136, 0, 1, .14);
}
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: var(--red); }

/* Honeypot: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-soft);
}
.form-note a { color: var(--red); }

.form-alert {
  display: none;
  border-left: 3px solid var(--red);
  background: var(--grey-surface);
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: .95rem;
}
.form-alert.is-visible { display: block; }

.contact-direct .kicker { margin-bottom: 18px; }
.contact-direct ul { list-style: none; display: grid; gap: 14px; }
.contact-direct a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--black);
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.contact-direct a:hover { color: var(--red); }
.contact-direct p { margin-top: 26px; color: var(--text-soft); font-size: .95rem; }

/* ---------- Rechtstexte ---------- */
.legal h2 { margin-top: clamp(40px, 5vw, 56px); font-size: clamp(1.25rem, 2vw, 1.55rem); }
.legal h3,
.legal .legal-sub {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.legal p { margin-top: 12px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: #111111;   /* eine Ebene tiefer als die Statement-Flächen */
  color: #CFCFCF;
  padding-block: clamp(48px, 7vw, 80px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.4;
}
.footer-brand .sub {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}
.footer-claim { margin-top: 18px; font-size: .95rem; color: rgba(255,255,255,.6); max-width: 34ch; }

.footer-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a,
.footer-bottom a {
  color: #E4E4E4;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer-col a:hover,
.footer-bottom a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.site-footer--short .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- Kleinigkeiten ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* Formate-Band als Abschluss einer Sektion */
.section > .formats { margin-top: var(--section-y); }
.section:has(> .formats) { padding-bottom: 0; }

/* ---------- Ausklappbare Blöcke (Datenschutz: Grundrissplaner & KI) ---------- */
.fold-group { margin-top: 20px; border-top: 1px solid var(--grey-line); }
.fold { border-bottom: 1px solid var(--grey-line); }
.fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 44px 18px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  transition: color .25s var(--ease);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary .fold-num {
  color: var(--red);
  font-size: .85rem;
  letter-spacing: .06em;
}
.fold summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat;
  transition: rotate .3s var(--ease);
}
.fold[open] summary::after { rotate: 45deg; }
.fold summary:hover { color: var(--red); }
.fold summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fold-body { padding: 0 0 22px; }
.fold-body p { margin-top: 12px; }
.fold-body p:first-child { margin-top: 0; }
.fold-body ul { margin: 12px 0 0 1.2em; }
.fold-body li { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  .fold summary::after { transition: none; }
}
