:root {
  --blue: #007bc2;
  --blue-dark: #0d5f91;
  --ink: #1a1f17;
  --ink-soft: #4d5450;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eaf0f5;
  --line: #d7dee5;
  --shadow: 0 18px 40px rgba(18, 25, 31, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --max: 1200px;
  --header-h: 136px;
  --header-h-compact: 88px;
  --header-sticky-h: 76px;
  --topbar-h: 34px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

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

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(20, 27, 32, 0.08);
  backdrop-filter: blur(10px);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  max-height: var(--topbar-h);
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.topbar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.topbar-claim {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.topbar-claim::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 2px;
  background: var(--blue);
}

.topbar-phone {
  flex: 0 0 auto;
  color: inherit;
  white-space: nowrap;
}

.topbar-phone:hover,
.topbar-phone:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-phone:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.topbar-compact {
  display: none;
}

.brand-row {
  min-height: calc(var(--header-h) - 34px);
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: min-height 220ms ease, padding 220ms ease, gap 220ms ease;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(260px, 34vw);
  min-width: 220px;
  transition: width 220ms ease, min-width 220ms ease, transform 220ms ease;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 123, 194, 0.24);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(0, 123, 194, 0.3);
  outline-offset: 3px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background-color 180ms ease, transform 180ms ease, top 180ms ease;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.menu-toggle.is-active span {
  background: transparent;
}

.menu-toggle.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  margin-left: auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(18, 25, 31, 0.14);
  transition: padding 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.nav-list {
  counter-reset: nav-item;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
  counter-increment: nav-item;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: min-height 220ms ease, padding 220ms ease, font-size 220ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link::before {
  content: counter(nav-item, decimal-leading-zero);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-label {
  display: inline-block;
}

.nav-caret {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.is-scrolled {
  --topbar-h: 0px;
}

body.is-scrolled .site-header {
  box-shadow: 0 10px 24px rgba(18, 25, 31, 0.08);
}

body.is-scrolled .site-nav {
  padding: 3px;
  box-shadow: 0 8px 18px rgba(18, 25, 31, 0.1);
}

body.is-scrolled .topbar {
  opacity: 0;
  transform: translateY(-6px);
  border-bottom-color: transparent;
}

body.is-scrolled .brand-row {
  padding: 8px 0 10px;
  gap: 18px;
  min-height: var(--header-h-compact);
}

body.is-scrolled .brand img {
  width: min(240px, 34vw);
  min-width: 150px;
  transform: translateY(-1px);
}

body.is-scrolled .nav-link {
  min-height: 40px;
  padding: 0 6px;
  font-size: 0.64rem;
}

body.is-scrolled .menu-toggle {
  width: 44px;
  height: 44px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.is-active > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-item.is-active > .nav-link::before {
  color: #fff;
}

.nav-item.is-active > .nav-link {
  background: var(--blue);
  border-color: var(--blue);
}

.nav-item.nav-cta > .nav-link {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.nav-item.nav-cta > .nav-link:hover,
.nav-item.nav-cta > .nav-link:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.nav-item.has-children:hover > .nav-link .nav-caret,
.nav-item.has-children:focus-within > .nav-link .nav-caret {
  color: var(--blue);
  background: #fff;
  transform: rotate(45deg);
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 270px;
  padding: 14px;
  margin: 0;
  list-style: none;
  counter-reset: submenu-item;
  background: rgba(14, 22, 28, 0.98);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 5px 5px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.nav-item.has-children:hover > .submenu,
.nav-item.has-children:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  position: relative;
  padding: 10px 10px 10px 34px;
  border-radius: 4px;
  color: inherit;
  font-size: 0.9rem;
  text-transform: none;
  transition: background-color 160ms ease, color 160ms ease, padding-left 160ms ease;
}

.submenu li {
  counter-increment: submenu-item;
}

.submenu a::before {
  content: counter(submenu-item, decimal-leading-zero);
  position: absolute;
  left: 10px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 38px;
}

.page {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 78vh;
  background: #13222d;
  overflow: clip;
}

.hero.home {
  min-height: calc(100vh - var(--header-h));
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 23, 0.62), rgba(9, 17, 23, 0.18) 56%, rgba(9, 17, 23, 0.06));
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: 64px 0 72px;
}

.hero-panel {
  min-width: 0;
  max-width: 620px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blue);
}

.breadcrumb {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(26, 31, 23, 0.12);
  background: #eef3f5;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.breadcrumb .container {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "\203A";
  flex: 0 0 auto;
  margin-right: 8px;
  color: var(--blue);
  font-size: 1.2em;
}

.breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.page-hero h1 {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 700;
  margin-top: 12px;
}

h2 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}

.lead {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero {
  position: relative;
  min-height: 400px;
  color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body[data-page="geschaeftsfuehrung"] .page-hero {
  background-position: center 10%;
}

body[data-page="immobilien"] .page-hero {
  background-position: 56% center;
}

.page-hero-content {
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: #fff;
}

.section.soft {
  background: #eef3f7;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header p {
  max-width: 64ch;
  color: var(--ink-soft);
}

.section-header p strong {
  color: var(--ink);
  font-weight: 700;
}

.section-title {
  color: var(--ink);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile,
.panel,
.info-card,
.machine-card,
.property-card,
.news-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
}

.tile {
  position: relative;
  min-height: 280px;
}

.tile a {
  display: block;
  height: 100%;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-caption,
.overlay-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 16, 21, 0), rgba(9, 16, 21, 0.76));
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 700;
}

.tile-caption span,
.overlay-caption span {
  display: block;
  margin-top: 10px;
  width: 52px;
  height: 3px;
  background: #fff;
}

.panel {
  padding: 32px;
}

.panel p + p,
.copy p + p,
.copy ul + p,
.copy ul + ul {
  margin-top: 12px;
}

.copy {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.copy strong {
  color: var(--ink);
}

.copy ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.copy li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}

.copy li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.hero.home .btn.secondary {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(9, 17, 23, 0.22);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.hero.home .btn.secondary:hover,
.hero.home .btn.secondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 10px 28px rgba(9, 17, 23, 0.3);
}

.hero.home .btn.secondary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn::after {
  content: "→";
}

.btn.opens-new-tab::after {
  content: "↗";
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.image-disclosure {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  background: rgba(9, 17, 23, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.tall {
  aspect-ratio: 4 / 5;
}

.media-frame.wide {
  aspect-ratio: 16 / 9;
}

.media-frame.banner {
  aspect-ratio: 16 / 8;
}

.quote-band {
  background: linear-gradient(135deg, #ffffff, #f1f6fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.quote h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.quote p {
  color: var(--ink-soft);
}

.quote p strong {
  color: var(--ink);
  font-weight: 700;
}

.footer {
  position: relative;
  color: #fff;
  background: #111a20 url("../images/brand/footer.png") center top / cover no-repeat;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 20, 0.2), rgba(8, 15, 20, 0.6));
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-main {
  padding: 52px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
}

.footer h2 {
  font-size: 1.15rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.94);
}

.footer .divider {
  width: 80px;
  height: 2px;
  margin: 14px 0 16px;
  background: rgba(255, 255, 255, 0.82);
}

.footer-heading-spacer {
  height: 53px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: inherit;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  padding: 0 0 28px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.stack {
  display: grid;
  gap: 20px;
}

.rental-machine-card {
  display: flex;
  flex-direction: column;
}

.rental-machine-card .stack {
  flex: 1;
  grid-template-rows: auto 1fr auto;
}

.rental-machine-actions {
  display: flex;
  align-items: flex-start;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3f7;
  color: var(--ink);
  font-size: 0.95rem;
}

.cards-slim {
  display: grid;
  gap: 16px;
}

.cards-slim .panel {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.cards-slim .media-frame {
  aspect-ratio: 1 / 1;
}

.legal-card {
  padding: 32px;
}

.legal-card h2 {
  margin-bottom: 12px;
}

.legal-card p + p {
  margin-top: 12px;
}

.services-card {
  padding: clamp(32px, 4vw, 48px);
}

.services-intro {
  max-width: 78ch;
}

.services-intro p,
.service-item p,
.services-closing {
  color: var(--ink-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.service-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow-wrap: break-word;
}

.service-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.service-item p {
  margin-top: 9px;
}

.services-closing {
  max-width: 86ch;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.region-services .panel,
.region-areas .panel {
  height: 100%;
}

.region-services .stack {
  height: 100%;
  grid-template-rows: auto 1fr auto;
}

.region-services .cta-row {
  align-self: start;
  margin-top: 0;
}

.region-areas .stack {
  gap: 12px;
}

.region-note {
  max-width: 86ch;
  margin-top: 28px;
  color: var(--ink-soft);
}

.region-contact > p,
.regional-service-card > p {
  max-width: 86ch;
  color: var(--ink-soft);
}

.planning-card {
  padding: clamp(32px, 4vw, 48px);
}

.planning-intro {
  max-width: 82ch;
}

.planning-intro > p,
.planning-step p,
.planning-closing {
  color: var(--ink-soft);
}

.planning-intro .planning-principle {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 3px solid var(--blue);
  background: var(--bg);
}

.planning-principle strong {
  color: var(--ink);
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.planning-step {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow-wrap: break-word;
  hyphens: auto;
}

.planning-step:last-child {
  grid-column: 1 / -1;
}

.planning-step:last-child p {
  max-width: 82ch;
}

.planning-step-number {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.planning-step h3 {
  margin-top: 10px;
  color: var(--ink);
}

.planning-step p {
  margin-top: 9px;
}

.planning-closing {
  max-width: 88ch;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sitemap-list {
  margin: 0;
  padding-left: 20px;
}

.sitemap-list ul {
  margin-top: 10px;
  padding-left: 22px;
}

.contact-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact-details a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  color: var(--ink);
}

.page-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 70ch;
}

.section .page-head {
  margin-bottom: 20px;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: #eef6fb;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 16px;
}

.mosaic .media-frame {
  min-height: 220px;
}

.mosaic .span-2 {
  grid-column: span 2;
}

.machine-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.machine-card .body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.machine-card .body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.property-card .body,
.news-card .body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.overlay-link {
  display: block;
  position: relative;
  min-height: 100%;
}

.overlay-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-link .overlay-caption {
  opacity: 1;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.94rem;
}

.icon-chip::before {
  content: "•";
  color: var(--blue);
}

.slider-controls {
  position: absolute;
  inset: auto 0 24px 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-buttons {
  display: flex;
  gap: 10px;
}

.slider-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.slider-dot.is-active {
  background: #fff;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--footer-offset, 0px));
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  z-index: 80;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top span {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue-dark);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

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

  .grid-3,
  .quote,
  .footer-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .mosaic .span-2 {
    grid-column: span 2;
  }

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

  .back-to-top {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--footer-offset, 0px));
  }
}

@media (max-width: 1240px) {
  :root {
    --header-h: 138px;
    --header-h-compact: 88px;
    --header-sticky-h: 88px;
    --topbar-h: 30px;
  }

  .topbar {
    font-size: 0.82rem;
  }

  .topbar .container {
    min-height: var(--topbar-h);
    gap: 12px;
  }

  .brand-row {
    min-height: calc(var(--header-h) - 34px);
    padding: 10px 0 12px;
  }

  body.is-scrolled .brand-row {
    padding: 6px 0 8px;
    gap: 14px;
    min-height: var(--header-h-compact);
  }

  body.is-scrolled .site-nav {
    inset: var(--header-sticky-h) 0 auto 0;
  }

  body.is-scrolled .brand img {
    width: min(198px, 50vw);
    min-width: 136px;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-top: 3px solid var(--blue);
    border-radius: 0;
    background: var(--ink);
    box-shadow: 0 18px 34px rgba(18, 25, 31, 0.28);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  body.is-scrolled .site-nav {
    inset: var(--header-sticky-h) 0 auto 0;
    padding: 0;
  }

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

  .nav-list {
    width: min(100% - 24px, var(--max));
    margin: 0 auto;
    padding: 16px 0 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 58px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .nav-link::before {
    min-width: 22px;
    font-size: 0.72rem;
  }

  .nav-label {
    flex: 1;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-item.is-active > .nav-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #fff;
    transform: none;
  }

  .nav-item.is-active > .nav-link {
    border-left: 4px solid var(--blue);
    padding-left: 8px;
    background: rgba(0, 123, 194, 0.18);
  }

  body.is-scrolled .nav-link {
    min-height: 54px;
    padding: 0 12px;
    font-size: 0.96rem;
  }

  body.is-scrolled .nav-item.is-active > .nav-link {
    padding-left: 8px;
  }

  .nav-item.nav-cta {
    margin-top: 14px;
  }

  .nav-item.nav-cta > .nav-link {
    border: 0;
    background: var(--blue);
    color: #fff;
    justify-content: center;
  }

  .nav-item.nav-cta > .nav-link::before {
    color: rgba(255, 255, 255, 0.74);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 2px 0 8px 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--blue);
    border-radius: 0;
  }

  .submenu a {
    padding: 9px 8px 9px 30px;
    color: inherit;
    font-size: 0.92rem;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    padding-left: 34px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .hero,
  .page-hero,
  .page-hero-content {
    min-height: 66vh;
  }

  .hero.home {
    min-height: calc(100vh - var(--header-h));
  }

  .hero-content {
    padding-bottom: 80px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic .span-2 {
    grid-column: auto;
  }

  .tile {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .image-disclosure {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .topbar {
    font-size: 0.78rem;
  }

  .topbar-claim {
    gap: 7px;
  }

  .topbar-claim::before {
    width: 12px;
  }

  .topbar-full {
    display: none;
  }

  .topbar-compact {
    display: inline;
  }

  .breadcrumb {
    font-size: 0.76rem;
  }

  .breadcrumb .container {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .breadcrumb ol {
    column-gap: 5px;
  }

  .breadcrumb li + li::before {
    margin-right: 5px;
  }

  .brand img {
    width: min(250px, 58vw);
    min-width: 156px;
  }

  body.is-scrolled .brand img {
    width: min(198px, 50vw);
    min-width: 136px;
  }

  .hero,
  .page-hero,
  .page-hero-content {
    min-height: 580px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 1.95rem;
  }

  .lead {
    font-size: 1rem;
  }

  .panel,
  .legal-card {
    padding: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }

  .service-item {
    padding: 18px;
  }

  .services-closing {
    padding-top: 20px;
  }

  .planning-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }

  .planning-step,
  .planning-step:last-child {
    grid-column: auto;
    padding: 18px;
  }

  .planning-intro .planning-principle {
    margin-top: 20px;
    padding: 18px;
  }

  .planning-closing {
    padding-top: 20px;
  }

  .tile-caption,
  .overlay-caption {
    font-size: 0.94rem;
    padding: 18px 16px;
  }

  .slider-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .slider-buttons {
    justify-content: space-between;
  }

  .back-to-top {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--footer-offset, 0px));
  }

  .back-to-top span {
    font-size: 1.55rem;
  }
}

/* Text and nested grid/flex items must be allowed to shrink on narrow
   viewports.  Long German compound words (for example
   "Ziegelschneidemaschine" or "Datenschutzerklärung") otherwise establish a
   min-content width wider than the page and create horizontal scrolling. */
h1,
h2,
h3,
h4,
p,
li,
dt,
dd,
a {
  overflow-wrap: anywhere;
}

.stack,
.stack > *,
.copy,
.legal-copy,
.legal-copy > * {
  min-width: 0;
}

@media (max-width: 360px) {
  .page-hero h1 {
    font-size: 1.75rem;
  }
}

/* Premium navigation: quiet hierarchy, generous spacing and one clear accent. */
.brand-row {
  gap: clamp(24px, 4vw, 52px);
}

.brand img {
  width: min(240px, 31vw);
  min-width: 200px;
}

.menu-toggle {
  width: auto;
  height: 48px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.menu-toggle::before {
  content: "Menü";
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.menu-toggle.is-active::before {
  content: "Schließen";
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ink);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.menu-toggle.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 1.5px;
  background: currentColor;
}

.site-nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.nav-list {
  counter-reset: none;
  gap: clamp(16px, 2.15vw, 31px);
}

.nav-item {
  counter-increment: none;
}

.nav-link {
  min-height: 54px;
  padding: 9px 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.86rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link::before {
  content: none;
}

.nav-link::after {
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.is-active > .nav-link {
  border-color: transparent;
  background: transparent;
  color: var(--blue-dark);
  transform: none;
}

.nav-item.is-active > .nav-link {
  border-color: transparent;
}

.nav-item.nav-cta {
  margin-left: 5px;
}

.nav-item.nav-cta > .nav-link {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
}

.nav-item.nav-cta > .nav-link:hover,
.nav-item.nav-cta > .nav-link:focus-visible {
  border-color: transparent;
  background: var(--blue-dark);
  color: #fff;
}

.nav-item.nav-cta > .nav-link::after {
  display: none;
}

.nav-caret {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  font-size: 0;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-item.has-children:hover > .nav-link .nav-caret,
.nav-item.has-children:focus-within > .nav-link .nav-caret {
  background: transparent;
  color: inherit;
  transform: rotate(225deg) translate(-1px, -1px);
}

.submenu {
  top: calc(100% - 1px);
  min-width: 250px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(20, 27, 32, 0.12);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 3px 3px;
  background: rgba(255, 255, 255, 0.99);
  color: var(--ink);
  box-shadow: 0 18px 32px rgba(18, 25, 31, 0.12);
}

.submenu a {
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  transition: color 160ms ease, padding-left 160ms ease, background-color 160ms ease;
}

.submenu li {
  counter-increment: none;
}

.submenu a::before {
  content: "";
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  color: transparent;
  transition: width 160ms ease;
}

.submenu li:last-child a {
  border-bottom: 0;
}

.submenu a:hover,
.submenu a:focus-visible {
  padding-left: 22px;
  background: var(--surface-2);
  color: var(--blue-dark);
}

.submenu a:hover::before,
.submenu a:focus-visible::before {
  width: 10px;
}

body.is-scrolled .site-nav {
  padding: 0;
  box-shadow: none;
}

body.is-scrolled .nav-link {
  min-height: 48px;
  padding: 7px 0 9px;
  font-size: 0.8rem;
}

body.is-scrolled .nav-item.nav-cta > .nav-link {
  min-height: 42px;
}

@media (max-width: 1240px) {
  .brand-row {
    min-height: calc(var(--header-h) - var(--topbar-h));
    padding: 15px 0 17px;
  }

  .brand img {
    width: min(200px, 52vw);
    min-width: 170px;
  }

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

  .site-nav,
  body.is-scrolled .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    width: 100%;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(18, 25, 31, 0.14);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  body.is-scrolled .site-nav {
    inset: var(--header-sticky-h) 0 auto 0;
  }

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

  .nav-list {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 26px 0 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link,
  body.is-scrolled .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 68px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.14rem;
    letter-spacing: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-item.is-active > .nav-link {
    border-color: var(--line);
    background: transparent;
    color: var(--blue-dark);
  }

  .nav-item.is-active > .nav-link {
    border-left: 3px solid var(--blue);
    padding-left: 16px;
  }

  .nav-caret {
    width: 9px;
    height: 9px;
    margin: 0 5px 0 auto;
    transform: rotate(45deg);
  }

  .nav-item.has-children:focus-within > .nav-link .nav-caret,
  .nav-item.has-children:hover > .nav-link .nav-caret {
    transform: rotate(45deg);
  }

  .nav-item.is-open > .nav-link .nav-caret {
    transform: rotate(225deg);
  }

  .nav-item.nav-cta {
    margin: 22px 0 0;
  }

  .nav-item.nav-cta > .nav-link,
  body.is-scrolled .nav-item.nav-cta > .nav-link {
    justify-content: center;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    background: var(--blue);
    color: #fff;
  }

  .nav-item.nav-cta > .nav-link:hover,
  .nav-item.nav-cta > .nav-link:focus-visible {
    border-color: transparent;
    background: var(--blue-dark);
    color: #fff;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px 16px;
    padding: 2px 0 4px 16px;
    border: 0;
    border-left: 1px solid var(--blue);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.is-open > .submenu {
    display: block;
  }

  .submenu a {
    min-height: 48px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.98rem;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    padding-left: 12px;
    background: var(--surface-2);
    color: var(--blue-dark);
  }

  .submenu a::before {
    display: none;
  }

  body.is-scrolled .brand-row {
    padding: 10px 0 12px;
    min-height: var(--header-sticky-h);
  }

  body.is-scrolled .brand img {
    width: min(172px, 44vw);
    min-width: 146px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(200px, 52vw);
    min-width: 156px;
  }

  body.is-scrolled .brand img {
    width: min(172px, 44vw);
    min-width: 136px;
  }

  .nav-list {
    width: min(100% - 24px, var(--max));
  }
}

@media (max-width: 400px) {
  .menu-toggle.is-active::before {
    content: "";
  }

  .menu-toggle {
    gap: 8px;
    padding: 0 12px;
  }
}

/* Keep the header usable even on the narrowest supported phones.  The logo's
   desktop minimum width otherwise competes with the menu button and pushes
   the header beyond the viewport below 252px. */
@media (max-width: 280px) {
  .brand-row {
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: 100%;
    max-width: 145px;
    min-width: 0;
  }

  body.is-scrolled .brand img {
    width: 100%;
    max-width: 145px;
    min-width: 0;
  }

  .menu-toggle {
    flex: 0 0 48px;
  }
}

/* Burger navigation test: one consistent fullscreen experience on every viewport. */
.site-header {
  z-index: 80;
}

.topbar,
.brand-row {
  position: relative;
  z-index: 3;
}

.brand {
  position: relative;
  z-index: 4;
}

.menu-toggle {
  position: relative;
  z-index: 4;
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.menu-toggle::before {
  content: none;
}

.menu-toggle.is-active::before {
  content: none;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle.is-active {
  background: transparent;
  color: var(--blue);
  transform: none;
  box-shadow: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.menu-toggle span,
.menu-toggle span::before {
  position: relative;
  display: block;
  width: 31px;
  height: 4px;
  background: currentColor;
  transition: width 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), top 180ms ease, background-color 180ms ease;
}

.menu-toggle span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 40px;
  transform: translateX(-50%);
}

.menu-toggle span::after {
  content: none;
  display: none;
}

.menu-toggle.is-active span {
  width: 30px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-toggle.is-active span::before {
  top: 0;
  width: 30px;
  transform: translateX(-50%) rotate(90deg);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .menu-toggle:not(.is-active):hover span,
  .menu-toggle:not(.is-active):focus-visible span {
    transform: translateX(4px);
  }

  .menu-toggle:not(.is-active):hover span::before,
  .menu-toggle:not(.is-active):focus-visible span::before {
    transform: translateX(calc(-50% - 8px));
  }
}

.site-nav,
body.is-scrolled .site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* With inset: 0 the navigation already fills the viewport.  Using 100vw
     here also includes the vertical scrollbar gutter and creates a page-wide
     horizontal overflow whenever the document is taller than the viewport. */
  width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #f8fafb 0%, #eef3f6 100%);
  box-shadow: none;
  transform: translateY(-18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

body.nav-open {
  overflow: hidden;
}

.nav-list {
  position: relative;
  width: min(100% - 96px, var(--max));
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(154px, 18vh, 210px) 0 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 8vw, 120px);
  align-content: start;
  align-items: start;
  gap: 0 clamp(36px, 8vw, 120px);
}

.nav-item {
  border-bottom: 1px solid rgba(26, 31, 23, 0.16);
}

.nav-link,
body.is-scrolled .nav-link {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 20px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}

.nav-link::after {
  right: auto;
  bottom: -1px;
  width: 52px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.is-active > .nav-link {
  border-color: transparent;
  background: transparent;
  color: var(--blue-dark);
  transform: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-item.is-active > .nav-link::after {
  transform: scaleX(1);
}

.nav-caret {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 2px 4px 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-item.has-children:hover > .nav-link .nav-caret,
.nav-item.has-children:focus-within > .nav-link .nav-caret {
  background: transparent;
  color: inherit;
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-item.nav-contact > .nav-link,
body.is-scrolled .nav-item.nav-contact > .nav-link {
  color: var(--blue-dark);
}

body.nav-open .nav-item.is-active > .nav-link {
  padding-left: 0;
  border-left: 0;
}

body.nav-open .nav-item.has-children > .submenu {
  position: static;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0 0 20px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.nav-open .submenu a {
  min-height: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1rem;
}

body.nav-open .submenu a::before {
  display: none;
}

body.nav-open .submenu a:hover,
body.nav-open .submenu a:focus-visible {
  padding-left: 8px;
  background: transparent;
  color: var(--blue-dark);
}

@media (min-width: 1241px) {
  .nav-item.nav-references {
    position: relative;
  }

  body.nav-open .nav-item.nav-references > .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    border-bottom: 1px solid rgba(26, 31, 23, 0.16);
  }
}

@media (max-width: 1240px) {
  .nav-list {
    width: min(100% - 64px, var(--max));
    padding-top: 146px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  body.is-scrolled .nav-link {
    min-height: 64px;
    padding: 17px 0 15px;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  body.nav-open .nav-item.has-children > .submenu {
    display: none;
    padding: 2px 0 12px 18px;
  }

  body.nav-open .nav-item.is-open > .submenu {
    display: block;
  }

  body.nav-open .submenu a {
    min-height: 0;
    padding: 11px 0;
    font-size: 1rem;
  }

}

@media (max-width: 640px) {
  .nav-list {
    width: min(100% - 48px, var(--max));
    padding-top: 132px;
    padding-bottom: 48px;
  }

  .nav-link,
  body.is-scrolled .nav-link {
    min-height: 58px;
    padding: 15px 0 13px;
    font-size: clamp(1.2rem, 6.5vw, 1.65rem);
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-caret {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
}

/* Legal documents: clear hierarchy, readable line lengths and visible draft data. */
body[data-page="impressum"] .page-hero,
body[data-page="impressum"] .page-hero-content,
body[data-page="datenschutz"] .page-hero,
body[data-page="datenschutz"] .page-hero-content {
  min-height: 340px;
}

.legal-page-section {
  padding-top: 64px;
}

.legal-layout {
  width: min(100%, 920px);
  margin: 0 auto;
}

.legal-layout.has-toc {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-sticky-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-toc > strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.legal-toc li + li {
  margin-top: 8px;
}

.legal-toc a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.legal-toc a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.legal-document {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  overflow: visible;
}

.legal-copy {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-copy a {
  color: var(--blue-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-copy address {
  margin-top: 12px;
  color: var(--ink-soft);
  font-style: normal;
  overflow-wrap: anywhere;
}

.legal-copy address strong {
  color: var(--ink);
}

.legal-kicker {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-intro {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.12rem;
}

.legal-draft-notice {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #e7c86b;
  border-left: 4px solid #b77900;
  border-radius: var(--radius-sm);
  background: #fff8df;
  color: #654500;
}

.legal-section {
  padding-top: 30px;
  scroll-margin-top: calc(var(--header-sticky-h) + 28px);
}

.legal-section + .legal-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-section h3 {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.08rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-section h3 + p,
.legal-section p + address,
.legal-section address + p,
.legal-section ul + p {
  margin-top: 12px;
}

.legal-section ul {
  max-width: 78ch;
}

.legal-data-list {
  margin: 0;
}

.legal-data-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.legal-data-list > div:first-child {
  padding-top: 0;
}

.legal-data-list dt {
  color: var(--ink);
  font-weight: 700;
}

.legal-data-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-placeholder {
  display: block;
  padding: 14px 16px;
  border: 1px dashed #b77900;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #654500;
  overflow-wrap: anywhere;
}

.legal-basis,
.legal-objection {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: #eef6fb;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal-draft-notice {
  overflow-wrap: anywhere;
}

.legal-rights-list {
  margin-top: 14px;
}

.legal-version {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .legal-layout.has-toc {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }

  .legal-toc li + li {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="impressum"] .page-hero,
  body[data-page="impressum"] .page-hero-content,
  body[data-page="datenschutz"] .page-hero,
  body[data-page="datenschutz"] .page-hero-content {
    min-height: 420px;
  }

  .legal-page-section {
    padding-top: 40px;
  }

  .legal-document,
  .legal-toc {
    padding: 20px;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-data-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-section {
    padding-top: 24px;
  }

  .legal-section + .legal-section {
    margin-top: 24px;
  }

  .legal-draft-notice,
  .legal-basis,
  .legal-objection {
    padding: 16px;
  }
}

/* Progressive enhancement: bei deaktiviertem oder ausgefallenem JavaScript
   bleiben alle Navigationsziele erreichbar. Im normalen Betrieb greifen
   unverändert die bisherigen Menü-, Slider- und Pfeilregeln. */
body:not(.navigation-ready) .menu-toggle,
body:not(.slider-ready) .slider-controls,
body:not(.back-to-top-ready) .back-to-top {
  display: none;
}

body:not(.navigation-ready) .site-header {
  position: relative;
  top: auto;
}

body:not(.navigation-ready) .brand-row {
  flex-wrap: wrap;
}

body:not(.navigation-ready) .site-nav {
  position: static;
  flex: 1 0 100%;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  background: transparent;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body:not(.navigation-ready) .nav-list {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 12px 0;
}

body:not(.navigation-ready) .nav-link {
  min-height: 0;
  padding: 12px 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

body:not(.navigation-ready) .nav-caret {
  display: none;
}

body:not(.navigation-ready) .submenu {
  display: block;
  position: static;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 12px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body:not(.navigation-ready) .submenu a {
  padding: 8px 0;
  overflow-wrap: anywhere;
}

/* Below normal phone widths, let the compact contact bar wrap instead of
   allowing its two no-break labels to widen the document. */
@media (max-width: 240px) {
  .topbar .container {
    gap: 8px;
  }

  .topbar-claim,
  .topbar-phone {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topbar-compact {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Parent links remain navigable; the adjacent button controls their submenu. */
.nav-item.has-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.nav-item.has-children > .nav-link {
  min-width: 0;
}

.nav-submenu-toggle {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 52px;
  min-height: 64px;
  color: var(--ink);
  background: transparent;
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible,
.nav-item.is-active > .nav-submenu-toggle {
  color: var(--blue-dark);
}

.nav-submenu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.nav-submenu-toggle .nav-caret {
  margin: 2px 4px 0;
}

.nav-item.has-children:hover > .nav-submenu-toggle .nav-caret,
.nav-item.has-children:focus-within > .nav-submenu-toggle .nav-caret,
.nav-item.is-open > .nav-submenu-toggle .nav-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body:not(.navigation-ready) .nav-submenu-toggle {
  display: none;
}

@media (max-width: 1240px) {
  .nav-submenu-toggle {
    min-height: 64px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .nav-submenu-toggle {
    min-height: 58px;
  }
}
