/* =========================================================
   Metalldesign Abstreiter – Stylesheet
   Keine externen Ressourcen (Schriften, Icons, Bibliotheken).
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farbwelt der bisherigen Website: Schiefer + Türkis */
  --c-ink:        #1e293b;
  --c-ink-soft:   #334155;
  --c-ink-line:   #3b4a60;
  --c-text:       #1f2937;
  --c-muted:      #586574;
  --c-line:       #dce1e7;
  --c-bg:         #ffffff;
  --c-bg-soft:    #eef2f7;
  --c-bg-softer:  #f6f8fb;
  --c-accent:     #186672;   /* dunkles Türkis – Links, Buttons, Fokus (AA auf Weiß) */
  --c-accent-dk:  #0f4d57;   /* Hover / aktiv */
  --c-accent-sf:  #e6f2f4;   /* zarter Türkis-Ton für Flächen */
  --c-accent-br:  #3cb2c5;   /* helles Marken-Türkis – dekorativ (auf Dunkel) */

  --ff: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --sh-md: 0 4px 12px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .08);
  --sh-lg: 0 20px 60px rgba(15, 23, 42, .18);

  --wrap: 1180px;
  --hdr-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dk); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--c-ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout-Helfer ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
@media (max-width: 460px) {
  .brand__img { height: 44px; }
  .header__cta { gap: 6px; }
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.lead { font-size: 1.12rem; color: var(--c-muted); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.section-head { max-width: 68ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit; font-weight: 600; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dk); color: #fff; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-ink-soft); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { border-color: var(--c-line); color: var(--c-ink); background: #fff; }
.btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-ink); }
.brand__img { width: auto; height: 56px; flex: none; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block; padding: 10px 14px;
  font-size: .96rem; font-weight: 600;
  color: var(--c-text); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--c-accent); background: var(--c-bg-soft); }
.nav__link[aria-current="page"] { color: var(--c-accent); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--c-accent); border-radius: 2px;
}

.nav__item { position: relative; }
.nav__toggle-sub {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.nav__caret { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav__item.is-open > .nav__link .nav__caret { transform: rotate(180deg); }

.subnav {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 10;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item:hover > .subnav,
.nav__item.is-open > .subnav,
.subnav:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 500; color: var(--c-text); text-decoration: none;
}
.subnav a:hover { background: var(--c-accent-sf); color: var(--c-accent-dk); }
.subnav a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--c-ink); text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--c-accent); }
.header__phone svg { width: 17px; height: 17px; flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block; position: relative;
  width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px;
  transition: background .15s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .header__phone span { display: none; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 auto 0;
    display: block; max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
    padding: 12px 20px 32px;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { display: block; }
  .nav__link { padding: 13px 8px; font-size: 1.02rem; border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__item { border-bottom: 1px solid var(--c-line); }
  .nav__item:last-child { border-bottom: 0; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 10px 12px;
    display: none;
  }
  .nav__item.is-open > .subnav { display: block; }
  .nav__item:hover > .subnav { display: none; }
  .nav__item.is-open:hover > .subnav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(460px, 72vh, 660px);
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .78) 45%, rgba(15, 23, 42, .5) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__inner { padding: 72px 0; max-width: 42rem; }
.hero h1 { color: #fff; }
.hero__eyebrow { color: var(--c-accent-br); }
.hero__text { font-size: 1.14rem; color: rgba(255, 255, 255, .84); max-width: 46ch; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  list-style: none;
}
.hero__facts li {
  font-size: .92rem; color: rgba(255, 255, 255, .8);
  display: flex; align-items: center; gap: 9px;
}
.hero__facts svg { width: 17px; height: 17px; color: var(--c-accent-br); flex: none; }

/* Kleinerer Kopfbereich für Unterseiten */
.pagehead {
  position: relative;
  background: var(--c-ink); color: #fff;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 88% -10%, rgba(60, 178, 197, .30), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
.pagehead > .wrap { position: relative; }
.pagehead h1 { color: #fff; margin-bottom: 12px; }
.pagehead p { color: rgba(255, 255, 255, .78); max-width: 60ch; }

.breadcrumb { margin-bottom: 20px; font-size: .87rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "›"; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb--light li { color: var(--c-muted); }
.breadcrumb--light li + li::before { color: var(--c-line); }
.breadcrumb--light a { color: var(--c-muted); }
.breadcrumb--light a:hover { color: var(--c-accent); }

/* ---------- Karten-Raster: Leistungen ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #c3cede;
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #334155, #1e293b);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .68) 0%, rgba(15, 23, 42, .06) 55%, transparent 100%);
}
.card__count {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255, 255, 255, .93);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--c-ink);
}
.card__title {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px;
  color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.card__media { display: block; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--c-muted); font-size: .95rem; margin-bottom: 16px; }
.card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 700; color: var(--c-accent);
}
.card__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- Vorteile / Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 2.5vw, 36px);
}
.feature__icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-accent-sf); color: var(--c-accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--c-muted); font-size: .97rem; }

/* ---------- Split-Bereich (Text + Bild) ---------- */
.split {
  display: grid; align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media {
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: linear-gradient(150deg, #334155, #1e293b);
  box-shadow: var(--sh-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }
.checklist svg { width: 20px; height: 20px; color: var(--c-accent); flex: none; margin-top: 3px; }

/* ---------- Ablauf / Schritte ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 26px 22px; border-radius: var(--r-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font-size: 1.6rem; font-weight: 800; color: var(--c-accent); letter-spacing: -.03em;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .94rem; color: var(--c-muted); }

/* ---------- Galerie ---------- */
.gallery-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.gallery-count { font-size: .92rem; color: var(--c-muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; } }
@media (min-width: 640px) and (max-width: 899px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.gallery__item {
  position: relative;
  display: block; padding: 0; border: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #e9ecee, #dde1e4);
  cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Jedes 6. Bild größer – ergibt ein lebendiges, redaktionelles Raster */
@media (min-width: 900px) {
  .gallery__item:nth-child(12n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
  .gallery__item:nth-child(12n + 8) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  opacity: 0;
}
.gallery__item img.is-loaded { opacity: 1; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .45), transparent 45%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__zoom {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--c-ink);
  opacity: 0; transform: scale(.85);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__zoom svg { width: 16px; height: 16px; }

.gallery-empty {
  border: 1px dashed var(--c-line); border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px); text-align: center; background: var(--c-bg-softer);
}
.gallery-empty h3 { margin-bottom: 8px; }
.gallery-empty p { color: var(--c-muted); margin: 0 auto; max-width: 46ch; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(9, 11, 13, .985);
  backdrop-filter: blur(4px);
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
}
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: rgba(255, 255, 255, .72); font-size: .9rem;
}
.lightbox__stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
}
.lightbox__spinner {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox__bottom {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding-top: 14px;
  color: rgba(255, 255, 255, .7); font-size: .88rem;
}
.lb-btn {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%; background: rgba(255, 255, 255, .07);
  color: #fff; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn--nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-btn--prev { left: 4px; }
.lb-btn--next { right: 4px; }
@media (min-width: 900px) { .lb-btn--prev { left: 20px; } .lb-btn--next { right: 20px; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr .95fr; } }

.info-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
}
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--c-accent); flex: none; margin-top: 4px; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); font-weight: 700; margin-bottom: 2px; }
.info-list a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--c-accent); text-decoration: underline; }

.map-card {
  margin-top: 22px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-line); background: #fff;
}
.map-card__img { display: block; background: linear-gradient(150deg, #eef1f2, #e2e6e9); }
.map-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: .9rem; }

/* Formular */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 700; color: var(--c-ink); }
.field .hint { font-size: .82rem; color: var(--c-muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; color: var(--c-text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(24, 102, 114, .18);
}
.field textarea { resize: vertical; min-height: 150px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--c-muted); }
.consent input { width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--c-accent); }
.consent label { font-weight: 400; font-size: .9rem; line-height: 1.55; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 14px 18px; border-radius: var(--r-sm);
  border: 1px solid; font-size: .95rem;
}
.notice--ok    { background: #eef8f1; border-color: #b7e0c4; color: #1c5c33; }
.notice--error { background: #fdf0ee; border-color: #f0c2ba; color: #8a2c1c; }
.notice--info  { background: var(--c-accent-sf); border-color: #bfe0e5; color: #0f4d57; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 76ch; }
.legal h2 { margin-top: 2.2em; font-size: 1.45rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.8em; font-size: 1.1rem; }
.legal ul, .legal ol { padding-left: 1.3em; color: var(--c-text); }
.legal li { margin-bottom: .45em; }
.legal address { font-style: normal; margin-bottom: 1.2em; }
.legal__toc {
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 22px 26px; margin-bottom: 40px;
}
.legal__toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }
.legal__toc li { margin-bottom: .35em; }
.legal__updated { font-size: .88rem; color: var(--c-muted); margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--c-line); }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  background: var(--c-ink); color: #fff;
  padding: clamp(48px, 6vw, 76px) 0;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 300px at 15% 110%, rgba(60, 178, 197, .32), transparent 70%);
}
.cta-band > .wrap { position: relative; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--c-ink); color: rgba(255, 255, 255, .7); padding: clamp(48px, 6vw, 72px) 0 0; }
.footer__grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 44px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 16px; }
.footer .brand__img { filter: brightness(0) invert(1); opacity: .9; }
.footer p { font-size: .94rem; max-width: 38ch; }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid var(--c-ink-line);
  padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .87rem; color: rgba(255, 255, 255, .5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-ink); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-accent); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Sanftes Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cookie-Banner (optional, siehe assets/js/consent.js) ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 560px;
  background: #fff; color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 24px;
}
.consent-banner h2 { font-size: 1.1rem; margin-bottom: 8px; }
.consent-banner p { font-size: .92rem; color: var(--c-muted); }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent-banner__actions .btn { padding: 11px 20px; font-size: .92rem; }

/* ---------- Druck ---------- */
@media print {
  .header, .footer, .to-top, .cta-band, .lightbox { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Hintergrundbilder mit sicherem Fallback ---------- */
.hero--bg {
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42,.95) 0%, rgba(15, 23, 42,.80) 48%, rgba(15, 23, 42,.55) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero--pattern::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 82% 8%, rgba(60, 178, 197, .30), transparent 68%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 13px);
}
