/* =========================================================================
   ŽUPA Immobilienmanagement — Interim-Website (Design-Draft v1)
   Statisches HTML/CSS, kein Build-Step (lauffähig auf All-Inkl als Datei-Upload).
   Design-Sprache: refined / wertig / vertrauenswürdig — dunkle CI + warmes Creme,
   klassische Serifen-Wortmarke (ŽUPA), Messing-Akzent.
   ========================================================================= */

/* ---------- Design-Tokens (Single Source of Truth) ---------- */
:root {
  /* Farben — abgeleitet aus der bestehenden CI (Charcoal #2a2b34, Creme #fef8ee, Grau #777886) */
  --ink-900: #16171d;   /* tiefstes Charcoal — Footer/Notdienst */
  --ink-800: #1c1d24;   /* Haupt-Dunkel — Hero-Overlay, Header solid */
  --ink-700: #262833;
  --bone:    #f5f0e7;   /* warme, wertige Fläche statt kaltem Grau */
  --paper:   #fbf8f2;   /* Body-Hintergrund (leicht warm) */
  --muted:   #7c7d89;   /* gedämpftes Grau-Blau aus CI */
  --muted-2: #9a9ba6;
  --line:    rgba(28, 29, 36, .12);
  --line-dk: rgba(245, 240, 231, .14);

  /* Akzent — gedämpftes Messing/Champagner (Luxus/Immobilie, vertrauenswürdig) */
  --brass:   #b08d57;
  --brass-2: #c8a86f;
  --brass-ink: #1c1d24;

  /* Typografie */
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;        /* Wortmarke / Caps */
  --font-serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif; /* Editorial-Headlines */
  --font-script:  "Pinyon Script", "Cormorant Garamond", cursive;        /* Akzent */
  --font-body:    "Montserrat", system-ui, -apple-system, sans-serif;       /* Fließtext / UI */

  /* Typo-Skala (clamp, modular) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.8rem, 1.9rem + 4vw, 5rem);

  /* Spacing */
  --space-sm: .75rem;  --space-md: 1.25rem; --space-lg: 2rem;
  --space-xl: 3.5rem;  --space-2xl: 6rem;   --space-3xl: 9rem;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 50px -22px rgba(22, 23, 29, .35);
  --shadow-card: 0 24px 60px -28px rgba(22, 23, 29, .45);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brass); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, var(--space-3xl)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
.h-display { font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; }

.lead { font-size: var(--step-1); color: var(--ink-700); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brass);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--brass-2); border-color: var(--brass-2); }
.btn--ghost {
  --bg: transparent; --fg: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn--dark { --bg: var(--ink-800); --fg: var(--bone); border-color: var(--ink-800); }
.btn--dark:hover { background: var(--ink-900); border-color: var(--ink-900); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top-Leiste ---------- */
.topbar {
  background: var(--ink-900);
  color: var(--muted-2);
  font-size: var(--step--1);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.topbar a { color: var(--muted-2); transition: color .3s; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--brass-2); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); flex-wrap: wrap; }
.topbar .sep { width: 1px; height: 14px; background: var(--line-dk); }
.topbar .notruf { color: var(--brass-2); font-weight: 600; }
.topbar-right a[data-portal] { letter-spacing: .04em; }
@media (max-width: 720px) {
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(22, 23, 29, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dk);   /* feine Trennlinie ohne Layout-Höhe (kein 1px-Spalt) */
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* Menü mittig, unabhängig von Logo-/CTA-Breite */
  align-items: center;
  gap: 1rem;
  min-height: 84px;
}
.brand { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; color: #fff; }
.brand .logo { height: 48px; width: auto; display: block; }
@media (max-width: 520px) { .brand .logo { height: 40px; } }
.nav-links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  position: relative;
  padding-block: .4rem;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass-2);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn.nav-cta { grid-column: 3; justify-self: end; padding: .75rem 1.4rem; }

/* Burger */
.nav-toggle { grid-column: 3; justify-self: end; display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: #fff; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 940px) {
  .nav .btn.nav-cta { display: none; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-links { display: none; }   /* Desktop-Links auf Mobil aus; Mobil nutzt .mobile-menu */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ========================================================================
   MOBILE MENU — eigenständiges Overlay (direktes <body>-Kind, daher kein
   Containing-Block-Problem durch backdrop-filter des Headers; voll scrollbar)
   ======================================================================== */
.mobile-menu { display: none; }
.mobile-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 11, 15, .55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.mobile-panel {
  position: fixed; top: 0; right: 0; z-index: 100;
  width: min(92vw, 400px); height: 100dvh;
  background: var(--ink-900); color: var(--bone);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 70px -24px rgba(0, 0, 0, .7);
  transform: translateX(100%); transition: transform .42s var(--ease-out);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.nav-open { overflow: hidden; }          /* Hintergrund nicht mitscrollen */
body.nav-open .mobile-backdrop { opacity: 1; visibility: visible; }
body.nav-open .mobile-panel { transform: translateX(0); }

.mobile-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--line-dk);
}
.mobile-monogram {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: #fff; letter-spacing: .04em;
}
.mobile-monogram small {
  display: block; font-family: var(--font-body); font-size: .58rem;
  letter-spacing: .34em; color: var(--brass-2); margin-top: .35rem; font-weight: 600;
}
.mobile-close {
  background: none; border: 1px solid var(--line-dk); border-radius: 50%;
  width: 42px; height: 42px; color: #fff; cursor: pointer; font-size: 1.4rem;
  display: grid; place-items: center; transition: border-color .3s, color .3s;
}
.mobile-close:hover { border-color: var(--brass); color: var(--brass-2); }

.mobile-nav { display: flex; flex-direction: column; padding: 1rem var(--gutter) .5rem; }
.mobile-nav a {
  font-family: var(--font-serif); font-size: 1.5rem; color: #fff;
  padding: .75rem 0; border-bottom: 1px solid rgba(245,240,231,.07);
  display: flex; align-items: center; justify-content: space-between;
  transition: color .25s, padding-left .25s;
}
.mobile-nav a::after { content: "→"; color: var(--brass-2); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--brass-2); }
.mobile-nav a:hover::after { opacity: 1; transform: none; }

.mobile-cta { padding: 1.2rem var(--gutter); }
.mobile-cta .btn { width: 100%; justify-content: center; }

.mobile-contact { padding: .5rem var(--gutter) 2rem; display: grid; gap: 1rem; }
.mobile-contact .mc-title {
  font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); font-weight: 600;
}
.mobile-contact a, .mobile-contact .mc-row { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted-2); font-size: var(--step-0); line-height: 1.45; }
.mobile-contact a { transition: color .25s; }
.mobile-contact a:hover { color: var(--brass-2); }
.mobile-contact svg { flex: none; margin-top: .15rem; color: var(--brass); }
.mobile-contact .mc-notruf { color: var(--brass-2); font-weight: 600; }
.mobile-panel__foot {
  margin-top: auto; padding: 1.2rem var(--gutter);
  border-top: 1px solid var(--line-dk);
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-size: var(--step--1); color: var(--muted);
}
.mobile-panel__foot a:hover { color: var(--brass-2); }

@media (max-width: 940px) { .mobile-menu { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-panel, .mobile-backdrop { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 96vh, 980px);
  margin-top: -84px;            /* unter den transparenten Header */
  padding-top: 84px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero-wien-skyline.jpg") center 35% / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,23,29,.55) 0%, rgba(22,23,29,.25) 40%, rgba(22,23,29,.78) 100%),
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(22,23,29,.5) 100%);
}
/* feiner Grain für Atmosphäre statt flacher Vollfarbe */
.hero__scrim::after {
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero__kicker {
  font-size: var(--step--1);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.6rem;
}
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 12rem);
  letter-spacing: .12em;
  padding-left: .12em;
  line-height: .9;
  text-shadow: 0 10px 60px rgba(0,0,0,.35);
}
.hero__rule { width: clamp(160px, 30vw, 280px); height: 1px; background: rgba(255,255,255,.4); margin: 1.8rem auto; }
.hero__motto {
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero__motto .script {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.7em;
  color: var(--brass-2);
  vertical-align: -.12em;
  padding-inline: .12em;
}
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scrolldown {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.6); font-size: var(--step--1);
  letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero__scrolldown .line { width: 1px; height: 38px; background: rgba(255,255,255,.4); animation: scrollpulse 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }
/* Scroll-Hinweis ausblenden, wenn er mit den CTAs kollidieren würde */
@media (max-height: 780px), (max-width: 640px) { .hero__scrolldown { display: none; } }

/* ---------- Intro / Über uns ---------- */
.intro { background: var(--bone); }
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro__text h2 { font-size: var(--step-3); margin: 1.2rem 0 1.4rem; max-width: 14ch; }
.intro__text p + p { margin-top: 1rem; }
.intro__text .muted { color: var(--muted); }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 4/5; object-fit: cover; }
.intro__badge {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  background: var(--ink-800); color: var(--bone);
  padding: 1.4rem 1.6rem; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-width: 220px;
}
.intro__badge .big { font-family: var(--font-serif); font-size: 2.4rem; color: var(--brass-2); line-height: 1; }
.intro__badge .small { font-size: var(--step--1); color: var(--muted-2); margin-top: .4rem; }

/* Werte-Reihe */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(2.5rem,6vw,4rem); background: var(--line); border-block: 1px solid var(--line); }
.value { background: var(--bone); padding: 1.8rem clamp(1rem,2vw,1.6rem); }
.value h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); letter-spacing: .02em; text-transform: uppercase; margin-bottom: .5rem; }
.value .num { font-family: var(--font-serif); font-size: 1.4rem; color: var(--brass); display: block; margin-bottom: .3rem; }
.value p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; max-width: 460px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Leistungen ---------- */
.leistungen { position: relative; background: var(--ink-800); color: var(--bone); overflow: hidden; }
.leistungen__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.leistungen__head h2 { font-size: var(--step-3); color: #fff; margin-top: 1rem; }
.leistungen__head p { color: var(--muted-2); margin-top: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line-dk);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 2.4rem;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brass), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: rgba(200,168,111,.4); box-shadow: var(--shadow-card); }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--brass-2); letter-spacing: .1em; }
.card h3 { font-size: var(--step-2); color: #fff; margin: .8rem 0 1rem; }
.card p { color: var(--muted-2); font-size: var(--step-0); }
.card ul { margin-top: 1.2rem; display: grid; gap: .55rem; }
.card li { position: relative; padding-left: 1.4rem; color: rgba(245,240,231,.78); font-size: var(--step--1); }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Notdienst-Band ---------- */
.notdienst {
  background: var(--ink-900);
  color: var(--bone);
  border-top: 1px solid var(--line-dk);
}
.notdienst .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 2.4rem; }
.notdienst__txt { display: flex; align-items: center; gap: 1.3rem; }
.notdienst__icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass-2);
  display: grid; place-items: center; font-size: 1.5rem;
}
.notdienst h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); text-transform: uppercase; letter-spacing: .08em; }
.notdienst p { color: var(--muted-2); font-size: var(--step--1); max-width: 52ch; }
.notdienst__num { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; white-space: nowrap; }
.notdienst__num a { transition: color .3s; }
.notdienst__num a:hover { color: var(--brass-2); }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--bone); }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.kontakt__head h2 { font-size: var(--step-3); margin: 1rem 0 1.2rem; }
.kontakt__head p { color: var(--muted); max-width: 46ch; }
.kontakt__list { margin-top: 2rem; display: grid; gap: 1.5rem; }
.kontakt__item { display: flex; gap: 1rem; align-items: flex-start; }
.kontakt__item .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); }
.kontakt__item .lbl { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kontakt__item .val { font-size: var(--step-1); color: var(--ink-800); }
.kontakt__item .val a:hover { color: var(--brass); }
.kontakt__card {
  background: var(--ink-800); color: var(--bone);
  border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card); align-self: start;
}
.kontakt__card h3 { color: #fff; font-size: var(--step-2); }
.kontakt__card p { color: var(--muted-2); margin: 1rem 0 1.8rem; }
.kontakt__card .row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-dk); font-size: var(--step-0); }
.kontakt__card .row:last-of-type { border-bottom: 0; }
.kontakt__card .row span:first-child { color: var(--muted-2); }
.kontakt__card .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }
@media (max-width: 860px) { .kontakt__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--muted-2); font-size: var(--step--1); }
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dk); }
.footer__brand .wordmark { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .3em; color: #fff; }
.footer__brand p { margin-top: 1rem; max-width: 38ch; line-height: 1.7; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a, .footer__col li { display: block; padding: .25rem 0; transition: color .3s; }
.footer__col a:hover { color: var(--brass-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; }
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--brass-2); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

/* ========================================================================
   SUBPAGES — gemeinsame Komponenten (Leistungen, News, FAQ, Downloads, …)
   ======================================================================== */

/* Header auf Unterseiten immer solide (kein Hero darunter) */
body.subpage { background: var(--paper); }
body.subpage .site-header {
  position: sticky;
  background: rgba(22, 23, 29, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dk);
}

/* ---------- Page-Hero (schmale dunkle Kopfzone) ---------- */
.pagehero {
  position: relative;
  background: var(--ink-800);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.pagehero__bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  opacity: .22;
}
.pagehero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,23,29,.6), rgba(22,23,29,.9));
}
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { font-size: var(--step-4); color: #fff; margin-top: 1rem; line-height: 1; }
.pagehero p { color: var(--muted-2); max-width: 62ch; margin-top: 1.2rem; font-size: var(--step-1); }
.breadcrumb { font-size: var(--step--1); letter-spacing: .04em; color: var(--muted-2); margin-bottom: .4rem; }
.breadcrumb a:hover { color: var(--brass-2); }

/* ---------- Prose (Artikel / Rechtstexte) ---------- */
.prose { max-width: 75ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); margin-top: 1.8rem; letter-spacing: 0; }
.prose p, .prose li { color: var(--ink-700); line-height: 1.75; }
.prose ul { display: grid; gap: .55rem; margin-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink-800); }

/* Tabellen (News-Artikel mit Richtwerten) */
.prose table, .table {
  width: 100%; border-collapse: collapse; margin-top: 1.4rem;
  font-size: var(--step--1); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.table th, .table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--bone); font-weight: 700; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.table td + td, .table th + th { text-align: right; border-left: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

/* ---------- Accordion (FAQ / News) ---------- */
.accordion { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.acc {
  border-bottom: 1px solid var(--line);
}
.acc > summary {
  list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; position: relative;
  font-family: var(--font-serif); font-size: var(--step-1); color: var(--ink-800); font-weight: 500;
  transition: color .3s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--brass); }
.acc > summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 400; font-size: 1.6rem; color: var(--brass); transition: transform .35s var(--ease-out);
}
.acc[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.acc__body { padding: 0 0 1.5rem; max-width: 80ch; }
.acc__body p, .acc__body li { color: var(--muted); line-height: 1.7; }
.acc__body > * + * { margin-top: .8rem; }
.acc-group-title { font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); color: var(--brass); margin-top: 2.5rem; }

/* ---------- Leistungs-Detailblöcke ---------- */
.service-block { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.service-block:last-child { border-bottom: 0; }
.service-block__grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.service-block__media { position: sticky; top: 110px; }
.service-block__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.service-block__num { font-family: var(--font-serif); color: var(--brass); font-size: 1.1rem; letter-spacing: .1em; }
.service-block h2 { font-size: var(--step-3); margin: .4rem 0 1rem; }
.service-block__intro { color: var(--ink-700); font-size: var(--step-1); line-height: 1.6; max-width: 60ch; }
.service-cols { margin-top: 1.8rem; display: grid; gap: 1.8rem; }
.service-cols h3 { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--step-0); color: var(--ink-800); margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.service-cols ul { display: grid; gap: .5rem; }
.service-cols li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.service-cols li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
@media (max-width: 800px) {
  .service-block__grid { grid-template-columns: 1fr; }
  .service-block__media { position: static; max-width: 380px; }
}

/* ---------- Downloads ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.doc-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(176,141,87,.5); }
.doc-card .ico { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--bone); color: var(--brass); display: grid; place-items: center; }
.doc-card .meta { display: flex; flex-direction: column; }
.doc-card .name { font-weight: 600; color: var(--ink-800); font-size: var(--step-0); line-height: 1.25; }
.doc-card .type { font-size: var(--step--1); color: var(--muted); letter-spacing: .08em; }

/* ---------- News-Karten ---------- */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.news-card__date { font-size: var(--step--1); letter-spacing: .1em; color: var(--brass); text-transform: uppercase; }
.news-card__body { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card h3 { font-size: var(--step-1); color: var(--ink-800); }
.news-card p { color: var(--muted); font-size: var(--step--1); flex: 1; }
.news-card .more { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }

/* Hinweis-Box (DSGVO / interim) */
.notice { background: var(--bone); border-left: 3px solid var(--brass); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); }

/* News-Teaser auf Home */
.home-news { background: var(--bone); }
.home-news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.home-news__head h2 { font-size: var(--step-3); }

/* ---------- Scroll-Reveal (CSS, mit reduced-motion-Fallback) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__bg { transform: none !important; }
  .hero__scrolldown .line { animation: none; }
}
