/* ==========================================================================
   Tinus Gebäudetechnik & Immobilienbewirtschaftung
   Design-System & Styles
   ========================================================================== */

/* --- Schriften (selbst gehostet, DSGVO-konform) -------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Markenfarben aus dem Logo */
  --flame: #ff6a00;
  --flame-dark: #e35400;
  --amber: #ffc400;
  --ember: #e01b0c;

  --ink: #0d1117;
  --ink-2: #151b24;
  --ink-3: #1e2632;

  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef0f4;

  --text: #12161c;
  --text-muted: #5c6674;
  --text-invert: #ffffff;
  --text-invert-muted: #a8b2c1;

  --line: #e2e6ec;
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.06), 0 2px 8px rgba(13, 17, 23, 0.05);
  --shadow: 0 4px 12px rgba(13, 17, 23, 0.07), 0 16px 40px rgba(13, 17, 23, 0.08);
  --shadow-lg: 0 8px 24px rgba(13, 17, 23, 0.1), 0 32px 64px rgba(13, 17, 23, 0.14);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* --- Reset --------------------------------------------------------------- */
*,
*::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: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg { max-width: 100%; display: block; }

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

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

.section {
  padding-block: clamp(4rem, 2rem + 8vw, 7.5rem);
}
.section--tight { padding-block: clamp(3rem, 1.5rem + 5vw, 5rem); }
.section--alt { background: var(--paper-2); }
.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}
.section--dark h2,
.section--dark h3 { color: var(--text-invert); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 0;
}
.section--dark .section-head p { color: var(--text-invert-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--flame));
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--amber); }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--flame);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.32);
}
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
}
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { box-shadow: 0 10px 24px rgba(13, 17, 23, 0.28); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- Textlink ------------------------------------------------------------ */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--flame-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.link:hover {
  border-bottom-color: currentColor;
  gap: 0.7rem;
}
.link svg { transition: transform 0.18s var(--ease); }
.link:hover svg { transform: translateX(2px); }

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Über dem dunklen Hero transparent, beim Scrollen hell */
.header--over-hero {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
.header--over-hero .brand__name { color: #fff; }
.header--over-hero .brand__tag { color: rgba(255, 255, 255, 0.62); }
.header--over-hero .nav__link { color: rgba(255, 255, 255, 0.86); }
.header--over-hero .nav__link:hover,
.header--over-hero .nav__link[aria-current='page'] { color: #fff; }
.header--over-hero .burger span { background: #fff; }
.header--over-hero .header__cta {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.header--over-hero.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(13, 17, 23, 0.06);
}
.header--over-hero.is-scrolled .brand__name { color: var(--text); }
.header--over-hero.is-scrolled .brand__tag { color: var(--text-muted); }
.header--over-hero.is-scrolled .nav__link { color: var(--text-muted); }
.header--over-hero.is-scrolled .nav__link:hover,
.header--over-hero.is-scrolled .nav__link[aria-current='page'] { color: var(--text); }
.header--over-hero.is-scrolled .burger span { background: var(--text); }
.header--over-hero.is-scrolled .header__cta {
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
  color: #fff;
  border-color: transparent;
}
.header.is-scrolled { box-shadow: 0 2px 20px rgba(13, 17, 23, 0.06); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__flame {
  flex: none;
  width: 26px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(255, 106, 0, 0.35));
}
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
/* Zusatz wie im Logo ausgeschrieben – bricht auf schmalen Displays um */
.brand__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  text-wrap: balance;
}
@media (max-width: 620px) {
  .brand__flame { width: 22px; }
  .brand__name { font-size: 1.0625rem; letter-spacing: 0.14em; }
  .brand__tag { font-size: 0.625rem; }
}

.nav { margin-left: auto; }
.nav__cta { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--flame));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--text); font-weight: 600; }

.header__cta {
  flex: none;
  padding: 0.62rem 1.15rem;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
  border: 1px solid transparent;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease),
    background-color 0.25s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-130%);
    transition: transform 0.32s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
    color: var(--text) !important;
  }
  .nav__link::after { display: none; }
  .nav__cta { display: block; margin-top: 1.25rem; }
  .nav__cta .btn { width: 100%; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 1rem + 8vw, 6rem));
  padding-bottom: clamp(3.5rem, 1rem + 8vw, 6.5rem);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* technisches Raster */
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  z-index: -2;
}
.hero::after {
  /* Flammen-Glow */
  content: '';
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.34) 0%, rgba(224, 27, 12, 0.14) 38%, transparent 68%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--amber) 0%, var(--flame) 45%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-invert-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero .btn-row { margin-bottom: 2.5rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--text-invert-muted);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.hero__badges svg { color: var(--amber); flex: none; }

/* Bild-Mosaik */
.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.85rem;
  aspect-ratio: 1 / 1.02;
}
.hero__mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink-2);
  position: relative;
}
.hero__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero__mosaic figure:hover img { transform: scale(1.06); }
.hero__mosaic figure:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
.hero__mosaic figure:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.hero__mosaic figure:nth-child(3) { grid-column: 2; grid-row: 3 / span 3; }
.hero__mosaic figure:nth-child(4) { grid-column: 1; grid-row: 4 / span 2; }

.hero__stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(96px, 12vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.05;
  box-shadow: 0 12px 40px rgba(224, 27, 12, 0.45);
  border: 4px solid var(--ink);
}
.hero__stamp b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
}
.hero__stamp span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero__mosaic-wrap { position: relative; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mosaic { aspect-ratio: 1 / 0.8; max-width: 34rem; }
}
@media (max-width: 560px) {
  .hero__mosaic { gap: 0.6rem; }
  .hero .btn-row .btn { width: 100%; }
}

/* --- Seitenkopf (Unterseiten) -------------------------------------------- */
.pagehead {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 1rem + 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 100% at 30% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 100% at 30% 0%, #000 10%, transparent 75%);
  z-index: -2;
}
.pagehead::after {
  content: '';
  position: absolute;
  top: -55%;
  right: -8%;
  width: min(720px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.3) 0%, transparent 65%);
  filter: blur(18px);
  z-index: -1;
}
.pagehead h1 { color: #fff; margin-bottom: 0.35em; }
.pagehead p {
  color: var(--text-invert-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  max-width: 42rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb li { margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.breadcrumb li + li::before { content: '/'; opacity: 0.5; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* --- Leistungs-Karten ---------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(1.25rem, 0.6rem + 1.6vw, 1.85rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 17, 23, 0.55) 100%);
}
.card__icon {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224, 27, 12, 0.4);
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.6rem;
}
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p {
  color: var(--text-muted);
  font-size: 0.9875rem;
  margin-bottom: 1.1rem;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.3rem;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}
.card__foot { margin-top: auto; }

/* --- Feature-Grid (Warum wir) -------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.5rem, 0.8rem + 2vw, 2.5rem);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  margin-bottom: 1.1rem;
  background: rgba(255, 106, 0, 0.1);
  color: var(--flame-dark);
  border: 1px solid rgba(255, 106, 0, 0.2);
}
.section--dark .feature__icon {
  background: rgba(255, 196, 0, 0.12);
  border-color: rgba(255, 196, 0, 0.25);
  color: var(--amber);
}
.feature h3 { margin-bottom: 0.45rem; }
.feature p {
  color: var(--text-muted);
  font-size: 0.9875rem;
  margin: 0;
}
.section--dark .feature p { color: var(--text-invert-muted); }

/* --- Kennzahlen ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem) 1.5rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--amber), var(--flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}
.stat b span {
  font: inherit;
  color: inherit;
}
.stat > span {
  font-size: 0.9375rem;
  color: var(--text-invert-muted);
}

/* --- Split (Bild + Text) ------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }
@media (max-width: 760px) {
  .split--reverse .split__media { order: 0; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e35400' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.section--dark .checklist li { color: var(--text-invert-muted); }
.section--dark .checklist li::before {
  background-color: rgba(255, 196, 0, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc400' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --- Ablauf -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1.5rem, 0.8rem + 2vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--flame);
  opacity: 0.85;
}
.step::after {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 4rem;
  right: -1.5rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
@media (max-width: 780px) { .step::after { display: none; } }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.9875rem; margin: 0; }

/* --- Einsatzgebiet ------------------------------------------------------- */
.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.regions li { margin: 0; }
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.region-pill svg { color: var(--flame); flex: none; }
.section--dark .region-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  color: #fff;
  box-shadow: none;
}

/* --- CTA-Band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #1b1005 0%, var(--ink) 55%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 1rem + 5vw, 4rem);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.4) 0%, transparent 65%);
  z-index: -1;
  filter: blur(10px);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { margin-bottom: 0.4rem; color: #fff; }
.cta-band p { color: var(--text-invert-muted); margin: 0; max-width: 38rem; }
.cta-band__text { flex: 1 1 22rem; }

/* --- Kontaktdaten-Karten ------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h3 { margin-bottom: 1rem; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.info-list li:last-child { margin-bottom: 0; }
.info-list__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--flame-dark);
}
.info-list dt,
.info-list__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.info-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.info-list a:hover { color: var(--flame-dark); border-bottom-color: currentColor; }

/* --- Formular ------------------------------------------------------------ */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.1rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .req { color: var(--ember); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--ember); }

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--flame);
}
.checkbox a { color: var(--flame-dark); }

.form__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  border: 1px solid;
}
.alert--error { background: #fdf0ee; border-color: #f3c6c0; color: #8f2015; }
.alert--ok { background: #eefaf1; border-color: #bfe6ca; color: #17612f; }

/* --- Job-Karte ----------------------------------------------------------- */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.job-meta li { margin: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.22);
  color: var(--flame-dark);
  font-size: 0.875rem;
  font-weight: 600;
}
.section--dark .tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
  color: #fff;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  height: 100%;
}
.panel h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.panel h3 svg { color: var(--flame); flex: none; }
.panel ul { padding: 0; margin: 0; list-style: none; }
.panel li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.9875rem;
}
.panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}

/* --- Rechtstexte --------------------------------------------------------- */
.legal {
  max-width: 52rem;
}
.legal h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-size: 1.0625rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal p,
.legal li { color: var(--text-muted); font-size: 0.9875rem; line-height: 1.75; }
.legal address {
  font-style: normal;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-left: 3px solid var(--flame);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}
.legal a { color: var(--flame-dark); }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  list-style: none;
  padding: 1.25rem 1.4rem;
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.toc li { margin-bottom: 0.5rem; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--flame-dark); }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: var(--text-invert-muted); }
.footer__brand p {
  margin-top: 1.1rem;
  max-width: 26rem;
  color: var(--text-invert-muted);
}
.footer h4 {
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.65rem; }
.footer a {
  color: var(--text-invert-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom li { margin: 0; }

/* --- Scroll-Animation ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.narrow { max-width: 46rem; }
.narrow-center { max-width: 46rem; margin-inline: auto; }

@media print {
  .header, .footer, .cta-band, .burger { display: none !important; }
  body { color: #000; }
}
