/* ===================================
   LAYOUT
   Container, Sektionsrhythmus, Hilfsklassen
   =================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Zwei helle Sektionen in Folge: zweite leicht absetzen */
.section[data-ground="light"] + .section[data-ground="light"] {
  padding-top: calc(var(--section-y) * 0.55);
}

/* Körnung für dunkle Flächen gegen Banding */
[data-ground="dark"] {
  position: relative;
  isolation: isolate;
}

[data-ground="dark"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pfeil-Link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-weight: 600;
  color: var(--accent-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg {
    transform: translateX(4px);
  }
}

/* Signalpunkt (Hero-Readout und Formular) */
.signal-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--signal-halt);
  box-shadow: 0 0 0 3px rgba(255, 75, 62, 0.18), 0 2px 10px 1px rgba(255, 75, 62, 0.55);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.is-fahrt .signal-dot,
[data-state="fahrt"] .signal-dot {
  background-color: var(--signal-fahrt);
  box-shadow: 0 0 0 3px rgba(62, 226, 138, 0.18), 0 2px 10px 1px rgba(62, 226, 138, 0.55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Scroll-Sperre bei Menü / Modal */
body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* <picture> als Block, damit Prozent-Höhen der Bilder greifen */
figure picture {
  display: block;
  height: 100%;
}

.photo-note {
  max-width: 76ch;
  margin-top: var(--s-4);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.photo-note a,
.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.photo-credit {
  position: absolute;
  inset: auto var(--s-3) var(--s-3);
  z-index: 2;
  padding: var(--s-2) var(--s-3);
  color: var(--ink-light);
  background: rgba(11, 12, 14, 0.82);
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  line-height: 1.5;
}
