:root {
  --color-background: #f5f5f4;
  --color-surface: #ffffff;
  --color-text: #383b3f;
  --color-muted: #6a6d70;
  --color-line: #e2e2df;
  --color-accent: #a60f1b;
  --color-accent-dark: #800a13;
  --color-dark: #383b3f;
  --header-height: 80px;
  --page-width: 1240px;
  --shadow-soft: 0 20px 60px rgba(56, 59, 63, 0.14);
  font-family:
    Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(166, 15, 27, 0.12),
      transparent 32rem
    ),
    var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-dark);
  color: #ffffff;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(219, 229, 232, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 10px 24px rgba(128, 10, 19, 0.22);
}

.brand-name {
  font-size: 18px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--color-accent);
}

.desktop-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 10px;
  color: #40535b;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(166, 15, 27, 0.08);
  color: var(--color-accent-dark);
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.solutions-menu {
  position: relative;
}

.solutions-menu summary {
  list-style: none;
}

.solutions-menu summary::-webkit-details-marker {
  display: none;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 160ms ease;
}

.solutions-menu[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.solutions-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.solutions-menu[open] .solutions-panel {
  transform-origin: top left;
  animation: solutions-dropdown-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes solutions-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.solutions-menu[open] .solutions-panel a {
  animation: solutions-link-in 360ms ease both;
}

.solutions-menu[open] .solutions-panel a:nth-child(2) {
  animation-delay: 40ms;
}

.solutions-menu[open] .solutions-panel a:nth-child(3) {
  animation-delay: 80ms;
}

.solutions-menu[open] .solutions-panel a:nth-child(4) {
  animation-delay: 120ms;
}

.solutions-menu[open] .solutions-panel a:nth-child(5) {
  animation-delay: 160ms;
}

.solutions-menu[open] .solutions-panel a:nth-child(6) {
  animation-delay: 200ms;
}

.solutions-menu[open] .solutions-panel a:nth-child(7) {
  animation-delay: 240ms;
}

@keyframes solutions-link-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.solutions-panel::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
  content: "";
}

.solutions-panel a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: #40535b;
  font-size: 14px;
  font-weight: 560;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.solutions-panel a:hover,
.solutions-panel a:focus-visible {
  background: rgba(166, 15, 27, 0.08);
  color: var(--color-accent-dark);
  transform: translateX(3px);
}

.solutions-panel .solutions-overview {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-line);
  border-radius: 10px 10px 4px 4px;
  color: var(--color-text);
  font-weight: 750;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
}

.language-switcher span[aria-current="page"] {
  color: var(--color-accent-dark);
}

.language-switcher span[aria-hidden="true"] {
  color: #a6b4b9;
}

.language-switcher a {
  color: var(--color-muted);
  transition: color 160ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--color-accent-dark);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--color-dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 10px 24px rgba(16, 36, 44, 0.18);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 14px 30px rgba(128, 10, 19, 0.24);
  transform: translateY(-2px);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(166, 15, 27, 0.35);
  outline-offset: 3px;
}

#main-content {
  min-height: calc(100vh - var(--header-height));
}

.page-intro {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) 0;
}

.page-intro-label {
  margin: 0 0 18px;
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-intro-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: clamp(18px, 2vw, 22px);
}

@media (max-width: 1080px) {
  .desktop-navigation {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    width: min(calc(100% - 28px), var(--page-width));
    gap: 14px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-actions {
    margin-left: auto;
  }

  .contact-button {
    display: none;
  }

  .page-intro {
    width: min(calc(100% - 28px), var(--page-width));
    padding: 72px 0;
  }

  .route-targets {
  width: min(calc(100% - 40px), var(--page-width));
  margin: -60px auto 100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.route-targets article {
  min-height: 180px;
  padding: 30px;
  scroll-margin-top: calc(var(--header-height) + 24px);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(56, 59, 63, 0.08);
}

.route-targets h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.route-targets article:target {
  border-color: var(--color-accent);
  box-shadow: 0 18px 50px rgba(166, 15, 27, 0.16);
}

@media (max-width: 700px) {
  .route-targets {
    width: min(calc(100% - 28px), var(--page-width));
    margin: -30px auto 72px;
    grid-template-columns: 1fr;
  }

  .route-targets article {
    min-height: 140px;
    padding: 24px;
  }
}
}
.brand-logo {
  width: clamp(210px, 22vw, 285px);
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 205px;
  }
}

.hero {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 22px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-text {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--color-muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-button-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(166, 15, 27, 0.22);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 18px 38px rgba(128, 10, 19, 0.28);
  transform: translateY(-2px);
}

.hero-button-primary span:last-child {
  font-size: 20px;
  transition: transform 180ms ease;
}

.hero-button-primary:hover span:last-child {
  transform: translateX(4px);
}

.hero-button-secondary {
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
  border-color: var(--color-text);
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-competencies {
  margin: 38px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.hero-competencies li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-competencies li:not(:first-child)::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.hero-visual {
  position: relative;
  min-height: 540px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(166, 15, 27, 0.5),
      transparent 38%
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(145deg, #3b3d41, #1f2124);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(56, 59, 63, 0.24);
}

.hero-visual-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-visual-heading p {
  max-width: 240px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual-heading > span {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 800;
}

.hero-visual-title {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: clamp(60px, 8vw, 105px) 0 50px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-visual-list {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-list li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-visual-list li > span {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
}

.hero-visual-list strong {
  font-size: 14px;
  font-weight: 620;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }
}

@media (max-width: 700px) {
  .hero {
    width: min(calc(100% - 28px), var(--page-width));
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .hero-competencies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-competencies li:not(:first-child)::before {
    display: none;
  }

  .hero-visual {
    min-height: 450px;
    border-radius: 24px;
  }
}

.scroll-reveal {
  transform: translateY(24px);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Hero-Liste: direkte Links zu den Unterseiten */
.hero-visual-list li {
  display: block;
  padding: 0;
}

.hero-visual-list li > a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
}

.hero-visual-list li > a strong {
  transition: color 160ms ease, transform 160ms ease;
}

.hero-visual-list li > a:hover strong,
.hero-visual-list li > a:focus-visible strong {
  color: #ff646e;
  transform: translateX(4px);
}

.hero-visual-list li > a:focus-visible {
  outline: 2px solid #ff646e;
  outline-offset: 2px;
}

/* Nachhaltigkeit */
.goal-list {
  display: grid;
  gap: 1.4rem;
  margin: 1.2rem 0 0;
}

.goal {
  padding-left: 1.25rem;
  border-left: 3px solid #b5121b;
}

.goal h3 {
  margin: 0 0 .35rem;
  font-size: 1.08rem;
  color: #34383b;
}

.goal p {
  margin: 0;
  color: #656a6e;
}

/* 2x2-Bildraster in Lösungs-Abschnitten */
.solution-detail__section figure.is-grid[data-astro-cid-mxrjhzco] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  background: #fff;
}

.solution-detail__section figure.is-grid[data-astro-cid-mxrjhzco] img[data-astro-cid-mxrjhzco] {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Kompakter Ablauf (Besuchermanagement) */
.visit-steps[data-astro-cid-mxrjhzco] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #34383b1f;
}

.visit-step[data-astro-cid-mxrjhzco] {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.visit-step__num[data-astro-cid-mxrjhzco] {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: .3rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  background: #b5121b;
  border-radius: 999px;
}

.visit-step[data-astro-cid-mxrjhzco] strong {
  font-size: .85rem;
  line-height: 1.25;
  color: #34383b;
}

.visit-step[data-astro-cid-mxrjhzco] small {
  font-size: .74rem;
  line-height: 1.35;
  color: #656a6e;
}

@media (max-width: 560px) {
  .visit-steps[data-astro-cid-mxrjhzco] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kontaktformular: Honeypot, Statusmeldungen, Datenschutz-Link */
.contact-form-card__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form-card__status.is-error[data-form-status] {
  color: #ffd6d9;
  background: #e12a341f;
  border-color: #ff667066;
}

.contact-form-card__status.is-pending[data-form-status] {
  color: #e6e8ea;
  background: #ffffff14;
  border-color: #ffffff33;
}

.contact-form-card__checkbox a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.contact-form-card button[type="submit"]:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
