﻿/* ================================================
   SIEGEL ARCHITEKTEN — Stylesheet v4
   ================================================ */

:root {
  --red:   #c53d1e;
  --black: #111111;
  --white: #ffffff;
  --bg:    #f2f2f0;     /* cappuccino – nur für Karten/Blöcke */
  --g2:    #d8d8d4;
  --g3:    #999990;
  --g4:    #555550;
  --font:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --hh:    76px;
  --side:  64px;
  --max:   1280px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);          /* Abschnitte = weiß */
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul,ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: var(--font); }

/* ── KONSISTENTER CONTAINER (gleiche Ausrichtung überall) */
.w {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ── UTILITIES ────────────────────────────────── */
.label {
  display: block;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--red);
  margin-bottom: 8px;
}
.rule { width: 36px; height: 2px; background: var(--red); margin: 12px 0 20px; }
.lead { font-size: 0.95rem; line-height: 1.8; color: var(--g4); }
.subtitle { font-size: 0.88rem; color: var(--g3); }

/* ── INTRO ANIMATION ──────────────────────────── */
#intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease);
}
#intro-overlay.logo-docking {
  pointer-events: none;
}
#intro-overlay.fade-out { opacity: 0; pointer-events: none; }
#intro-overlay.gone     { display: none; }
.intro-logo {
  width: min(460px, 68vw); opacity: 0; transform: translateY(16px);
  animation: introUp 1s var(--ease) 0.4s forwards;
  will-change: transform, opacity;
}
.intro-line {
  height: 1px; width: 0; background: var(--red); margin-top: 14px;
  animation: introRule 0.65s var(--ease) 1.5s forwards;
  transition: opacity 0.35s ease;
}
@keyframes introUp   { to { opacity:1; transform:translateY(0); } }
@keyframes introRule { to { width: min(460px,68vw); } }

/* ── HEADER ───────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  height: var(--hh);
  background: transparent;         /* ganz am Anfang transparent */
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease);
}
.site-header.solid {
  background: var(--white);
  border-bottom-color: var(--g2);
}
.site-header.header-hidden { transform: translateY(-100%); }

/* Header-Inhalt im .w-Container für einheitliche Ausrichtung */
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-logo img { height: 48px; width: auto; }

/* ── NAVIGATION ───────────────────────────────── */
.site-nav { position: relative; display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.025em;
  color: var(--white);             /* weiß auf transparentem Hero */
  position: relative; transition: color 0.45s ease;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--red);
  transition: width 0.25s var(--ease);
}
.site-nav .nav-indicator {
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--red);
  opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
}
.site-nav a:hover { color: rgba(255,255,255,0.75); }
.site-nav a:hover::after { width: 0; }
.site-nav a.active,
.site-nav a.active-leaving { color: var(--red); }
.site-nav a.active::after { width: 0; }

/* Wenn Header solid: schwarze Nav-Links */
.site-header.solid .site-nav a { color: var(--black); }
.site-header.solid .site-nav a:hover { color: var(--red); }
.site-header.solid .site-nav a.active,
.site-header.solid .site-nav a.active-leaving { color: var(--red); }

/* Header Logo auf transparentem Header weiß (Startseite) */
.site-header:not(.solid) .header-logo img {
  filter: brightness(0) invert(1);
}
.site-header.solid .header-logo img {
  filter: none;
}

/* ── HAMBURGER ────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--white); transition: transform 0.3s var(--ease), opacity 0.2s, background 0.3s;
}
.site-header.solid .hamburger span { background: var(--black); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV ───────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 790;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a { font-size: 1.5rem; font-weight: 200; letter-spacing: 0.04em; transition: color 0.2s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  overflow: hidden; background: var(--black);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease;
}
.hero-slide.active { opacity: 1; }

/* Dunkel-Gradient für Textlesbarkeit (kein Weiß) */
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Hero-Inhalt: text + stats am unteren Rand — gleiche Ausrichtung wie .w-Container */
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start;
  padding-top:    var(--hh);
  padding-bottom: 118px;
  /* max() repliziert .w-Logik: auf breiten Screens zentriert, sonst var(--side) */
  padding-left:  max(var(--side), calc((100% - var(--max)) / 2));
  padding-right: max(var(--side), calc((100% - var(--max)) / 2));
}
.hero-top {
  max-width: 640px;
  opacity: 0; animation: riseIn 1s var(--ease) 3.6s forwards;
}
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.66rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.58);
  margin-bottom: 14px;
}
.hero-kicker-line { width: 24px; height: 1px; background: var(--red); flex-shrink: 0; }
.hero-h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 200;
  letter-spacing: 0.01em; line-height: 1.05; color: var(--white);
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
  max-width: 380px; line-height: 1.65; margin-bottom: 22px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  font-size: 0.76rem; letter-spacing: 0.04em;
  transition: background 0.25s, border-color 0.25s;
}
.hero-cta:hover { background: var(--red); border-color: var(--red); }

/* Stats-Zeile direkt unter dem Text */
.hero-stats {
  display: flex; gap: 40px; align-items: flex-start;
  margin-top: 24px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.18);
  width: 100%;
  opacity: 0; animation: riseIn 0.8s ease 4.1s forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-n { font-size: 1.5rem; font-weight: 200; color: var(--white); line-height: 1; }
.hero-stat-n sup { font-size: 0.75rem; vertical-align: super; }
.hero-stat-l { font-size: 0.58rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.42); }

@keyframes riseIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-dots { position: absolute; bottom: 28px; right: var(--side); display: flex; gap: 6px; }
.hero-dot { width: 20px; height: 1px; background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.3s, width 0.3s; }
.hero-dot.active { background: var(--white); width: 34px; }

/* ── ABSCHNITT-BASIS (alle white) ─────────────── */
.section {
  background: var(--white);
  padding: 72px 0;
  border-bottom: 1px solid var(--g2);
}
.section:last-child { border-bottom: none; }
.section-title { font-size: 1.3rem; font-weight: 500; margin-top: 6px; }
.section-sub   { font-size: 0.88rem; color: var(--g4); max-width: 540px; margin-top: 8px; }

/* ── DUNKLER BILD-ABSCHNITT ───────────────────── */
.dark-section {
  position: relative; overflow: hidden;
  padding: 80px 0; background: var(--black);
  border-bottom: 1px solid #222;
}
.dark-section-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.38;
}
.dark-section-inner {
  position: relative; z-index: 2;
  text-align: center;
}
.dark-section-inner .label { color: rgba(255,255,255,0.45); letter-spacing: 0.16em; }
.dark-section-inner h2  { color: var(--white); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 200; margin: 10px 0 16px; }
.dark-section-inner p   { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }
.ds-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; background: var(--red); color: var(--white);
  font-size: 0.78rem; letter-spacing: 0.04em;
  border: 1px solid var(--red); transition: opacity 0.2s;
}
.btn-red:hover { opacity: 0.85; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; color: var(--white);
  font-size: 0.78rem; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline-white:hover { border-color: var(--white); }

/* ── SEITENÜBERSCHRIFT (alle Unterseiten) ─────── */
.page-head {
  background: var(--white);
  padding: calc(var(--hh) + 56px) 0 0;
  border-bottom: 1px solid var(--g2);
}
.page-head-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
  padding-bottom: 52px;
}
.page-head-title { }
.page-head-title h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 300; line-height: 1.2; margin-top: 6px; }
.page-head-text .lead { max-width: 500px; }
.page-head-text .head-stat {
  margin-top: 24px; display: flex; gap: 36px;
}
.head-stat-item { display: flex; flex-direction: column; gap: 4px; }
.head-stat-n { font-size: 1.4rem; font-weight: 200; color: var(--red); line-height: 1; }
.head-stat-l { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--g3); }

/* ── HOMEPAGE: LEISTUNGSBEREICHE ──────────────── */
.hs-services { background: var(--white); border-bottom: 1px solid var(--g2); padding: 72px 0; }
.hs-svc-header { margin-bottom: 32px; }
.hs-svc-header h2 { font-size: 1.3rem; font-weight: 500; margin-top: 6px; }
.hs-svc-header p  { font-size: 0.88rem; color: var(--g4); margin-top: 8px; max-width: 520px; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-card {
  display: block; background: var(--bg);   /* cappuccino */
  border: 1px solid var(--g2); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.svc-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.svc-card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--g2); position: relative; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.04); }
.svc-card-body { padding: 22px 24px 26px; border-top: 2px solid transparent; transition: border-color 0.25s; }
.svc-card:hover .svc-card-body { border-top-color: var(--red); }
.svc-card-num { display: block; font-size: 0.58rem; font-weight: 700; color: var(--red); margin-bottom: 5px; letter-spacing: 0.12em; }
.svc-card-body h3 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.svc-card-body p  { font-size: 0.84rem; line-height: 1.72; color: var(--g4); margin-bottom: 14px; }
.svc-card-arrow   { font-size: 0.74rem; color: var(--red); display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.svc-card:hover .svc-card-arrow { gap: 8px; }

/* ── HOMEPAGE: PROJEKTE-STREIFEN ──────────────── */
.hs-projects { background: var(--white); border-bottom: 1px solid var(--g2); padding: 72px 0; }
.hs-proj-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px;
}
.hs-proj-header h2 { font-size: 1.3rem; font-weight: 500; margin-top: 6px; }
.hs-proj-header a  { font-size: 0.78rem; color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 1px; white-space: nowrap; }
.hs-proj-header a:hover { opacity: 0.7; }
.proj-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }

/* ── HOMEPAGE: BÜRO/PROFIL ────────────────────── */
.hs-profile { background: var(--white); border-bottom: 1px solid var(--g2); padding: 72px 0; }
.hs-profile-inner {
  display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: center;
}
.hs-profile-text h2 { font-size: 1.3rem; font-weight: 500; margin-top: 6px; margin-bottom: 14px; }
.hs-profile-text p  { font-size: 0.9rem; line-height: 1.8; color: var(--g4); max-width: 500px; margin-bottom: 12px; }
.hs-profile-photo { position: relative; }
.hs-profile-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; border: 1px solid var(--g2); }
.hs-profile-photo::after {
  content: ''; position: absolute; bottom: -8px; right: -8px;
  width: 50px; height: 50px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  pointer-events: none;
}

/* ── QUOTE STRIP ──────────────────────────────── */
.quote-strip { background: var(--white); padding: 72px 0; border-bottom: 1px solid var(--g2); text-align: center; }
.quote-strip blockquote { font-size: clamp(1rem,1.8vw,1.45rem); font-weight: 300; font-style: italic; line-height: 1.6; max-width: 620px; margin: 0 auto 12px; }
.quote-strip blockquote span { display: block; }
.quote-strip cite { font-style: normal; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--g3); }

/* ── GETEILTE PROJEKTKARTE ────────────────────── */
.proj-card {
  display: block; background: var(--bg);  /* cappuccino */
  border: 1px solid var(--g2); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s;
}
.proj-card:hover { border-color: var(--red); box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-3px); }
.proj-card-fig { overflow: hidden; background: var(--g2); }
.proj-card-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.proj-card:hover .proj-card-fig img { transform: scale(1.04); }
.proj-card-cap { padding: 15px 17px; border-top: 2px solid transparent; transition: border-color 0.25s; }
.proj-card:hover .proj-card-cap { border-top-color: var(--red); }
.proj-card-num { display: block; font-size: 0.58rem; font-weight: 700; color: var(--red); margin-bottom: 3px; letter-spacing: 0.12em; }
.proj-card-cap h3 { font-size: 0.84rem; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.proj-card-cap .proj-type { font-size: 0.7rem; color: var(--g3); }
.proj-strip-card .proj-card-fig { aspect-ratio: 1/1; }

/* ── PROJEKTSEITE GRID ────────────────────────── */
.projects-page-wrap {
  padding-top: 52px;
  padding-bottom: 72px;
}
.projects-page-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.projects-page-grid .proj-card-fig { aspect-ratio: 4/3; }

/* ── LEISTUNGSSEITEN: BILD-BANNER ─────────────── */
.svc-banner { height: 42vh; min-height: 260px; max-height: 380px; overflow: hidden; background: var(--g2); }
.svc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── LEISTUNGSSEITEN: CONTENT ─────────────────── */
.service-body { padding: 64px 0 72px; }
.service-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 52px; align-items: stretch; }
.service-grid > div { min-width: 0; }
.service-grid > div:first-child {
  display: flex;
  flex-direction: column;
}
.service-intro { margin-bottom: 32px; }
.service-intro p { font-size: 0.92rem; line-height: 1.85; color: var(--g4); max-width: 600px; }

.svc-item-list { display: flex; flex-direction: column; gap: 8px; }
.svc-item-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--g2);
  border-left: 3px solid var(--red); padding: 18px 20px;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc-item-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.svc-item-icon { flex-shrink:0; width:20px; height:20px; color:var(--red); margin-top:1px; overflow:visible; }
.svc-item-icon svg { width:100%; height:100%; overflow:visible; }
.svc-item-body h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 4px; }
.svc-item-body p  { font-size: 0.82rem; line-height: 1.7; color: var(--g4); }

.service-block { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--g2); }
.service-block h3 { font-size: 0.98rem; font-weight: 500; margin-bottom: 10px; }
.service-block p  { font-size: 0.86rem; line-height: 1.85; color: var(--g4); max-width: 580px; }

/* Sidebar – kein sticky mehr */
.service-aside {
  background: var(--white); border: 1px solid var(--g2);
  border-left: 3px solid var(--red); padding: 24px;
}
.service-grid > .fade-up:not(.flow-section) {
  display: flex;
  flex-direction: column;
}
.service-grid:not(.service-grid--detail) > .fade-up:not(.flow-section) > .service-aside {
  flex: 1;
}
.service-aside-hoai {
  display: flex; flex-direction: column;
}
.service-aside-hoai .aside-list {
  flex: 0 0 auto;
  display: block;
}
.service-aside-stack {
  display: flex; flex-direction: column; gap: 14px;
  height: 100%;
}
.service-aside-stack .service-aside {
  margin-top: 0;
}
.service-aside-stack .service-aside:last-child {
  flex: 1;
  display: flex; flex-direction: column;
}
.service-aside-stack .case-grid {
  flex: 1;
  align-content: stretch;
  grid-auto-rows: 1fr;
  gap: 10px;
}
.service-aside + .service-aside { margin-top: 14px; }
.aside-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); margin-bottom: 12px; }
.service-aside > p { font-size: 0.82rem; line-height: 1.78; color: var(--g4); margin-bottom: 8px; }
.aside-list { margin-top: 12px; border-top: 1px solid var(--g2); }
.aside-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--g2); font-size: 0.8rem; color: var(--g4); align-items: baseline; }
.aside-num { color: var(--red); font-size: 0.6rem; font-weight: 700; min-width: 30px; flex-shrink: 0; }
.aside-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.75rem; color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: opacity 0.2s; }
.aside-link:hover { opacity: 0.7; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.case-item { background: var(--white); border: 1px solid var(--g2); padding: 10px 12px; font-size: 0.76rem; color: var(--g4); display: flex; gap: 7px; align-items: flex-start; line-height: 1.5; }
.case-dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.service-aside-stack .case-item {
  min-height: 70px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.service-aside-stack .case-dot {
  position: relative;
  width: 15px; height: 15px;
  border: 1px solid var(--red);
  background: transparent;
  margin-top: 0;
}
.service-aside-stack .case-dot::after {
  content: '';
  position: absolute; inset: 4px;
  background: var(--red);
  border-radius: 50%;
}

/* ── PROFILSEITE ──────────────────────────────── */
/* Profil-Hero: Foto + Info nebeneinander */
.profile-hero {
  background: var(--white); border-bottom: 1px solid var(--g2);
  padding: 56px 0;
}
.profile-hero-inner {
  display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start;
}
/* Foto mit dekorativem Eck */
.profile-photo-wrap { position: relative; }
.profile-photo-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  display: block; border: 1px solid var(--g2);
}
.photo-deco-tl, .photo-deco-br {
  position: absolute; width: 28px; height: 28px; pointer-events: none;
}
.photo-deco-tl { top: -7px; left: -7px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.photo-deco-br { bottom: -7px; right: -7px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.photo-caption { margin-top: 10px; font-size: 0.7rem; line-height: 1.55; color: var(--g3); }

/* Info-Seite */
.profile-info .profile-name { font-size: clamp(1.6rem,2.5vw,2.2rem); font-weight: 300; margin: 8px 0 14px; }
.profile-info { max-width: none; }
.profile-copy {
  max-width: 720px;
  display: block;
}
.profile-info p {
  display: block;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--g4);
  max-width: 620px;
  margin: 0 0 12px;
}
.profile-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 24px;
}

/* Philosophie – dunkler Bild-Abschnitt auf Profilseite */
/* (nutzt .dark-section) */

/* Timeline */
.profile-timeline-section { background: var(--white); padding: 52px 0; border-bottom: 1px solid var(--g2); }
.profile-timeline-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.timeline-side {
  border-left: 3px solid var(--red);
  padding-left: 18px;
}
.timeline-side p {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--g4);
  max-width: 220px;
}
.timeline-title { font-size: 1rem; font-weight: 500; margin-bottom: 24px; }
.timeline { border-top: 1px solid var(--g2); }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--g2); }
.tl-period { font-size: 0.7rem; color: var(--g3); padding-top: 1px; line-height: 1.5; }
.tl-body h4 { font-size: 0.85rem; font-weight: 500; margin-bottom: 2px; }
.tl-body p  { font-size: 0.78rem; color: var(--g3); line-height: 1.6; }

/* Werte-Karten */
.values-section { background: var(--white); padding: 56px 0; border-bottom: 1px solid var(--g2); }
.values-section h2 { font-size: 1.2rem; font-weight: 500; margin-bottom: 28px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.value-card {
  background: var(--bg); border: 1px solid var(--g2);    /* cappuccino */
  padding: 24px 22px; border-top: 3px solid var(--red);
}
.value-card-icon { width: 24px; height: 24px; color: var(--red); margin-bottom: 12px; }
.value-card-icon svg { width:100%; height:100%; }
.value-card h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; }
.value-card p  { font-size: 0.8rem; line-height: 1.7; color: var(--g4); }

.profile-quote-section { background: var(--white); padding: 44px 0; border-bottom: 1px solid var(--g2); }
.profile-quote-inner {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.q-bar { width: 4px; background: var(--red); }
.profile-quote { font-size: clamp(1rem,1.8vw,1.4rem); font-weight: 300; font-style: italic; line-height: 1.55; color: var(--black); margin-bottom: 10px; }
.profile-quote-attr { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--g3); }

/* ── KONTAKTSEITE ─────────────────────────────── */
.contact-section-wrap {
  padding-top: 64px;
  padding-bottom: 72px;
}
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info h3 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); margin-bottom: 12px; }
.contact-info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.contact-icon { flex-shrink:0; width:16px; height:16px; color:var(--red); margin-top:1px; }
.contact-icon svg { width:100%; height:100%; }
.contact-info-row p,
.contact-info-row address { font-style:normal; font-size:0.88rem; line-height:1.7; color:var(--g4); }
.contact-info-row a:hover { color: var(--red); }
.contact-divider { margin: 24px 0; height:1px; background:var(--g2); }
.contact-form-wrap h3 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.63rem; letter-spacing: 0.06em; color: var(--g3); }
.form-field input, .form-field textarea {
  font-family: var(--font); font-size: 0.88rem; padding: 9px 0;
  border: none; border-bottom: 1px solid var(--g2);
  background: transparent; color: var(--black); outline: none;
  transition: border-color 0.2s; resize: none; -webkit-appearance: none;
}
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--red); }
.form-field textarea { min-height: 95px; }
.form-note { font-size: 0.7rem; color: var(--g3); line-height: 1.6; }
.btn-send { align-self: flex-start; padding: 12px 26px; font-size: 0.76rem; background: var(--black); color: var(--white); border: 1px solid var(--black); transition: background 0.25s, border-color 0.25s; }
.btn-send:hover { background: var(--red); border-color: var(--red); }

/* ── PROJEKTDETAILSEITEN ──────────────────────── */
.proj-detail-hero { height: 64vh; min-height: 400px; overflow: hidden; margin-top: var(--hh); background: var(--g2); }
.proj-detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.proj-detail-main { padding: 60px 0 72px; }
.proj-detail-main .w { display: grid; grid-template-columns: minmax(0, 660px) minmax(260px, 1fr); column-gap: 56px; align-items: start; }
.proj-detail-head { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid var(--g2); }
.proj-detail-head h1 { font-size: 1.4rem; font-weight: 500; margin-top: 10px; margin-bottom: 5px; }
.proj-detail-head .subtitle { font-size: 0.86rem; color: var(--g3); }
.proj-meta { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 0; padding: 40px 0; border-bottom: 1px solid var(--g2); }
.proj-meta div { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--g2); }
.proj-meta div:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.proj-meta dt { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); margin-bottom: 5px; }
.proj-meta dd { font-size: 0.86rem; }
.proj-body { grid-column: 1; grid-row: 2; padding: 40px 0; max-width: 660px; border-bottom: 1px solid var(--g2); }
.proj-body p { font-size: 0.92rem; line-height: 1.9; color: var(--g4); margin-bottom: 14px; }
.proj-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 40px 0; }
.proj-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: opacity 0.3s; cursor: zoom-in; }
.proj-gallery img:hover { opacity: 0.85; }
.proj-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--g2); }
.proj-nav a { font-size: 0.76rem; transition: color 0.2s; }
.proj-nav a:hover { color: var(--red); }
.proj-nav a:first-child::before { content: '← '; }
.proj-nav a:last-child::after  { content: ' →'; }

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 72px 80px;
  background: rgba(17, 17, 17, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.project-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.project-lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 144px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.lightbox-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(0,0,0,0.24);
  font-size: 1.8rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ── RECHTSSEITEN ─────────────────────────────── */
.legal-wrap { padding: calc(var(--hh) + 64px) 0 80px; }
.legal-inner { max-width: 720px; }
.legal-wrap h1 { font-size: 1.4rem; font-weight: 500; margin-bottom: 32px; }
.legal-wrap h2 { font-size: 0.88rem; font-weight: 500; margin: 32px 0 8px; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap p, .legal-wrap address { font-style: normal; font-size: 0.85rem; line-height: 1.85; color: var(--g4); margin-bottom: 8px; }
.legal-wrap ul li { list-style: disc; margin-left: 14px; font-size: 0.85rem; line-height: 1.8; color: var(--g4); margin-bottom: 3px; }
.legal-wrap a { border-bottom: 1px solid var(--g2); transition: color 0.2s, border-color 0.2s; }
.legal-wrap a:hover { color: var(--red); border-color: var(--red); }

/* ── HILFSELEMENTE ────────────────────────────── */
.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 2px; transition: opacity 0.2s, gap 0.2s; }
.arrow-link:hover { opacity: 0.7; gap: 10px; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE TRANSITIONS ─────────────────────────── */
main, .site-footer {
  transition: opacity 0.48s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.42s ease;
}
body.page-exiting main,
body.page-exiting .site-footer {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(1.5px);
}
body.page-entering main,
body.page-entering .site-footer {
  opacity: 0;
  transform: translateY(16px);
}
body.page-transitioning .fade-up {
  transition: none;
}
body.page-transitioning {
  cursor: progress;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 12000;
  background: var(--white); opacity: 0; pointer-events: none;
  transition: opacity 0.42s ease;
}
body.home-transitioning::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  main, .site-footer, .site-nav .nav-indicator {
    transition: none;
  }
  body.page-exiting main,
  body.page-exiting .site-footer,
  body.page-entering main,
  body.page-entering .site-footer {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── FUSSZEILE ────────────────────────────────── */
.site-footer {
  background: var(--white); padding: 44px 0;
  border-top: 1px solid var(--g2);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-logo img { height: 42px; width: auto; }
.footer-nav { display: flex; gap: 22px; justify-content: center; }
.footer-nav a { font-size: 0.75rem; letter-spacing: 0.02em; color: var(--g3); transition: color 0.2s; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { font-size: 0.68rem; color: #bbb; text-align: right; }

/* ── KLICKBARE SVC-ITEM-KARTEN (Detail-Links) ─── */
a.svc-item-card {
  display: flex;
  color: inherit;
  cursor: pointer;
  position: relative;
}
a.svc-item-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-color: var(--red);
  transform: translateX(4px);
}
.svc-item-more {
  position: absolute;
  bottom: 12px; right: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.69rem; color: var(--red);
  background: var(--white);
  padding: 0 2px;
  opacity: 0.65;
  transition: gap 0.3s var(--ease), opacity 0.3s var(--ease);
}
a.svc-item-card:hover .svc-item-more { gap: 9px; opacity: 1; }

/* ── DETAIL-SEITEN: FEATURE-KARTEN ────────────── */
.detail-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  align-content: stretch;
  margin: 8px 0 36px;
}
.detail-feature-card {
  background: var(--white);
  border: 1px solid var(--g2);
  border-top: 3px solid var(--red);
  padding: 22px 20px;
}
.service-grid--detail .detail-feature-grid {
  margin-bottom: 0;
}
.detail-feature-icon {
  width: 26px; height: 26px;
  color: var(--red);
  margin-bottom: 12px;
  overflow: visible;
}
.detail-feature-icon svg { width: 100%; height: 100%; overflow: visible; }
.detail-feature-card h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.detail-feature-card p  { font-size: 0.81rem; line-height: 1.72; color: var(--g4); }

/* ── ABLAUF-FLUSSDIAGRAMM ─────────────────────── */
.flow-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--g2);
}
.flow-section-label {
  display: block;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 18px;
}
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.flow-diagram--equal {
  grid-auto-rows: 1fr;
}
.flow-diagram--equal .flow-card {
  display: flex;
  flex-direction: column;
}
/* When flow-section is a direct grid child it spans all columns and sits in row 2 */
.service-grid--detail > .flow-section {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  padding-top: 40px;
  border-top: 1px solid var(--g2);
}
/* Force sidebar to col 2 row 1 regardless of source order */
.service-grid--detail > .detail-sidebar {
  grid-column: 2;
  grid-row: 1;
}
.service-grid--detail > .detail-sidebar .service-aside:last-child {
  flex: 1;
}
.flow-card {
  background: var(--white);
  border: 1px solid var(--g2);
  border-top: 2px solid var(--red);
  padding: 22px 20px 18px;
  transition: box-shadow 0.32s var(--ease), transform 0.32s var(--ease);
}
.flow-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.flow-card-num {
  display: block;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--red); margin-bottom: 8px;
}
.flow-card h4 {
  font-size: 0.84rem; font-weight: 500; color: var(--black);
  margin-bottom: 6px; line-height: 1.3;
}
.flow-card p {
  font-size: 0.76rem; line-height: 1.65; color: var(--g4);
}
.flow-h-arrow { display: none; }
.flow-down-arrow { display: none; }
.flow-card--wide { grid-column: 1 / -1; }

/* ── DETAIL-SEITEN: KENNZAHLEN-LEISTE ─────────── */
.detail-stat-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--white); border: 1px solid var(--g2);
  border-left: 3px solid var(--red);
}
.detail-stat-n { font-size: 1.5rem; font-weight: 200; color: var(--red); line-height: 1; display: block; }
.detail-stat-l { font-size: 0.6rem; letter-spacing: 0.08em; color: var(--g3); display: block; margin-top: 3px; }

/* ── DETAIL-SEITEN: SIDEBAR ─────────────────────── */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

/* ── DETAIL-SEITEN: ZURÜCK-NAVIGATION ─────────── */
.detail-nav-back { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--g2); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1100px) {
  :root { --side: 44px; }
  .service-grid { gap: 36px; }
  .hs-profile-inner { gap: 32px; }
}

@media (max-width: 900px) {
  :root { --side: 32px; }
  .site-nav   { display: none; }
  .hamburger  { display: flex; }
  .svc-grid          { grid-template-columns: 1fr; gap: 12px; }
  .proj-strip        { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .hs-proj-header    { flex-direction: column; align-items: flex-start; }
  .hs-profile-inner  { grid-template-columns: 1fr; }
  .hs-profile-photo  { max-width: 150px; }
  .page-head-inner   { grid-template-columns: 1fr; gap: 20px; }
  .service-grid      { grid-template-columns: 1fr; }
  .service-grid--detail > .detail-sidebar { grid-column: auto; grid-row: auto; }
  .service-grid--detail > .flow-section { grid-row: auto; }
  .service-aside-hoai, .service-aside-stack { min-height: 0; }
  .service-aside-hoai .aside-list, .service-aside-stack .service-aside:last-child {
    display: block;
  }
  .service-aside-stack { gap: 0; }
  .service-aside-stack .service-aside + .service-aside { margin-top: 14px; }
  .profile-hero-inner { grid-template-columns: 160px 1fr; gap: 32px; }
  .profile-timeline-layout { grid-template-columns: 160px 1fr; gap: 32px; }
  .values-grid       { grid-template-columns: 1fr 1fr; }
  .contact-wrap      { grid-template-columns: 1fr; gap: 44px; }
  .projects-page-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .contact-wrap { gap: 44px; }
  .proj-detail-main .w { display: block; }
  .proj-meta         { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }
  .proj-meta div { padding: 0; margin-bottom: 0; border-bottom: none; }
  .proj-gallery      { grid-template-columns: 1fr 1fr; }
  .case-grid         { grid-template-columns: 1fr; }
  .hero-stats        { gap: 28px; }

  .footer-inner {
    grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 32px 0;
  }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  :root { --hh: 60px; --side: 20px; }
  .detail-feature-grid { grid-template-columns: 1fr; }
  .flow-diagram { grid-template-columns: 1fr; }
  .hero-content {
    padding-top: var(--hh); padding-bottom: 74px;
    padding-left: var(--side); padding-right: var(--side);
  }
  .hero-stats   { gap: 18px; }
  .hero-dots    { right: var(--side); bottom: 16px; }
  .hero-h1      { font-size: 1.8rem; }

  .hs-services, .hs-projects, .hs-profile, .quote-strip,
  .service-body, .dark-section,
  .profile-hero, .profile-timeline-section, .values-section, .profile-quote-section,
  .contact-wrap, .proj-detail-main { padding-top: 48px; padding-bottom: 48px; }
  .page-head { padding-top: calc(var(--hh)+36px); }
  .legal-wrap { padding-top: calc(var(--hh)+40px); padding-bottom: 48px; }

  .projects-page-grid { grid-template-columns: 1fr 1fr; }
  .projects-page-wrap { padding-top: 36px; padding-bottom: 48px; }
  .contact-section-wrap { padding-top: 48px; padding-bottom: 48px; }
  .proj-strip { grid-template-columns: 1fr 1fr; }
  .proj-meta  { grid-template-columns: 1fr; gap: 14px; }
  .proj-gallery { grid-template-columns: 1fr 1fr; }
  .project-lightbox { padding: 64px 18px; }
  .project-lightbox img { max-height: calc(100vh - 128px); }
  .lightbox-btn { width: 38px; height: 38px; font-size: 1.5rem; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-counter { left: 18px; bottom: 16px; }
  .profile-hero-inner, .profile-timeline-layout { grid-template-columns: 1fr; }
  .timeline-side p { max-width: none; }
  .tl-row { grid-template-columns: 1fr; gap: 4px; }
  .profile-hero-inner { grid-template-columns: 1fr; }
  .profile-photo-wrap { max-width: 160px; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .profile-quote-inner { grid-template-columns: 4px minmax(0, 1fr); gap: 18px; }
  .ds-btns { flex-direction: column; align-items: center; }
}
