/* =========================================================
   Industrieservice Brandt: Design System
   Serious · Classic · Minimal · Industrial
   Motion values follow Emil Kowalski's design-eng principles.
   ========================================================= */

:root {
  /* Surfaces */
  --bg:        #ebe6dc;
  --bg-panel:  #dfd8ca;
  --dark:      #100e09;
  --dark-2:    #100e09;
  --dark-soft: #1e1c16;

  /* Ink */
  --ink:       #1a1815;
  --ink-2:     #56534d;
  --muted:     #94887a;      /* two-tone heading grey on light */
  --muted-dark:#726d64;      /* two-tone heading grey on dark  */

  /* On dark */
  --on-dark:      #f4f2ec;
  --on-dark-2:    #9a958c;

  /* Accent */
  --accent:    #cf4c26;
  --accent-2:  #b5401d;
  --accent-ink:#ffffff;

  /* Weicher Übergang dunkel zu hell */
  --fade: rgb(16,14,9) 0.0%, rgb(20,18,13) 8.3%, rgb(32,30,25) 16.7%, rgb(50,48,42) 25.0%, rgb(73,70,64) 33.3%, rgb(98,95,88) 41.7%, rgb(126,122,114) 50.0%, rgb(153,149,141) 58.3%, rgb(178,174,165) 66.7%, rgb(201,196,187) 75.0%, rgb(219,214,204) 83.3%, rgb(231,226,216) 91.7%, rgb(235,230,220) 100.0%;

  /* Lines */
  --line:      rgba(26,24,21,.12);
  --line-2:    rgba(26,24,21,.07);
  --line-dark: rgba(255,255,255,.12);
  --line-dark-2: rgba(255,255,255,.06);

  /* Motion: strong custom curves */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], main[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Typography helpers
   ========================================================= */
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.section-title.on-dark { color: var(--on-dark); }
.section-title .muted { color: var(--muted); }
.section-title.on-dark .muted { color: var(--muted-dark); }
.muted-light { color: rgba(255,255,255,.55); }
/* =========================================================
   Media (photography): the core visual system.
   Cohesive grade so mixed photos read as one set;
   Emil clip-path reveal + inner-scale settle on scroll.
   ========================================================= */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-panel);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out);
  will-change: clip-path;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
  transform: scale(1.06);
  transition: transform 1200ms var(--ease-out);
  will-change: transform;
}
.media.in { clip-path: inset(0 0 0 0); }
.media.in img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .media:hover img { transform: scale(1.045); transition: transform 700ms var(--ease-out); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--radius);
  transition: transform 160ms var(--ease-out),
              background-color 200ms ease,
              color 200ms ease,
              border-color 200ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --pad-y: 11px; --pad-x: 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark    { background: var(--dark); color: var(--on-dark); }
.btn-ghost   { color: var(--ink); border: 1px solid var(--line); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-2); }
  .btn-dark:hover    { background: #000; }
  .btn-ghost:hover   { border-color: var(--ink); }

}
/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.site-header.scrolled {
  background: rgba(235,230,220,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-2);
}
.header-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  pointer-events: none;
}
.header-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 300ms ease;
}
.site-header.scrolled .header-progress i { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-logo-light { filter: brightness(0) invert(1); opacity: .94; }
.mobile-top .brand-logo { height: 34px; }

.nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 180ms ease;
}
.nav-link.is-active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); }
}
.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20,18,15,.55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 300ms ease;
}
.drawer-overlay.show { opacity: 1; }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 80;
  width: min(100vw, 440px);
  height: 100dvh;
  background: var(--dark);
  color: var(--on-dark);
  padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 480ms var(--ease-drawer);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 50% at 100% 0, rgba(207,76,38,.16), transparent 66%),
    radial-gradient(65% 40% at 0 100%, rgba(207,76,38,.07), transparent 70%);
  pointer-events: none;
}
.mobile-nav > * { position: relative; }
.mobile-nav.open { transform: translateX(0); }

.mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
  margin-bottom: clamp(24px, 6vh, 48px);
}

.mobile-close {
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  flex: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.mobile-close span {
  position: absolute; left: 50%; top: 50%;
  width: 17px; height: 2px;
  background: var(--on-dark);
  transform-origin: center;
}
.mobile-close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.mobile-close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.mobile-close:active { background: rgba(255,255,255,.07); }

.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  color: var(--on-dark);
  /* staggered entrance, driven by .open on the drawer */
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 460ms var(--ease-out), transform 520ms var(--ease-out), color 200ms ease;
}
.mobile-nav.open .mobile-link { opacity: 1; transform: none; }
.mobile-nav.open .mobile-link:nth-child(1) { transition-delay: 110ms; }
.mobile-nav.open .mobile-link:nth-child(2) { transition-delay: 165ms; }
.mobile-nav.open .mobile-link:nth-child(3) { transition-delay: 220ms; }
.mobile-nav.open .mobile-link:nth-child(4) { transition-delay: 275ms; }
.mobile-nav.open .mobile-link:nth-child(5) { transition-delay: 330ms; }

.mobile-label {
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.mobile-arrow {
  font-size: .95rem;
  color: var(--muted-dark);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), color 220ms ease;
}
.mobile-link.is-active .mobile-arrow { color: var(--accent); }
.mobile-link.is-active .mobile-arrow { opacity: 1; transform: none; }
.mobile-link:active { color: var(--accent); }

.mobile-foot {
  margin-top: auto;
  padding-top: clamp(28px, 6vh, 44px);
  display: grid;
  gap: 14px;
  justify-items: start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--ease-out) 380ms, transform 460ms var(--ease-out) 380ms;
}
.mobile-nav.open .mobile-foot { opacity: 1; transform: none; }
.mobile-cta { width: 100%; justify-content: center; --pad-y: 16px; }
.mobile-mail {
  font-size: .92rem;
  color: var(--on-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.mobile-meta { font-size: .8rem; color: var(--on-dark-2); letter-spacing: .04em; }

/* =========================================================
   Sticky action bar (mobile only): the two things a visitor
   actually wants: write us, or jump to the form.
   ========================================================= */
.action-bar {
  position: fixed;
  z-index: 55;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(20,18,14,.86);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 260ms ease;
  pointer-events: none;
}
.action-bar.show { transform: none; opacity: 1; pointer-events: auto; }
.action-item {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: .88rem; font-weight: 600;
  color: var(--on-dark);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.action-item:active { transform: scale(0.97); }
.action-cta { background: var(--accent); color: #fff; }
.action-arrow { font-size: .82rem; }

/* =========================================================
   Hero: editorial split. Text column left {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Atmosphere: faint blueprint grid + warm forge glow */

/* ---------- Text column ---------- */

/* Key word carries an accent stroke that draws in on load */

/* ---------- Visual column ---------- */

/* Caption sitting in the photograph's bottom gradient */

/* =========================================================
   Marquee
   ========================================================= */

/* =========================================================
   About
   ========================================================= */
/* =========================================================
   Services / accordion
   ========================================================= */
.services { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.services-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 40px;
}

.accordion { display: flex; flex-direction: column; }
.acc-item {
  border-top: 1px solid var(--line);
  transition: background-color 400ms ease;
}
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-item.is-open {
  background: linear-gradient(180deg, var(--bg-panel), transparent);
}
.acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 8px;
  text-align: left;
}

.acc-title {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 300ms ease;
}
.acc-icon {
  position: relative; width: 22px; height: 22px; flex: none;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 300ms var(--ease-out), background-color 300ms ease;
}
.acc-icon::before { left: 0; top: 10px; width: 22px; height: 2px; }
.acc-icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); }
.acc-item.is-open .acc-icon::before { background: var(--accent); }

/* smooth open via grid-rows (transform-friendly, no reflow jank) */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 460ms var(--ease-in-out);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 4vw, 56px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms ease 60ms, transform 460ms var(--ease-out) 60ms;
}
.acc-item.is-open .acc-inner { opacity: 1; transform: translateY(0); }
.acc-text {
  align-self: center;
  padding: 6px 8px 30px;
  display: flex; flex-direction: column; gap: 22px;
  color: var(--ink-2);
  max-width: 52ch;
}
.acc-text p { font-size: 1.08rem; line-height: 1.6; }
.acc-visual { padding-bottom: 30px; }
.acc-visual .media { aspect-ratio: 3 / 2; }

/* =========================================================
   Why (dark): numbered cards (no vector icons)
   ========================================================= */
.why {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.why::before, .process::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.why > .container, .process > .container { position: relative; }
.why-head { margin-bottom: 56px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.why-card {
  background: var(--dark-soft);
  border-radius: var(--radius);
  padding: 32px clamp(20px, 3vw, 32px);
  min-height: 260px;
  display: flex; flex-direction: column;
  position: relative;
}

.why-index {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--muted-dark);
  transition: color 400ms ease;
}
.why-body { margin-top: auto; }
.why-card h3 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 28px 0 10px; color: var(--on-dark);
}
.why-card p { color: var(--on-dark-2); font-size: .95rem; max-width: 30ch; }
@media (hover: hover) and (pointer: fine) {

  .why-card:hover .why-index { color: var(--accent); }
}

/* =========================================================
   Process (dark): timeline
   ========================================================= */
.process {
  background: var(--dark-2);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.process-head { margin-bottom: 40px; }
.timeline { position: relative; padding-left: clamp(28px, 5vw, 60px); }
.timeline-rail {
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--line-dark);
  overflow: hidden;
}
.timeline-progress {
  position: absolute; inset: 0 0 auto 0;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  transition: transform 120ms linear;
}
.step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: clamp(30px, 5vw, 60px) 0;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(28px, 5vw, 60px) - 1px);
  top: clamp(38px, 5.5vw, 68px);
  width: 11px; height: 11px;
  background: var(--dark-2);
  border: 2px solid var(--muted-dark);
  transform: translateX(-4px);
  transition: border-color 300ms ease, background-color 300ms ease;
}
.step.active::before { border-color: var(--accent); background: var(--accent); }
.step-main h3 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.step-desc {
  color: var(--on-dark-2);
  max-width: 26ch;
  justify-self: end;
  text-align: right;
  padding-top: 10px;
  font-size: .95rem;
}
/* =========================================================
   Stats
   ========================================================= */

/* Aktionsband ohne Kennzahlen: eine breite Kachel */

/* =========================================================
   Projects
   ========================================================= */
.projects { padding: clamp(64px, 10vw, 130px) 0; }
.projects-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 44px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover img { transform: scale(1.04); }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(48px, 8vw, 110px) 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.faq-sub { margin-top: 20px; color: var(--ink-2); }
.faq-sub a { color: var(--accent); font-weight: 600; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 320ms var(--ease-out), background-color 320ms ease;
}
.faq-plus::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq-plus::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.is-open .faq-plus::after { transform: rotate(90deg) scaleX(0); }
.faq-item.is-open .faq-plus::before { background: var(--accent); }
.faq-item.is-open .faq-trigger { color: var(--ink); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-in-out);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 340ms ease;
}
.faq-item.is-open .faq-answer-inner { opacity: 1; }
.faq-answer-inner p { color: var(--ink-2); max-width: 58ch; padding: 0 4px 26px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { background: var(--accent); color: #fff; }

.cta-title {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.cta-sub { margin: 22px 0 34px; font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 44ch; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-lead .section-title { margin: 20px 0 40px; }
.contact-details { list-style: none; padding: 0; display: grid; gap: 26px; }
.contact-details li { display: grid; gap: 4px; }
.c-label { font-size: .85rem; color: var(--on-dark-2); }
.c-value { font-size: 1.05rem; color: var(--on-dark); }

.contact-form {
  background: var(--dark-soft);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; color: var(--on-dark-2); }
.field input, .field textarea {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--on-dark);
  font: inherit;
  transition: border-color 220ms ease, background-color 220ms ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #6b665d; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,.35);
}
.form-note { font-size: .82rem; color: var(--on-dark-2); text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--dark-2); color: var(--on-dark); padding: clamp(56px, 7vw, 90px) 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 36px;
}
.footer-brand p { margin: 22px 0 26px; color: var(--on-dark-2); font-size: .92rem; max-width: 30ch; }
.to-top {
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  transition: transform 220ms var(--ease-out), background-color 220ms ease, border-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
}
.to-top:active { transform: scale(0.95); }
.footer-col h4 { font-size: .9rem; color: var(--on-dark-2); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-contact p { display: block; color: var(--on-dark); font-size: .95rem; padding: 7px 0; transition: color 180ms ease; }
.footer-contact p { color: var(--on-dark-2); padding: 4px 0; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--accent); }
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px;
  font-size: .84rem; color: var(--on-dark-2);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { color: var(--on-dark); } }

/* =========================================================
   Scroll reveal (Emil: transform+opacity, ease-out, staggered)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: transform, opacity;
}
[data-reveal].in { opacity: 1; transform: none; }
/* Hero on-load line reveal: per-line fade-up (safe when text wraps) */

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }

  .media { clip-path: none; }
  .media img { transform: none; }

}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1440px) {
  :root { --container: clamp(1240px, 90vw, 2160px); }

}

@media (max-width: 960px) {
  .nav { display: none; }
  .action-bar { display: flex; }

  /* section heads: side link drops to its own row instead of wrapping */
  .services-head,
  .projects-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
  }

  /* accordion: roomier tap targets, tighter grid */
  .acc-trigger { gap: 16px; padding: 22px 2px; }
  .acc-text { padding: 2px 2px 28px; gap: 18px; }
  .acc-visual { padding-bottom: 24px; }

  /* dark cards: less air, same rhythm */
  .why-head, .process-head { margin-bottom: 34px; }
  .why-card { padding: 30px 0 32px; }

  .why-card h3 { margin-top: 18px; }
  .why-card p { max-width: none; }
  .why-index { font-size: 2.1rem; }

  /* room for the sticky action bar */
  .footer-bottom { padding-bottom: 76px; }

  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { min-height: auto; }

  .projects-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .acc-inner { grid-template-columns: 1fr; }
  .acc-text { order: 2; padding-bottom: 20px; }
  .acc-visual { order: 1; }
  .acc-visual .media { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  section[id], main[id] { scroll-margin-top: 76px; }
  .header-inner { height: 66px; }

  .brand-logo { height: 32px; }

  .step { grid-template-columns: 1fr; }
  .step-desc { justify-self: start; text-align: left; padding-top: 4px; }

  .footer-grid { grid-template-columns: 1fr; }
  .faq-trigger { padding: 20px 2px; }
  .contact-details { gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

}

/* Kontakt-Links (E-Mail) */
.c-value a,
.footer-contact p a,
.form-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .c-value a:hover,
  .footer-contact p a:hover,
  .form-note a:hover { color: var(--accent); }
}

/* =========================================================
   Sprachwahl (Header, oben rechts)
   ========================================================= */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 180ms ease, border-color 180ms ease;
}
.lang-caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms var(--ease-out);
}
.lang.open .lang-btn { color: var(--ink); border-color: var(--ink); }
.lang.open .lang-caret { transform: translateY(1px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover { color: var(--ink); border-color: var(--ink); }
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  min-width: 178px;
  list-style: none;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(26, 24, 21, .16);
  z-index: 80;
}
.lang-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 11px;
  font-size: .9rem;
  color: var(--ink-2);
  text-align: left;
  border-radius: 3px;
  transition: background-color 160ms ease, color 160ms ease;
}
.lang-abbr {
  min-width: 2.2em;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: var(--muted);
  transition: color 160ms ease;
}
.lang-menu button[aria-selected="true"] { color: var(--ink); }
.lang-menu button[aria-selected="true"] .lang-abbr { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .lang-menu button:hover { background: var(--bg-panel); color: var(--ink); }
}

/* =========================================================
   Inhaber: Gordan Brandt
   ========================================================= */
/* =========================================================
   Zweigstelle Kuopio (dunkel)
   ========================================================= */
.branch {
  background: var(--dark-2);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.branch::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.branch > .container { position: relative; }
.branch-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.branch-text {
  margin-top: 24px;
  color: var(--on-dark-2);
  max-width: 46ch;
}
.branch-facts {
  list-style: none; padding: 0;
  margin: clamp(26px, 3vw, 36px) 0 clamp(28px, 3vw, 38px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 40px);
}
.branch-facts li {
  display: grid; gap: 4px;
}
.media-branch { aspect-ratio: 4 / 5; }

/* =========================================================
   Responsive für die neuen Bausteine
   ========================================================= */
@media (max-width: 960px) {
  .branch-grid { grid-template-columns: 1fr; }
  .media-branch { aspect-ratio: 16 / 10; }
  .branch-visual { order: -1; }
}

@media (max-width: 560px) {
  .branch-facts { grid-template-columns: 1fr; }
  .lang-btn { padding: 8px 10px; gap: 7px; }
  .lang-menu { min-width: 162px; }
}

/* =========================================================
   Rechtsseiten (Impressum, Datenschutz) und Rechtshinweise
   ========================================================= */
.legal { padding: clamp(120px, 14vw, 160px) 0 clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 820px; }
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.legal h2 {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal p, .legal-list { color: var(--ink-2); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-translation {
  padding: 12px 16px; margin-bottom: 8px;
  background: var(--bg-panel); border-radius: var(--radius); font-size: .92rem;
}
.legal-translation:empty { display: none; }
.legal-list {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 24px;
}
.legal-list dt { color: var(--ink); font-weight: 600; }
.legal-list dd { margin: 0; overflow-wrap: anywhere; }
.legal-todo { background: #ffe08a; color: #1a1815; padding: 1px 6px; border-radius: 2px; }
.legal .legal-stand { margin-top: 40px; font-size: .88rem; }
.site-footer-slim { padding-top: 0; }
.site-footer-slim .footer-bottom { padding-bottom: 28px; }
.legal-page .header-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .legal-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .legal-list dd { margin-bottom: 12px; }
  .legal-page .header-actions .btn { display: none; }
}

.projects-note { margin-top: 20px; font-size: .86rem; color: var(--ink-2); }
.form-privacy { margin-bottom: -6px; }
.form-privacy a {
  color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px;
}
.brand-tagline {
  margin-top: 12px;
  font-size: .9rem;
  color: var(--on-dark-2);
}

@media (max-width: 640px) {
  .section-title { overflow-wrap: anywhere; }
}


/* =========================================================
   Hero: vollflächiges Foto, Text links auf dunklem Verlauf
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 76px), 920px);
  background: var(--dark-2);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,14,9,.92) 0%, rgba(16,14,9,.8) 34%, rgba(16,14,9,.28) 66%, rgba(16,14,9,.06) 100%),
    linear-gradient(0deg, rgb(16,14,9) 0%, rgba(16,14,9,.72) 16%, rgba(16,14,9,0) 46%);
}
.hero-inner { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; }
.hero-sub {
  max-width: 38rem;
  margin-top: clamp(20px, 2.2vw, 28px);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  color: rgba(244,242,236,.86);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3vw, 36px); }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(244,242,236,.42); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn-ghost:hover { color: var(--on-dark); border-color: var(--on-dark); background: rgba(244,242,236,.08); }
}
.hero-facts {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 20px clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px);
}
.hero-facts li { display: flex; align-items: center; gap: 14px; }
.fact-num { font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 800; line-height: 1; }
.fact-num b { font-weight: 800; }
.fact-num.fact-num-sm { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.hero-facts li:has(.fact-num-sm) { display: grid; gap: 3px; }
.fact-label { font-size: .92rem; line-height: 1.4; color: rgba(244,242,236,.78); }

.hero-title .line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.hero-title .line:nth-child(2) { transition-delay: 90ms; }
.is-ready .hero-title .line { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .hero { min-height: min(calc(100svh - 68px), 860px); }
  .hero-image { object-position: 68% 50%; }
  .hero::after {
    background: linear-gradient(0deg, rgb(16,14,9) 0%, rgba(16,14,9,.88) 48%, rgba(16,14,9,.3) 82%, rgba(16,14,9,.12) 100%);
  }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  html:is([lang="en"], [lang="es"], [lang="ru"]) .hero-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Textlinks */
.text-link {
  align-self: flex-start;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  transition: color 180ms ease;
}
.text-link.top { align-self: end; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { color: var(--accent); }
}

/* =========================================================
   Inhaber: dunkel, Ofenfoto in der Spalte
   ========================================================= */
.owner {
  background: var(--dark-2);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 110px) 0;
}
.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.owner-photo { aspect-ratio: 4 / 5; background: var(--dark-soft); border-radius: var(--radius); }
.owner .section-title { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.owner-role { margin-top: 14px; font-size: 1.05rem; font-weight: 600; color: #ef7a4d; }
.owner-text { margin-top: 22px; font-size: 1.1rem; line-height: 1.6; color: rgba(244,242,236,.82); }
.owner-facts {
  list-style: none; padding: 0;
  margin-top: clamp(30px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 40px);
}
.owner-facts li { display: grid; gap: 4px; }
.o-label { font-size: .85rem; color: var(--on-dark-2); }
.o-value { font-size: .95rem; line-height: 1.5; color: var(--on-dark); }

/* =========================================================
   Über uns: Text links, Foto randlos rechts
   ========================================================= */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.about-lead {
  align-self: center; justify-self: end;
  width: 100%; max-width: 620px;
  padding: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 72px) clamp(56px, 7vw, 110px) var(--gutter);
}
.about-text { margin-top: 22px; font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.about-visual { position: relative; min-height: clamp(380px, 44vw, 620px); overflow: hidden; }
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Projekte: Foto trägt die Karte, Text liegt darauf
   ========================================================= */
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
}
.project-card img { transition: transform 600ms var(--ease-out); }
.project-visual .media { border-radius: 0; aspect-ratio: 4 / 3; }
.project-meta {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(56px, 7vw, 90px) clamp(18px, 2.2vw, 28px) clamp(18px, 2vw, 26px);
  background: linear-gradient(0deg, rgba(16,14,9,.94) 0%, rgba(16,14,9,.72) 52%, rgba(16,14,9,0) 100%);
  color: var(--on-dark);
}
.project-meta h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.project-meta p { color: rgba(244,242,236,.82); font-size: .95rem; }

@media (max-width: 960px) {
  .owner-grid, .about { grid-template-columns: minmax(0, 1fr); }
  .owner-photo { width: min(100%, 240px); }
  .about-lead { max-width: none; justify-self: stretch; padding-right: var(--gutter); }
  .about-visual { min-height: clamp(280px, 62vw, 460px); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-facts { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Seitenrhythmus: dunkel, hell, dunkel mit weichen Übergängen
   ========================================================= */
.section-fade { height: clamp(150px, 20vw, 300px); background: linear-gradient(180deg, var(--fade)); }
.section-fade.to-dark { background: linear-gradient(0deg, var(--fade)); }
.owner { padding-bottom: clamp(28px, 4vw, 56px); }
.projects { padding-bottom: clamp(32px, 4vw, 56px); }
.why { padding-top: clamp(32px, 4vw, 56px); }

/* Header bleibt durchgehend dunkel */
.site-header { background: var(--dark-2); }
.site-header.scrolled {
  background: rgba(16,14,9,.94);
  box-shadow: 0 1px 0 var(--line-dark-2);
}
.nav-link { color: rgba(244,242,236,.74); }
.nav-link.is-active { color: var(--on-dark); }
.nav-toggle span { background: var(--on-dark); }
.lang-btn { color: var(--on-dark); border-color: var(--line-dark); }
.lang.open .lang-btn { color: var(--on-dark); border-color: var(--on-dark); }
.lang-menu { background: var(--dark-soft); border-color: var(--line-dark); }
.lang-menu button { color: rgba(244,242,236,.74); }
.lang-menu button[aria-selected="true"] { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--on-dark); }
  .lang-btn:hover { color: var(--on-dark); border-color: var(--on-dark); }
  .lang-menu button:hover { background: rgba(244,242,236,.08); color: var(--on-dark); }
}

/* FAQ im dunklen Teil */
.faq { background: var(--dark-2); color: var(--on-dark); }
.faq-sub { color: var(--on-dark-2); }
.faq-sub a { color: #ef7a4d; }
.faq-item { border-bottom-color: var(--line-dark); }
.faq-item:first-child { border-top-color: var(--line-dark); }
.faq-trigger, .faq-item.is-open .faq-trigger { color: var(--on-dark); }
.faq-plus::before, .faq-plus::after { background: var(--on-dark); }
.faq-answer-inner p { color: rgba(244,242,236,.78); }

/* Karten behalten ihren Innenabstand auch mobil */
@media (max-width: 960px) {
  .why-card { padding: 26px 22px; min-height: 0; }
}

/* =========================================================
   Handy: kompakter, kein Leerraum, Projekte zum Wischen
   ========================================================= */
@media (max-width: 640px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
  .hero-facts li { gap: 10px; }
  .fact-label { font-size: .85rem; }

  .owner { padding-top: 44px; }
  .owner-grid { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; }
  .owner-lead { display: contents; }
  .owner-photo { grid-column: 1; grid-row: 1 / span 2; width: 84px; }
  .owner .section-title { grid-column: 2; align-self: end; font-size: 2.1rem; }
  .owner-role { grid-column: 2; align-self: start; margin-top: 4px; font-size: .92rem; }
  .owner-text, .owner-facts { grid-column: 1 / -1; }
  .owner-text { margin-top: 22px; font-size: 1.05rem; }

  .section-fade { height: 110px; }
  .about-lead { padding-block: 36px 36px; }
  .about-text { font-size: 1.05rem; }

  .services { padding-top: 44px; padding-bottom: 44px; }
  .services-head .text-link { display: none; }
  .acc-item.is-open { background: none; }
  .acc-trigger { padding-inline: 0; }
  .acc-text { padding-inline: 0; max-width: none; }
  .acc-text p { font-size: 1.05rem; }

  .projects { padding-top: 44px; }
  .projects-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .project-card { flex: 0 0 84%; scroll-snap-align: start; }
  .project-visual .media { aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .footer-col:not(.footer-contact) { display: none; }
  .footer-contact a { display: inline; }
  .projects-grid [data-reveal], .projects-grid .media { opacity: 1; transform: none; clip-path: none; }
}
html { background: var(--dark-2); }
