:root {
  --color-bg: #001921;
  --color-heading: #ffffff;
  --color-text: #9ab2b2;
  --color-accent-magenta: #ff0bb4;
  --color-accent-turquoise: #27e1ff;
  --color-divider: #0b5e5e;
  --color-bg-section: #002428;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --space-section: 4rem;
  --space-section-content: 0.5rem;
  --space-group: 3rem;
  --space-item: 1.75rem;
  --space-component: 1.25rem;
  --section-icon-size: 120px;
  --section-content-indent: calc(var(--section-icon-size) + 2.5rem);
}

@media (max-width: 960px), ((orientation: landscape) and (max-height: 500px)) {
  :root {
    --space-section: 3rem;
    --space-section-content: 0.5rem;
    --space-group: 2.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  background: rgb(0, 25, 33);
}

img:not(.screenshot-marquee-img),
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent-turquoise);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.2;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0px);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-accent-turquoise);
  text-decoration: none;
}

.site-nav-home {
  display: none;
  align-self: flex-start;
  width: 100%;
  margin-bottom: 0.25rem;
  padding-bottom: var(--space-item);
  border-bottom: 1px solid var(--color-divider);
}

.site-nav-home:hover .logo-text {
  color: var(--color-accent-turquoise);
}

.lang-switch {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.lang-switch:hover {
  opacity: 1;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-heading);
  border-radius: 6px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.btn-download:hover {
  background-color: var(--color-heading);
  color: var(--color-bg);
  text-decoration: none;
}

@media (min-width: 769px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .logo {
    grid-column: 1;
  }

  .site-nav {
    grid-column: 2;
    justify-self: end;
    /* Eigene Compositing-Ebene: erzwingt Graustufen- statt Subpixel-Kantenglättung
       (verhindert farbige Ränder an heller Schrift auf dunklem Grund, v. a. Windows/ClearType). */
    will-change: transform;
  }
}

@media (min-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(260px, 30%) 1fr;
  }
}

.menu-toggle,
.menu-toggle-floating {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-toggle span,
.menu-toggle-floating span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-heading);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
.menu-toggle-floating[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2),
.menu-toggle-floating[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3),
.menu-toggle-floating[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle-floating {
  display: none;
}

.floating-nav-shell {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 110;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ── Hero ── */

.hero {
  padding: 0;
  background-color: var(--color-bg);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 12% 45%, rgba(39, 225, 255, 0.07), transparent 65%),
    radial-gradient(ellipse 55% 70% at 88% 35%, rgba(255, 11, 180, 0.06), transparent 60%),
    var(--color-bg);
}

.hero-banner-inner {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: clamp(294px, 36vh, 387px);
  padding: clamp(1.1rem, 2.25vw, 1.75rem) 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  z-index: 1;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.75vw, 1.3rem);
  color: var(--color-accent-turquoise);
  line-height: 1.3;
  margin: 0;
}

.hero-logo {
  width: min(100%, 260px);
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(255, 11, 180, 0.15));
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
}

.hero-media::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(100%, 640px);
  height: 85%;
  background: radial-gradient(
    ellipse at center,
    rgba(39, 225, 255, 0.1) 0%,
    rgba(255, 11, 180, 0.05) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(520px, 68vh);
  height: auto;
  object-fit: contain;
  object-position: right center;
  border-radius: 6px;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.45));
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--color-accent-turquoise);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(39, 225, 255, 0.25);
}

.btn-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(39, 225, 255, 0.35);
  text-decoration: none;
}

.btn-appstore svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-copy .btn-appstore {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  box-shadow: 0 2px 10px rgba(39, 225, 255, 0.18);
}

.hero-copy .btn-appstore svg {
  width: 12px;
  height: 12px;
}

.hero-copy .btn-appstore:hover {
  box-shadow: 0 3px 14px rgba(39, 225, 255, 0.25);
}

@media (min-width: 1100px) {
  .hero-banner-inner {
    grid-template-columns: minmax(260px, 30%) 1fr;
  }

  .hero-media img {
    width: min(105%, 780px);
  }
}

/* ── Features Bar ── */

.features-bar {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.features-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  min-width: 0;
}

.feature-sep {
  flex-shrink: 0;
  width: 1px;
  height: 3.5rem;
  background-color: var(--color-divider);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-heading);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .feature-desc br {
    display: none;
  }

  .features-grid {
    padding: 1.5rem 0;
  }

  .feature-sep {
    height: 2.75rem;
  }
}

/* ── Content Rows ── */

.content-section {
  background-color: var(--color-bg-section);
  position: relative;
  overflow: hidden;
}

.content-section::before,
.content-section::after {
  content: '';
  position: absolute;
  width: clamp(200px, 32vw, 340px);
  height: clamp(200px, 32vw, 340px);
  background-image: url('../images/icons/web/cube.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.content-section::before {
  top: 6%;
  left: 2%;
  transform: rotate(-18deg);
}

.content-section::after {
  bottom: 4%;
  right: 1%;
  transform: rotate(24deg);
}

.content-rows {
  position: relative;
  z-index: 1;
}

.content-section > .content-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-group);
  padding-block: var(--space-section);
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 0;
}

.content-row-body {
  border-left: 1px solid var(--color-divider);
  padding-left: 2.5rem;
}

.content-row h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.content-row-body p + p {
  margin-top: 1rem;
}

.content-row-body ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.content-row-body li + li {
  margin-top: 0.5rem;
}

.content-row-body ul + p {
  margin-top: 1rem;
}

.content-row .highlight-link {
  color: var(--color-accent-turquoise);
  font-family: var(--font-heading);
}

/* ── Section Headers ── */

.section-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--color-divider);
  display: block;
  object-fit: contain;
}

/* ── Icon hierarchy ── */

.icon-section {
  width: var(--section-icon-size);
  height: var(--section-icon-size);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(39, 225, 255, 0.12));
}

.icon-feature {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-feature img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.doc-section-header {
  display: grid;
  grid-template-columns:
    var(--section-icon-size)
    minmax(2.5rem, 1fr)
    minmax(0, auto)
    minmax(2.5rem, 1fr);
  align-items: center;
  column-gap: var(--space-component);
  min-height: var(--section-icon-size);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section-content);
}

.doc-section-header .icon-section {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.doc-section-header-line-left {
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  background-color: var(--color-divider);
}

.doc-section-header h2 {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  max-width: 28rem;
}

.doc-section-header-line-right {
  grid-column: 4;
  grid-row: 1;
  height: 1px;
  background-color: var(--color-divider);
}

.doc-section-header h2::before,
.doc-section-header h2::after {
  display: none;
}

.section-header:not(.doc-section-header) h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
  padding: 0 3rem;
}

.section-header:not(.doc-section-header) h2::before,
.section-header:not(.doc-section-header) h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 1px;
  background-color: var(--color-divider);
}

.section-header:not(.doc-section-header) h2::before {
  right: 100%;
}

.section-header:not(.doc-section-header) h2::after {
  left: 100%;
}

.section-header-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  margin-top: 2rem;
}

/* ── Tutorial Grid ── */

.tutorial-select {
  text-align: center;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 1rem;
  max-width: 46rem;
  margin-inline: auto;
}

.tutorial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-heading);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s;
}

.tutorial-item:hover:not(:disabled) {
  transform: scale(1.04);
}

.tutorial-item:focus-visible {
  outline: 2px solid var(--color-accent-turquoise);
  outline-offset: 4px;
  border-radius: 4px;
}

.tutorial-item.is-active .tutorial-icon {
  box-shadow: 0 0 0 3px var(--color-accent-magenta);
}

.tutorial-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tutorial-icon {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #3de8ff 0%, #1a8fa8 45%, #0a3d4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}

.tutorial-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tutorial-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.tutorial-player {
  margin-top: 3.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.tutorial-player[hidden] {
  display: none;
}

.tutorial-player-title {
  color: var(--color-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.tutorial-player video {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  background-color: #000;
}

@media (max-width: 900px) {
  .tutorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1rem;
  }
}

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

  .tutorial-icon {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.85rem;
  }

  .tutorial-label {
    font-size: 0.8rem;
  }
}

/* ── Screenshot marquee ── */

.screenshot-marquee {
  --marquee-thumb-height: 13rem;
  --marquee-thumb-width: 23.111rem;
  padding: var(--space-group) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background:
    linear-gradient(180deg, rgba(39, 225, 255, 0.03) 0%, transparent 40%, transparent 60%, rgba(255, 11, 180, 0.03) 100%),
    var(--color-bg);
  overflow: hidden;
}

.screenshot-marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  pointer-events: auto;
}

.screenshot-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 0;
  pointer-events: auto;
  animation: screenshot-marquee-scroll 50s linear infinite;
}

.screenshot-marquee-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0 0.625rem;
  margin: 0;
  list-style: none;
  min-width: 0;
}

.screenshot-marquee-group li {
  flex: 0 0 var(--marquee-thumb-width);
  width: var(--marquee-thumb-width);
  height: var(--marquee-thumb-height);
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-divider);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: zoom-in;
}

.screenshot-marquee-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.screenshot-marquee-trigger:focus-visible {
  outline: 2px solid var(--color-accent-turquoise);
  outline-offset: 2px;
}

.screenshot-marquee-img,
.screenshot-marquee-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.screenshot-marquee.is-lightbox-open .screenshot-marquee-track {
  animation-play-state: paused;
}

.screenshot-marquee:hover .screenshot-marquee-track {
  animation-play-state: paused;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  margin: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
  width: 100vw;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.screenshot-lightbox::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 120vmax;
  height: 120vmax;
  transform: translate(-50%, -50%);
  background: rgb(0, 25, 33);
  pointer-events: none;
}

.screenshot-lightbox[hidden] {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .screenshot-lightbox::before {
    background: rgba(0, 25, 33, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.screenshot-lightbox-img,
.screenshot-lightbox-video {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--color-divider);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  cursor: default;
}

.screenshot-lightbox-video {
  background-color: #000;
}

.screenshot-lightbox-img {
  cursor: zoom-out;
}

.screenshot-lightbox-img[hidden],
.screenshot-lightbox-video[hidden] {
  display: none;
}

/*
 * iOS baut den sichtbaren Viewport beim Drehen in mehreren Schritten neu auf.
 * Der Schatten deckt den Übergangsbereich ab; der Seiteninhalt darunter wird
 * ausgeblendet. Die Lightbox selbst bleibt viewportgenau, damit nichts croppt.
 */
@media (hover: none), (pointer: coarse) {
  body.lightbox-open > .site-header,
  body.lightbox-open > main,
  body.lightbox-open > .site-footer,
  body.lightbox-open > .floating-nav-shell {
    visibility: hidden;
  }

  .screenshot-lightbox {
    background: rgb(0, 25, 33);
    box-shadow: 0 0 0 100vmax rgb(0, 25, 33);
  }

  .screenshot-lightbox::before {
    display: none;
  }
}

@media (orientation: landscape) and (hover: none),
  (orientation: landscape) and (pointer: coarse) {
  .screenshot-lightbox {
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
  }
}

@keyframes screenshot-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .screenshot-marquee {
    --marquee-thumb-height: 9rem;
    --marquee-thumb-width: 16rem;
  }

  .screenshot-marquee-track {
    animation-duration: 35s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: thin;
    scrollbar-color: var(--color-divider) transparent;
  }

  .screenshot-marquee-track {
    animation: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .screenshot-marquee-viewport {
    pointer-events: auto;
  }

  .screenshot-marquee-track {
    animation-play-state: running;
  }

  .screenshot-marquee.is-touching .screenshot-marquee-track {
    animation-play-state: paused;
  }
}

/* ── Documentation ── */

.section-body {
  padding-bottom: 0;
}

.section-body--indented {
  padding-left: var(--section-content-indent);
}

@media (min-width: 601px) {
  .section-body--with-intro {
    margin-top: -1.5rem;
  }
}

#best-practices .section-body,
#lizenzen .section-body {
  padding-bottom: 1.5rem;
}

#kontakt .section-body {
  padding-bottom: var(--space-section);
}

.section-stack,
.doc-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-group);
}

#best-practices .doc-group-body ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

#best-practices .doc-group-body li + li {
  margin-top: 0.35rem;
}

#best-practices .doc-group,
#best-practices .doc-group-body {
  min-width: 0;
}

.doc-group-body p + p {
  margin-top: 1rem;
}

#best-practices .bp-table-wrap {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  contain: inline-size;
}

#best-practices .bp-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

#best-practices .bp-table th,
#best-practices .bp-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-divider);
  text-align: left;
  vertical-align: top;
}

#best-practices .bp-table thead th {
  background: rgba(11, 94, 94, 0.3);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#best-practices .bp-table tbody th {
  color: var(--color-heading);
  font-weight: 500;
  white-space: nowrap;
}

#best-practices .bp-table tbody tr:nth-child(even) td,
#best-practices .bp-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(0, 36, 40, 0.35);
}

#best-practices .bp-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--color-accent-turquoise);
  background: rgba(11, 94, 94, 0.15);
  font-size: 0.875rem;
  line-height: 1.6;
}

.doc-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-item);
}

.doc-group-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-heading);
  padding-bottom: 0;
  margin: 0;
}

.doc-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 0;
  align-items: start;
}

.doc-item + .doc-item::before {
  content: '';
  position: absolute;
  top: calc(var(--space-item) / -2);
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-divider);
}

.doc-group-body {
  min-width: 0;
}

#best-practices .doc-groups > .doc-group {
  position: relative;
}

#best-practices .doc-groups > .doc-group + .doc-group::before {
  content: '';
  position: absolute;
  top: calc(var(--space-group) / -2);
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-divider);
}

#best-practices .doc-group:has(.doc-group-body > .bp-table-wrap:last-child)
  + .doc-group::before {
  display: none;
}

.doc-item-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-item-body h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.doc-item-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-item-body p + p,
.doc-item-body ul + p {
  margin-top: 0.75rem;
}

.doc-item-body ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-item-body li + li {
  margin-top: 0.35rem;
}

.doc-item-body ul ul {
  margin-top: 0.35rem;
}

.doc-item-body .format-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.85;
}

#best-practices .doc-group-body h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

#best-practices .doc-group-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--color-accent-turquoise);
}

.doc-subitems {
  display: flex;
  flex-direction: column;
  gap: var(--space-component);
  margin-top: var(--space-item);
}

.doc-subitem {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 0;
  align-items: start;
}

.doc-subitem + .doc-subitem::before {
  content: '';
  position: absolute;
  top: calc(var(--space-component) / -2);
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-divider);
}

.doc-subicon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-subicon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.doc-subitem h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-subitem p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-subitem p + p {
  margin-top: 0.75rem;
}

.doc-subitem ul {
  margin-top: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-subitem li + li {
  margin-top: 0.35rem;
}

@media (max-width: 600px) {
  :root {
    --section-icon-size: 96px;
    --section-content-indent: 0px;
  }

  .icon-section {
    width: var(--section-icon-size);
    height: var(--section-icon-size);
  }

  .doc-section-header {
    display: block;
    min-height: auto;
    padding-bottom: var(--space-section-content);
  }

  .doc-section-header .icon-section {
    margin-inline: auto;
  }

  .doc-section-header-line-left,
  .doc-section-header-line-right {
    display: none;
  }

  .doc-section-header h2 {
    display: block;
    width: 100%;
    max-width: none;
    grid-column: auto;
    grid-row: auto;
    text-align: center;
    padding: var(--space-component) 0 0;
    white-space: normal;
  }

  .icon-feature,
  .icon-feature img {
    width: 44px;
    height: 44px;
  }

  .doc-subicon,
  .doc-subicon img {
    width: 36px;
    height: 36px;
  }

  .doc-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .doc-subitem {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}


.licenses-section {
  background-color: var(--color-bg-section);
}

.licenses-section .section-body--with-intro {
  margin-top: 0;
}

.licenses-section .doc-section-header {
  padding-bottom: var(--space-item);
}

.licenses-section .doc-intro {
  margin-bottom: var(--space-item);
}

@media (max-width: 600px) {
  .licenses-section .doc-section-header {
    padding-bottom: var(--space-component);
  }

  .licenses-section .doc-section-header h2 {
    padding-bottom: var(--space-component);
  }
}

.licenses-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-item);
}

.licenses-list li {
  padding: 0;
}

.licenses-list a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-heading);
  text-decoration: none;
}

.licenses-list a:hover {
  color: var(--color-accent-turquoise);
  text-decoration: underline;
}

.license-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.license-meta a {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.licenses-section .section-body {
  padding-bottom: 1.5rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-group);
}

.contact-form {
  max-width: 36rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}

.contact-form .field {
  margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-turquoise);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background-color: var(--color-accent-turquoise);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .field.has-error input,
.contact-form .field.has-error textarea {
  border-color: var(--color-accent-magenta);
}

.contact-form__status {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-form__status--success {
  color: var(--color-accent-turquoise);
}

.contact-form__status--error {
  color: var(--color-accent-magenta);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: 2rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-copy {
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-turquoise);
  text-decoration: underline;
}

.datenschutz-section::before,
.datenschutz-section::after {
  background-image: url('../images/icons/web/datenschutz.svg');
}

.legal-page {
  padding: 4rem 0 5rem;
}

.legal-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  padding: 3rem 0 0.5rem;
  margin: 0;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  margin-top: 0.75rem;
  max-width: 52rem;
}

.legal-page p:first-of-type {
  margin-top: 0;
}

.legal-address {
  margin-top: 0;
  line-height: 1.7;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-banner-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.1rem 0 var(--space-item);
    gap: 2rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-logo {
    width: min(100%, 220px);
  }

  .hero-media {
    justify-content: center;
    margin-right: 0;
    min-height: auto;
  }

  .hero-media img {
    width: min(100%, 520px);
    max-height: none;
    object-position: center;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .feature-item {
    flex: none;
  }

  .feature-sep {
    display: none;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-row-body {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 960px), ((orientation: landscape) and (max-height: 500px)) {
  .site-header {
    position: relative;
    top: auto;
  }

  body.is-header-offscreen .floating-nav-shell {
    display: block;
  }

  .menu-toggle-floating {
    display: flex;
    position: absolute;
    top: calc(0.5rem + env(safe-area-inset-top, 0px));
    right: calc(0.5rem + env(safe-area-inset-right, 0px));
    margin: 0;
    background-color: rgba(0, 25, 33, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  body.is-header-offscreen .menu-toggle-floating {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding:
      calc(3.5rem + env(safe-area-inset-top, 0px))
      max(2rem, env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(2rem, env(safe-area-inset-left, 0px));
    gap: 1.5rem;
    background-color: var(--color-bg);
    transform: translateX(0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .site-nav-home {
    display: flex;
  }

  body.nav-open .site-nav .btn-download {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .header-inner {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: flex-start;
    padding:
      calc(4rem + env(safe-area-inset-top, 0px))
      max(2rem, env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(2rem, env(safe-area-inset-left, 0px));
    gap: 1.5rem;
    background-color: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav.is-open .site-nav-home {
    display: flex;
  }

  .site-nav .btn-download {
    margin-top: 1rem;
  }
}

@media ((orientation: landscape) and (max-height: 500px)) {
  .menu-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-left: auto;
    transform: none;
    overflow: visible;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .site-nav .btn-download {
    margin-top: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
}

@supports (-webkit-touch-callout: none) {
  @media ((orientation: landscape) and (max-height: 500px)) {
    .site-nav {
      gap: 0.5rem;
    }

    .site-nav a {
      font-size: 0.8rem;
    }

    .site-nav .btn-download {
      padding: 0.3rem 0.65rem;
      font-size: 0.8rem;
    }
  }
}

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

  .feature-item {
    flex: none;
    width: 100%;
  }

  .feature-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    align-self: flex-end;
  }
}
