/* Woelky & Partner GmbH — Stylesheet (v2, Design-Überarbeitung)
   Lokal, keine externen Fonts/CDNs (DSGVO). Systemschriften only.
   Design: seriös-industriell, konversionsorientiert (Hierarchie, Vertrauen, klare CTAs). */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-dark: #12233a;
  --ink: #16202b;
  --muted: #5a6675;
  --line: #e4e9ef;
  --accent: #1f4e79;       /* Stahlblau */
  --accent-dark: #163a5a;
  --accent-soft: #eaf1f8;
  --brass: #b8860b;        /* warmer Zweitakzent */
  --brass-soft: #f7efd9;
  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(22, 32, 43, .06);
  --shadow: 0 6px 20px rgba(22, 32, 43, .08);
  --shadow-lg: 0 16px 40px rgba(22, 32, 43, .12);
  --sp: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.15; margin: 0 0 .4em; }
h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Design-Feinschliff (ui-ux-pro-max): Sprungziele nicht unter der Sticky-Nav, größere Touch-Flächen */
section[id], #top { scroll-margin-top: 86px; }
@media (max-width: 900px) { .nav__links a { min-height: 44px; display: flex; align-items: center; } }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__intro { max-width: 68ch; color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Eyebrow-Label (Sektionsauge) */
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--brass); vertical-align: middle; margin-right: 10px; transform: translateY(-3px); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* Sichtbarer Tastatur-Fokus (Barrierefreiheit) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, .chips li:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav__cta:focus-visible, .btn--primary:focus-visible { outline-color: var(--brass); }
.cta-band a:focus-visible, .stats a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 4px var(--accent); }
.form-consent input:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Scroll-Fortschrittsbalken */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brass)); box-shadow: 0 0 6px rgba(31,78,121,.4); }

/* Scrollspy: aktiver Menüpunkt */
.nav__links a.is-active:not(.nav__cta) { color: var(--accent); }
.nav__links a.is-active:not(.nav__cta)::after { content: ""; display: block; height: 2px; background: var(--brass); border-radius: 2px; margin-top: 3px; }

/* Formular-Erfolgsmeldung */
.form-success { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid #cbdcee; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; color: var(--ink); }
.form-success svg { width: 26px; height: 26px; flex: 0 0 auto; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; }
.form-success p { margin: 0; font-weight: 600; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.nav__brand img, .nav__brand svg { height: 42px; width: auto; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { color: var(--ink); font-size: .97rem; font-weight: 600; }
.nav__links a:not(.nav__cta):hover { color: var(--accent); text-decoration: none; }
.nav__cta { background: var(--accent); color: #fff !important; padding: 10px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.nav__cta:hover { background: var(--accent-dark); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; cursor: pointer; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--accent); border-color: #cdd9e6; }
.btn--ghost:hover { background: var(--accent-soft); text-decoration: none; border-color: var(--accent); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--brass-soft); text-decoration: none; transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -12%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero::before { /* dezentes Raster wie Konstruktionszeichnung */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(600px 300px at 85% 10%, #000, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin: 0 0 .8rem; }
.hero h1 { margin: 0 0 .5em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 0; }
.hero__art { width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(31,78,121,.14)); }

/* Trust-Zeile (Hero) */
.trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; color: var(--ink); font-size: .96rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust svg { width: 20px; height: 20px; color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; }

/* Stats / Credibility-Strip */
.stats { background: var(--bg-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.stat { text-align: center; padding: 6px 10px; }
.stat__num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat__num span { color: var(--brass); }
.stat__label { color: #b7c6d8; font-size: .93rem; margin-top: 4px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

/* Grid / Karten */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brass)); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4dee9; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 12px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card__icon { width: 46px; height: 46px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 9px; }

/* Branchen chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); display: block; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .82rem; text-align: center; padding: 8px; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(4,1fr); margin-top: 30px; padding: 0; list-style: none; }
.steps li { position: relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: s; content: counter(s); display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background: var(--accent); color:#fff; font-weight:800; margin-bottom: 14px; box-shadow: 0 4px 10px rgba(31,78,121,.3); }
.steps li h3 { margin: 0 0 6px; }
.steps li p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin-top: 22px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 22px 20px; color: var(--muted); }

/* CTA-Band */
.cta-band { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; text-align: center; }
.cta-band .container { padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d6e2f0; font-size: 1.12rem; max-width: 60ch; margin: 0 auto 8px; }

/* Kontakt / Form */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact__info p { margin: 8px 0; color: var(--muted); }
.contact__info strong { color: var(--ink); font-size: 1.1rem; }
.contact__info a { font-weight: 600; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-consent input { margin-top: 4px; width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #b7c6d8; padding: 46px 0; font-size: .93rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }

/* Rechtsseiten (Impressum / Datenschutz) */
.legal { padding: 56px 0; max-width: 900px; }
.legal h1 { margin-bottom: 10px; }
.legal h2 { margin-top: 34px; font-size: 1.3rem; }
.legal p, .legal li { color: #33404d; }
.legal .back { display: inline-block; margin-bottom: 22px; font-weight: 600; }

/* Section-Tint (für die Aufbau-Animation) */
.section--tint { background: linear-gradient(180deg, #ffffff, var(--accent-soft)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Explosionsansicht Stanzform */
.explode { margin-top: 30px; }
.explode__stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.explode__stage svg { width: 100%; height: auto; max-height: 470px; display: block; margin: 0 auto; }
.explode__controls { text-align: center; margin-top: 20px; }
.explode__hint { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.rubber { opacity: 0; transition: opacity .7s ease; }
#explodeSvg.showgum .rubber { opacity: 1; }
.callout-lead { stroke: #c0392b; stroke-width: 1.4; }

/* Scroll-Reveal (dezent) — nur mit JS aktiv (.js), kein Flash ohne JS.
   Hero ist bewusst ausgenommen (soll sofort da sein). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
/* Gestaffelte Karten/Schritte/Galerie innerhalb einer sichtbaren Gruppe */
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.js .reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.js .reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; margin: 0 auto; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat:nth-child(3) { border-left: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .nav__links { position: fixed; inset: 62px 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 14px; display: none; box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__toggle { display: inline-block; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* Reveal-Elemente sofort sichtbar zeigen (keine Bewegung) */
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none; }
}
