/* ==========================================================================
   ASN – Auftragsschweißerei Nöbeln · Stylesheet
   Aufbau: 1 Schrift · 2 Variablen · 3 Basis · 4 Layout · 5 Buttons
           6 Header/Navigation · 7 Hero · 8 Abschnitte & Komponenten
           9 Galerie & Lightbox · 10 Footer · 11 Rechtstexte · 12 Hilfsklassen
   ========================================================================== */

/* 1 · Schrift (lokal, SIL Open Font License – siehe /assets/fonts/OFL-Manrope.txt) */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* 2 · Zentrale Variablen */
:root {
  --color-primary: #263D49;        /* Stahlblau – Header, Navigation */
  --color-primary-dark: #18252D;   /* Tiefanthrazit – Hero, dunkle Sektionen */
  --color-graphite: #30373B;       /* Graphit – alternative dunkle Flächen, Text */

  --color-accent: #C98245;         /* Kupferorange – Akzent */
  --color-accent-hover: #A96330;   /* dunkles Kupferorange – Hover */
  --color-accent-text: #8F5226;    /* Kupfer als Schrift auf hellem Grund (Kontrast ≥ 4,5:1) */
  --color-accent-light: #E0A36F;   /* Kupfer als Schrift/Fokus auf dunklem Grund */

  --color-background: #F8F7F4;     /* Warmweiß */
  --color-surface: #FFFFFF;        /* Karten */
  --color-surface-alt: #E9EDF0;    /* Metallgrau */

  --color-heading: #263D49;
  --color-text: #30373B;
  --color-text-muted: #68757D;     /* Sekundärtext auf Weiß */
  --color-text-muted-strong: #5A666E; /* Sekundärtext auf Warmweiß/Metallgrau (Kontrast ≥ 4,5:1) */
  --color-on-dark: #E8EDF0;
  --color-on-dark-muted: #B9C4CB;

  --color-border: #D8DFE2;
  --color-white: #FFFFFF;

  --focus-ring: #A96330;

  --container-width: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(56px, 8vw, 104px);

  --radius-card: 8px;
  --radius-button: 6px;

  --shadow-card: 0 5px 22px rgba(24, 37, 45, 0.10);
  --shadow-card-hover: 0 12px 34px rgba(24, 37, 45, 0.18);

  --transition-default: 180ms ease;

  --font-base: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-height: 76px;
}

/* 3 · Basis */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, li, dd, summary, td, th {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.prose a, .contact-list a { overflow-wrap: anywhere; }
h1, h2 { overflow-wrap: anywhere; }
/* Grid-Kinder dürfen schmaler werden als ihr längstes Wort */
.content-grid > *, .split > *, .card-grid > *, .contact-band__grid > *, .site-footer__grid > * { min-width: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--color-heading);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.625rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); font-weight: 750; }
h4 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-text); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark, .site-header, .site-footer, .hero, .page-hero, .lightbox { --focus-ring: var(--color-accent-light); }

strong { font-weight: 750; }

address { font-style: normal; }

ul, ol { padding-left: 1.25em; }
[role="list"] { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--color-accent); color: var(--color-primary-dark); }

main:focus { outline: none; }

/* 4 · Layout */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--color-surface-alt); }
.section--white { background: var(--color-surface); }
.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
}
.section--graphite { background: var(--color-graphite); color: var(--color-on-dark); }
.section--dark h2, .section--dark h3, .section--graphite h2, .section--graphite h3 { color: var(--color-white); }
.section--dark a:not(.btn), .section--graphite a:not(.btn) { color: var(--color-white); }
.section--dark a:not(.btn):hover, .section--graphite a:not(.btn):hover { color: var(--color-accent-light); }

/* Abschnittsköpfe */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--color-text-muted-strong); font-size: 1.0625rem; }
.section--dark .section-head p, .section--graphite .section-head p { color: var(--color-on-dark-muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  flex: none;
}
.eyebrow--light { color: var(--color-accent-light); }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--color-text); }
.lead-light { color: var(--color-on-dark-muted); font-size: 1.0625rem; }
.muted { color: var(--color-text-muted-strong); }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 5fr 7fr; }
  .split--reverse > :first-child { order: 2; }
}

.framed-media { position: relative; margin: 0 14px 14px 0; }
.framed-media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  z-index: 0;
}
.framed-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.framed-media figcaption {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.content-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .content-grid aside { position: sticky; top: calc(var(--header-height) + 24px); }
}

.text-block { max-width: 72ch; }
.text-block h2 { margin-top: 1.6em; }
.text-block h2:first-child { margin-top: 0; }
.text-block h3 { margin-top: 1.4em; }

/* 5 · Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  --btn-border: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--transition-default), color var(--transition-default), border-color var(--transition-default), transform var(--transition-default);
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--color-accent); --btn-fg: var(--color-primary-dark); --btn-border: var(--color-accent); }
.btn--primary:hover { --btn-bg: var(--color-accent-hover); --btn-fg: var(--color-white); --btn-border: var(--color-accent-hover); color: var(--color-white); }

.btn--outline-light { --btn-fg: var(--color-white); --btn-border: rgba(255, 255, 255, 0.75); }
.btn--outline-light:hover { --btn-bg: var(--color-white); --btn-fg: var(--color-primary-dark); --btn-border: var(--color-white); color: var(--color-primary-dark); }

.btn--outline-dark { --btn-fg: var(--color-primary); --btn-border: var(--color-primary); }
.btn--outline-dark:hover { --btn-bg: var(--color-primary); --btn-fg: var(--color-white); color: var(--color-white); }

.btn--small { min-height: 44px; padding: 9px 18px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.text-link .icon { width: 18px; height: 18px; transition: transform var(--transition-default); }
.text-link:hover { color: var(--color-accent-text); }
.text-link:hover .icon { transform: translateX(4px); }

/* Icons (Sprite) */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 6 · Header & Navigation */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 800;
  border-radius: var(--radius-button);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom: 3px solid var(--color-accent);
  transition: box-shadow var(--transition-default);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 18, 24, 0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  transition: min-height var(--transition-default);
}
.site-header.is-scrolled .site-header__inner { min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--color-white); }
.brand__logo {
  width: auto;
  height: 52px;
  transition: height var(--transition-default);
}
.site-header.is-scrolled .brand__logo { height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.22); }
.brand__name { font-size: 1.375rem; font-weight: 800; letter-spacing: 0.08em; }
.brand__sub { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-on-dark-muted); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  color: var(--color-white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-button);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-grid; gap: 4px; width: 20px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; transition: transform var(--transition-default), opacity var(--transition-default); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.sub-toggle .icon { width: 18px; height: 18px; transition: transform var(--transition-default); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.main-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}
.main-nav__phone .icon { width: 20px; height: 20px; color: var(--color-accent-light); }

/* Header nutzt eine etwas breitere Fläche, damit alle acht Menüpunkte Platz finden */
.site-header .container { max-width: calc(1440px + 2 * var(--gutter)); }

/* Mobile Navigation (Standard) */
@media (max-width: 1279.98px) {
  :root { --header-height: 68px; }
  .brand__logo { height: 44px; }
  .site-header.is-scrolled .brand__logo { height: 40px; }
  .main-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-height)) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px var(--gutter) 40px;
    background: var(--color-primary-dark);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition-default), transform var(--transition-default), visibility 0s linear 180ms;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--transition-default), transform var(--transition-default);
  }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); position: relative; }
  .nav-list > li > a { display: block; padding: 16px 56px 16px 4px; font-size: 1.125rem; }
  .nav-list > li.is-active > a { color: var(--color-accent-light); }
  .sub-toggle { position: absolute; right: 0; top: 6px; width: 48px; height: 48px; border-radius: var(--radius-button); }
  .sub-nav { display: none; list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 3px solid var(--color-accent); }
  .sub-nav.is-open { display: block; }
  .sub-nav a { display: block; padding: 11px 8px; font-weight: 600; color: var(--color-on-dark); }
  .main-nav__cta { width: 100%; min-height: 54px; font-size: 1.0625rem; }
  .main-nav__phone { justify-content: center; padding: 8px; }
  body.nav-open { overflow: hidden; }
  .brand__sub { font-size: 0.6875rem; }
}
@media (max-width: 379.98px) {
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 36px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 1.125rem; }
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__text { padding-left: 10px; }
  .nav-toggle__label { font-size: 0.9375rem; }
}

/* Desktop Navigation */
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .brand__text { display: none; }
  .main-nav { display: flex; align-items: center; gap: 18px; }
  .nav-list { display: flex; align-items: center; gap: 0; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-list > li > a {
    position: relative;
    display: block;
    padding: 10px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-default);
  }
  .nav-list > li > a:hover::after,
  .nav-list > li.is-active > a::after { transform: scaleX(1); }
  .nav-list > li.has-sub > a { padding-right: 2px; }
  .nav-list > li.has-sub > a::after { right: 2px; }
  .sub-toggle { width: 24px; height: 36px; border-radius: 4px; }
  .sub-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--color-surface);
    border-top: 3px solid var(--color-accent);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    box-shadow: var(--shadow-card-hover);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition-default), transform var(--transition-default), visibility 0s linear 180ms;
  }
  .sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-sub:hover > .sub-nav,
  .sub-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--transition-default), transform var(--transition-default);
  }
  .sub-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--color-text);
    font-weight: 650;
    border-radius: 4px;
  }
  .sub-nav a:hover { background: var(--color-surface-alt); color: var(--color-primary); }
  .sub-nav li:first-child a { font-weight: 800; color: var(--color-primary); }
  .main-nav__phone { display: none; }
}
@media (min-width: 1500px) {
  .brand__text { display: flex; }
  .main-nav { gap: 22px; }
}

/* 7 · Hero (Startseite) */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 640px);
  padding-block: 72px 120px;
  color: var(--color-white);
  background: var(--color-primary-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 37, 45, 0.96) 0%, rgba(24, 37, 45, 0.86) 38%, rgba(38, 61, 73, 0.45) 72%, rgba(38, 61, 73, 0.25) 100%),
    linear-gradient(0deg, rgba(24, 37, 45, 0.85) 0%, rgba(24, 37, 45, 0) 35%);
}
.hero__content { max-width: 760px; }
.hero h1 {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero h1 .accent { display: block; color: var(--color-accent); }
.hero__lead {
  max-width: 600px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--color-on-dark);
}

.hero-facts {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}
.hero-facts ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--color-graphite);
  border-top: 4px solid var(--color-accent);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-card-hover);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--color-white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-facts .icon { width: 30px; height: 30px; color: var(--color-accent-light); }
.hero-facts strong { display: block; font-size: 1rem; }
.hero-facts span { display: block; font-size: 0.875rem; color: var(--color-on-dark-muted); line-height: 1.4; }
@media (min-width: 1024px) {
  .hero-facts ul { grid-template-columns: repeat(4, 1fr); }
  .hero-facts li { border-bottom: 0; }
  .hero-facts li:last-child { border-right: 0; }
}
@media (max-width: 599.98px) {
  .hero { min-height: 480px; padding-block: 56px 96px; }
  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li { padding: 16px 18px; border-right: 0; }
}

/* Unterseiten-Hero */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 88px) clamp(48px, 7vw, 80px);
  min-height: clamp(300px, 38vw, 420px);
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  background: var(--color-primary-dark);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 37, 45, 0.95) 0%, rgba(24, 37, 45, 0.82) 45%, rgba(38, 61, 73, 0.4) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(42%, 520px);
  height: 6px;
  background: var(--color-accent);
}
.page-hero--plain { min-height: 0; background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary)); }
.page-hero h1 { color: var(--color-white); max-width: 20ch; margin-bottom: 14px; }
.page-hero__lead { max-width: 640px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--color-on-dark); }

.breadcrumb { margin-bottom: 22px; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--color-on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--color-accent-light); }
.breadcrumb a { color: var(--color-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent-light); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--color-white); font-weight: 700; }

/* 8 · Komponenten */

/* Karten-Raster */
.card-grid { display: grid; gap: clamp(20px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Leistungskarten */
.service-card { height: 100%; }
.service-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-default), transform var(--transition-default);
}
.service-card__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 260ms ease;
}
.service-card__link:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); color: inherit; }
.service-card__link:hover::after, .service-card__link:focus-visible::after { transform: scaleX(1); }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-primary-dark); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.service-card__link:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 24px 28px; }
.service-card__icon {
  position: absolute;
  top: -26px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: var(--radius-button);
  box-shadow: 0 6px 16px rgba(24, 37, 45, 0.25);
}
.service-card__icon .icon { width: 28px; height: 28px; stroke-width: 2; }
.service-card__title { margin: 0 0 10px; }
.service-card p { color: var(--color-text-muted); font-size: 0.975rem; flex: 1; }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
  color: var(--color-primary);
}
.service-card__more .icon { width: 18px; height: 18px; color: var(--color-accent-text); transition: transform var(--transition-default); }
.service-card__link:hover .service-card__more .icon { transform: translateX(4px); }

/* Infokarten (Verfahren, Zielgruppen, Material) */
.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-default), box-shadow var(--transition-default);
}
.info-card:hover { border-top-color: var(--color-accent); box-shadow: var(--shadow-card-hover); }
.info-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  border-radius: var(--radius-button);
}
.info-card__icon .icon { width: 32px; height: 32px; }
.info-card__tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-accent);
  line-height: 1;
}
.info-card p { color: var(--color-text-muted); }
.info-card .text-link { margin-top: auto; align-self: flex-start; }
.info-card > p:last-of-type { margin-bottom: 22px; }
.info-card ul.checklist { margin-bottom: 22px; }

/* Materialkacheln */
.material-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.material-card__swatch {
  position: relative;
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
}
.material-card__swatch span {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.swatch--stahl {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.04) 0 2px, rgba(0, 0, 0, 0.05) 2px 5px),
    linear-gradient(135deg, #3b4a53 0%, #27333a 55%, #1d272d 100%);
  color: var(--color-white);
}
.swatch--edelstahl {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, rgba(0, 0, 0, 0.04) 1px 4px),
    linear-gradient(135deg, #e3e8eb 0%, #b9c3c9 50%, #d4dbdf 100%);
  color: var(--color-primary-dark);
}
.swatch--aluminium {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 2px, rgba(0, 0, 0, 0.03) 2px 6px),
    linear-gradient(135deg, #f1f3f4 0%, #d6dadd 60%, #eceff0 100%);
  color: var(--color-primary-dark);
}
.material-card__swatch::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--color-accent);
}
.material-card__body { padding: 22px; }
.material-card__body p { color: var(--color-text-muted); margin: 0; }

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-accent);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.32em + 3px);
  width: 6px;
  height: 11px;
  border: solid var(--color-primary-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checklist--columns { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }

/* Spezialbereich (dunkel, Sonderanfertigungen) */
.feature-dark { overflow: hidden; }
.feature-dark::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 40px solid rgba(201, 130, 69, 0.08);
  transform: rotate(45deg);
  pointer-events: none;
}
.feature-dark .checklist li::before { background: var(--color-accent); }
.feature-dark .lead { color: var(--color-on-dark); }

/* Zielgruppen */
.audience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 3vw, 40px);
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--color-accent);
}
.audience-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.audience-card__head .icon { width: 44px; height: 44px; color: var(--color-accent-text); }
.audience-card__head h3 { margin: 0; }
.audience-card > p { color: var(--color-text-muted); }
.audience-card .text-link { margin-top: auto; align-self: flex-start; }

/* Ablauf */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 26px 22px 24px 86px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-button);
  box-shadow: inset 0 -4px 0 var(--color-accent);
}
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { padding: 84px 20px 24px; }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 45px;
    left: 76px;
    right: -20px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0 8px, transparent 8px 14px);
  }
}

/* Kontaktband & Kontaktlisten */
.contact-band__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .contact-band__grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.contact-band h2 { color: var(--color-white); }

.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.contact-list .icon { width: 26px; height: 26px; color: var(--color-accent-text); margin-top: 2px; }
.contact-list__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.contact-list a { font-weight: 750; overflow-wrap: anywhere; }
.contact-list--light li { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: var(--color-white); }
.contact-list--light .icon { color: var(--color-accent-light); }
.contact-list--light .contact-list__label { color: var(--color-on-dark-muted); }

/* Kontakt-Seitenleiste */
.aside-card {
  padding: 28px;
  background: var(--color-primary);
  color: var(--color-on-dark);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow-card);
}
.aside-card h2, .aside-card h3 { color: var(--color-white); font-size: 1.375rem; }
.aside-card p { color: var(--color-on-dark-muted); font-size: 0.975rem; }
.aside-card .btn { width: 100%; margin-top: 12px; }
.aside-card a:not(.btn) { color: var(--color-white); font-weight: 700; }
.aside-card ul { margin: 18px 0 0; }
.aside-card li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.aside-card .icon { width: 20px; height: 20px; color: var(--color-accent-light); }
.aside-card + .aside-card, .map-box + .aside-card { margin-top: 20px; }
.aside-card--light { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-top: 4px solid var(--color-primary); }
.aside-card--light h2, .aside-card--light h3 { color: var(--color-heading); }
.aside-card--light p { color: var(--color-text-muted); }
.aside-card--light a:not(.btn) { color: var(--color-primary); }

/* Hinweisboxen */
.note {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-button);
}
.note p { margin: 0; }
.note strong { color: var(--color-heading); }
.draft-note {
  margin: 0 0 2em;
  padding: 18px 22px;
  background: #FFF4E8;
  border: 2px dashed var(--color-accent-hover);
  border-radius: var(--radius-button);
  color: var(--color-primary-dark);
}

/* Prozess-Abschnitte auf Leistungsseiten */
.process-block { padding: 32px 0; border-top: 1px solid var(--color-border); }
.process-block:first-of-type { border-top: 0; padding-top: 0; }
.process-block h2 { display: flex; gap: 14px; align-items: center; }
.process-block h2 .icon { width: 36px; height: 36px; color: var(--color-accent-text); }

/* Tabelle */
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.975rem; }
caption { text-align: left; padding: 16px 20px 0; font-weight: 800; color: var(--color-heading); }
th, td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
thead th { background: var(--color-primary); color: var(--color-white); font-weight: 750; }
tbody th { font-weight: 750; color: var(--color-heading); width: 26%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: box-shadow var(--transition-default);
}
.faq details[open] { box-shadow: var(--shadow-card); border-color: transparent; }
.faq summary {
  position: relative;
  padding: 20px 64px 20px 24px;
  font-weight: 750;
  font-size: 1.0625rem;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  background: var(--color-accent);
  transition: transform var(--transition-default);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--color-accent-text); }
.faq details > div { padding: 0 24px 22px; color: var(--color-text); }

/* Karte / Standortbox */
.map-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-card);
  color: var(--color-white);
  background:
    linear-gradient(0deg, rgba(24, 37, 45, 0.92), rgba(24, 37, 45, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.06) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.06) 38px 40px),
    var(--color-primary);
  overflow: hidden;
}
.map-box__pin { position: absolute; top: 34px; right: 34px; width: 64px; height: 64px; color: var(--color-accent); }
.map-box h3 { color: var(--color-white); }
.map-box p { color: var(--color-on-dark-muted); }
.map-box .btn { align-self: flex-start; }

/* 9 · Galerie */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 480px) and (max-width: 699.98px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery--preview { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
  text-decoration: none;
}
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, opacity var(--transition-default); }
.gallery__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 37, 45, 0.88) 0%, rgba(24, 37, 45, 0) 55%);
  pointer-events: none;
}
.gallery__link:hover img { transform: scale(1.05); }
.gallery__link:hover { color: var(--color-white); }
.gallery__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-weight: 750;
  font-size: 0.975rem;
  line-height: 1.3;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gallery-filter button {
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
}
.gallery-filter button[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.gallery-filter button:hover { border-color: var(--color-accent); }

/* Lightbox (natives <dialog>) */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-white);
  background: rgba(14, 22, 27, 0.97);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(14, 22, 27, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lightbox__counter { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-on-dark-muted); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; touch-action: pan-y; }
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
}
.lightbox__caption { padding: 14px 20px 22px; text-align: center; max-width: 820px; margin: 0 auto; }
.lightbox__caption strong { display: block; font-size: 1.0625rem; }
.lightbox__caption span { color: var(--color-on-dark-muted); font-size: 0.9375rem; }
.lightbox__caption em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 0.8125rem; color: var(--color-accent-light); }
.lightbox__btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-default), color var(--transition-default);
}
.lightbox__btn:hover { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
@media (max-width: 599.98px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; width: 46px; height: 46px; background: rgba(14, 22, 27, 0.7); }
}
body.lightbox-open { overflow: hidden; }

/* 10 · Footer */
.site-footer { background: var(--color-primary-dark); color: var(--color-on-dark-muted); font-size: 0.9375rem; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-light); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 4px solid var(--color-accent);
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer__logo { width: 150px; height: auto; margin-bottom: 18px; }
.site-footer__brand strong { color: var(--color-white); }
.site-footer__title {
  margin-bottom: 16px;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
}
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer address a { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.site-footer address .icon { width: 18px; height: 18px; color: var(--color-accent-light); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); background: #121c22; }
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-size: 0.875rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 22px; }

/* 11 · Rechtstexte & Fließtext */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose address { margin-bottom: 1.1em; }

/* 404 */
.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--color-accent);
  margin-bottom: 12px;
}

/* 12 · Hilfsklassen */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.center { text-align: center; }
.center-row { display: flex; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .contact-band, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .hero { color: #000; background: none; min-height: 0; padding: 0 0 1em; }
  .page-hero h1, .hero h1 { color: #000; }
  .page-hero__media, .hero__media, .page-hero::before, .hero::before { display: none; }
}
