/* ═══════════════════════════════════════════════════
   S&P Energydesign — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex/IBMPlexSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-sans: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --blue:     #006e8a;
  --blue-dk:  #005a70;
  --blue-on-dark: #79d2e3;
  --blue-lt:  #e8f4f8;
  --navy:     #0b2533;
  --white:    #ffffff;
  --off:      #f5f5f3;
  --ink:      #1a1a1a;
  --text:     #3c3c3c;
  --muted:    #666666;
  --rule:     #dcdcda;
  --rule-lt:  #ebebea;

  /* 8-point spacing scale */
  --sp-1:  8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-13: 104px;
  --sp-16: 128px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --focus-ring: 0 0 0 3px rgba(0,139,173,.22);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
body.menu-open { overflow: hidden; }
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  box-shadow: var(--focus-ring);
}

/* ─── TYPOGRAPHY SCALE ─── */
h1, h2, h3 {
  letter-spacing: -.025em;
  line-height: 1.06;
  word-spacing: -.01em;
  text-rendering: optimizeLegibility;
}
h4, h5, h6 { letter-spacing: -.015em; line-height: 1.2; }
p { line-height: 1.65; }
small { font-size: .875em; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.p-0 { padding: 0 !important; }
.delay-06 { transition-delay: .06s !important; }
.delay-07 { transition-delay: .07s !important; }
.delay-08 { transition-delay: .08s !important; }
.delay-10 { transition-delay: .1s !important; }
.delay-12 { transition-delay: .12s !important; }
.delay-14 { transition-delay: .14s !important; }
.delay-16 { transition-delay: .16s !important; }
.delay-21 { transition-delay: .21s !important; }
.delay-24 { transition-delay: .24s !important; }
.rule-top { border-top: 1px solid var(--rule) !important; }
.bg-off { background: var(--off) !important; }
.bg-white { background: var(--white) !important; }
.text-blue { color: var(--blue) !important; }
.prozess-bg .text-blue { color: var(--blue-on-dark) !important; }
.process-title {
  font-size: clamp(34px, 4.35vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.03;
  white-space: normal;
}
.process-title-line {
  display: block;
}

/* ─── NAVIGATION ─── */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
body.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.site-header { top: 46px; } }
@media (max-width: 700px) { body.admin-bar header.site-header { top: 0; } }
header.site-header.scrolled {
  background: rgba(255,255,255,.97);
  border-bottom-color: rgba(11,37,51,.08);
  box-shadow: 0 10px 36px rgba(11,37,51,.05);
  backdrop-filter: blur(8px);
}
/* Weicher Scrim, solange der Header transparent ueber dem Hero-Bild liegt:
   trennt weisses Logo + Navigation von hellen Bildbereichen und der Headline. */
header.site-header::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 136px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(4,17,25,.55) 0%,
    rgba(4,17,25,.26) 55%,
    rgba(4,17,25,0) 100%);
  transition: opacity .3s;
}
header.site-header.scrolled::before { opacity: 0; }

.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 44px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
@media (max-width: 700px) { .nav-inner { padding: 0 22px; height: 64px; } }

.nav-logo {
  position: relative;
  display: block;
}
.nav-logo img {
  display: block;
  height: 46px; width: auto;
  transition: opacity .3s;
}
.nav-logo .logo-color { opacity: 0; }
.nav-logo .logo-contrast {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}
header.site-header.scrolled .nav-logo .logo-color { opacity: 1; }
header.site-header.scrolled .nav-logo .logo-contrast { opacity: 0; }
@media (max-width: 700px) {
  .nav-logo img { height: 40px; max-width: 148px; object-fit: contain; }
}

nav.nav-links {
  display: flex; align-items: center; gap: 32px;
}
nav.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
  transition: color .25s;
}
header.site-header.scrolled nav.nav-links a { color: var(--text); }
nav.nav-links a:hover,
nav.nav-links a.active { color: var(--blue) !important; }
nav.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -9px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
nav.nav-links a:not(.nav-cta):hover::after,
nav.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 13px !important; font-weight: 700 !important;
  letter-spacing: .04em !important;
  transition: background .25s !important;
}
.nav-cta:hover { background: var(--blue-dk) !important; }
nav.nav-links a.nav-cta.active { background: var(--blue-dk) !important; color: #fff !important; }
@media (max-width: 860px) { nav.nav-links a:not(.nav-cta) { display: none; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: .04em;
  padding: 13px 26px; border-radius: 3px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out), box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary   { background: var(--blue);  color: #fff; border-color: var(--blue);  }
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); box-shadow: 0 10px 26px rgba(0,139,173,.22); }
.btn-outline   { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; }
.btn-ink       { background: var(--ink);  color: #fff; border-color: var(--ink);   }
.btn-ink:hover { background: #333; border-color: #333; }
.btn-ghost     { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-lt); }
.btn-white     { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,.9); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; }
@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ─── SHARED LABEL ─── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase; color: var(--blue);
}
.label::after { content: ''; flex: 0 0 40px; height: 1.5px; background: var(--blue); }
.label.white  { color: rgba(255,255,255,.82); }
.label.white::after { background: rgba(255,255,255,.82); }
.label.muted  { color: var(--muted); }
.label.muted::after { background: var(--muted); }

/* ─── DARK SURFACE TEXT SAFETY ─── */
:where(.page-hero, .hero, .band, .cta-strip, .kontakt-cta, .kontakt-hero, .prozess-bg, .netz-wrap, .error-hero, .mobile-menu, footer.site-footer, .cookie-banner, .bg-navy) {
  color: #fff;
}
:where(.page-hero, .hero, .band, .cta-strip, .kontakt-cta, .kontakt-hero, .prozess-bg, .netz-wrap, .error-hero, .mobile-menu, footer.site-footer, .cookie-banner, .bg-navy) .label:not(.muted) {
  color: rgba(255,255,255,.84);
}
:where(.page-hero, .hero, .band, .cta-strip, .kontakt-cta, .kontakt-hero, .prozess-bg, .netz-wrap, .error-hero, .mobile-menu, footer.site-footer, .cookie-banner, .bg-navy) .label:not(.muted)::after {
  background: rgba(255,255,255,.84);
}
:where(.page-hero, .hero, .band, .cta-strip, .kontakt-cta, .kontakt-hero, .prozess-bg, .netz-wrap, .error-hero, .mobile-menu, footer.site-footer, .cookie-banner, .bg-navy) :where(h1, h2, h3, h4, h5, h6, p, li, small, a:not(.btn)) {
  color: inherit;
}
:where(.page-hero, .hero, .band, .cta-strip, .kontakt-cta, .kontakt-hero, .prozess-bg, .netz-wrap, .error-hero, .mobile-menu, footer.site-footer, .cookie-banner, .bg-navy) :where(.btn-white, .btn-white *, .cookie-btn.primary, .cookie-btn.primary *) {
  color: var(--blue);
}
.cookie-btn.primary { color: var(--navy); }

/* ─── PAGE HERO (subpages) ─── */
.page-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(0,139,173,.08), transparent 45%),
    var(--navy);
  padding: 168px 44px 88px;
  position: relative; overflow: hidden;
}
@media (max-width: 700px) { .page-hero { padding: 136px 22px 64px; } }
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
}
.page-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .label { margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(40px, 6.5vw, 90px);
  font-weight: 700; color: #fff;
  max-width: 16ch; margin-bottom: 24px;
}
.page-hero h1 em { color: var(--blue); font-style: normal; }
.page-hero .sub {
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 300;
  color: rgba(255,255,255,.78); max-width: 58ch; line-height: 1.65;
}

/* ─── SECTION WRAPPERS ─── */
.section {
  max-width: 1320px; margin: 0 auto;
  padding: 104px 44px;
}
.section.tight  { padding-top: 72px; padding-bottom: 72px; }
.section.flush-b { padding-bottom: 0; }
.section.flush-t { padding-top: 0; }
@media (max-width: 900px) { .section { padding-top: 80px; padding-bottom: 80px; } }
@media (max-width: 700px) { .section { padding-left: 22px; padding-right: 22px; padding-top: 64px; padding-bottom: 64px; } }

.section > .label { margin-bottom: 20px; }
.section-title {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 700; color: var(--ink); margin-bottom: 56px;
  line-height: 1.06;
}
.section-title em { color: var(--blue); font-style: normal; }

/* ─── BLUE BAND (3 disciplines) ─── */
.band { background: var(--blue); }
.band-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 44px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) { .band-inner { grid-template-columns: 1fr; padding: 0 22px; } }

.band-item {
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 8px;
}
.band-item:first-child { padding-left: 0; }
.band-item + .band-item { border-left: 1px solid rgba(255,255,255,.18); padding-left: 48px; }
.band-item:last-child { padding-right: 0; }
@media (max-width: 700px) {
  .band-item,
  .band-item:first-child,
  .band-item + .band-item {
    padding: 32px 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.18);
  }
}
.band-num  { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.band-title { font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: #fff; letter-spacing: -.015em; }
.band-desc  { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.86); line-height: 1.55; }
.band-link  { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: 6px; transition: color .25s, gap .2s; }
.band-link:hover { color: #fff; gap: 10px; }

/* ─── LEISTUNGEN ACCORDION ─── */
.leistungen-block { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.leistung-row { border-bottom: 1px solid var(--rule); cursor: pointer; transition: background .25s; }
.leistung-row:hover, .leistung-row.open { background: var(--blue-lt); }

.leit-trigger {
  max-width: 1320px; margin: 0 auto; padding: 0 44px;
  display: flex; align-items: center; gap: 20px;
}
@media (max-width: 700px) { .leit-trigger { padding: 0 22px; gap: 14px; } }

.leit-n    { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); flex-shrink: 0; width: 26px; }
.leit-name {
  font-size: clamp(24px, 3.5vw, 52px); font-weight: 700;
  color: var(--ink); padding: 28px 0; flex: 1;
  letter-spacing: -.02em; word-spacing: -.01em;
  transition: color .25s;
}
.leistung-row:hover .leit-name,
.leistung-row.open  .leit-name { color: var(--blue); }

.leit-icon {
  width: 40px; height: 40px; border: 2px solid var(--rule);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; color: var(--muted); flex-shrink: 0;
  transition: border-color .25s, color .25s, transform .35s;
}
.leistung-row:hover .leit-icon { border-color: var(--blue); color: var(--blue); }
.leistung-row.open  .leit-icon { border-color: var(--blue); color: var(--blue); transform: rotate(45deg); }

.leit-body { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.4,0,.2,1); }
.leit-body[hidden] { display: none; }
.leistung-row.open .leit-body { max-height: 500px; }

.leit-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 8px 44px 40px calc(44px + 26px + 20px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px;
}
@media (max-width: 760px) { .leit-inner { padding: 8px 22px 32px 22px; grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .leit-inner { grid-template-columns: 1fr; } }

.leit-item {
  font-size: 14px; font-weight: 400; color: var(--text);
  padding: 11px 0; border-bottom: 1px solid var(--rule-lt);
  display: flex; align-items: center; gap: 10px;
}
.leit-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ─── PROJECT GRID ─── */
.proj-grid {
  display: grid; gap: 2px; background: var(--rule);
  border-top: 2px solid var(--rule);
}
.proj-grid.two-col   { grid-template-columns: 1fr 1fr; }
.proj-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.proj-grid.four-col  { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .proj-grid.two-col, .proj-grid.three-col, .proj-grid.four-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .proj-grid.two-col, .proj-grid.three-col, .proj-grid.four-col { grid-template-columns: 1fr; }
}

.proj-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/2; background: var(--navy); cursor: pointer;
  isolation: isolate;
}
.proj-card.tall { aspect-ratio: 2/3; }
.proj-card.wide { aspect-ratio: 16/7; }
.proj-card.feature { grid-column: span 2; aspect-ratio: 16/7; }
@media (max-width: 900px) { .proj-card.feature { grid-column: span 1; aspect-ratio: 3/2; } }

.proj-photo {
  position: absolute; inset: 0; overflow: hidden;
}

.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,37,51,.88) 0%, rgba(11,37,51,.08) 55%);
  transition: background .35s, opacity .35s;
}
.proj-card:hover .proj-overlay {
  background: linear-gradient(to top, rgba(0,107,135,.82) 0%, rgba(11,37,51,.18) 55%);
}
.proj-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.proj-card-link:focus-visible .proj-overlay {
  background: linear-gradient(to top, rgba(0,107,135,.82) 0%, rgba(11,37,51,.18) 55%);
}

.proj-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 30px; }
.proj-tag  { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 8px; }
.proj-name { font-size: clamp(18px, 2vw, 26px); font-weight: 700; color: #fff; margin-bottom: 5px; word-spacing: -.01em; letter-spacing: -.015em; }
.proj-detail { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.9); line-height: 1.4; }

.proj-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; display: none; place-items: center;
  font-size: 16px; color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px); background: rgba(255,255,255,.05);
  transition: background .3s, border-color .3s, color .3s;
}
.proj-card:hover .proj-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.proj-card-link:focus-visible .proj-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ─── KUNDENGRUPPEN ─── */
.kunden-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 1000px) { .kunden-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .kunden-grid { grid-template-columns: 1fr; } }

.kunden-card {
  padding: 42px 36px;
  border-bottom: 1px solid var(--rule);
  transition: background .3s, transform .3s var(--ease-out);
  position: relative; overflow: hidden;
}
.kunden-card + .kunden-card { border-left: 1px solid var(--rule); }
@media (max-width: 1000px) {
  .kunden-card:nth-child(2n + 1) { border-left: none; }
}
@media (max-width: 560px) {
  .kunden-card,
  .kunden-card + .kunden-card { border-left: none; padding: 34px 22px; }
}
.kunden-card:hover { background: var(--blue-lt); transform: translateY(-2px); }
.kunden-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.kunden-card:hover::after { transform: scaleX(1); }

.kunden-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kunden-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.22; letter-spacing: -.018em; }
.kunden-body  { font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.65; margin-bottom: 24px; }
.kunden-mehr  { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.kunden-card:hover .kunden-mehr { gap: 10px; }

/* ─── PROZESS STEPS ─── */
.prozess-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .prozess-grid { grid-template-columns: 1fr; gap: 48px; } }

.steps-2col { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 600px) { .steps-2col { grid-template-columns: 1fr; } }
.prozess-step {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-right: 1px solid rgba(255,255,255,.1);
}
.prozess-step:nth-child(even) { padding-left: 32px; border-right: none; }
@media (max-width: 600px) { .prozess-step, .prozess-step:nth-child(even) { padding-left: 0; border-right: none; } }
.step-n   { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-on-dark); margin-bottom: 12px; }
.prozess-step h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.015em; }
.prozess-step p  { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.7); }

/* ─── CTA STRIP ─── */
.cta-strip {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 22px),
    var(--blue);
  padding: 80px 44px;
}
@media (max-width: 700px) { .cta-strip { padding: 64px 22px; } }
.cta-strip-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(24px, 3vw, 44px); font-weight: 700;
  color: #fff; word-spacing: -.01em; letter-spacing: -.025em;
}
.cta-strip p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.84); margin-top: 10px; max-width: 56ch; line-height: 1.6; }
@media (max-width: 700px) {
  .cta-strip { padding: 72px 22px; }
  .cta-strip-inner { gap: 30px; }
  .cta-strip h2 {
    max-width: 15ch;
    line-height: 1.08;
  }
  .cta-strip p {
    margin-top: 22px;
    max-width: 31ch;
    line-height: 1.45;
  }
}

/* ─── FOOTER ─── */
footer.site-footer {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 28%),
    var(--navy);
  border-top: 3px solid var(--blue);
  padding: 80px 44px 56px;
}
@media (max-width: 700px) { footer.site-footer { padding: 64px 22px 48px; } }
.foot-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
}
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } }

.foot-logo img {
  display: block;
  width: min(130px, 100%);
  height: auto;
  margin-bottom: 18px;
}
.foot-logo .logo-color { display: none; }
.foot-logo .logo-contrast { display: block; }
@media (max-width: 560px) { .foot-logo img { width: min(130px, 100%); } }
.foot-desc { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 42ch; }

.foot-col h5  { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.76); margin-bottom: 18px; }
.foot-col a   { display: block; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.84); padding: 5px 0; transition: color .25s; }
.foot-col a:hover { color: #fff; }

.foot-bottom {
  max-width: 1320px; margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,.72);
}
.foot-legal { display: flex; gap: 24px; }
.foot-legal a { color: rgba(255,255,255,.78); transition: color .25s; }
.foot-legal a:hover { color: #fff; }

@media (max-width: 700px) {
  footer.site-footer {
    padding: 72px 22px calc(128px + env(safe-area-inset-bottom));
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
  }
  .foot-grid > :first-child,
  .foot-grid > .foot-col:last-child {
    grid-column: 1 / -1;
  }
  .foot-logo img {
    width: min(130px, 100%);
    margin-bottom: 20px;
  }
  .foot-desc {
    max-width: 30rem;
    font-size: 16px;
    line-height: 1.65;
  }
  .foot-col h5 {
    margin-bottom: 12px;
  }
  .foot-col a {
    font-size: 16px;
    line-height: 1.35;
    padding: 7px 0;
  }
  .foot-grid > .foot-col:last-child {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 28px;
    margin-top: 2px;
  }
  .foot-grid > .foot-col:last-child a {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px 0;
  }
  .foot-grid > .foot-col:last-child h5 + a {
    border-top: 0;
    padding-top: 2px;
  }
  .foot-bottom {
    margin-top: 38px;
    padding-top: 24px;
  }
}

/* ─── CONTACT FORM ─── */
form.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px;
}
form.contact-form .full  { grid-column: 1 / -1; }
form.contact-form label  { display: flex; flex-direction: column; gap: 7px; }
form.contact-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
form.contact-form .service-fieldset {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
form.contact-form .service-fieldset.full { grid-column: 1 / -1; }
form.contact-form legend { padding: 0; }
form.contact-form .f-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  font: 400 16px var(--font-sans);
  border: 1.5px solid var(--rule); border-radius: 3px;
  padding: 12px 16px; color: var(--ink); background: var(--white);
  outline: none; resize: none; transition: border-color .25s, box-shadow .25s;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,139,173,.12);
}
form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: rgba(118,118,118,.65); }
form.contact-form select option { background: var(--white); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── ANCHOR SCROLL OFFSET (sticky nav compensation) ─── */
[id] { scroll-margin-top: 96px; }

/* ─── MOBILE BURGER BUTTON ─── */
.burger-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 201; flex-shrink: 0;
}
.burger-btn span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.85);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s, background .3s;
  border-radius: 1px;
}
header.site-header.scrolled .burger-btn span { background: var(--ink); }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* always white when menu is open (over navy overlay) */
.burger-btn.open span { background: rgba(255,255,255,.9) !important; }
@media (max-width: 860px) { .burger-btn { display: flex; } }

/* ─── MOBILE MENU OVERLAY ─── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 100px 44px 60px;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .3s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu[hidden] { display: none; }
@media (max-width: 700px) { .mobile-menu { padding: 100px 24px 56px; } }

.mob-links { display: flex; flex-direction: column; width: 100%; }
.mob-links a {
  font-size: clamp(30px, 7vw, 52px); font-weight: 700;
  color: rgba(255,255,255,.82);
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
  display: flex; align-items: center; justify-content: space-between;
}
.mob-links a:hover,
.mob-links a.active { color: #fff; }
.mob-links a.mob-cta { color: #fff; }
.mob-links a.mob-cta:hover { color: #fff; }
.mob-links a .mob-arrow { font-size: .55em; opacity: .4; transition: opacity .2s; }
.mob-links a:hover .mob-arrow { opacity: 1; }

.mob-footer {
  position: absolute; bottom: 44px; left: 44px; right: 44px;
  display: flex; gap: 4px; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
}
@media (max-width: 700px) { .mob-footer { left: 24px; right: 24px; bottom: 36px; } }
.mob-footer a {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,.82);
  padding: 5px 0; transition: color .2s;
}
.mob-footer a:hover { color: #fff; }

/* ─── PROJ CARD — expandable variant ─── */
button.proj-card,
button.leit-trigger,
button.faq-trigger {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.proj-card {
  width: 100%;
  padding: 0;
}
button.leit-trigger,
button.faq-trigger {
  background: transparent;
  width: 100%;
  cursor: pointer;
}
.proj-tag,
.proj-name,
.proj-detail {
  display: block;
}
.proj-card.expandable { cursor: pointer; }
.proj-card.expandable .proj-arrow,
.proj-card:not(.no-link) .proj-arrow { display: grid; }

/* ─── PROJ CARD — no-link variant ─── */
.proj-card.no-link { cursor: default; }
.proj-card.no-link .proj-arrow { display: none; }
.proj-card.no-link .proj-overlay { background: linear-gradient(to top, rgba(11,37,51,.82) 0%, rgba(11,37,51,.06) 55%); }
.proj-card.no-link:hover .proj-overlay { background: linear-gradient(to top, rgba(11,37,51,.82) 0%, rgba(11,37,51,.06) 55%); }
.proj-card.no-link .proj-photo { transition: none; }
.proj-card.no-link:hover .proj-photo { transform: none; }

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  height: 2px; pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; background: var(--blue);
  width: 0%; transition: width .08s linear;
  transform-origin: left;
}
.scroll-progress-bar.progress-0 { width: 0%; }
.scroll-progress-bar.progress-5 { width: 5%; }
.scroll-progress-bar.progress-10 { width: 10%; }
.scroll-progress-bar.progress-15 { width: 15%; }
.scroll-progress-bar.progress-20 { width: 20%; }
.scroll-progress-bar.progress-25 { width: 25%; }
.scroll-progress-bar.progress-30 { width: 30%; }
.scroll-progress-bar.progress-35 { width: 35%; }
.scroll-progress-bar.progress-40 { width: 40%; }
.scroll-progress-bar.progress-45 { width: 45%; }
.scroll-progress-bar.progress-50 { width: 50%; }
.scroll-progress-bar.progress-55 { width: 55%; }
.scroll-progress-bar.progress-60 { width: 60%; }
.scroll-progress-bar.progress-65 { width: 65%; }
.scroll-progress-bar.progress-70 { width: 70%; }
.scroll-progress-bar.progress-75 { width: 75%; }
.scroll-progress-bar.progress-80 { width: 80%; }
.scroll-progress-bar.progress-85 { width: 85%; }
.scroll-progress-bar.progress-90 { width: 90%; }
.scroll-progress-bar.progress-95 { width: 95%; }
.scroll-progress-bar.progress-100 { width: 100%; }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11,37,51,.92); color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.08); cursor: pointer;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: none; }
.back-to-top:hover { background: var(--blue); border-color: transparent; }
@media (max-width: 700px) { .back-to-top { bottom: 24px; right: 20px; width: 40px; height: 40px; font-size: 16px; } }
@media (max-width: 700px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 140px; }
}

/* ─── PROCESS TIMELINE ─── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  position: relative; display: flex; flex-direction: row; gap: 24px;
  padding-bottom: 40px;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(0,139,173,.4), rgba(0,139,173,.08));
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(0,139,173,.18);
}
.timeline-dot::after {
  content: none;
}
.timeline-content { flex: 1; padding-top: 7px; }
.timeline-content .step-n { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-on-dark); margin-bottom: 8px; }
.timeline-content h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.015em; }
.timeline-content p  { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.7); }

/* ─── QUOTE MOMENT ─── */
.quote-moment {
  background: var(--off); padding: 104px 44px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) { .quote-moment { padding: 80px 22px; } }
.quote-moment-inner { max-width: 1320px; margin: 0 auto; }
.quote-moment-text {
  font-size: clamp(44px, 7vw, 100px); font-weight: 700;
  color: var(--blue); letter-spacing: -.03em; line-height: .98;
  margin-bottom: 32px;
}
.quote-moment-attr {
  font-size: 18px; font-weight: 300; color: var(--muted); letter-spacing: .01em;
}

/* ─── PROJ IMG (lazy loading) ─── */
.proj-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.proj-card:hover .proj-img { transform: scale(1.04); }
.proj-card.no-link .proj-img { transition: none; }
.proj-card.no-link:hover .proj-img { transform: none; }

/* ─── UTILS ─── */
.bg-off     { background: var(--off); }
.bg-navy    { background: var(--navy); }
.border-t   { border-top: 1px solid var(--rule); }
.border-b   { border-bottom: 1px solid var(--rule); }
.text-muted { color: var(--muted); }
.mt-32      { margin-top: 32px; }
.mt-48      { margin-top: 48px; }
.mt-64      { margin-top: 64px; }

/* ─── SKIP NAVIGATION LINK (Accessibility) ─── */
.skip-link {
  position: fixed; top: -999px; left: 16px; z-index: 9999;
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: 0 0 4px 4px; font-size: 14px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--navy); outline-offset: 2px; }
/* ─── FOCUS STYLES (Keyboard navigation) ─── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove focus ring for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) { outline: none; }
.mobile-menu a:focus,
.burger-btn:focus {
  outline: 3px solid #fff !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff !important;
}

/* ─── FORM VALIDATION STATES ─── */
form.contact-form input:invalid:not(:placeholder-shown),
form.contact-form textarea:invalid:not(:placeholder-shown),
form.contact-form select:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}
form.contact-form input:valid:not(:placeholder-shown),
form.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: #27ae60;
}
.field-error {
  font-size: 12px; color: #c0392b; font-weight: 600;
  margin-top: 4px; display: none;
}
.field-error.visible { display: block; }
form.contact-form label:has(input:invalid:not(:placeholder-shown)) .field-error { display: block; }

/* ─── FLOATING CALL BUTTON (mobile) ─── */
.float-call {
  display: none;
  position: fixed; bottom: 84px; right: 20px; z-index: 88;
  width: 52px; height: 52px; border-radius: 50%;
  background: #27ae60; color: #fff;
  align-items: center; justify-content: center;
  font-size: 22px; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(39,174,96,.45);
  transition: background .25s, transform .2s;
  text-decoration: none;
}
.float-call::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(39,174,96,.4);
  animation: call-pulse 2s ease-out infinite;
}
@keyframes call-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2); opacity: 0; }
}
.float-call:hover { background: #219653; transform: scale(1.08); }
@media (max-width: 860px) { .float-call { display: flex; } }

/* ─── PRIVACY CONSENT ─── */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(11,37,51,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.cookie-banner.show { display: flex; }
.cookie-copy {
  max-width: 52ch;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.cookie-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cookie-copy a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-copy a:focus-visible,
.cookie-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font: 700 13px var(--font-sans);
  letter-spacing: 0;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cookie-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.44); }
.cookie-btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.cookie-btn.primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ─── TOAST NOTIFICATION ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 600; z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── COPY TRIGGER (phone/email) ─── */
.copy-trigger {
  cursor: pointer; position: relative;
  border-bottom: 1px dashed rgba(0,0,0,.2);
  transition: color .2s, border-color .2s;
}
.copy-trigger:hover { color: var(--blue); border-color: var(--blue); }
/* On dark/coloured backgrounds the dashes and colour shift should be subtle */
.kontakt-hero .copy-trigger { border-bottom-color: rgba(255,255,255,.35); }
.kontakt-hero .copy-trigger:hover { color: #fff; border-bottom-color: rgba(255,255,255,.9); }
.mob-footer .copy-trigger { border-bottom-color: transparent; }
.mob-footer .copy-trigger:hover { color: #fff; border-bottom-color: rgba(255,255,255,.9); }

/* ─── TIMELINE MOBILE ─── */
@media (max-width: 500px) {
  .timeline-step { gap: 16px; }
  .timeline-dot { width: 32px; height: 32px; font-size: 10px; flex-shrink: 0; }
  .timeline-content { padding-top: 5px; }
  .timeline-dot::after { left: 50%; }
}

/* ─── CONTACT FORM MOBILE ─── */
@media (max-width: 560px) {
  form.contact-form { grid-template-columns: 1fr; }
  form.contact-form .full { grid-column: 1; }
}

/* ─── PRINT STYLES ─── */
@media print {
  .site-header, .mobile-menu, .scroll-progress, .back-to-top,
  .float-call, .toast, .burger-btn,
  .cta-strip, .proj-arrow, nav.nav-links .nav-cta { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="tel"]::after, a[href^="mailto"]::after { display: none; }

  .page-hero, .error-hero { padding: 24pt 0 16pt; background: none !important; color: #000 !important; }
  .page-hero h1, .error-hero .error-code { color: #000 !important; }
  .page-hero::after, .error-hero::after { display: none; }
  .page-hero .sub { color: #333 !important; }

  .section { padding: 16pt 0; }
  footer.site-footer { background: none; border-top: 1pt solid #ccc; padding: 12pt 0; }
  footer.site-footer * { color: #333 !important; }

  .proj-card, .proj-photo, .proj-overlay { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .float-call::before { animation: none; }
}

/* ─── HIGH CONTRAST MODE ─── */
@media (forced-colors: active) {
  .btn, .nav-cta { forced-color-adjust: none; }
}


/* ═══════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES MOVED FROM HTML
   ═══════════════════════════════════════════════════ */

/* ─── index.html ─── */
/* ── Index-only styles ── */

/* HERO */
.hero {
  /* min-height statt height: der Hero waechst mit dem Inhalt, statt ihn nach
     oben unter den fixierten Header zu schieben (Tablet quer, flache Notebooks). */
  position: relative; min-height: max(560px, 100svh);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: var(--hero-bg-image, url('assets/marx-halle-wien-haustechnik-bauphysik.jpg')) center 42%/cover no-repeat;
  background-color: var(--navy);
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(4,17,25,.82) 0%, rgba(8,27,38,.62) 43%, rgba(11,37,51,.28) 100%),
    linear-gradient(to bottom, rgba(4,17,25,.48) 0%, rgba(11,37,51,.24) 42%, rgba(4,17,25,.88) 100%);
  pointer-events: none;
}
.hero-bg-layer {
  position: absolute; inset: 0; z-index: 1;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg-layer.is-active {
  opacity: 1;
}
.hero-content {
  position: relative; z-index: 3;
  max-width: 1320px; margin: 0 auto; width: 100%;
  /* padding-top greift nur, wenn der Inhalt hoeher als der Viewport wird, und
     haelt dann den Header (72px, +32px Admin-Bar) frei. */
  padding: 112px 44px 80px;
}
@media (max-width: 700px) { .hero-content { padding: 116px 22px 56px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.78);
  margin-bottom: 28px;
}
.hero-eyebrow::before { content:''; width: 28px; height: 1.5px; background: var(--blue); flex-shrink:0; }
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-disc {
  text-shadow: 0 2px 18px rgba(0,0,0,.42);
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 116px);
  font-weight: 700; line-height: .93;
  color: #fff; margin-bottom: 28px; max-width: 13ch;
}
.hero h1 em { color: var(--blue); font-style: normal; }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 300;
  color: rgba(255,255,255,.78); max-width: 50ch;
  line-height: 1.6; margin-bottom: 40px;
}
.hero-discs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 40px; }
.hero-disc {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(255,255,255,.68);
  padding: 6px 20px 6px 0; margin-right: 20px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.hero-disc:last-child { border-right: none; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 26px; right: 44px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.45); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .5s ease;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0%,100%{transform:translateY(0);opacity:.5} 50%{transform:translateY(8px);opacity:1} }

/* ÜBER TEASER */
.ueber-wrap { background: var(--off); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--rule); }
.ueber-grid {
  max-width: 1320px; margin: 0 auto; padding: 104px 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start;
}
@media (max-width: 900px) { .ueber-grid { grid-template-columns: 1fr; gap: 48px; padding: 80px 22px; } }

.ueber-big {
  font-size: clamp(38px, 5vw, 68px); font-weight: 700;
  line-height: .98; color: var(--ink);
  max-width: 11ch;
}
.ueber-big em { color: var(--blue); font-style: normal; }

.ueber-body {
  font-size: 18px; font-weight: 300; line-height: 1.72; color: var(--text);
  margin-bottom: 36px;
}
.ueber-body strong { font-weight: 600; color: var(--ink); }
.ueber-body p + p { margin-top: 20px; }

.ueber-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); margin-bottom: 40px;
}
.ueber-fact { padding: 34px 36px 30px; }
.ueber-fact:first-child { padding-left: 0; }
.ueber-fact + .ueber-fact { border-left: 1px solid var(--rule); padding-left: 48px; }
.ueber-fact:last-child { padding-right: 0; }
.ueber-fact-n {
  display: inline-block;
  min-width: var(--counter-width, 4ch);
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 700;
  color: var(--blue); line-height: 1; letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.ueber-fact-l { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 10px; letter-spacing: .01em; max-width: 14ch; }
@media (max-width: 560px) {
  .ueber-facts { grid-template-columns: 1fr; border-top: none; }
  .ueber-fact,
  .ueber-fact + .ueber-fact { padding: 22px 0; border-left: none; border-top: 1px solid var(--rule); }
  .ueber-fact-l { max-width: none; }
}

/* LEISTUNGEN TEASER (homepage only) */
.section.home-section-head { padding-bottom: 44px; }
@media (max-width: 700px) { .section.home-section-head { padding-bottom: 32px; } }
.home-section-head .label,
.ueber-grid .label {
  gap: 18px;
  margin-bottom: 30px !important;
}
.home-section-head .label::after,
.ueber-grid .label::after {
  flex-basis: 48px;
}
.home-link-row {
  max-width: 1320px; margin: 0 auto;
  padding: 42px 44px 88px;
}
@media (max-width: 700px) { .home-link-row { padding: 34px 22px 72px; } }

.leit-teaser {
  border-top: 2px solid var(--ink);
}
.leit-teaser-row {
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 0 44px;
  gap: 24px; transition: background .25s;
}
.leit-teaser-row:hover { background: var(--blue-lt); }
@media (max-width: 700px) { .leit-teaser-row { padding: 0 22px; } }
.leit-teaser-n { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); width: 26px; flex-shrink: 0; }
.leit-teaser-name {
  font-size: clamp(24px, 3.5vw, 52px); font-weight: 700;
  color: var(--ink); padding: 28px 0; flex: 1;
  transition: color .25s; letter-spacing: -.02em;
}
.leit-teaser-row:hover .leit-teaser-name { color: var(--blue); }
.leit-teaser-sub { font-size: 14px; font-weight: 300; color: var(--muted); max-width: 30ch; text-align: right; padding-right: 16px; }
@media (max-width: 700px) { .leit-teaser-sub { display: none; } }
.leit-teaser-arrow {
  width: 40px; height: 40px; border: 1.5px solid var(--rule);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: var(--muted); flex-shrink: 0;
  transition: background .25s, border-color .25s, color .25s;
}
.leit-teaser-row:hover .leit-teaser-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* PROJEKTE TEASER */
.proj-feature {
  background: var(--rule);
  border-top: 2px solid var(--rule);
  overflow: hidden;
}
.proj-feature-inner {
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(340px, .62fr);
  gap: 2px;
  align-items: stretch;
}
@media (max-width: 1020px) { .proj-feature-inner { grid-template-columns: 1fr; } }
.proj-feature .proj-card {
  aspect-ratio: 16/7;
  min-height: clamp(390px, 36vw, 540px);
}
@media (max-width: 1020px) { .proj-feature .proj-card { aspect-ratio: 16/8; min-height: 390px; } }
@media (max-width: 700px) { .proj-feature .proj-card { aspect-ratio: 4/3; min-height: 0; } }
@media (max-width: 420px) { .proj-feature .proj-card { aspect-ratio: 1 / 1.05; } }
.proj-feature .proj-body {
  max-width: 560px;
}
.proj-feature-side {
  background: var(--off);
  min-height: clamp(390px, 36vw, 540px);
  padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}
.proj-feature-side::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 72px;
  background: var(--blue);
}
@media (max-width: 1020px) { .proj-feature-side { min-height: 0; padding: 44px 44px 52px; } }
@media (max-width: 700px) { .proj-feature-side { padding: 40px 22px 44px; } }
.proj-feature-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.proj-feature-side h3 {
  font-size: clamp(24px, 2.8vw, 40px); line-height: 1.07;
  margin-bottom: 18px;
}
.proj-feature-side p {
  color: var(--text); font-size: 16px; font-weight: 300;
  line-height: 1.65; margin-bottom: 30px;
}
.proj-feature-side .btn {
  align-self: flex-start;
}
@media (max-width: 480px) { .proj-feature-side .btn { align-self: stretch; } }

/* HANDOFF */
.handoff {
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.handoff-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 44px;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: start;
}
.handoff-title {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 11ch;
}
.handoff-title em { color: var(--blue); font-style: normal; }
.handoff-intro {
  margin-top: 24px;
  max-width: 38ch;
  color: var(--text);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}
.handoff-intro-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  max-width: 38ch;
}
.handoff-intro-list li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
}
.handoff-intro-list li::before {
  content: '•';
  flex: 0 0 auto;
  color: var(--ink);
}
.handoff-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.handoff-step {
  min-width: 0;
  padding: 30px 28px 2px;
  border-left: 1px solid var(--rule);
}
.handoff-step:first-child {
  border-left: 0;
  padding-left: 0;
}
.handoff-n {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.handoff-step h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.handoff-step p {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .handoff-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 72px 22px;
  }
  .handoff-title { max-width: 12ch; }
}
@media (max-width: 660px) {
  .handoff-steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .handoff-step,
  .handoff-step:first-child {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 24px 0;
  }
}

/* CTA STRIP already in style.css */

/* KONTAKT TEASER */
.kontakt-cta {
  background: var(--blue); padding: 96px 44px;
}
@media (max-width: 700px) { .kontakt-cta { padding: 72px 22px; } }
.kontakt-cta-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .kontakt-cta-inner { grid-template-columns: 1fr; gap: 40px; } }
.kontakt-cta h2 {
  font-size: clamp(32px, 4.2vw, 60px); font-weight: 700;
  color: #fff; letter-spacing: -.03em;
  margin-bottom: 30px;
}
.kontakt-cta p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.88); line-height: 1.6; margin-top: 0; max-width: 58ch; }
.kontakt-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.kontakt-details-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 500px) { .kontakt-details-mini { grid-template-columns: 1fr; } }
.kontakt-details-mini > div { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.kd-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.74); margin-bottom: 8px; }
.kontakt-details-mini > div:nth-child(-n+2) .kd-label {
  font-weight: 900;
  color: rgba(255,255,255,.92);
}
.kontakt-details-mini > div:nth-child(n+3) .kd-label {
  font-weight: 800;
  color: rgba(255,255,255,.84);
}
.kd-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 3px;
  padding: 8px 10px;
  margin: 2px 0 14px;
}
.kd-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.kd-val { font-size: 16px; font-weight: 400; color: #fff; line-height: 1.5; }
.kd-val a { color: #fff; }
.kd-val a:hover { text-decoration: underline; }

/* ─── leistungen.html ─── */
/* ── Leistungen page-specific ── */

/* DETAIL BLOCK (after each accordion) */
.leit-detail {
  background: var(--off);
  padding: 64px 44px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) { .leit-detail { padding: 48px 22px; } }
.leit-detail-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start;
}
@media (max-width: 900px) { .leit-detail-inner { grid-template-columns: 1fr; gap: 36px; } }

.leit-detail-title {
  font-size: clamp(22px, 2.5vw, 34px); font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
}
.leit-detail-title em { color: var(--blue); font-style: normal; }
.leit-detail-body {
  font-size: 16px; font-weight: 400; line-height: 1.72;
  color: var(--text);
}
.leit-detail-body p + p { margin-top: 18px; }
.leit-detail-body strong { font-weight: 600; color: var(--ink); }

/* LEISTUNGEN sub-items in detail */
.leit-subgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule); margin-top: 32px;
}
@media (max-width: 600px) { .leit-subgrid { grid-template-columns: 1fr; } }
.leit-sub-item {
  padding: 15px 0; border-bottom: 1px solid var(--rule-lt);
  font-size: 15px; font-weight: 400; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.leit-sub-item:nth-child(odd) { padding-right: 28px; }
.leit-sub-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule-lt); }
@media (max-width: 600px) {
  .leit-sub-item:nth-child(even) { padding-left: 0; border-left: none; }
}
.leit-sub-item::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* LEISTUNGS NORM BAND */
.norm-band {
  border-top: 1px solid var(--rule);
  background: var(--white);
  padding: 48px 44px;
}
@media (max-width: 700px) { .norm-band { padding: 36px 22px; } }
.norm-band-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: max-content 1fr; align-items: center; column-gap: 56px; row-gap: 18px;
}
.norm-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.norm-tags { display: flex; justify-content: flex-start; align-items: center; gap: 10px; flex-wrap: wrap; }
.norm-tag {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); padding: 6px 14px; line-height: 1.35;
  max-width: 100%; overflow-wrap: anywhere;
  border: 1.5px solid var(--blue); border-radius: 20px;
}
@media (max-width: 900px) {
  .norm-band-inner { grid-template-columns: 1fr; }
}

/* PROZESS SECTION */
.prozess-bg { background: var(--navy); padding: 104px 44px; }
@media (max-width: 700px) { .prozess-bg { padding: 80px 22px; } }

/* ─── projekte.html ─── */
/* ── Projekte page-specific ── */

/* PROJECT GRID */
.proj-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px; background: var(--rule);
}
@media (max-width: 700px) { .proj-full-grid { grid-template-columns: 1fr; } }

.proj-full-grid .proj-card { aspect-ratio: 16/7; }
.proj-full-grid .proj-card.feature {
  grid-column: span 1; aspect-ratio: 16/7;
}
@media (max-width: 700px) { .proj-full-grid .proj-card.feature { grid-column: span 1; aspect-ratio: 4/3; } }
@media (max-width: 700px) { .proj-full-grid .proj-card { aspect-ratio: 4/3; } }

/* PROJECT DETAIL PANEL (collapsible) */
.proj-panel {
  grid-column: 1 / -1;
  background: var(--off); border-top: 1px solid var(--rule);
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.proj-panel[hidden] { display: none; }
.proj-panel.open { max-height: 560px; }
.proj-panel-inner {
  max-width: 1320px; margin: 0 auto; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) {
  .proj-panel.open { max-height: 760px; }
  .proj-panel-inner { grid-template-columns: 1fr; padding: 32px 22px; gap: 24px; }
}
.proj-full-grid .proj-arrow { display: grid; }
.sundp-project-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(0,139,173,.18), rgba(11,37,51,.42)),
    var(--navy);
}

.ppd-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ppd-val   { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.5; }
.ppd-desc  { font-size: 15px; font-weight: 300; color: var(--text); line-height: 1.65; margin-top: 12px; }
.proj-panel-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; min-height: 44px; padding: 12px 18px;
  border: 1px solid var(--blue); color: var(--blue); background: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.proj-panel-page-link::after { content: '↗'; margin-left: 10px; font-size: 14px; }
.proj-panel-page-link:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
  transform: translateY(-1px);
}

/* PROJECT SINGLE */
.project-hero .project-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px;
}
.project-single-media {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
}
.project-single-image {
  display: block; width: 100%; height: min(66vh, 760px);
  object-fit: cover;
}
.project-single-body {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 80px 44px;
}
.project-single-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 72px; align-items: start;
}
.project-single-content h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98; letter-spacing: -.03em;
  margin: 18px 0 28px;
}
.project-single-content p,
.project-single-content li {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--text); max-width: 68ch;
}
.project-single-content p + p { margin-top: 18px; }
.project-gallery-carousel {
  --project-gallery-gap: 14px;
  margin-top: 4px;
}
.project-gallery-viewport {
  overflow: hidden;
  width: 100%;
  outline: none;
}
.project-gallery-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
.project-gallery-track {
  display: flex;
  gap: var(--project-gallery-gap);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.project-gallery-slide {
  flex: 0 0 calc((100% - (var(--project-gallery-gap) * 2)) / 3);
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--off);
  overflow: hidden;
}
.project-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.project-gallery-controls[hidden] { display: none; }
.project-gallery-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.project-gallery-button:hover:not(:disabled),
.project-gallery-button:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.project-gallery-button:disabled {
  cursor: default;
  opacity: .35;
}
.project-facts {
  border-top: 2px solid var(--ink);
}
.project-fact {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.project-tags {
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .project-single-grid { grid-template-columns: 1fr; gap: 44px; }
  .project-single-body { padding: 64px 22px; }
  .project-single-image { height: min(58vh, 560px); }
  .project-gallery-slide { flex-basis: calc((100% - var(--project-gallery-gap)) / 2); }
}
@media (max-width: 560px) {
  .project-gallery-carousel { --project-gallery-gap: 10px; }
  .project-gallery-slide { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .project-hero .project-hero-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .project-gallery-track { transition: none; }
}

/* STATS BAR */
.stats-bar { border-top: 1px solid var(--rule); background: var(--off); padding: 48px 44px; }
@media (max-width: 700px) { .stats-bar { padding: 36px 22px; } }
.stats-bar-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
@media (max-width: 700px) { .stats-bar-inner { grid-template-columns: 1fr 1fr; } }
.stat-item {
  padding: 6px 36px 8px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item { border-left: 1px solid var(--rule); padding-left: 48px; }
.stat-item:last-child { padding-right: 0; }
.stat-n {
  display: inline-block;
  min-width: var(--counter-width, 4ch);
  font-size: clamp(32px, 4vw, 54px); font-weight: 700; color: var(--blue); line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.stat-l { font-size: 14px; font-weight: 300; color: var(--muted); margin-top: 10px; max-width: 16ch; }
@media (max-width: 700px) {
  .stat-item:nth-child(2n + 1) { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) {
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat-item,
  .stat-item:first-child,
  .stat-item + .stat-item {
    padding: 22px 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .stat-l { max-width: none; }
}

/* ─── ueber-uns.html ─── */
/* ── Über uns page-specific ── */

/* INTRO SECTION */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 48px; } }

.intro-big {
  font-size: clamp(38px, 5.5vw, 74px); font-weight: 700; line-height: .98; color: var(--ink);
  letter-spacing: -.025em;
}
.intro-big em { color: var(--blue); font-style: normal; }

.intro-body { font-size: 18px; font-weight: 300; line-height: 1.72; color: var(--text); }
.intro-body p + p { margin-top: 20px; }
.intro-body strong { font-weight: 600; color: var(--ink); }

/* FACTS */
.facts-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); margin-top: 56px; padding-top: 0;
}
@media (max-width: 800px) { .facts-row { grid-template-columns: 1fr 1fr; } }
.fact-cell {
  padding: 36px 36px 30px;
}
.fact-cell:first-child { padding-left: 0; }
.fact-cell + .fact-cell { border-left: 1px solid var(--rule); padding-left: 48px; }
.fact-cell:last-child { padding-right: 0; }
@media (max-width: 800px) {
  .fact-cell:nth-child(2n + 1) { padding-left: 0; border-left: none; }
}
.fact-n {
  display: inline-block;
  min-width: var(--counter-width, 4ch);
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.fact-l { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 10px; max-width: 15ch; }
@media (max-width: 560px) {
  .facts-row { grid-template-columns: 1fr; border-top: none; }
  .fact-cell,
  .fact-cell:first-child,
  .fact-cell + .fact-cell,
  .fact-cell:nth-child(2n + 1) {
    padding: 22px 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .fact-l { max-width: none; }
}

/* NETZWERK MODEL */
.netz-wrap {
  background: var(--navy); padding: 104px 44px;
}
@media (max-width: 700px) { .netz-wrap { padding: 80px 22px; } }
.netz-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 88px; align-items: start;
}
@media (max-width: 900px) { .netz-grid { grid-template-columns: 1fr; gap: 52px; } }

.netz-title {
  font-size: clamp(36px, 5vw, 68px); font-weight: 700;
  color: #fff; line-height: .98; letter-spacing: -.03em;
}
.netz-title em { color: var(--blue); font-style: normal; }

.netz-pillars {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,.1);
}
.netz-pillar {
  padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
}
.netz-num {
  font-size: 48px; font-weight: 700; color: rgba(255,255,255,.08);
  line-height: 1; flex-shrink: 0; min-width: 48px;
}
.netz-pillar h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -.015em; }
.netz-pillar p  { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.7); line-height: 1.7; }

/* PHOTO STRIP */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  height: clamp(200px, 28vw, 400px);
  overflow: hidden;
}
.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .image-strip {
    grid-template-columns: 1fr;
    height: auto;
  }
  .image-strip img { aspect-ratio: 16 / 9; }
}

/* KUNDEN SECTION */
.kunden-intro {
  display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .kunden-intro { grid-template-columns: 1fr; gap: 32px; } }
.kunden-intro h2 { font-size: clamp(28px, 3.5vw, 46px); font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.kunden-intro p  { font-size: 17px; font-weight: 300; color: var(--text); line-height: 1.72; }
.kunden-intro > p { margin-top: 56px; }
@media (max-width: 900px) { .kunden-intro > p { margin-top: 0; } }

/* KUNDEN FULL GRID */
.kunden-full-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
@media (max-width: 700px) { .kunden-full-grid { grid-template-columns: 1fr; } }

.kunden-full-card {
  padding: 46px 42px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.kunden-full-card:nth-child(even) { border-left: 1px solid var(--rule); }
@media (max-width: 700px) {
  .kunden-full-card,
  .kunden-full-card:nth-child(even) { border-left: none; padding: 38px 22px; }
}
.kunden-full-card:hover { background: var(--blue-lt); }
.kunden-full-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.kunden-full-card:hover::after { transform: scaleX(1); }

.kfc-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kfc-title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.2; letter-spacing: -.018em; }
.kfc-quote {
  font-size: 16px; font-style: italic; font-weight: 300;
  color: var(--text); line-height: 1.7; margin-bottom: 24px;
  padding-left: 18px; border-left: 2px solid var(--blue);
}
.kfc-body { font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.7; }

/* STANDORTE */
.standorte-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--rule); border-top: 1px solid var(--rule);
}
@media (max-width: 700px) { .standorte-grid { grid-template-columns: 1fr; } }

.standort-card {
  min-width: 0; background: var(--white); padding: 64px 48px;
}
@media (max-width: 700px) { .standort-card { padding: 48px 22px; } }

.standort-city {
  font-size: clamp(32px, 4vw, 56px); font-weight: 700;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -.03em;
}
.standort-city em { color: var(--blue); font-style: normal; }
.standorte-grid .kd-logo {
  min-height: 106px;
}
.standorte-grid .kd-logo img {
  width: auto;
  max-width: 100%;
  max-height: 88px;
}
.standort-addr { font-size: 17px; font-weight: 300; color: var(--text); line-height: 1.72; margin-bottom: 32px; }
.standort-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sd-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sd-val   { min-width: 0; font-size: 15px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.sd-val a { color: var(--blue); }
.sd-val a:hover { text-decoration: underline; }
@media (max-width: 480px) { .standort-details { grid-template-columns: 1fr; } }

/* PARTNER STRIP */
.partner-strip { border-top: 1px solid var(--rule); background: var(--off); padding: 48px 44px; }
@media (max-width: 700px) { .partner-strip { padding: 40px 22px; } }
.partner-strip-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: space-between;
}
.partner-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partner-tags { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.partner-tag { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted); opacity: .65; }

/* PROZESS */
.prozess-bg { background: var(--navy); padding: 104px 44px; }
@media (max-width: 700px) { .prozess-bg { padding: 80px 22px; } }

/* ─── kontakt.html ─── */
/* ── Kontakt page-specific ── */

/* HERO variant: blue background */
.kontakt-hero {
  background: var(--blue); padding: 168px 44px 88px;
  position: relative; overflow: hidden;
}
@media (max-width: 700px) { .kontakt-hero { padding: 136px 22px 64px; } }
.kontakt-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.25);
}
.kontakt-hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
@media (max-width: 900px) { .kontakt-hero-inner { grid-template-columns: 1fr; gap: 36px; } }

.kontakt-hero h1 {
  font-size: clamp(44px, 6.5vw, 90px); font-weight: 700;
  color: #fff; margin-bottom: 18px;
}
.kontakt-hero .sub {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 300;
  color: rgba(255,255,255,.88); line-height: 1.6;
}

.hero-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .hero-contacts { grid-template-columns: 1fr; } }
.hc-block { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 3px; padding: 22px 24px; }
.hc-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.hc-val   { font-size: 16px; font-weight: 400; color: #fff; line-height: 1.45; }
.hc-val a { color: #fff; }
.hc-val a:hover { text-decoration: underline; }

/* PREP */
.contact-prep {
  background: var(--off);
  border-bottom: 1px solid var(--rule);
}
.contact-prep-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 44px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}
.contact-prep h2 {
  font-size: clamp(28px, 3.7vw, 50px);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 12ch;
}
.contact-prep h2 em { color: var(--blue); font-style: normal; }
.contact-prep-copy {
  margin-top: 22px;
  max-width: 38ch;
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.prep-item {
  padding: 24px 26px 24px 0;
  border-bottom: 1px solid var(--rule);
}
.prep-item:nth-child(even) {
  padding-left: 26px;
  border-left: 1px solid var(--rule);
}
.prep-label {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.prep-item p {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .contact-prep-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 22px;
  }
}
@media (max-width: 560px) {
  .prep-grid { grid-template-columns: 1fr; }
  .prep-item,
  .prep-item:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
  }
}

/* FORM + MAP */
.form-map-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--rule);
}
@media (max-width: 800px) { .form-map-wrap { grid-template-columns: 1fr; } }

.form-col { background: var(--white); padding: 72px 48px; }
.map-col  { background: var(--off); padding: 72px 48px; }
@media (max-width: 700px) {
  .form-col, .map-col { padding: 48px 22px; }
}

.form-col h2 {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.form-col .form-sub { font-size: 16px; font-weight: 300; color: var(--muted); margin-bottom: 36px; line-height: 1.5; }
.form-col .form-sub a { color: var(--blue); }

/* Contact form (extends shared form in style.css) */
form.contact-form .submit-row { grid-column: 1 / -1; margin-top: 8px; }
form.contact-form button[type="submit"] {
  font: 700 14px var(--font-sans);
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--blue); color: #fff; border: none;
  padding: 14px 32px; border-radius: 3px; cursor: pointer;
  transition: background .25s;
  display: inline-flex; align-items: center; gap: 10px;
}
form.contact-form button[type="submit"]:hover { background: var(--blue-dk); }
form.contact-form button[type="submit"]:disabled { cursor: wait; opacity: .72; }
.contact-extra {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-note {
  font-size: 13px; font-weight: 300; color: var(--muted);
  margin-top: 16px; line-height: 1.55;
}
.form-note a { color: var(--blue); }
.service-checks {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.service-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; cursor: pointer; flex-direction: row;
}
.service-check input {
  accent-color: var(--blue); width: 16px; height: 16px;
}
.form-success {
  display: none; background: var(--blue-lt); border-left: 3px solid var(--blue);
  padding: 20px 24px; border-radius: 3px; margin-top: 20px;
  font-size: 16px; color: var(--ink); line-height: 1.5;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #fff4f2; border-left: 3px solid #c0392b;
  padding: 16px 20px; border-radius: 3px; margin-top: 16px;
  font-size: 15px; color: #7f2418; line-height: 1.5;
}
.form-error.show { display: block; }
.form-error[hidden] { display: none !important; }

.map-col h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.map-col .map-sub { font-size: 15px; font-weight: 300; color: var(--muted); margin-bottom: 28px; }

.address-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .address-blocks { grid-template-columns: 1fr; } }
.addr-block { padding: 24px; background: var(--white); border-radius: 3px; display: flex; flex-direction: column; align-items: flex-start; }
.addr-city  { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.015em; }
.addr-val   { font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.65; flex: 1; }
.addr-link  {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px; padding: 11px 15px; min-height: 42px;
  border: 1px solid var(--blue); border-radius: 3px; background: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.addr-link:hover { background: var(--blue-dk); border-color: var(--blue-dk); box-shadow: 0 10px 24px rgba(0,139,173,.18); transform: translateY(-1px); }
@media (max-width: 500px) { .addr-link { width: 100%; } }

/* FAQ */
.faq-wrap { border-top: 2px solid var(--ink); }
.faq-row  { border-bottom: 1px solid var(--rule); cursor: pointer; transition: background .25s; }
.faq-row:hover, .faq-row.open { background: var(--blue-lt); }
.faq-trigger {
  max-width: 1320px; margin: 0 auto; padding: 0 44px;
  display: flex; align-items: center; gap: 20px;
}
@media (max-width: 700px) { .faq-trigger { padding: 0 22px; } }
.faq-q {
  font-size: clamp(17px, 1.8vw, 22px); font-weight: 600;
  color: var(--ink); padding: 24px 0; flex: 1;
  transition: color .25s; letter-spacing: -.01em;
}
.faq-row.open .faq-q { color: var(--blue); }
.faq-icon {
  width: 36px; height: 36px; border: 2px solid var(--rule);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: var(--muted); flex-shrink: 0;
  transition: border-color .25s, color .25s, transform .3s;
}
.faq-row:hover .faq-icon { border-color: var(--blue); color: var(--blue); }
.faq-row.open  .faq-icon { border-color: var(--blue); color: var(--blue); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.faq-body[hidden] { display: none; }
.faq-row.open .faq-body { max-height: 300px; }
.faq-a {
  max-width: 1320px; margin: 0 auto;
  padding: 0 44px 24px calc(44px + 20px + 36px);
  font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.7;
}
@media (max-width: 700px) { .faq-a { padding: 0 22px 22px 22px; } }

/* Field errors + button spinner */
.field-error { display: none; font-size: 13px; font-weight: 400; color: #c0392b; margin-top: 4px; line-height: 1.4; }
.field-error.show { display: block; }
form.contact-form input.invalid,
form.contact-form select.invalid,
form.contact-form textarea.invalid { border-color: #c0392b !important; box-shadow: 0 0 0 2px rgba(192,57,43,.15); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner { display: none; }
form.contact-form button.loading .btn-spinner { display: inline-block; animation: spin .7s linear infinite; }
form.contact-form button.loading .btn-arrow { display: none; }
form.contact-form button.loading .btn-label { opacity: .7; }

/* IMPRESSUM / DATENSCHUTZ */
.legal-section { border-top: 1px solid var(--rule); }
.legal-content {
  max-width: 1320px; margin: 0 auto; padding: 80px 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
}
@media (max-width: 900px) { .legal-content { grid-template-columns: 1fr; gap: 48px; padding: 56px 22px; } }
.legal-block h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.legal-block p  { font-size: 15px; font-weight: 300; color: var(--text); line-height: 1.7; }
.legal-block p + p { margin-top: 10px; }
.legal-block a  { color: var(--blue); }
.legal-page .legal-content {
  max-width: 920px;
  display: block;
}
.legal-page .legal-block + .legal-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.legal-page .legal-block h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.legal-page .legal-block p + h2,
.legal-page .legal-block ul + h2,
.legal-page .legal-block ol + h2,
.legal-page .legal-block .legal-actions + h2 {
  margin-top: clamp(42px, 6vw, 58px);
}
.legal-page .legal-block h3 {
  margin-top: 34px;
}
.legal-page .legal-block p + h3,
.legal-page .legal-block ul + h3,
.legal-page .legal-block ol + h3 {
  margin-top: clamp(36px, 5vw, 48px);
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}
.legal-block .btn-primary {
  color: #fff;
}
.legal-block .btn-ghost {
  color: var(--blue);
}
.legal-pdf-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--rule);
  background: #fff;
}
.legal-pdf-fallback {
  margin-top: 14px;
}
@media (max-width: 700px) {
  .legal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .legal-pdf-frame {
    min-height: 560px;
  }
}
.copy-buffer {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

/* ─── 404.html ─── */
.error-hero {
  background: var(--navy); padding: 160px 44px 96px;
  position: relative; overflow: hidden; text-align: center;
}
@media (max-width: 700px) { .error-hero { padding: 130px 22px 72px; } }
.error-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
}
.error-code {
  font-size: clamp(80px, 15vw, 200px); font-weight: 700;
  color: var(--blue); line-height: 1; letter-spacing: -.04em;
  margin-bottom: 24px;
}
.error-msg {
  font-size: clamp(20px, 2.5vw, 32px); font-weight: 700;
  color: #fff; margin-bottom: 16px;
}
.error-sub {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,.76); max-width: 46ch; margin: 0 auto 40px;
  line-height: 1.6;
}
.error-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--rule);
  max-width: 1320px; margin: 0 auto;
}
.error-nav-section { padding-top: 64px; padding-bottom: 96px; }
@media (max-width: 900px) { .error-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .error-tiles { grid-template-columns: 1fr; } }
.error-tile {
  background: var(--off); padding: 36px 32px 40px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s; text-decoration: none;
  position: relative; overflow: hidden;
}
.error-tile:hover { background: var(--blue-lt); }
.error-tile::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.error-tile:hover::after { transform: scaleX(1); }
.error-tile-n { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.error-tile-title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.error-tile-desc { font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.5; flex: 1; }
.error-tile-arrow { font-size: 18px; color: var(--blue); margin-top: 8px; transition: transform .25s; }
.error-tile:hover .error-tile-arrow { transform: translateX(4px); }

/* ─── Responsive hardening ─── */
@media (max-width: 980px) {
  .nav-inner { padding: 0 28px; }
  nav.nav-links { gap: 20px; }
  .form-map-wrap { grid-template-columns: 1fr; }
  .form-col,
  .map-col { padding: 64px 34px; }
  form.contact-form { grid-template-columns: 1fr; }
  form.contact-form .full { grid-column: 1; }
  .contact-prep-inner,
  .kontakt-hero-inner { gap: 40px; }
}

@media (max-width: 860px) {
  nav.nav-links { gap: 14px; }
  .nav-cta { padding: 8px 16px; }
  .mobile-menu {
    overflow-y: auto;
    align-content: flex-start;
    padding-bottom: 150px;
  }
}

/* ─── Tablet: Hero entdichten ───
   Zwischen 701px und 1200px ist der Viewport breit genug fuer die volle
   Desktop-Typo, aber (vor allem quer) zu flach dafuer. Typo-Skala runter,
   Zeilenbreite rauf -> weniger Zeilen, ruhigerer Hero. */
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-content { padding: 112px 32px 64px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero h1 {
    font-size: clamp(44px, 5.6vw, 70px);
    max-width: 17ch;
    margin-bottom: 22px;
    text-wrap: balance;
  }
  .hero-sub {
    font-size: 17px;
    max-width: 46ch;
    margin-bottom: 30px;
  }
  .hero-discs { margin-bottom: 28px; }
  .scroll-hint { display: none; }
  .nav-logo img { height: 42px; }
}

/* Flache Viewports (Tablet quer, kompakte Notebooks): zusaetzlich verdichten,
   damit der Hero-Block sicher unter der Viewport-Hoehe bleibt. */
@media (min-width: 701px) and (max-height: 860px) {
  .hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    max-width: 17ch;
    margin-bottom: 20px;
    text-wrap: balance;
  }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-sub {
    font-size: 17px;
    max-width: 48ch;
    margin-bottom: 26px;
  }
  .hero-discs { margin-bottom: 24px; }
  .hero-content { padding-bottom: 56px; }
  .scroll-hint { display: none; }
}

@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero-content {
    padding-top: 116px;
    padding-bottom: 52px;
  }
  .hero h1 { font-size: clamp(42px, 14vw, 68px); }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .hero-discs {
    margin-bottom: 30px;
    row-gap: 8px;
  }
  .scroll-hint { display: none; }
  .page-hero,
  .kontakt-hero {
    padding-top: 124px;
    padding-bottom: 58px;
  }
  .page-hero h1,
  .kontakt-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    max-width: 12ch;
  }
  .kontakt-hero .sub,
  .page-hero .sub { font-size: 16px; }
  .hc-block { padding: 18px; }
  .form-col,
  .map-col { padding: 46px 22px; }
  form.contact-form { gap: 18px; }
  .faq-trigger { gap: 14px; }
  .faq-icon {
    width: 32px;
    height: 32px;
  }
  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .foot-legal {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}

@media (max-width: 560px) {
  .btn,
  form.contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .service-checks {
    flex-direction: column;
    gap: 8px;
  }
  .service-check { align-items: flex-start; }
  .hero-disc {
    border-right: 0;
    margin-right: 0;
    padding-right: 14px;
  }
  .hero-actions,
  .kontakt-cta-actions { width: 100%; }
  .leit-trigger,
  .leit-teaser-row { gap: 12px; }
  .leit-name,
  .leit-teaser-name {
    font-size: clamp(22px, 8vw, 34px);
    padding: 22px 0;
  }
  .leit-icon,
  .leit-teaser-arrow {
    width: 34px;
    height: 34px;
  }
  .proj-body { padding: 22px; }
  .proj-name { font-size: 20px; }
  .proj-detail { font-size: 12px; }
  .proj-full-grid .proj-card,
  .proj-full-grid .proj-card.feature { aspect-ratio: 1 / 1.04; }
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat-item,
  .stat-item:first-child,
  .stat-item + .stat-item {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .stat-item:first-child { border-top: 0; }
  .legal-content {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 420px) {
  .nav-inner { padding: 0 18px; }
  .hero-content { padding-left: 18px; padding-right: 18px; }
  .hero-discs { gap: 8px 14px; }
  .hero-disc { font-size: 12px; }
  .page-hero,
  .kontakt-hero { padding-left: 18px; padding-right: 18px; }
  .page-hero h1,
  .kontakt-hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .section-label { font-size: 11px; }
  .form-col,
  .map-col { padding: 40px 18px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; }
  .kontakt-cta,
  .contact-prep { padding-left: 18px; padding-right: 18px; }
}

@media (max-height: 620px) and (max-width: 860px) {
  .mobile-menu {
    padding-top: 86px;
    padding-bottom: 110px;
  }
  .mob-links a {
    font-size: clamp(24px, 8vw, 36px);
    padding: 7px 0;
  }
  .mob-footer {
    position: static;
    margin-top: 28px;
  }
}
