/* Jenne-Technik – Stylesheet */
:root {
  --red: #c4161c;
  --red-dark: #9d1015;
  --ink: #1d2126;
  --ink-2: #3a4049;
  --muted: #6b7280;
  --line: #e3e5e8;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --steel: #2a2f36;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 30, .08);
  --max: 1180px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--steel); color: #c9ced6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #aab1bb; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header__logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .btn { padding: .6em 1.2em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .25s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--steel); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,21,26,.92) 0%, rgba(18,21,26,.75) 45%, rgba(18,21,26,.25) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 80px 0; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; margin-bottom: .35em; }
.hero h1 span { color: #ff4a50; }
.hero__lead { font-size: 1.2rem; color: #d6dae0; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__label { display: none; }
.hero__caption {
  position: absolute; z-index: 2; right: 24px; bottom: 24px;
  font-family: var(--font-head); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 14px;
}
.hero__dots { display: flex; gap: 8px; }
.hero__dots button {
  width: 28px; height: 4px; border: 0; border-radius: 2px; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s;
}
.hero__dots button.is-active { background: var(--red); }

/* Facts strip */
.facts { background: var(--red); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; border-right: 1px solid rgba(255,255,255,.2); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.fact span { font-size: .95rem; opacity: .9; }
@media (max-width: 760px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
}

/* Intro + reasons */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.intro__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.intro p { font-size: 1.08rem; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 36px; } }

.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.reason {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.reason:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.reason__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(196,22,28,.08); color: var(--red); margin-bottom: 18px;
}
.reason__icon svg { width: 28px; height: 28px; }
.reason p { margin: 0; font-size: .98rem; color: var(--muted); }
@media (max-width: 1000px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* Work grid */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work__item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 3 / 2; background: #ddd; border: 0; padding: 0; text-align: left;
}
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work__item:hover img { transform: scale(1.06); }
.work__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(10,12,15,.85));
  color: #fff;
}
.work__item figcaption strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.work__item figcaption span { font-size: .88rem; opacity: .85; }
@media (max-width: 1000px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work { grid-template-columns: 1fr; } }

/* Referenzen tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .6em 1.15em; border-radius: 999px; font: inherit; font-weight: 500; font-size: .96rem;
  cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--red); color: var(--red); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.panel { display: none; animation: fade .4s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.panel__intro h3 { font-size: 1.8rem; }
.panel__intro ul { margin: 0; padding: 0; list-style: none; }
.panel__intro li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.panel__intro li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 10px;
  border: 2px solid var(--red); border-radius: 2px; transform: rotate(45deg);
}
@media (max-width: 800px) { .panel__intro { grid-template-columns: 1fr; gap: 16px; } }
.refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ref {
  margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: zoom-in; transition: box-shadow .2s;
}
.ref:hover { box-shadow: var(--shadow); }
.ref img { width: 100%; aspect-ratio: 5 / 2; object-fit: contain; background: #fff; }
.ref figcaption { padding: 14px 18px; border-top: 1px solid var(--line); }
.ref figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.ref figcaption span { font-size: .9rem; color: var(--muted); }
@media (max-width: 720px) { .refs { grid-template-columns: 1fr; } }

/* Innovation */
.innovation { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.innovation__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.innovation__imgs figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #3a4049; cursor: zoom-in; }
.innovation__imgs img { width: 100%; height: 260px; object-fit: cover; background: #fff; }
.innovation__imgs figcaption { padding: 10px 14px; font-size: .9rem; color: #c9ced6; background: rgba(255,255,255,.05); }
@media (max-width: 900px) { .innovation { grid-template-columns: 1fr; } }

/* Service */
.service { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.service__media { display: grid; gap: 22px; align-content: start; }
.service__media figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.service__media figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.callout {
  margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--red);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500; color: var(--ink);
}
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.person__role { font-size: .88rem; font-weight: 600; color: var(--red); margin-bottom: 10px; line-height: 1.4; }
.person p { font-size: .95rem; color: var(--muted); }
.person blockquote {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-style: italic; color: var(--ink); font-size: .95rem;
}
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.wink { color: var(--muted); font-style: italic; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: #fff; }
.stat span { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.stat img { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; filter: grayscale(1) brightness(1.8); opacity: .85; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s;
}
.partner:hover { box-shadow: var(--shadow); }
.partner__logo { height: 150px; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); background: #fff; }
.partner__logo img { max-height: 114px; width: auto; object-fit: contain; }
.partner__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.partner__body h3 { font-size: 1.15rem; margin-bottom: .2em; }
.partner__addr { font-size: .9rem; color: var(--muted); margin-bottom: .8em; }
.partner__body p { font-size: .95rem; }
.partner__link { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.partner__link svg { width: 16px; height: 16px; }
.notice { font-size: .9rem; color: var(--muted); margin-top: 22px; }
@media (max-width: 1000px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .partners { grid-template-columns: 1fr; } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.download { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.download img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }
.download h3 { font-size: 1.15rem; }
.download p { font-size: .95rem; color: var(--muted); }
.download a.dl { margin-top: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.download a.dl svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__card { background: #fff; color: var(--ink-2); border-radius: var(--radius); padding: 36px; }
.contact__card h3 { font-size: 1.5rem; color: var(--ink); }
.contact__list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.contact__list a { color: var(--ink); font-weight: 500; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  background: #3a4049 url("../img/hero/planungen-anlagen.jpg") center / cover;
  display: grid; place-items: center; text-align: center;
}
.map::before { content: ""; position: absolute; inset: 0; background: rgba(20,24,30,.78); }
.map__inner { position: relative; padding: 30px; color: #d6dae0; max-width: 380px; }
.map__inner p { font-size: .9rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: #15181c; color: #8d95a0; padding: 56px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #c9ced6; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.footer__logo img { height: 44px; }
.footer__bottom { border-top: 1px solid #2a2f36; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,12,15,.92);
  display: none; align-items: center; justify-content: center; padding: 60px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-family: var(--font-head); font-size: 1.15rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--red); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .01s; transform: none !important; }
}

/* Legal pages */
.page-hero { background: var(--steel); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.page-hero p { color: #aab1bb; margin: .5em 0 0; }
.legal { max-width: 820px; padding: 64px 20px 96px; }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.legal .meta { background: var(--bg-alt); padding: 22px 24px; border-radius: var(--radius); }
