/* =========================================================
   GEDE Umformtechnik + Bödenpresswerk
   Design-System: Farben, Schriften, Abstände
   ========================================================= */

/* ---------- Schriften (lokal gehostet, keine fremden Server) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Farben und Grundwerte ---------- */
:root {
  --blue: #0900DE;        /* Markenfarbe aus dem Logo */
  --blue-deep: #0600A0;   /* dunklere Stufe für Hover */
  --ink: #16181D;         /* Anthrazit, Text und dunkle Flächen */
  --steel: #5B626C;       /* Stahlgrau, Nebentext */
  --paper: #F3F1EC;       /* warmes Hellgrau, Hintergrund */
  --white: #FFFFFF;

  --line: rgba(22, 24, 29, .12);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22,24,29,.06), 0 8px 24px rgba(22,24,29,.06);
}

/* ---------- Grundgerüst ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--steel); max-width: 38em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

/* ---------- Knopf (die eine Handlungsaufforderung) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--blue);
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 1.05rem; }

/* ---------- Kopfleiste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { flex: none; display: block; }
.logo img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Kopfbereich (Hero) ---------- */
.hero { background: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--blue); display: block; }
.hero .lead { margin-bottom: 1rem; }
.hero .lead + .lead { margin-bottom: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .95rem; color: var(--steel); }

/* ---------- Bild-Platzhalter ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px),
    linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(140deg, #2A2E36 0%, var(--ink) 100%);
}
.ph svg { width: 22%; min-width: 56px; max-width: 120px; height: auto; color: var(--white); opacity: .92; }
.ph::after { /* feine Kante wie poliertes Blech */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  pointer-events: none;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- Fotos ---------- */
.photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .photo img, .feature:hover .photo img { transform: scale(1.035); }
.hero-photo { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.hero-photo img { object-position: 50% 42%; }

.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Eckdaten-Leiste ---------- */
.facts { background: var(--ink); color: var(--white); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 36px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; margin-bottom: .35rem;
}
.facts span { color: rgba(255,255,255,.72); font-size: 1rem; }

/* ---------- Leistungen ---------- */
.section-head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 56px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(22,24,29,.06), 0 16px 36px rgba(22,24,29,.1); }
.card .ph { border-radius: 0; }
.card-body { padding: 26px 26px 30px; border-top: 4px solid var(--blue); flex: 1; }
.card-body p { color: var(--steel); }
.card-body ul { margin: 0; padding: 0; list-style: none; }
.card-body li { position: relative; padding-left: 20px; margin-bottom: .35em; font-size: 1rem; }
.card-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--blue); }
.services-note { margin-top: 36px; color: var(--steel); }

/* Große Schwerpunkt-Karten (Böden, Behälterbau) */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 28px;
}
.feature .photo { border-radius: 0; min-height: 380px; height: 100%; }
.feature--reverse { grid-template-columns: 1fr 1.1fr; }
.feature--reverse .photo { order: 2; }
.feature--reverse .photo img { object-position: 50% 30%; }
.feature-body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.feature-body h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 700; }
.feature-body > p:not(.badge) { color: var(--steel); }
.badge {
  display: inline-block; margin: 0 0 14px; padding: 4px 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--blue); border-radius: 2px;
}
.feature--reverse .badge { background: var(--ink); }
.types { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.types--single { grid-template-columns: 1fr; }
.feature-body .types-title {
  margin: 20px 0 0; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.types-title + .types { margin-top: 8px; }
.types li {
  position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line);
  font-weight: 600;
}
.types li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--blue); }

.subhead { font-size: 1.6rem; margin: clamp(48px, 6vw, 72px) 0 24px; color: var(--steel); }
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards--4 .card-body { padding: 20px 20px 24px; }
.cards--4 h3 { font-size: 1.4rem; }
.cards--4 .card-body p { font-size: 1rem; }
.card-body .card-claim { margin: -.3em 0 .6em; font-weight: 600; color: var(--blue); }

/* ---------- Ablauf ---------- */
.process { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; position: relative; }
.steps::before { /* Verbindungslinie zwischen den Schritten */
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  color: var(--white); background: var(--blue); border-radius: 50%;
  box-shadow: 0 0 0 8px var(--white);
}
.steps p { color: var(--steel); margin: 0; }

/* ---------- Über uns ---------- */
.about .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-year {
  font-family: var(--font-head); font-weight: 700; line-height: .9;
  font-size: clamp(4.5rem, 10vw, 8rem); color: transparent;
  -webkit-text-stroke: 2px var(--blue); margin-bottom: .1em;
}
.about blockquote {
  margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue);
  font-size: 1.15rem;
}
.about blockquote footer { margin-top: .4em; font-size: .95rem; color: var(--steel); }

/* ---------- Karriere ---------- */
.career { background: var(--ink); color: var(--white); }
.career .eyebrow { color: #A9A6FF; }
.career .lead { color: rgba(255,255,255,.72); }
.career-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.job {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  transition: border-color .25s ease;
}
.job:hover { border-color: rgba(169,166,255,.6); }
.job h3 { margin-bottom: .2em; }
.jobs { display: grid; gap: 20px; }
.career-grid > .photo { position: sticky; top: 96px; }
.job--new { border-color: rgba(169,166,255,.55); background: rgba(91,85,255,.08); }
.job-badge {
  display: inline-block; margin: 0 0 12px; padding: 3px 10px; border-radius: 2px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--blue);
}
.job-meta { color: rgba(255,255,255,.6); font-size: .95rem; margin-bottom: 1.4em; }
.job h4 {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; color: #A9A6FF; margin: 1.4em 0 .5em;
}
.job ul { margin: 0; padding-left: 1.1em; color: rgba(255,255,255,.85); }
.job li { margin-bottom: .3em; }
.job-apply { margin-top: 1.8em; padding-top: 1.4em; border-top: 1px solid rgba(255,255,255,.14); }
.career a { color: var(--white); font-weight: 600; }
.career a:hover { color: #A9A6FF; }

/* ---------- Animationen ---------- */
.hero-anim {
  position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 5; max-height: 640px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #2C3040 0%, var(--ink) 72%);
}
.hero-anim svg { width: 100%; height: 100%; display: block; }
.hero-anim-caption {
  padding: 4px 16px 16px; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.press-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; fill: rgba(255,255,255,.6); }
.press-value { font-family: var(--font-head); font-weight: 700; font-size: 24px; fill: #FFFFFF; }

.laser-photo img { object-position: 50% 30%; }
.tiefziehen-photo img { object-position: 50% 45%; }
.werkzeugbau-photo img { object-position: 70% 50%; }
.about-photo { background: var(--white); box-shadow: var(--shadow); }
.about-photo img { object-position: 50% 60%; }
.feature--laser .badge { background: var(--blue); }

.footer-slogan {
  margin: 12px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
}

/* ---------- Bodenformen ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.products { margin: 8px 0 clamp(40px, 5vw, 56px); }
.subhead--first { margin-top: 40px; }
.product-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product {
  background: var(--white); border-radius: var(--radius); padding: 18px 18px 20px;
  box-shadow: var(--shadow); border-bottom: 3px solid transparent;
  transition: border-color .25s ease, transform .25s ease;
}
.product:hover { border-bottom-color: var(--blue); transform: translateY(-3px); }
.profile {
  width: 100%; height: auto; margin-bottom: 14px; padding: 10px 6px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 16px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 16px 100%,
    var(--paper);
  border-radius: 2px;
}
.profile .shape { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.profile .cl { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 10 4 2 4; opacity: .7; }
.profile .dim { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .55; }
.render {
  display: block; width: 100%; height: auto; margin-bottom: 14px; border-radius: 3px;
  background: radial-gradient(ellipse at 50% 38%, #3A35FF 0%, #0900DE 52%, #050087 100%);
  transition: transform .4s ease;
}
.product:hover .render { transform: scale(1.02); }
.product h4 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; margin: 0; line-height: 1.1; }
.product .norm { margin: 2px 0 8px; font-size: .9rem; font-weight: 600; color: var(--blue); }
.product p:last-child { margin: 0; font-size: .95rem; color: var(--steel); }

.specs { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.specs h4 {
  margin: 0 0 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .1em; text-transform: uppercase; color: #A9A6FF;
}
.specs dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.specs dl > div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.specs dt { font-size: .88rem; color: rgba(255,255,255,.6); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.specs-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid #A9A6FF; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.specs-link svg { width: 18px; height: 18px; }
.specs-link:hover { background: #A9A6FF; color: var(--ink); }
.specs-link-size { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; font-size: .9rem; opacity: .75; }

/* ---------- Produkte nach Branche (Reiter) ---------- */
.portfolio { background: var(--white); border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.tab {
  position: relative; padding: 14px 22px 12px; margin-bottom: -2px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--steel); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tab:hover { color: var(--ink); background: var(--paper); }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
html:not(.js) .tabs { display: none; }
.tab-panel { animation: panelIn .35s ease; }
.tab-panel:focus-visible { outline-offset: 6px; }
.tab-panel + .tab-panel { margin-top: 32px; } /* ohne JavaScript stehen alle untereinander */
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-intro { color: var(--steel); max-width: 46em; margin-bottom: 22px; }
.panel-title { display: none; }
.no-js-title .panel-title, html:not(.js) .panel-title {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--ink);
}
.part-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .part-grid { grid-template-columns: repeat(2, 1fr); } }
.part {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 0 16px; align-items: center;
  padding: 18px; background: var(--paper); border-radius: var(--radius);
  border-left: 3px solid transparent; transition: border-color .25s ease, background-color .25s ease;
}
.part:hover { border-left-color: var(--blue); background: #ECEAE4; }
.part svg {
  grid-row: span 2; width: 64px; height: 64px; padding: 6px; border-radius: 50%; background: var(--white);
  fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.part > * { min-width: 0; }
.part h3 { margin: 0; font-size: 1.25rem; font-weight: 600; align-self: end; hyphens: manual; overflow-wrap: break-word; }
.part p { margin: 2px 0 0; font-size: .95rem; color: var(--steel); align-self: start; }

/* ---------- Qualität ---------- */
.quality { background: var(--paper); }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; }
.cert {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 30px); border-top: 4px solid var(--blue);
}
.cert-issuer { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--steel); }
.cert h3 { font-size: 1.45rem; }
.cert > p:not(.cert-issuer):not(.cert-valid) { color: var(--steel); font-size: 1rem; }
.cert-valid { margin: auto 0 16px; padding-top: 8px; font-size: .92rem; font-weight: 600; }
.cert-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--blue); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; color: var(--blue);
  transition: background-color .2s ease, color .2s ease;
}
.cert-link svg { width: 18px; height: 18px; }
.cert-link:hover { background: var(--blue); color: var(--white); }

/* ---------- Ansprechpartner ---------- */
.people { background: var(--white); border-bottom: 1px solid var(--line); }
.people-group {
  font-size: 1.25rem; color: var(--steel); letter-spacing: .06em;
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.people-grid { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.people-grid:last-child { margin-bottom: 0; }
.people-grid--lead { grid-template-columns: repeat(2, 1fr); }
.person {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--paper); border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.person:hover { border-left-color: var(--blue); background: #ECEAE4; }
.avatar {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em;
  color: var(--white); background: var(--blue);
}
.avatar--dark { background: var(--ink); }
.people-grid--lead .avatar { width: 60px; height: 60px; font-size: 1.4rem; }
.person h4 { margin: 2px 0 2px; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.person .role { margin: 0 0 8px; font-size: .95rem; color: var(--steel); }
.contact-line { margin: 0; font-size: .97rem; overflow-wrap: anywhere; }
.contact-line a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-line a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Anfrage / Kontakt ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 80px); }
.contact-info dl { margin: 32px 0 0; }
.contact-info dt {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: .95rem; color: var(--steel); margin-top: 1.2em;
}
.contact-info dd { margin: .15em 0 0; font-size: 1.1rem; }
.contact-info dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { color: var(--blue); border-color: var(--blue); }
.contact-info dd.route { margin-top: 12px; }
.contact-info dd.route a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--blue); border-radius: var(--radius); color: var(--blue);
  font-family: var(--font-head); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 1rem;
  transition: background-color .2s ease, color .2s ease;
}
.contact-info dd.route a:hover { background: var(--blue); color: var(--white); }
.contact-info dd.route svg { width: 18px; height: 18px; }
.footer-hours { display: block; margin-top: .6em; }
.logistics { margin-top: 32px; padding: 20px 22px 22px; background: var(--white); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.logistics h3 { font-size: 1.25rem; margin: 0; }
.logistics dl { margin: 0; }
.logistics dt:first-child { margin-top: .8em; }

.form { background: var(--white); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-bottom: 2px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0; padding: 12px 14px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--line); border-bottom-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--steel); margin-bottom: 24px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.is-ok { display: block; background: #E7F4EA; color: #1C5A2B; }
.form-status.is-error { display: block; background: #FBE9E7; color: #8A2318; }
.form-hint { font-size: .92rem; color: var(--steel); margin-top: 14px; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--white); border-top: 3px solid var(--blue); padding: 48px 0 32px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer .logo img { height: 34px; }
.site-footer address { font-style: normal; color: var(--steel); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--steel); font-size: .9rem; }

/* ---------- Rechtliche Unterseiten ---------- */
.legal-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.2em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal-lead { font-size: 1.15rem; font-weight: 600; }
.notice {
  background: var(--white); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2em;
}

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 980px) {
  .nav ul { gap: 20px; }
  .cards { gap: 20px; }
  .card-body { padding: 22px 20px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--reverse { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .specs dl { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr; }
  .nav ul { gap: 16px; }
  .nav a { font-size: 1.05rem; }
}

/* =========================================================
   Handy: eigener Design-Durchgang
   - Menü wird zum Aufklapp-Menü, der Anfrage-Knopf bleibt sichtbar
   - Hero-Bild rutscht unter den Text und wird flacher
   - Eckdaten werden kompakte Zeilen statt Spalten
   - Leistungskarten und Schritte stehen untereinander
   - Über-uns-Bild wird ein flaches Band, Karriere-Bild entfällt
   ========================================================= */
@media (max-width: 820px) {
  html { scroll-padding-top: 68px; }
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; gap: 12px; }
  .logo img { height: 30px; }

  .nav-toggle {
    display: grid; place-items: center; order: 3;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .header-cta { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22,24,29,.08);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
  .nav li:last-child a { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero .wrap, .about .wrap, .contact .wrap, .career-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-anim { aspect-ratio: 1 / 1; max-height: 440px; }
  .hero-anim-caption { font-size: .85rem; padding-bottom: 12px; }
  .hero .btn { width: 100%; }

  /* Schwerpunkt-Karten: Foto oben als flaches Band, Text darunter */
  .feature, .feature--reverse { grid-template-columns: 1fr; margin-bottom: 20px; }
  .feature .photo { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .feature--reverse .photo { order: 0; }
  .feature-body { padding: 24px 20px 28px; }
  .types { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .types li { font-size: .98rem; padding: 9px 0 9px 18px; }
  .types li::before { width: 8px; }

  /* Weitere Leistungen: kompakte Zeilen mit kleinem Foto links, ohne Stichpunkte */
  .cards--4 { grid-template-columns: 1fr; gap: 12px; }
  .cards--4 .card { flex-direction: row; align-items: stretch; }
  .cards--4 .card .photo, .cards--4 .card .ph { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .cards--4 .ph svg { min-width: 40px; width: 40%; }
  .cards--4 .card-body { border-top: 0; border-left: 4px solid var(--blue); padding: 14px 16px; }
  .cards--4 h3 { font-size: 1.25rem; margin-bottom: .2em; }
  .cards--4 .card-body p { font-size: .95rem; margin: 0; }
  .cards--4 .card-body ul { display: none; }
  .cards--4 .card-body p:not(.card-claim) { display: none; }
  .cards--4 .card-body .card-claim { margin: 0; font-size: .95rem; }
  .cards--4 .card-body { align-self: center; }
  .subhead { margin-top: 40px; }

  .facts ul { grid-template-columns: 1fr; padding: 12px 0; }
  .facts li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .facts li:first-child { border-top: 0; }
  .facts strong { font-size: 1.75rem; margin: 0; min-width: 3.2em; }

  .cards { grid-template-columns: 1fr; gap: 24px; }
  .card .ph { aspect-ratio: 16 / 9; }

  .steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .steps li { padding-left: 80px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps h3 { margin-bottom: .25em; }
  .process .btn { width: 100%; }

  .about .photo { aspect-ratio: 16 / 10; order: 2; }
  .about-year { font-size: 4.5rem; }
  .career .photo { display: none; }

  /* Reiter: drei gleich breite Knöpfe, Teile in einer Spalte */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; }
  .tab {
    margin: 0; padding: 10px 6px; min-height: 52px; font-size: 1rem; letter-spacing: .02em; line-height: 1.15;
    background: var(--paper); border-bottom-width: 3px; border-radius: var(--radius) var(--radius) 0 0;
  }
  .tab[aria-selected="true"] { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
  .part-grid { grid-template-columns: 1fr; gap: 8px; }
  .part { padding: 12px 14px; grid-template-columns: 52px 1fr; gap: 0 14px; }
  .part svg { width: 52px; height: 52px; padding: 5px; }
  .part h3 { font-size: 1.12rem; }

  /* Bodenformen: zwei Spalten mit kleinen Zeichnungen, Beschreibung entfällt */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { padding: 12px 12px 14px; }
  .profile { margin-bottom: 8px; padding: 6px 4px; }
  .render { margin-bottom: 8px; }
  .product h4 { font-size: 1.1rem; }
  .product .norm { margin-bottom: 0; font-size: .85rem; }
  .product p:last-child:not(.norm) { display: none; }  .specs dl { grid-template-columns: 1fr; }
  .specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
  .specs dd { margin: 0; text-align: right; }

  /* Ansprechpartner: eine Spalte, kleinere Kreise, Telefon gut tippbar */
  .people-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 36px; }
  .person { padding: 14px 16px; gap: 14px; }
  .avatar, .people-grid--lead .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
  .contact-line a { display: inline-block; padding: 4px 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 380px) {
  .header-cta { padding: 0 12px; font-size: .95rem; }
  .logo img { height: 26px; }
}
