:root {
  /* #587A6C statt #5C7F71: erfüllt WCAG AA (4.76:1) für weissen Text auf Akzentfläche */
  --accent: #587A6C;
  --accent-soft: #8faea1;
  --accent-tint: #eef3f1;
  --accent-hover: color-mix(in srgb, var(--accent) 86%, #000);
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --body: #2a2a2a;
  --muted: #6a6a6a;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --nav-h: 112px;
  --radius-img: 28px;
  --radius-btn: 999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--accent);
  color: #fff;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 78%, #000);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 14px;
}
.logo img { height: 68px; width: auto; }
.nav-right {
  display: flex; align-items: center; gap: 22px;
  min-width: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: #fff;
  opacity: 0.85;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  border-bottom-color: #fff;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--accent) !important;
  padding: 12px 22px !important;
  border-radius: var(--radius-btn);
  font-weight: 500;
  opacity: 1 !important;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: color-mix(in srgb, var(--accent) 84%, #000) !important;
  transform: translateY(-1px);
}
.nav-cta svg { width: 16px; height: 16px; }

/* ---------- SPRACH-TOGGLE ---------- */
.lang-toggle {
  display: inline-flex; align-items: center;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-btn);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.lang-toggle a, .lang-toggle span {
  padding: 5px 10px;
  border-radius: var(--radius-btn);
  line-height: 1;
  color: #fff;
}
.lang-toggle a { opacity: 0.75; transition: opacity 0.2s; }
.lang-toggle a:hover { opacity: 1; }
.lang-toggle [aria-current="true"] {
  background: #fff;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- BURGER + MOBILE MENU ---------- */
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-sheet {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--accent);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 8px 24px 24px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mobile-sheet.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mobile-sheet a {
  color: #fff;
  font-size: 17px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-sheet .nav-cta {
  justify-content: center;
  margin-top: 20px;
  border-bottom: none !important;
  padding: 14px 22px !important;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- LAYOUT ---------- */
main { padding-top: var(--nav-h); }
.section {
  padding: 120px 48px;
  scroll-margin-top: var(--nav-h);
}
.container {
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.section.alt { background: var(--bg-soft); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
}
h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 32px;
}
h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}
.accent-dot { color: var(--accent); }
p { margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--body); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}

/* ---------- HERO ---------- */
.hero {
  scroll-margin-top: var(--nav-h);
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(44px, 4.8vw, 74px); /* "Bezahlbar wohnen." muss in der halben Hero-Spalte auf eine Zeile passen */
  margin-bottom: 16px;
}
/* Markenzeichen direkt unter der Headline: klein, gedämpftes Grün, hängt an der Headline statt eigener Zeile */
.hero-slogan {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-slogan .accent-dot { color: var(--ink); }
.hero-text .copy { max-width: 520px; }
.hero-text .copy p { margin-bottom: 18px; color: var(--body); font-size: 18px; }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-images .img { margin: 0; }
.hero-images .img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  background: var(--bg-soft);
}

/* ---------- IMAGE PLACEHOLDER ---------- */
.placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #ececec 0px, #ececec 12px, #f4f4f4 12px, #f4f4f4 24px);
  display: flex; align-items: center; justify-content: center;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: center;
  padding: 16px;
}

/* ---------- TRUST STRIP ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 60px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1440px;
  margin: 0 auto;
}
.trust-item .num {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item .num span { color: var(--accent); }
.trust-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- TWO-COL CONTENT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
.two-col.img-wide { grid-template-columns: 1fr 1.4fr; }
.col-image {
  aspect-ratio: 1/1;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--bg-soft);
}
.col-image img { width: 100%; height: 100%; object-fit: cover; }
.col-image.tall { aspect-ratio: 1/1; }
.col-image.wide { aspect-ratio: 1/1; }

/* ---------- AUDIENCE CARDS ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
/* 5 Karten passen erst ab ~1240px nebeneinander — darunter 2 Spalten, letzte Karte volle Breite */
@media (max-width: 1240px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid .audience-card:last-child { grid-column: 1 / -1; }
}
.audience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.audience-card .icon-box svg { width: 24px; height: 24px; }
.audience-card .icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.audience-card h3 { margin-bottom: 0; font-size: 22px; }
.audience-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; flex: 1; }
.audience-card .arrow {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.audience-card .arrow svg { width: 14px; height: 14px; transition: transform 0.2s; }
.audience-card:hover .arrow svg { transform: translateX(4px); }

/* ---------- PROCESS STEPS ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.6; /* wie zuvor als h4 (erbte Body-Zeilenhöhe) */
}
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.process-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- STATEMENT BLOCK ---------- */
.statement-block {
  margin-top: 64px;
  background: var(--bg);
  border-radius: 28px;
  padding: 56px 48px;
}
.statement-block .statement-big {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 20px;
}

/* ---------- PORTFOLIO GALLERY ---------- */
.gallery { margin-top: 48px; }
.gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.gallery-stage {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 780px;
  min-width: 0;
  background: var(--bg-soft);
}
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.gallery-slide.active { opacity: 1; visibility: visible; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide .meta {
  position: absolute;
  left: 28px; bottom: 28px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px 22px;
}
.gallery-slide .meta .title { font-weight: 600; color: var(--ink); font-size: 20px; letter-spacing: -0.01em; }
.gallery-slide .meta .loc { color: var(--muted); font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; margin-top: 2px; }
.gallery-slide .credit,
.col-image .credit {
  position: absolute;
  right: 16px; bottom: 16px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.92);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
}
.gallery-nav {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.gallery-nav:hover { background: var(--bg-soft); transform: scale(1.06); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.gallery-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.gallery-count .cur { color: var(--ink); font-weight: 500; }
.gallery-dots { display: flex; gap: 10px; flex: 0 1 auto; min-width: 0; }
.gallery-dot {
  flex: 0 1 40px; /* darf schrumpfen, sonst sprengen 13 Punkte den Viewport */
  min-width: 0;
  width: 40px; height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s;
}
.gallery-dot:hover { background: #c4c4c4; }
.gallery-dot.active { background: var(--accent); }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
.person {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}
.person .avatar {
  width: 180px; height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
}
.person h3 { font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.vision-block {
  margin-top: 64px;
  background: var(--bg-soft);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
/* auf .alt-Hintergrund würde bg-soft verschwinden — dort weisse Karte */
.section.alt .vision-block { background: var(--bg); }
.vision-image { aspect-ratio: 1/1; }
.vision-image img { width: 100%; height: 100%; object-fit: cover; }
.vision-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.vision-text p { font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.2; }
.vision-text p:last-child { margin-bottom: 0; }
.kontakt-image {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 1/1; /* kontakt.webp ist quadratisch — ganzes Bild zeigen, kein Beschnitt */
  align-self: start; /* Oberkante bündig mit dem "Kontakt."-Titel */
}
.kontakt-image img { width: 100%; height: 100%; object-fit: cover; }
.person .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.person ul { list-style: none; padding: 0; }
.person li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
}
.person li:last-child { border-bottom: none; }

/* ---------- KONTAKT SECTION ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.contact-grid .contact-info { margin-top: 48px; }
.contact-info h3 { font-size: 22px; font-weight: 500; margin-bottom: 24px; }
.contact-info address { font-style: normal; }
.contact-info .info-line {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-line svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-info .info-line .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info .info-line .value { color: var(--ink); font-size: 16px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 48px 40px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand img { height: 46px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- FLOATING CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 38%, transparent);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none; /* unsichtbar darf er keine Klicks abfangen (z. B. Footer-Links) */
  transition: all 0.3s ease;
}
.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ---------- RESPONSIVE ---------- */
/* Die 9 Links + CTA + Sprach-Toggle passen erst ab ~1450px neben das Logo — darunter Burger-Menü */
@media (max-width: 1450px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-right { gap: 12px; }
}
@media (max-width: 980px) {
  :root { --nav-h: 76px; }
  .logo img { height: 44px; }
  .nav { padding: 0 24px; }
  .section { padding: 80px 24px; }
  .hero { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .hero-images { grid-template-columns: 1fr; }
  h2 br { display: none; } /* feste Umbrüche sind für Desktop-Zeilen gesetzt */
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.img-wide { grid-template-columns: 1fr; } /* Spezifität schlägt sonst die Mobile-Regel */
  .two-col.reverse > *:first-child { order: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid.cols-3 { grid-template-columns: 1fr 1fr; } /* Spezifität schlägt sonst die Mobile-Regel */
  .gallery-stage { aspect-ratio: 1/1; }
  .gallery-wrap { gap: 10px; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-nav svg { width: 18px; height: 18px; }
  .gallery-slide .meta { left: 16px; bottom: 16px; padding: 12px 16px; }
  .gallery-slide .meta .title { font-size: 17px; }
  .team-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person .avatar { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1/1; }
  .vision-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px; }
}
@media (max-width: 640px) {
  /* "Bezahlbar wohnen." muss auch auf dem iPhone (402px) auf eine Zeile passen:
     etwas kleiner, dafür einen Tick fetter, damit die Headline nicht an Gewicht verliert */
  .hero-text h1 { font-size: min(44px, 9.6vw); font-weight: 600; }
  .audience-grid { grid-template-columns: 1fr; }
  .statement-block { padding: 36px 28px; }
  .gallery-nav { display: none; } /* Touch-Geräte blättern per Swipe — Pfeile kosten nur Bildbreite */
  .floating-cta { bottom: 16px; right: 16px; }
}

/* ---------- LEGAL PAGES (Impressum / Datenschutz) ---------- */
/* Eigene Klasse statt .nav-links: die verschwindet unter 1450px zugunsten des
   Burgers, den es auf den JS-freien Rechtsseiten nicht gibt */
.legal-back {
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
  transition: opacity 0.2s;
}
.legal-back:hover { opacity: 1; }
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}
.legal-wrap h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 16px;
}
.legal-stand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.legal-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  background: var(--accent-tint);
  border-radius: 12px;
  font-size: 14px;
  color: var(--body);
}
.legal-section { margin-top: 64px; }
.legal-section h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.legal-section p { font-size: 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-section li { margin-bottom: 10px; font-size: 16px; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-decoration-color 0.2s;
}
.legal-section a:hover { text-decoration-color: var(--accent); }

/* Inline-Textlinks (z. B. AMZ Architekten) */
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--accent); }
.legal-facts {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.legal-facts > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-facts dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 4px;
}
.legal-facts dd { font-size: 16px; color: var(--ink-2); }
@media (max-width: 980px) {
  .legal-wrap { padding: 48px 24px 80px; }
  .legal-section { margin-top: 48px; }
}
@media (max-width: 640px) {
  .legal-back { display: none; } /* Logo führt zurück — Platz für den Sprach-Toggle */
  .legal-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
