/* ACELtec – Stylesheet
   Farben aus dem Logo: Dunkelblau #003366, Rot #E30613
   Keine externen Schriften (DSGVO): Systemschriften, Überschriften in Arial wie im Logo */

:root {
  --navy: #003366;
  --navy-deep: #00284f;
  --red: #e30613;
  --red-dark: #b8050f;
  --ink: #1b2633;
  --mute: #55616f;
  --line: #d5dce3;
  --steel: #eef2f5;
  --white: #ffffff;
  --head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--mute); max-width: 60ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--steel { background: var(--steel); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; text-decoration: none; padding: 8px 0; }
.slogan {
  display: block; margin-top: 3px;
  font-family: var(--head); font-style: italic; font-weight: 400;
  font-size: .9rem; line-height: 1.25; color: var(--navy); letter-spacing: .01em;
}
.brand:hover .slogan { color: var(--navy); }
.brand img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  color: var(--navy); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.lang { display: flex; gap: 2px; font-family: var(--head); font-size: .85rem; }
.lang a, .lang span { padding: 6px 7px; text-decoration: none; color: var(--mute); font-weight: 700; }
.lang span { color: var(--navy); border: 1px solid var(--navy); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; min-height: 64px; }
  .brand img { height: 40px; }
  .slogan { font-size: .78rem; }
  .lang { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--navy); color: var(--navy);
    font: 700 .9rem var(--head); padding: 8px 12px; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: var(--navy); position: relative;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }
  .nav { order: 5; width: 100%; margin: 0; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { color: #fff; }
.hero p { color: #d7e3ef; font-size: 1.2rem; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; }
.hero figcaption { font-size: .85rem; color: #a9c0d6; margin-top: 10px; }
.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #d7e3ef; font-size: 1.15rem; margin: 0; }

/* Kenndaten wie ein Datenblatt */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); column-gap: 24px; margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.25); }
.specs div { padding: 14px 16px 0 0; }
.specs dt { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: -0.01em; }
.specs dd { margin: 2px 0 0; font-size: .88rem; color: #b9cde0; line-height: 1.35; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 22px;
  font: 700 1rem var(--head); text-decoration: none;
  background: var(--red); color: #fff; border: 2px solid var(--red);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero .btn--ghost, .page-hero .btn--ghost, .band .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover, .band .btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Leistungsübersicht ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 36px; }
.service { border-top: 3px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 18px; background: var(--steel); }
.service p { color: var(--mute); }
.service .more { margin-top: auto; font-family: var(--head); font-weight: 700; }

/* ---------- Text + Bild Reihen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split--flip > :first-child { order: 2; }
.split figure { margin: 0; }
.split figcaption { font-size: .85rem; color: var(--mute); margin-top: 8px; }
.split img.portrait { max-height: 560px; width: auto; margin: 0 auto; }

.facts { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--head); color: var(--navy); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 14px; }
.steps li::before { content: counter(s); display: block; font: 700 1.6rem var(--head); color: var(--red); margin-bottom: 4px; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--mute); font-size: .98rem; margin: 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }

/* ---------- Typenschilder (Illustration) ---------- */
.plates { max-width: 520px; width: 100%; margin: 0 auto; }
.plates svg { width: 100%; height: auto; display: block; }

/* ---------- Materialskala ---------- */
.scale-head, .mat-row { display: grid; grid-template-columns: minmax(200px, 30%) 1fr 76px; gap: 20px; align-items: center; }
.scale-head { padding: 0 0 6px; border-bottom: 2px solid var(--navy); font-size: .82rem; color: var(--mute); }
.axis { position: relative; height: 22px; }
.axis span { position: absolute; transform: translateX(-50%); top: 2px; white-space: nowrap; }
.axis span::after { content: ""; position: absolute; left: 50%; top: 20px; height: 6px; border-left: 1px solid var(--mute); }
.mat-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mat-name b { display: block; font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.mat-name small { display: block; color: var(--mute); font-size: .88rem; line-height: 1.4; margin-top: 2px; }
.track { position: relative; height: 26px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1px dashed var(--line); }
.track .range { position: absolute; top: 10px; height: 6px; background: var(--navy); }
.track .range.onreq { background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 10px); }
.track .dot { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.mat-max { font-family: var(--head); font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.mat-max small { display: block; font-weight: 400; color: var(--mute); font-size: .78rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: .88rem; color: var(--mute); }
.legend i { display: inline-block; vertical-align: middle; margin-right: 8px; }
.legend .l-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.legend .l-range { width: 26px; height: 6px; background: var(--navy); }
.legend .l-req { width: 26px; height: 6px; background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 10px); }

.mat-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .97rem; }
.mat-table caption { text-align: left; font: 700 1.2rem var(--head); color: var(--navy); margin-bottom: 10px; }
.mat-table th, .mat-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.mat-table thead th { font-family: var(--head); color: var(--navy); border-bottom: 2px solid var(--navy); font-size: .9rem; }
.mat-table tbody th { font-family: var(--head); color: var(--navy); }
.mat-table td.t { font-variant-numeric: tabular-nums; }

.note { border-left: 4px solid var(--navy); background: var(--steel); padding: 16px 20px; margin: 28px 0 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Kontakt-Band ---------- */
.band { background: var(--navy); color: #fff; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(44px, 7vw, 80px); align-items: start; }
.band h2 { color: #fff; }
.band p { color: #d7e3ef; }
.band .checklist li { border-color: rgba(255,255,255,.2); color: #e6eef6; }
.contact-lines { list-style: none; margin: 0; padding: 0; font-size: 1.1rem; }
.contact-lines li { padding: 6px 0; }
.contact-lines a { color: #fff; }
.contact-lines a:hover { color: #ffb3b8; }
.contact-lines small { display: block; color: #b9cde0; font-size: .85rem; }

.address { font-style: normal; line-height: 1.7; }
.card-plain { border-top: 3px solid var(--navy); padding-top: 16px; }
.map-img { border: 1px solid var(--line); background: #fff; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }


/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy-deep); color: #c6d5e4; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .6em; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .85rem; color: #9fb4c9; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .band .wrap, .grid2 { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .services { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .specs { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .specs div { padding-bottom: 6px; }
  .steps { grid-template-columns: 1fr; }
  .scale-head { grid-template-columns: 1fr; }
  .scale-head > :first-child, .scale-head > :last-child { display: none; }
  .mat-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .mat-row .track { grid-column: 1 / -1; grid-row: 2; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .mat-table thead { display: none; }
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table th, .mat-table td { display: block; width: 100%; }
  .mat-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .mat-table th, .mat-table td { border: 0; padding: 2px 0; }
  .mat-table td[data-l]::before { content: attr(data-l) ": "; color: var(--mute); font-size: .85rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .btns, .menu-toggle { display: none !important; }
  .hero, .page-hero, .band { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .band h2 { color: #000 !important; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.axis span.end { transform: translateX(-100%); }
.axis span.end::after { left: 100%; }
.track .req-text { position: absolute; left: 0; top: 2px; font-size: .9rem; color: var(--mute); background: #fff; padding-right: 8px; }
.section--steel .track .req-text { background: var(--steel); }
.mat-block { margin-top: 24px; }
.more-link { display: inline-block; margin-top: 22px; font-family: var(--head); font-weight: 700; }

@media (max-width: 440px) {
  .site-header .wrap { gap: 8px; }
  .lang a, .lang span { padding: 6px 5px; }
  .menu-toggle { padding: 11px 10px; }
  .slogan { font-size: .75rem; max-width: 140px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- AGB ---------- */
.agb h2 { font-size: 1.15rem; margin-top: 2.2em; }
.agb p { max-width: 74ch; }
.agb-note { background: var(--steel); border-left: 4px solid var(--navy); padding: 12px 16px; }
