/* NEXTMINDS – Landingpage */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --ink: #0E1A2F;
  --ink-body: #2E3A52;
  --ink-soft: #5A6680;
  --line: #DDE3EC;
  --tint: #F3F6FB;
  --blue: #1266DB;
  --blue-mid: #528EFB;
  --cyan: #00C4FB;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--blue); color: var(--white);
  border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--white);
  border: 0; border-radius: 4px;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--blue); }
.btn:active { background: #0D55BC; }

.link {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .2s ease;
}
.link:hover { text-decoration-thickness: 1px; text-decoration-color: currentColor; }

/* Kontaktleiste */

.topbar { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar a:hover { color: var(--cyan); }
.topbar :focus-visible { outline-color: var(--cyan); }

.ico { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* Header und Navigation */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo img { width: auto; height: 34px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.nav-link:hover,
.mega-toggle[aria-expanded="true"] { color: var(--blue); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.mega-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-contact { display: none; }

.nav-toggle { display: none; }

/* Megamenü */

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 48px -28px rgba(14, 26, 47, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }

.mega-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 28px; padding-bottom: 24px; }
.mega-title { margin: 0 0 10px 10px; color: var(--ink-soft); font-size: .8125rem; font-weight: 600; }
.mega-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mega-link {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none;
  transition: background-color .15s ease;
}
.mega-link .glyph { width: 28px; height: 28px; margin-top: 1px; }
.mega-link strong { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -0.005em; }
.mega-link small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .8125rem; line-height: 1.4; }
.mega-link:hover { background: var(--tint); }
.mega-link:hover strong,
.mega-link[aria-current] strong { color: var(--blue); }
.mega-link:hover .glyph { stroke: var(--blue); }

.mega-foot { background: var(--tint); border-top: 1px solid var(--line); }
.mega-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; color: var(--ink-body); font-size: .875rem; }
.mega-foot-inner a { font-weight: 600; }

/* Hero */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.05; max-width: 14ch; }
.lead { margin-top: 28px; max-width: 54ch; color: var(--ink-body); font-size: 1.125rem; }
.lead + .lead { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.hero-figure { margin: 0; }

/* Technische Zeichnung im Hero */

.plan { width: 100%; height: auto; overflow: visible; }
.plan .ink { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.plan .ink .thin { stroke-width: 1; stroke: #8792A6; }
.plan .glass polygon { fill: var(--blue-mid); opacity: .12; }
.plan .fill-blue { fill: var(--blue); }
.plan .gate { fill: var(--white); stroke: var(--blue); stroke-width: 1.6; }
.plan .gate-icon { fill: var(--cyan); }
.plan .wires path {
  fill: none; stroke: var(--blue-mid); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .9s cubic-bezier(.6, 0, .2, 1) forwards;
}
.plan .wires path:nth-child(2) { animation-delay: .15s; }
.plan .wires path:nth-child(3) { animation-delay: .3s; }
.plan .wires path:nth-child(4) { animation-delay: .45s; }
.plan .wires path:nth-child(5) { animation-delay: .6s; }
.plan .wires path:nth-child(6) { animation-delay: .75s; }
.plan .nodes circle { fill: var(--cyan); stroke: var(--white); stroke-width: 2; opacity: 0; animation: appear .3s ease 1.3s forwards; }
.plan .labels text { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 500; }
.plan .labels a:hover text,
.plan .labels a:focus-visible text { fill: var(--blue); text-decoration: underline; }
.plan .leaders line { stroke: #8792A6; stroke-width: 1; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sektionen */

.section { padding: var(--section-space) 0; }
.section-tint { background: var(--tint); }

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; }

/* Leistungen als Kacheln */

.intro {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px clamp(32px, 5vw, 72px); align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.intro p { color: var(--ink-body); max-width: 60ch; }

.tile-group + .tile-group { margin-top: clamp(40px, 5vw, 56px); }
.tile-group-title { margin-bottom: 16px; font-size: 1.125rem; letter-spacing: -0.01em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.tile {
  position: relative; display: flex; flex-direction: column;
  min-height: 196px; padding: 24px 24px 22px;
  background: var(--tint); border: 1px solid transparent; border-radius: 14px;
  color: var(--ink); text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.section-tint .tile { background: var(--white); }
.tile .glyph { width: 40px; height: 40px; margin-bottom: auto; transition: stroke .18s ease; }
.tile-title { margin-top: 28px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.tile p { margin-top: 6px; color: var(--ink-body); font-size: .9375rem; line-height: 1.5; }
.tile-arrow {
  position: absolute; top: 22px; right: 22px; width: 18px; height: 18px;
  fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s ease, stroke .18s ease;
}
.tile:hover { background: var(--white); border-color: var(--blue-mid); box-shadow: 0 6px 24px -12px rgba(18, 102, 219, .35); }
.tile:hover .glyph { stroke: var(--blue); }
.tile:hover .tile-arrow { stroke: var(--blue); transform: translate(2px, -2px); }
.tile:focus-visible { outline-offset: 2px; border-radius: 14px; }

.glyph { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph .t { stroke: #8792A6; stroke-width: 1.2; }
.glyph .t2 { stroke: var(--cyan); stroke-width: 2.4; }
.glyph .f { fill: var(--blue); stroke: none; }

/* Industrie: einziges farbiges Band der Seite */

.industry { padding: var(--section-space) 0; background: var(--blue); color: var(--white); }
.industry a { color: var(--white); }
.industry-head {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px clamp(32px, 5vw, 72px); align-items: start;
}
.industry-head h2 { max-width: 12ch; }
.industry-intro p { max-width: 60ch; font-size: 1.125rem; color: rgba(255, 255, 255, .9); }
.industry-intro p + p { margin-top: 14px; }
.tiles-dark { margin-top: clamp(48px, 6vw, 72px); }
.tiles-dark .tile { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: var(--white); }
.tiles-dark .tile p { color: rgba(255, 255, 255, .85); }
.tiles-dark .glyph,
.tiles-dark .glyph .t { stroke: var(--white); }
.tiles-dark .glyph .f { fill: var(--cyan); }
.tiles-dark .tile-arrow { stroke: rgba(255, 255, 255, .8); }
.tiles-dark .tile:hover { background: var(--white); border-color: var(--white); color: var(--ink); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35); }
.tiles-dark .tile:hover p { color: var(--ink-body); }
.tiles-dark .tile:hover .glyph { stroke: var(--blue); }
.tiles-dark .tile:hover .glyph .t { stroke: #8792A6; }
.tiles-dark .tile:hover .tile-arrow { stroke: var(--blue); }

/* Fristen */

.side-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.side-head { position: sticky; top: 104px; }
.side-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.side-head p { margin-top: 16px; color: var(--ink-body); }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deadline {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 6px clamp(24px, 3vw, 40px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.deadline-date { font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.deadline-state { display: block; color: var(--ink-soft); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.deadline-body h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.deadline-body p { margin-top: 4px; color: var(--ink-body); max-width: 68ch; }
.deadline.is-upcoming .deadline-date { color: var(--blue); }

.today {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin: -1px 0; padding: 10px 0;
  color: var(--blue); font-size: .875rem; font-weight: 600;
}
.today::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; }
.today::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue-mid)); }

.side-head .note { margin-top: 24px; color: var(--ink-soft); font-size: .875rem; }

/* Leistungsseiten */

.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); color: var(--ink-soft); font-size: .875rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px clamp(32px, 5vw, 72px); align-items: end;
}
.glyph-lg { width: 64px; height: 64px; margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.07; max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }

.ask { padding: 28px; background: var(--tint); border-radius: 14px; }
.ask-title { font-weight: 650; font-size: 1.0625rem; }
.ask p:not(.ask-title) { margin-top: 6px; color: var(--ink-body); font-size: .9375rem; }
.ask .btn { margin-top: 20px; width: 100%; }
.ask-links { display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .9375rem; }
.ask-links li:first-child { display: none; }
.ask-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.ask-links a:hover { color: var(--blue); }

.section-tight { padding-top: 0; }
.block-title { margin-bottom: clamp(28px, 4vw, 44px); }

.region-text .place-links { margin-top: 20px; }
.deadline-body .deadline-fix { margin-top: 10px; color: var(--ink); }
.deadline-body .deadline-more { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: .9375rem; }
.place-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }

.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 3vw, 48px);
  padding-top: 32px; border-top: 1px solid var(--ink);
}
.feature h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--ink-body); }

.fact {
  margin-top: clamp(40px, 5vw, 64px); padding: 24px 28px; max-width: 820px;
  border-left: 3px solid var(--cyan); background: var(--tint); border-radius: 0 12px 12px 0;
}
.fact-title { font-weight: 650; color: var(--blue); }
.fact p:not(.fact-title) { margin-top: 6px; color: var(--ink-body); }

/* Ablauf auf Leistungsseiten – echte Reihenfolge, daher nummeriert */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.step { position: relative; counter-increment: step; padding-top: 52px; }
.step::before { content: ""; position: absolute; top: 15px; left: 0; right: -32px; height: 2px; background: var(--blue-mid); }
.step:last-child::before { right: 0; background: linear-gradient(90deg, var(--blue-mid), rgba(82, 142, 251, 0)); }
.step::after {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--white); border: 2px solid var(--blue); border-radius: 50%;
  color: var(--blue); font-size: .875rem; font-weight: 650;
}
.step h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--ink-body); font-size: .9375rem; }

/* Region */

.region-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.region-text h2 { max-width: 18ch; }
.region-text p { margin-top: 20px; color: var(--ink-body); max-width: 52ch; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map-reach { fill: var(--blue-mid); opacity: .08; }
.map-link { stroke: var(--blue-mid); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.map-town circle { fill: var(--ink-soft); }
.map-town text { fill: var(--ink-soft); font-family: var(--font); font-size: 15px; }
.map-base circle { fill: var(--blue); stroke: var(--white); stroke-width: 3; }
.map-base text { fill: var(--ink); font-family: var(--font); font-size: 20px; font-weight: 650; }
.map-base .map-sub { fill: var(--blue); font-size: 14px; font-weight: 500; }
.map-area circle { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.map-area text { fill: var(--ink); font-family: var(--font); font-size: 18px; font-weight: 600; }

/* FAQ */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 22px 48px 22px 0;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 2px; background: var(--blue); border-radius: 2px;
  transition: transform .2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-body); max-width: 68ch; }

/* Kontakt */

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-text > p { margin-top: 20px; color: var(--ink-body); max-width: 44ch; }

.contact-data { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.contact-data dt { color: var(--ink-soft); font-size: .875rem; }
.contact-data dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 500; }

/* Footer */

.site-footer { padding: clamp(56px, 7vw, 80px) 0 0; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 40px clamp(24px, 4vw, 56px); }
.footer-logo { width: auto; height: 30px; padding: 6px 10px; background: var(--white); border-radius: 8px; box-sizing: content-box; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.footer-brand address { margin-top: 20px; font-style: normal; line-height: 1.6; color: var(--white); }
.footer-title { margin-bottom: 14px; color: var(--white); font-weight: 600; }
.footer-title-next { margin-top: 28px; }
.footer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--cyan); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem;
}
.footer-nav { display: flex; gap: 24px; }

/* Responsive */

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before,
  .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .topbar { display: none; }
  .header-inner { height: 68px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 68px); overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 1.0625rem; }
  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; }
  .has-mega.is-open .mega { display: block; }
  .mega-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 0 16px; }
  .mega-inner.wrap { padding-left: 0; padding-right: 0; }
  .mega-link small,
  .mega-foot { display: none; }
  .mega-link { padding: 8px 10px; align-items: center; }
  .nav-contact { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid,
  .region-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }

  .intro,
  .page-hero-grid,
  .industry-head,
  .side-layout,
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .side-head { position: static; }
  .ask { max-width: 420px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 28px 52px; }
  .step::before { top: 0; bottom: 0; left: 15px; right: auto; width: 2px; height: auto; }
  .step:last-child::before { background: linear-gradient(180deg, var(--blue-mid), rgba(82, 142, 251, 0)); }
  .step h3 { padding-top: 5px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo img { height: 28px; }
  .features,
  .contact-data { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .tile-title { margin-top: 18px; }
  .deadline { grid-template-columns: minmax(0, 1fr); }
  .plan .labels text { font-size: 22px; }
  .plan .labels text[x="250"],
  .plan .labels text[x="530"] { display: none; }
  .plan .leaders line:nth-child(2),
  .plan .leaders line:nth-child(4) { display: none; }
  .map-town text { font-size: 20px; }
  .map-base text { font-size: 26px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan .wires path { animation: none; stroke-dashoffset: 0; }
  .plan .nodes circle { animation: none; opacity: 1; }
}

/* Rechtstexte */

.legal { max-width: calc(760px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
.legal h2 {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25;
}
.legal h1 + h2,
.legal h1 + p { margin-top: 32px; }
.legal h1 + h2 { padding-top: 0; border-top: 0; }
.legal p { margin-top: 10px; color: var(--ink-body); }
.legal .note { margin-top: 40px; color: var(--ink-soft); font-size: .875rem; }
.todo { padding: 1px 4px; background: #FFF3B0; color: var(--ink); border-radius: 3px; }

/* Leutkirch-Seite: Abschnittsüberschriften im Stil der Leistungsbausteine */
.feature .feature-h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }

/* 404-Seite */

.nf { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.nf h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.06; max-width: 14ch; }

.nf-suggest {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 28px;
  padding: 14px 18px; border: 1px solid var(--blue-mid); border-radius: 10px;
  background: var(--tint); color: var(--ink); text-decoration: none;
}
.nf-suggest-label { color: var(--ink-soft); font-size: .9375rem; }
.nf-suggest strong { color: var(--blue); }
.nf-suggest:hover { background: var(--white); }

.nf-figure { margin: 0; }
.nf-plan { width: 100%; height: auto; overflow: visible; }
.nf-digits { font-family: var(--font); font-size: 210px; font-weight: 700; letter-spacing: -0.04em; }
.nf-digits-outline { fill: var(--ink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.nf-digits-fill { fill: var(--tint); }
.nf-plan .nf-wire { fill: none; stroke: var(--blue-mid); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s cubic-bezier(.6, 0, .2, 1) forwards; }
.nf-plan .nf-wire-right { stroke: #B9C3D3; stroke-dasharray: .012 .02; stroke-dashoffset: 0; animation: none; }
.nf-plug rect, .nf-socket rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.8; }
.nf-plug line { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.nf-plug line.thin { stroke: #8792A6; stroke-width: 1.2; }
.nf-socket .hole { fill: var(--ink); stroke: none; }
.nf-plug { animation: nf-tug 2.4s ease-in-out .9s 2; transform-box: fill-box; }
.nf-spark line { stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; opacity: 0; animation: nf-spark 2.4s ease-in-out .9s 2; }
.nf-node { fill: var(--cyan); stroke: var(--white); stroke-width: 2; }
.nf-node-off { fill: #B9C3D3; }

@keyframes nf-tug { 0%, 100% { transform: translateX(0); } 45%, 55% { transform: translateX(14px); } }
@keyframes nf-spark { 0%, 38%, 62%, 100% { opacity: 0; } 50% { opacity: 1; } }

.nf-trace {
  margin-top: clamp(40px, 6vw, 72px); padding: 22px 26px;
  background: var(--ink); color: rgba(255, 255, 255, .82); border-radius: 14px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: .875rem; line-height: 1.9;
  overflow-x: auto;
}
.nf-trace p { white-space: nowrap; }
.nf-prompt { color: var(--cyan); margin-right: 6px; }
.nf-hop { display: grid; grid-template-columns: 3ch minmax(0, 28ch) auto; gap: 16px; }
.nf-hop-n { color: rgba(255, 255, 255, .45); text-align: right; }
.nf-hop-host { overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.nf-ok { color: #7EE2A8; }
.nf-fail { color: #FF9C8A; }
.nf-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: rgba(255, 255, 255, .8); animation: nf-blink 1.1s steps(1) infinite; }
@keyframes nf-blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-figure { order: -1; max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-plan .nf-wire { animation: none; stroke-dashoffset: 0; }
  .nf-plug, .nf-spark line, .nf-cursor { animation: none; }
}
.legal h3 { margin-top: 32px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.legal h2 + h3 { margin-top: 20px; }
.legal ul { margin: 10px 0 0; padding-left: 1.25em; color: var(--ink-body); }
.legal li + li { margin-top: 6px; }
.legal li strong { color: var(--ink); }

.footer-consent { padding: 0; background: none; border: 0; color: rgba(255, 255, 255, .78); font: inherit; cursor: pointer; }
.footer-consent:hover { color: var(--white); text-decoration: underline; }

/* Ratgeber */

.article-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 28px 0; color: var(--ink); text-decoration: none; }
.article-teaser h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.article-teaser p { grid-column: 1; max-width: 70ch; color: var(--ink-body); }
.article-teaser .tile-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: static; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.article-teaser:hover h2 { color: var(--blue); }
.article-teaser:hover .tile-arrow { stroke: var(--blue); }

.article-meta { margin-top: 20px; color: var(--ink-soft); font-size: .9375rem; }
.article { max-width: calc(760px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.article h2 { margin-top: 56px; font-size: clamp(1.375rem, 2vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.25; }
.article p { margin-top: 14px; color: var(--ink-body); }
.article ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--ink-body); }
.article li + li { margin-top: 8px; }
.article li::marker { color: var(--blue); }
.article .note { margin-top: 48px; color: var(--ink-soft); font-size: .875rem; }
.article > h2:first-child { margin-top: 0; }
