/* ============================================================
   PW METALLBAU — Redesign 2026
   Industrial Dark · Barlow Condensed / Barlow / IBM Plex Mono
   ============================================================ */

/* ---------------- Self-hosted Fonts (DSGVO: keine Google-Requests) ----------------
   Quelle: @fontsource (SIL Open Font License 1.1), latin-Subset, woff2
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #0d0e10;
  --bg-2: #121417;
  --panel: #17191d;
  --panel-2: #1d2025;
  --line: #2a2e34;
  --ink: #f4f2ee;
  --ink-dim: #a7adb6;
  --ink-faint: #6b727c;
  --accent: #fbc123;
  --accent-hot: #ffd45a;
  --accent-soft: rgba(251, 193, 35, 0.12);
  --on-accent: #131313;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --radius: 4px;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain + glow atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--on-accent); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------- Typography ---------------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ink-dim);
  max-width: 640px;
  font-size: 18px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 46px; width: auto; }
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-word span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s, border-color 0.25s, transform 0.15s;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(0.98); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-solid::before { background: var(--accent-hot); }

.btn-ghost-tel {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-tel:hover { border-color: var(--accent); color: var(--ink); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(251, 193, 35, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 212, 90, 0.06), transparent 60%),
    var(--bg);
}
.hero-bg { transform: translate3d(0, calc(var(--par, 0) * 1px), 0) scale(1.12); will-change: transform; }
.hero h1 .hot {
  animation: hotGlow 3s ease-in-out infinite;
}
@keyframes hotGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(251,193,35,0.25), 0 0 60px rgba(255,120,30,0.12); }
  50% { text-shadow: 0 0 30px rgba(251,193,35,0.55), 0 0 90px rgba(255,120,30,0.35); }
}
/* Funken im Hero */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.embers span {
  position: absolute;
  bottom: -12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd45a 0%, #ff7b1f 60%, transparent 75%);
  filter: blur(0.5px);
  opacity: 0;
  animation: emberUp linear infinite;
}
.embers span:nth-child(1) { left: 8%;  animation-duration: 7s;   animation-delay: 0s;   }
.embers span:nth-child(2) { left: 22%; animation-duration: 9s;   animation-delay: 2.1s; width: 4px; height: 4px; }
.embers span:nth-child(3) { left: 35%; animation-duration: 6.5s; animation-delay: 1.2s; }
.embers span:nth-child(4) { left: 48%; animation-duration: 10s;  animation-delay: 3.4s; width: 3px; height: 3px; }
.embers span:nth-child(5) { left: 61%; animation-duration: 7.5s; animation-delay: 0.8s; }
.embers span:nth-child(6) { left: 72%; animation-duration: 8.5s; animation-delay: 4.2s; width: 6px; height: 6px; }
.embers span:nth-child(7) { left: 83%; animation-duration: 6s;   animation-delay: 2.8s; }
.embers span:nth-child(8) { left: 92%; animation-duration: 9.5s; animation-delay: 1.6s; width: 4px; height: 4px; }
@keyframes emberUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.9; }
  50%  { transform: translateY(-52vh) translateX(18px); opacity: 0.5; }
  100% { transform: translateY(-95vh) translateX(-14px); opacity: 0; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.14;
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 800;
}
.hero h1 .hot {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-sub {
  margin: 26px 0 36px;
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  background: rgba(255,255,255,0.02);
}
.badge b { color: var(--accent); font-weight: 600; }

/* Hero image plate */
.hero-visual { position: relative; }
.hero-visual .plate {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55);
}
.hero-visual .plate img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s ease;
}
.hero-visual .plate:hover img { transform: scale(1.04); }
.hero-visual .plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,14,16,0.65));
}
.hero-visual .plate-caption {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 2;
}
.hero-visual .corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--accent);
  z-index: 3;
}
.corner.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.corner.br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------------- Marquee ---------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 20px 0;
  transform: rotate(-1.1deg) scale(1.02);
  margin: -6px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 24s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
}
.marquee-track span {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
  padding: 0 28px;
  position: relative;
}
.marquee-track span::after {
  content: "•";
  color: var(--accent);
  position: absolute;
  right: -6px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */

section.block { padding: 110px 0; position: relative; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 60px; }
.section-head h2 { position: relative; padding-bottom: 18px; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 88px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-head.visible h2::after { transform: scaleX(1); }

/* Promise cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); border-color: #3a3f47; }
.card:hover::before { transform: scaleX(1); }
.card .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 22px;
}
.card h3 { font-size: 27px; margin-bottom: 12px; }
.card p { color: var(--ink-dim); font-size: 16px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(0.9);
}
.about-visual .steel-tag {
  position: absolute;
  right: -14px; top: 34px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(251, 193, 35, 0.3);
}
.about-copy p { color: var(--ink-dim); margin-bottom: 18px; }
.about-copy p b, .about-copy p strong { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: var(--panel);
}
.stat .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}
.stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
  display: block;
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color 0.3s;
}
.step:hover::before { -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-dim); }

/* Portfolio grid / gallery */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pf-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--panel);
  cursor: pointer;
}
.pf-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}
.pf-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.pf-item .pf-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(10,11,12,0.85));
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.pf-item:hover .pf-label { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.lightbox .close {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  background: none;
  transition: color 0.2s, border-color 0.2s;
}
.lightbox .close:hover { color: var(--ink); border-color: var(--accent); }

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 50% 120%, rgba(251, 193, 35, 0.20), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(42px, 6vw, 78px);
  margin-bottom: 18px;
}
.cta-band p {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
}
.cta-band .hero-actions { justify-content: center; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0b0c;
  padding: 70px 0 34px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 54px;
}
.site-footer h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 17px;
  margin-bottom: 18px;
  color: var(--ink);
}
.site-footer p, .site-footer li { color: var(--ink-dim); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--accent); background: var(--accent-soft); }
.socials svg { width: 18px; height: 18px; fill: var(--ink-dim); }
.socials a:hover svg { fill: var(--accent); }

/* ---------------- Page hero (subpages) ---------------- */

.page-hero {
  padding: 180px 0 80px;
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(251, 193, 35, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(48px, 7vw, 88px); }
.page-hero .section-sub { margin-top: 16px; }

/* Services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.svc:hover { transform: translateY(-6px); border-color: #3a3f47; }
.svc .icon {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--accent-soft);
  transition: background 0.3s, border-color 0.3s;
}
.svc:hover .icon { background: var(--accent); border-color: var(--accent); }
.svc .icon svg { width: 26px; height: 26px; stroke: var(--accent); transition: stroke 0.3s; }
.svc:hover .icon svg { stroke: #fff; }
.svc h3 { font-size: 25px; margin-bottom: 10px; }
.svc p { color: var(--ink-dim); font-size: 15.5px; }
.svc .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc .tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
}

.material-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
}
.material-strip .mat {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 22px;
  background: var(--panel);
}

/* ---------------- Kontakt ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 34px 30px;
  margin-bottom: 20px;
}
.info-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.info-card p, .info-card li { color: var(--ink-dim); }
.info-card ul { list-style: none; }
.info-card li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.info-card li:last-child { border-bottom: 0; }
.info-card a { color: var(--ink); transition: color 0.2s; }
.info-card a:hover { color: var(--accent); }
.tel-big {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

form.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 40px 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }

.map-frame {
  margin-top: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Dark-Mode-Trick NUR auf die Google-Karte, nicht auf den Container –
   sonst wird auch der Einwilligungs-Platzhalter invertiert (hell statt dunkel). */
.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.9) invert(0.92) contrast(0.9);
}

/* ---------------- Reveal animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.chapter-visual { overflow: hidden; }
.chapter-visual img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s; }
.chapter-visual:hover img { transform: scale(1.045); filter: saturate(1.08) brightness(1.04); }
.chapter-thumbs img { transition: transform 0.5s, border-color 0.3s; }
.chapter-thumbs img:hover { transform: translateY(-4px) scale(1.03); border-color: var(--accent); }
.chapter-num { transition: color 0.4s, text-shadow 0.4s; }
.chapter:hover .chapter-num { color: var(--accent); text-shadow: 0 0 40px rgba(251,193,35,0.4); }
/* CTA-Puls */
.hero .btn-solid, .cta-band .btn-solid { animation: btnPulse 2.8s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,193,35,0.35); }
  50% { box-shadow: 0 0 24px 4px rgba(251,193,35,0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .btn-solid, .cta-band .btn-solid { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual .plate img { height: 380px; }
  .about-visual img { height: 420px; }
  .cards-3, .svc-grid, .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: rgba(13,14,16,0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-solid { display: none; }
  .cards-3, .svc-grid, .pf-grid, .process, .form-row, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section.block { padding: 70px 0; }
  .hero { padding-top: 120px; }
}


/* ============================================================
   Projektreise (Redesign v2) — Hero-Fullbleed, Kapitel, Leistungsliste
   ============================================================ */

/* Hero mit Schmiede-Foto */
.hero-forge { padding: 0; min-height: min(100svh, 900px); }
.hero-forge .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  filter: saturate(1.05) contrast(1.05);
}
.hero-forge .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,14,16,0.92) 0%, rgba(13,14,16,0.72) 42%, rgba(13,14,16,0.25) 75%, rgba(13,14,16,0.45) 100%),
    linear-gradient(180deg, rgba(13,14,16,0.55) 0%, transparent 30%, transparent 62%, rgba(13,14,16,0.92) 100%);
}
.hero-forge .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 110px;
}
.hero-forge h1 { max-width: 760px; text-wrap: balance; }
.hero-forge .hero-sub { max-width: 540px; }

/* Journey / Kapitel */
.journey { padding: 110px 0 60px; }
.journey-head { margin-bottom: 20px; }

.chapter { padding: 70px 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--line); }

.chapter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.chapter-flip .chapter-grid { grid-template-columns: 0.85fr 1.15fr; }
.chapter-flip .chapter-visual { order: 2; }
.chapter-flip .chapter-copy { order: 1; }

.chapter-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.chapter-visual img {
  width: 100%;
  height: min(72vh, 620px);
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.chapter-visual:hover img { transform: scale(1.03); }

.chapter-copy { position: relative; }
.chapter-num {
  position: absolute;
  top: -70px;
  right: -10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(110px, 14vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.chapter-flip .chapter-num { right: auto; left: -10px; }
.chapter-copy > *:not(.chapter-num) { position: relative; z-index: 1; }
.chapter-copy h3 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.story { display: grid; gap: 16px; margin-bottom: 28px; }
.story > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.story > div:last-child { border-bottom: 0; }
.story dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.story dd { color: var(--ink-dim); font-size: 16px; }

.chapter-thumbs { display: flex; gap: 12px; }
.chapter-thumbs img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: saturate(0.9);
  transition: transform 0.3s, border-color 0.3s;
}
.chapter-thumbs img:hover { transform: translateY(-4px); border-color: var(--accent); }

.journey-cta {
  text-align: center;
  padding: 70px 24px 90px;
  border-top: 1px solid var(--line);
}
.journey-cta p {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.journey-cta .hero-actions { justify-content: center; }

/* Leistungen als nummerierte Liste */
.svc-list { list-style: none; counter-reset: svc; border-top: 1px solid var(--line); }
.svc-list li { counter-increment: svc; }
.svc-list a {
  display: grid;
  grid-template-columns: 70px 260px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.25s;
  position: relative;
}
.svc-list a::before {
  content: "0" counter(svc);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  transition: color 0.25s;
}
.svc-list a::after {
  content: "→";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-faint);
  transition: color 0.25s, transform 0.25s;
}
.svc-list span {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.svc-list em { font-style: normal; color: var(--ink-dim); font-size: 15.5px; }
.svc-list a:hover { background: var(--panel); padding-left: 20px; }
.svc-list a:hover::before { color: var(--accent); }
.svc-list a:hover::after { color: var(--accent); transform: translateX(6px); }

/* About-Bild (Funkenflug) etwas kompakter */
.about-visual img { height: 480px; object-position: center; }

/* Responsive für Kapitel & Liste */
@media (max-width: 1000px) {
  .chapter-grid, .chapter-flip .chapter-grid { grid-template-columns: 1fr; gap: 34px; }
  .chapter-flip .chapter-visual { order: 0; }
  .chapter-flip .chapter-copy { order: 1; }
  .chapter-visual img { height: min(46vh, 420px); }
  .chapter-num { top: -34px; right: 0; font-size: 96px; }
  .chapter-flip .chapter-num { left: auto; right: 0; }
  .svc-list a { grid-template-columns: 48px 1fr auto; }
  .svc-list em { grid-column: 2 / 3; }
}
@media (max-width: 640px) {
  .journey { padding: 70px 0 30px; }
  .chapter { padding: 50px 0; }
  .story > div { grid-template-columns: 1fr; gap: 4px; }
  .chapter-thumbs img { width: 90px; height: 68px; }
  .svc-list a { gap: 14px; padding: 20px 6px; }
  .hero-forge .hero-inner { padding-top: 130px; padding-bottom: 90px; }
  .hero-forge h1 { font-size: clamp(38px, 12vw, 52px); hyphens: manual; }
  .hero-forge h1 br { display: none; }
}

/* ============================================================
   UNTERSEITEN — Angleichung an das Projektreise-Design (v3)
   ============================================================ */

/* Kompakter Bild-Hero für Unterseiten (Geschwister von .hero-forge) */
.hero-page {
  padding: 0;
  min-height: min(66svh, 620px);
}
.hero-page .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.02) contrast(1.04);
}
.hero-page .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,14,16,0.94) 0%, rgba(13,14,16,0.76) 46%, rgba(13,14,16,0.3) 80%, rgba(13,14,16,0.5) 100%),
    linear-gradient(180deg, rgba(13,14,16,0.7) 0%, transparent 34%, transparent 58%, rgba(13,14,16,0.95) 100%);
}
.hero-page .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 168px;
  padding-bottom: 76px;
}
.hero-page h1 {
  font-size: clamp(46px, 6.6vw, 88px);
  font-weight: 800;
  max-width: 780px;
  text-wrap: balance;
}
.hero-page .hero-sub { max-width: 560px; margin: 22px 0 0; }

/* Brotkrumen */
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.crumbs a { color: var(--ink-dim); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { padding: 0 8px; color: var(--ink-faint); }

/* Karte: Klick-zum-Laden (DSGVO) */
.map-consent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 380px;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map-consent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,14,16,0.55), rgba(13,14,16,0.8));
  border-radius: var(--radius);
}
.map-consent > * { position: relative; z-index: 1; }
.map-consent h3 { font-size: 24px; }
.map-consent p {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 460px;
}
.map-consent .map-alt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.map-consent .map-alt a { color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.map-consent .map-alt a:hover { color: var(--accent); border-color: var(--accent); }

/* Formular: Einwilligung + Status + Honeypot */
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 22px 0 6px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { color: var(--accent); border-bottom: 1px solid transparent; }
.consent a:hover { border-color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 15px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.form-status.err { border-color: #7a3b3b; background: rgba(160, 60, 60, 0.12); color: #f0c9c9; }

/* Galerie: Kopfzeile mit Zähler */
.gal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: baseline;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gal-meta b { color: var(--accent); font-size: 15px; }

@media (max-width: 640px) {
  .hero-page { min-height: min(72svh, 560px); }
  .hero-page .hero-inner { padding-top: 132px; padding-bottom: 64px; }
  .hero-page h1 { font-size: clamp(36px, 11vw, 50px); }
  .map-consent { min-height: 300px; }
}

/* ---------------- Rechtstexte (Impressum / Datenschutz) ---------------- */

.legal { max-width: 860px; }
.legal h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 54px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 21px; margin: 30px 0 10px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-dim); font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.legal a:hover { border-color: var(--accent); }
.legal strong, .legal b { color: var(--ink); }
.legal dl.meta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 24px;
  margin: 0 0 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}
.legal dl.meta dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.legal dl.meta dd { color: var(--ink); }

/* Noch zu füllende Angaben — vor dem Livegang alle entfernen */
.todo {
  color: #ff8a8a;
  font-weight: 600;
  background: rgba(255, 90, 90, 0.1);
  border: 1px dashed #a04747;
  border-radius: 3px;
  padding: 1px 7px;
  white-space: nowrap;
}
.legal-note {
  margin-bottom: 40px;
  padding: 18px 22px;
  border: 1px dashed #a04747;
  border-radius: var(--radius);
  background: rgba(255, 90, 90, 0.07);
  font-size: 14.5px;
  color: #f0c9c9;
}
.legal-note b { color: #ffb0b0; }

@media (max-width: 640px) {
  .legal dl.meta { grid-template-columns: 1fr; gap: 4px 0; padding: 22px 20px; }
  .legal dl.meta dd { margin-bottom: 12px; }
}

/* ---------------- Fix: horizontaler Überlauf ----------------
   .hero-bg wird für den Parallax mit scale(1.12) skaliert und ragte
   dadurch ~86px über den Viewport hinaus -> horizontale Scrollleiste.
   overflow:clip statt hidden, damit position:fixed/sticky unberührt bleibt. */
html { overflow-x: clip; }
.hero { overflow: hidden; }

/* ---------------- Reveal-Fallbacks ----------------
   Ohne diese Regeln bliebe die Seite ohne JavaScript komplett unsichtbar
   (.reveal startet mit opacity:0) und ignorierte die Systemeinstellung
   "Bewegung reduzieren". */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .section-head h2::after { transform: scaleX(1); transition: none; }
  .marquee-track { animation: none; }
  .embers, .scroll-hint { display: none; }
  html { scroll-behavior: auto; }
}
