/* =========================================================
   ICS Industrieservice – ics-industrieservice.de
   Farben aus dem Logo: Blau #2272a8, Grau #5f6566
   ========================================================= */

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

:root {
  --blue: #2272a8;
  --blue-dark: #185a88;
  --navy: #143a5a;
  --navy-deep: #0c2740;
  --steel: #5f6566;
  --silver: #b9bfc3;
  --ink: #1d2a35;
  --muted: #56636e;
  --line: #dfe5ea;
  --tint: #eff3f6;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(12, 39, 64, .10);
  --header-h: 84px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }
strong { font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint); }
.btn--outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .55em 1.1em; font-size: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.more { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; font-size: 1rem; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: #b9cadb; font-size: .9rem; }
.topbar__inner { display: flex; gap: 26px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar__group { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: #6fa8d6; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(12,39,64,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { height: 54px; width: auto; }

.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.nav > ul > li { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--navy); background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-active { color: var(--blue); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--blue); }
.nav__chev { width: 12px; height: 12px; transition: transform .2s; }
.nav .btn { margin-left: 10px; }

.subnav {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav__chev, .has-sub.is-open .nav__chev { transform: rotate(180deg); }
.subnav a { display: block; padding: 10px 14px; color: var(--ink); border-radius: 4px; font-weight: 500; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--tint); color: var(--blue); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(12,39,64,.92) 0%, rgba(12,39,64,.72) 42%, rgba(12,39,64,.1) 80%); }
.hero__content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 96px; }
.hero__tag { display: inline-block; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; background: var(--blue); padding: 6px 14px; border-radius: 3px; font-size: .95rem; min-width: 12ch; }
.hero h1 { color: #fff; margin: .45em 0 .3em; max-width: 15ch; }
.hero__lead { font-size: 1.2rem; max-width: 46ch; color: #dbe6f0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__nav { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; }
.hero__tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.hero__tabs button {
  background: rgba(12,39,64,.55); color: #c9d7e4; border: 0; border-right: 1px solid rgba(255,255,255,.12);
  padding: 16px 10px; font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; position: relative; transition: background .2s, color .2s;
}
.hero__tabs button:last-child { border-right: 0; }
.hero__tabs button:hover { background: rgba(12,39,64,.8); color: #fff; }
.hero__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy-deep) center / cover no-repeat; padding: clamp(70px, 10vw, 120px) 0 clamp(46px, 6vw, 70px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(12,39,64,.94) 0%, rgba(12,39,64,.75) 50%, rgba(12,39,64,.35) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #d4e1ed; font-size: 1.2rem; max-width: 60ch; margin: .6em 0 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .95rem; color: #a9c0d6; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #d4e1ed; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: #8cc2ea; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Intro mit Siegel ---------- */
.intro { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.intro__text p { color: #34424d; }
.intro__text h3 { color: var(--blue); font-size: 1.6rem; }
.callout { font-weight: 600; color: var(--navy); border-left: 4px solid var(--blue); padding: 6px 0 6px 18px; margin-top: 1.4em; }
.seal { background: var(--tint); border-radius: var(--radius); padding: 30px 26px; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.seal img { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 8px 22px rgba(12,39,64,.25); object-fit: cover; }
.seal p { font-size: 1rem; color: var(--muted); }

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; border: 1px solid var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,39,64,.16); }
.card__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { color: var(--muted); font-size: 1rem; flex: 1; }
.card__body .more { color: var(--blue); }
.card--accent { background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 100%); color: #dbe7f2; border: 0; justify-content: center; }
.card--accent .card__body { justify-content: center; }
.card--accent h3 { color: #fff; font-size: 1.8rem; }
.card--accent p { color: #dbe7f2; flex: 0; margin-bottom: 1.4em; }
.card--accent .btn { align-self: flex-start; }

/* ---------- Teaser (3 Boxen wie im Original) ---------- */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.teaser { text-align: center; padding: 34px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.teaser img { width: 96px; height: 96px; margin: 0 auto 18px; }
.teaser h3 { text-transform: uppercase; letter-spacing: .03em; }
.teaser p { color: var(--muted); font-size: 1rem; }

/* ---------- Logo-Leiste ---------- */
.logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: center; }
.logos a { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: 92px; }
.logos img { max-height: 58px; width: auto; filter: grayscale(100%); opacity: .75; transition: filter .3s, opacity .3s; }
.logos a:hover img { filter: none; opacity: 1; }

/* ---------- Slogan-Band (Originalgrafiken) ---------- */
.slogan { position: relative; background: linear-gradient(110deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue-dark) 100%); overflow: hidden; }
.slogan::after { content: ""; position: absolute; inset: 0; background: url("../img/banner/glas.jpg") center / cover; opacity: .12; mix-blend-mode: luminosity; }
.slogan__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.slogan img { width: min(640px, 100%); height: auto; }

/* ---------- Leistungs-Unterseite ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose > p:first-child { font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.prose p, .prose li { color: #34424d; }
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose h3 { margin-top: 1.4em; color: var(--blue); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 32px; margin: .55em 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 3px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.box { background: var(--tint); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--blue); }
.box h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
.box p { font-size: 1rem; color: var(--muted); }
.box img.box__icon { width: 64px; height: 64px; margin-bottom: 12px; }
.box--navy { background: var(--navy); border-top-color: #8cc2ea; color: #d4e1ed; }
.box--navy h3 { color: #fff; }
.box--navy a { color: #fff; }
.box--navy p { color: #c8d6e3; }
.box__contact { list-style: none; padding: 0; margin: 0 0 1em; font-size: 1rem; }
.box__contact li { margin: .3em 0; }
.subnav-list { list-style: none; margin: 0; padding: 0; }
.subnav-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.subnav-list a:hover, .subnav-list a[aria-current="page"] { color: var(--blue); }
.subnav-list a[aria-current="page"]::before { content: "▸ "; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0 10px; }
.steps figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps a { display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.steps img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.steps a:hover img { transform: scale(1.04); }
.steps figcaption { padding: 12px 16px; font-size: .98rem; color: var(--muted); }
.steps figcaption strong { color: var(--blue); font-family: var(--display); font-size: 1.1rem; display: block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.compare figure { margin: 0; }
.compare img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.compare figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.compare figcaption strong { color: var(--navy); }
.badges-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: var(--tint); border-radius: var(--radius); padding: 22px; margin: 26px 0; }
.badges-row img { width: 110px; height: 110px; object-fit: contain; }
.badges-row img.round { border-radius: 50%; object-fit: cover; }
.badges-row p { flex: 1; min-width: 220px; margin: 0; font-size: 1rem; }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button { font: inherit; font-family: var(--display); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 1rem; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(12,39,64,.05); }
.ref[hidden] { display: none; }
.ref__media { aspect-ratio: 1024 / 350; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); overflow: hidden; display: grid; place-items: center; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.ref__media img { width: 100%; height: 100%; object-fit: cover; }
.ref__media--empty { cursor: default; }
.ref__media--empty span { color: rgba(255,255,255,.85); font-family: var(--display); font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.ref__body { padding: 18px 20px 20px; display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.ref__body > div { flex: 1; }
.ref__logo { width: 84px; height: 46px; object-fit: contain; flex: none; }
.ref h3 { font-size: 1.25rem; margin-bottom: .2em; }
.ref p { margin: 0; font-size: .95rem; color: var(--muted); }
.tag { display: inline-block; margin-top: 10px; margin-right: 6px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); background: var(--tint); padding: 3px 9px; border-radius: 3px; }

/* ---------- Kontakt & Formulare ---------- */
.contact { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 16px; align-items: center; background: var(--tint); border-radius: var(--radius); padding: 14px 18px; }
.contact__list svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.contact__list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a, .contact__list address { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--blue); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--navy); margin-bottom: 4px; padding: 0; }
.form .hint { font-size: .95rem; color: var(--muted); margin: 0 0 14px; }
.form label, .form .label { display: block; font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fbfcfd; transition: border-color .2s, box-shadow .2s;
}
.form input[type="file"] { display: block; margin-top: 8px; font: inherit; font-size: .95rem; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34,114,168,.18); outline: none; }
.form textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--3 { grid-template-columns: 170px 1fr 1fr; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-weight: 400; }
.choices label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.choices--col { flex-direction: column; gap: 8px; }
.form input[type="checkbox"], .form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.form__check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .92rem !important; }
.form__check input { margin-top: 4px !important; }
.form .is-invalid { border-color: #c73a3a !important; }
.choices.is-invalid { outline: 2px solid #c73a3a; outline-offset: 6px; border-radius: 4px; }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #1f7a45; }
.form__status.is-error { color: #b52f2f; }
.counter { display: block; text-align: right; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.conditional[hidden] { display: none; }
.conditional { border-left: 3px solid var(--blue); padding-left: 18px; margin-bottom: 10px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success h2 { color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #9fb3c6; font-size: 1rem; padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .35em 0; }
.footer a { color: #d3dfea; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { background: #fff; padding: 12px 16px; border-radius: var(--radius); width: 220px; margin-bottom: 16px; }
.footer__copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Rechtstexte ---------- */
.legal > * { max-width: 820px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal h3 { margin-top: 1.3em; font-size: 1.3rem; }
.legal p, .legal li { color: #39474f; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,15,25,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #cfdbe6; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; font-size: 1.4rem; }
.to-top.is-visible { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; background: #fff; padding: 16px 20px 30px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.3rem; }
  .nav__link[aria-current="page"]::after, .nav__link.is-active::after { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .has-sub.is-open .subnav { display: block; }
  .has-sub:hover .subnav { display: none; }
  .has-sub.is-open:hover .subnav { display: block; }
  .nav .btn { margin: 20px 0 0; width: 100%; }
  .cards, .refs { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .intro, .layout, .contact { grid-template-columns: 1fr; gap: 40px; }
  .seal, .sidebar { position: static; }
  .seal { display: grid; grid-template-columns: 150px 1fr; gap: 20px; text-align: left; align-items: center; }
  .seal img { width: 150px; height: 150px; margin: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  :root { --header-h: 68px; }
  .header__logo img { height: 42px; }
  .topbar__inner { justify-content: center; }
  .topbar__group:first-child { display: none; }
  .topbar__group { gap: 16px; font-size: .85rem; justify-content: center; }
  .hero { min-height: 600px; align-items: flex-start; }
  .hero__overlay { background: linear-gradient(180deg, rgba(12,39,64,.7) 0%, rgba(12,39,64,.9) 100%); }
  .hero__content { padding-top: 48px; padding-bottom: 130px; }
  .hero__actions .btn { width: 100%; }
  .hero__tabs { grid-template-columns: repeat(5, 1fr); }
  .hero__tabs button { font-size: 0; padding: 0; height: 6px; background: rgba(255,255,255,.25); border-right: 4px solid var(--navy-deep); }
  .hero__nav { bottom: 24px; left: 16px; right: 16px; }
  .hero__tabs { border-top: 0; }
  .cards, .refs, .teasers, .steps, .compare { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .seal { grid-template-columns: 1fr; text-align: center; }
  .seal img { margin: 0 auto; }
  .form__row, .form__row--3 { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .slogan__inner { justify-content: center; text-align: center; }
}

/* Icons in Kreisen (ersetzen die blassen Original-PNGs) */
.icon-circle { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(145deg, var(--blue) 0%, var(--navy) 100%); color: #fff; margin: 0 auto 18px; box-shadow: 0 8px 20px rgba(34,114,168,.28); }
.icon-circle svg { width: 40px; height: 40px; }
.box .icon-circle { width: 60px; height: 60px; margin: 0 0 14px; }
.box .icon-circle svg { width: 28px; height: 28px; }
