: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: 120px;
  --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: flex-end;
  gap: 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-row {
  min-height: calc(var(--header-h) - 34px);
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  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(300px, 40vw);
  min-width: 184px;
  transition: width 220ms ease, min-width 220ms ease, transform 220ms ease;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

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

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

.site-nav {
  margin-left: auto;
}

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

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

.nav-item {
  position: relative;
}

.nav-link,
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
  transition: min-height 220ms ease, padding 220ms ease, font-size 220ms 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 .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,
body.is-scrolled .nav-parent {
  min-height: 40px;
  padding: 0 8px;
  font-size: 0.82rem;
}

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

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

.nav-item.has-children > .nav-parent::after {
  content: "▾";
  font-size: 0.78em;
  transform: translateY(-1px);
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  padding: 8px;
  margin-top: 6px;
  list-style: none;
  background: rgba(14, 22, 28, 0.96);
  color: #fff;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 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;
  padding: 8px 10px;
  border-radius: 4px;
  color: inherit;
  font-size: 0.94rem;
  text-transform: none;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

.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 blockquote {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

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

.footer {
  position: relative;
  color: #fff;
  background: #111a20 url("fileadmin/images/footer_neu.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-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;
}

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

.contact-form {
  margin-top: 20px;
}

.contact-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
}

.contact-form legend {
  padding: 0 8px;
  font-weight: 700;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

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

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

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

@media (max-width: 920px) {
  :root {
    --header-h: 96px;
    --header-h-compact: 80px;
    --header-sticky-h: 64px;
    --topbar-h: 30px;
  }

  .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(220px, 54vw);
    min-width: 144px;
  }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 180ms ease;
  }

  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: 14px 0 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link,
  .nav-parent {
    justify-content: space-between;
    width: 100%;
  }

  body.is-scrolled .nav-link,
  body.is-scrolled .nav-parent {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0 0 10px 16px;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    border: 0;
  }

  .submenu a {
    padding: 7px 0;
  }

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

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

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

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