:root {
  --bg: #04070d;
  --surface: linear-gradient(180deg, rgba(13, 19, 30, 0.96), rgba(8, 12, 20, 0.98));
  --surface-soft: rgba(12, 18, 29, 0.9);
  --surface-border: rgba(113, 173, 255, 0.28);
  --surface-border-strong: rgba(126, 196, 255, 0.48);
  --text: #eef5ff;
  --muted: #c3d0df;
  --accent: #62a3ff;
  --accent-soft: #8dd8ff;
  --accent-deep: #3c6fff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
  --glow: 0 0 0 1px rgba(126, 196, 255, 0.08), 0 0 34px rgba(74, 133, 255, 0.14);
  --radius: 30px;
  --radius-sm: 24px;
  --container: min(1320px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(98, 163, 255, 0.22), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(141, 216, 255, 0.16), transparent 16%),
    radial-gradient(circle at 52% 54%, rgba(64, 117, 255, 0.1), transparent 28%),
    radial-gradient(circle at 32% 82%, rgba(76, 126, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #06080d 0%, #0b1019 42%, #05070b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 28%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 41% 63%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 72%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

body.template-home::after {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 26% 64%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 52%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 83% 24%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58% 84%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 35% 36%, rgba(117, 178, 255, 0.18), transparent 0 10%),
    radial-gradient(circle at 74% 62%, rgba(141, 216, 255, 0.14), transparent 0 12%),
    radial-gradient(circle at 52% 46%, rgba(68, 111, 255, 0.1), transparent 0 20%);
  background-size:
    180px 180px,
    220px 220px,
    200px 200px,
    240px 240px,
    190px 190px,
    260px 260px,
    210px 210px,
    260px 260px,
    auto,
    auto,
    auto;
  opacity: 0.98;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  isolation: isolate;
  overflow: clip;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.template-home .page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 48%, rgba(95, 162, 255, 0.2), transparent 0 16%),
    radial-gradient(circle at 68% 30%, rgba(135, 217, 255, 0.15), transparent 0 12%),
    radial-gradient(circle at 58% 70%, rgba(74, 111, 255, 0.12), transparent 0 18%),
    radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 45% 64%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.8px),
    radial-gradient(circle at 34% 82%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 12%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.8px);
  background-size:
    auto,
    auto,
    auto,
    180px 180px,
    240px 240px,
    260px 260px,
    320px 320px,
    300px 300px,
    260px 260px;
  mix-blend-mode: screen;
  opacity: 1;
}

.template-home .page-shell::after {
  content: "";
  position: absolute;
  inset: 6rem 0 auto 0;
  height: 76rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(88, 141, 255, 0.26), transparent 0 18%),
    radial-gradient(circle at 76% 34%, rgba(141, 216, 255, 0.2), transparent 0 12%),
    radial-gradient(circle at 42% 78%, rgba(68, 111, 255, 0.18), transparent 0 16%),
    radial-gradient(circle at 62% 58%, rgba(118, 190, 255, 0.12), transparent 0 14%);
  filter: blur(46px);
  opacity: 0.96;
}

.site-header,
.section,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem 1.15rem;
  overflow: visible;
  border: 1px solid rgba(126, 196, 255, 0.22);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 14%, rgba(126, 196, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(15, 20, 30, 0.96), rgba(8, 11, 19, 0.98));
  box-shadow:
    0 0 0 1px rgba(126, 196, 255, 0.06),
    0 0 54px rgba(76, 126, 255, 0.16),
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 46%, rgba(126, 196, 255, 0.12), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(98, 163, 255, 0.1), transparent 45%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 5.8rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 214, 255, 0.85), transparent);
  box-shadow: 0 0 24px rgba(113, 173, 255, 0.65);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: min(52.75rem, 88vw);
  min-width: 21.25rem;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  flex-wrap: nowrap;
  gap: 0.08rem;
  width: 100%;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-link,
.nav-dropdown a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-link {
  padding: 0.68rem 0.58rem;
  color: #d7e2ef;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.01);
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown a.active,
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--text);
  border-color: rgba(126, 196, 255, 0.28);
  background: linear-gradient(180deg, rgba(100, 165, 255, 0.28), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 22px rgba(84, 145, 255, 0.24);
}

.nav-item.has-children .nav-link::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 15rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(126, 196, 255, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 216, 255, 0.08), transparent 42%),
    rgba(8, 12, 19, 0.985);
  box-shadow:
    0 0 0 1px rgba(126, 196, 255, 0.12),
    0 0 38px rgba(74, 133, 255, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.35),
    var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 216, 255, 0.82), transparent);
  box-shadow: 0 0 18px rgba(98, 163, 255, 0.35);
  pointer-events: none;
}

.nav-dropdown a {
  padding: 0.8rem 0.95rem;
  color: var(--muted);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after {
  transform: rotate(225deg) translateY(1px);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid rgba(126, 176, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.section {
  padding: 5.2rem 0;
}

.hero,
.page-hero,
.contact-layout {
  display: grid;
  gap: 2.4rem;
}

.hero,
.page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #b8d8ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: clamp(1.2rem, 2.16vw, 2.4rem);
  line-height: 0.98;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1;
}

h3 {
  font-size: 1.1rem;
}

.hero-title {
  max-width: 100%;
  font-size: clamp(1.45rem, 2.6vw, 2.9rem);
}

.hero-title span {
  display: block;
}

.hero-text,
.page-text,
.visual-panel p,
.slide-copy p,
.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.06rem;
}

.hero-copy,
.page-copy {
  max-width: 43rem;
}

.page-title-with-mark {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.page-title-with-mark h1 {
  margin-bottom: 0;
}

.page-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.page-brand-mark img {
  display: block;
  width: clamp(8.25rem, 16vw, 10.75rem);
  height: auto;
  max-height: 3.9rem;
}

.hero {
  align-items: start;
}

.hero-copy {
  padding-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.button-primary {
  color: #f7fbff;
  border-color: rgba(141, 216, 255, 0.24);
  background: linear-gradient(135deg, rgba(68, 111, 255, 0.78), rgba(102, 169, 255, 0.95));
  box-shadow: 0 0 28px rgba(86, 146, 255, 0.24), 0 18px 42px rgba(56, 101, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-secondary {
  border-color: rgba(126, 196, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.hero-panel,
.visual-panel,
.legacy-card,
.contact-form,
.site-footer {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.5rem;
  border-color: rgba(126, 196, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(126, 196, 255, 0.08),
    0 0 64px rgba(70, 124, 255, 0.2),
    var(--shadow),
    var(--glow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(141, 216, 255, 0.65), transparent 24%, transparent 78%, rgba(98, 163, 255, 0.65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(143, 214, 255, 0.18),
    0 0 26px rgba(98, 163, 255, 0.22),
    inset 0 0 18px rgba(141, 216, 255, 0.08);
  pointer-events: none;
}

.slide-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(17, 25, 37, 0.98), rgba(8, 12, 20, 1));
  border: 1px solid rgba(141, 216, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 34px rgba(78, 138, 255, 0.18),
    0 0 0 1px rgba(126, 196, 255, 0.06);
}

.slide-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(143, 214, 255, 0.78), transparent);
  box-shadow: 0 0 18px rgba(113, 173, 255, 0.44);
}

.slide-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.slide-copy {
  padding: 1rem 1rem 1.15rem;
}

.slide-copy strong,
.visual-panel strong,
.footer-brand strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.visual-panel {
  height: 100%;
  padding: 1.3rem;
  overflow: hidden;
}

.visual-panel img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 4px);
}

.subnav,
.quick-facts,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.subnav,
.quick-facts {
  margin-top: 1.4rem;
}

.subnav a,
.quick-facts span,
.footer-links a {
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(126, 196, 255, 0.16);
  border-radius: 999px;
  color: #d5dfeb;
  background: rgba(255, 255, 255, 0.035);
}

.subnav a.active,
.subnav a:hover,
.footer-links a:hover {
  color: var(--text);
  border-color: rgba(124, 167, 255, 0.28);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.legacy-stack {
  display: grid;
  gap: 1rem;
}

.legacy-grid-home {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.legacy-grid-home .legacy-card:first-child {
  grid-column: 1 / -1;
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
}

.page-referenzen .content-grid,
.page-servicepartner .content-grid {
  grid-template-columns: 1fr;
  width: 100%;
}

.page-referenzen .content-grid .legacy-card,
.page-servicepartner .content-grid .legacy-card {
  width: 100%;
}

.content-stream {
  display: grid;
  gap: 1.15rem;
  max-width: min(960px, 100%);
}

.content-list {
  display: grid;
  gap: 1.2rem;
  width: 100%;
}

.product-list {
  max-width: 100%;
}

.product-list .legacy-card {
  width: 100%;
}

.product-list .prose img[src*="cd3442cb5f4644798840815a5f5d6844"],
.product-list .prose img[src*="cd3442cb5f4644798840815a5f5d6843"],
.product-list .prose img[src*="eingefuegt-am-01.10.2027.png"],
.product-list .prose img[src*="faac.png"],
.product-list .prose img[src*="sommer.png"],
.product-list .prose img[src*="gilgen.png"],
.product-list .prose img[src*="dorma-02.png"],
.product-list .prose img[src*="dorma.png"] {
  width: auto;
  max-width: min(8rem, 22vw);
  max-height: 3rem;
  margin-inline: auto;
}

.product-list .prose img[src*="FACE.png"] {
  width: min(9.35rem, 25.5vw);
  max-width: min(9.35rem, 25.5vw);
  max-height: none;
  margin-inline: auto;
}

.page-drehtor .product-list .prose img[src*="402.jpg"] {
  width: clamp(16rem, 46vw, 32rem) !important;
  max-width: 88% !important;
  max-height: 18rem !important;
  margin-inline: auto;
  object-fit: contain;
}

.map-band {
  display: grid;
  gap: 1.4rem;
  width: 100%;
  margin: 0 0 4.4rem;
  padding-bottom: 0.4rem;
}

.map-band-copy {
  width: var(--container);
  margin-inline: auto;
}

.map-band-copy h2 {
  max-width: none;
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  line-height: 1.08;
}

.map-band-frame {
  width: min(1240px, calc(100vw - 8rem));
  min-height: 24rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(126, 196, 255, 0.18);
  border-radius: 30px;
  border-top: 1px solid rgba(126, 196, 255, 0.18);
  border-bottom: 1px solid rgba(126, 196, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.96), rgba(6, 10, 16, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--glow);
}

.map-band-frame iframe {
  display: block;
  width: 100%;
  height: clamp(24rem, 48vw, 34rem);
  border: 0;
  filter: saturate(0.8) contrast(1.05) brightness(0.88);
}

.legacy-card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(126, 196, 255, 0.06),
    0 0 34px rgba(70, 124, 255, 0.14),
    0 26px 64px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    var(--glow);
}

.content-stream .legacy-card {
  padding: clamp(1.35rem, 2.2vw, 2rem);
}

.content-stream .legacy-card + .legacy-card {
  position: relative;
}

.content-stream .legacy-card + .legacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.35rem, 2.2vw, 2rem);
  right: clamp(1.35rem, 2.2vw, 2rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 167, 255, 0.28), transparent);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose li,
.prose td,
.prose th {
  color: var(--muted);
  line-height: 1.8;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose figure {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose strong,
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  max-width: none;
  margin: 0 0 0.9rem;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.08;
}

.prose h3,
.prose h4 {
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.prose a {
  color: #a9c0ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose p:has(> strong:only-child),
.prose p:has(> strong > span:only-child) {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(124, 167, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(93, 141, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.prose p:has(> strong:only-child) strong,
.prose p:has(> strong > span:only-child) strong,
.prose p:has(> strong > span:only-child) span {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.partner-directory {
  display: grid;
  gap: 1.4rem;
}

.partner-directory h2 {
  max-width: none;
}

.partner-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.partner-column {
  display: grid;
  gap: 1rem;
}

.partner-entry {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(126, 196, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(70, 120, 255, 0.12), rgba(255, 255, 255, 0.025));
}

.partner-entry strong {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.3;
}

.partner-entry span {
  color: var(--muted);
  line-height: 1.6;
}

.partner-entry a {
  color: #a9c0ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.prose img {
  width: 100%;
  height: auto;
  max-height: 24rem;
  margin: 0 0 1rem;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.content-grid .prose p:has(img:first-child:last-child) {
  margin-bottom: 0.85rem;
}

.content-grid .prose p:has(img:first-child + img:last-child) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.content-grid .prose p:has(img:first-child + img:last-child) img {
  margin: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(126, 176, 255, 0.14);
  border-radius: 18px;
}

.prose td,
.prose th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.prose th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.prose tr:last-child td,
.prose tr:last-child th {
  border-bottom: 0;
}

.page-impressum .content-stream,
.page-datenschutzerklaerung .content-stream,
.page-rechnung .content-stream,
.page-serviceauftrag .content-stream,
.page-stellenangebote .content-stream,
.page-ueber-att-schwarzer .content-stream {
  max-width: min(1040px, 100%);
}

.page-datenschutzerklaerung .prose p,
.page-impressum .prose p,
.page-rechnung .prose p,
.page-serviceauftrag .prose p,
.page-stellenangebote .prose p {
  max-width: 72ch;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.65rem;
  position: sticky;
  top: 7rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form span {
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 196, 255, 0.18);
  border-radius: 16px;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(141, 216, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(98, 163, 255, 0.08);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.checkbox-row span {
  color: var(--muted);
  font-weight: 600;
}

.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;
}

.form-notice {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.05);
}

.form-notice-success {
  border-color: rgba(93, 141, 255, 0.3);
  background: rgba(93, 141, 255, 0.08);
}

.form-notice-info {
  border-color: rgba(95, 211, 255, 0.3);
  background: rgba(95, 211, 255, 0.08);
}

.form-notice-error {
  border-color: rgba(255, 117, 117, 0.3);
  background: rgba(255, 117, 117, 0.08);
}

.form-errors {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.55rem;
}

.footer-brand p {
  margin: 0.55rem 0 0;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
  text-align: right;
}

.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-credit-email {
  color: #a9c0ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .page-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    gap: 1.6rem;
  }

  .contact-form {
    position: static;
  }

  .content-stream,
  .page-impressum .content-stream,
  .page-datenschutzerklaerung .content-stream,
  .page-rechnung .content-stream,
  .page-serviceauftrag .content-stream,
  .page-stellenangebote .content-stream,
  .page-ueber-att-schwarzer .content-stream {
    max-width: 100%;
  }

  .map-band-frame iframe {
    height: clamp(22rem, 62vw, 30rem);
  }

  .partner-columns {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .footer-side {
    align-items: flex-start;
  }

  .footer-side {
    text-align: left;
  }
}

@media (max-width: 920px) {
  .site-header::after {
    left: 1rem;
    right: 1rem;
    top: 5.1rem;
  }

  .brand-logo {
    width: min(16rem, 52vw);
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 3.8rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-radius: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0.4rem;
    padding: 0.8rem;
    width: auto;
    border-top: 0;
    border-radius: 26px;
    border: 1px solid rgba(126, 176, 255, 0.18);
    background: rgba(6, 16, 24, 0.985);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-item {
    display: grid;
    gap: 0.35rem;
  }

  .nav-link {
    width: 100%;
    font-size: 0.96rem;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0.25rem 0 0 0.8rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.is-expanded .nav-dropdown {
    display: grid;
  }

  .nav-item.has-children .nav-link::after {
    transition: transform 180ms ease;
  }

  .nav-item.is-expanded .nav-link::after {
    transform: rotate(225deg) translateY(1px);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-copy {
    max-width: 100%;
  }

  .page-title-with-mark {
    gap: 0.85rem;
    align-items: center;
  }

  .page-brand-mark {
    margin-bottom: 0;
  }

  .page-brand-mark img {
    width: clamp(6.5rem, 34vw, 8.4rem);
    max-height: 3.2rem;
  }

  .hero-text,
  .page-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .button,
  .page-copy .button {
    width: 100%;
  }

  .legacy-card,
  .contact-form,
  .site-footer,
  .hero-panel,
  .visual-panel {
    border-radius: 24px;
  }

  .legacy-card,
  .contact-form {
    padding: 1.15rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 3rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .subnav a,
  .quick-facts span,
  .footer-links a {
    width: 100%;
    justify-content: center;
  }

  .content-grid,
  .legacy-grid-home {
    grid-template-columns: 1fr;
  }

  .content-grid .prose p:has(img:first-child + img:last-child) {
    grid-template-columns: 1fr;
  }

  .map-band {
    margin-bottom: 3.2rem;
  }

  .map-band-frame {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .footer-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1240px, calc(100vw - 1rem));
  }

  .page-schiebetueren .page-hero .page-visual,
  .page-drehtueren .page-hero .page-visual,
  .page-schiebetor-antriebe .page-hero .page-visual,
  .page-drehtor .page-hero .page-visual,
  .page-schranken .page-hero .page-visual,
  .page-garagentore .page-hero .page-visual {
    display: none;
  }

  .brand-logo {
    width: min(20rem, 84vw);
    min-width: 12.4rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  h2 {
    max-width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
