/* =====================================================================
   ULM DRIVE – datenschutz.html
   Eine Datei, keine externen Abhängigkeiten, keine Google Fonts.
   Aufbau: 1) Basis + Nav (wie index.html)  2) Seiten-CSS (nur diese Seite)  3) Footer + Einblenden (wie index.html)
   Keine Styles auf dem body-Tag: alles hängt an :root und am Wrapper .ud
   ===================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --bg-alt: #0b0c0e; /* jeder zweite Abschnitt */
  --bg-foot: #060607; /* Footer */
  --panel-alt: #141518; /* Karten in hellen Abschnitten */
  --field-alt: #0c0d0f; /* Eingabefelder in hellen Abschnitten */
  --panel: #0d0e10;
  --panel-2: #17181b;
  --text: #eef0f2;
  --muted: #a3a9b2;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.3);
  --metal: linear-gradient(
    105deg,
    #ffffff 0%,
    #aab0b9 17%,
    #f5f6f8 36%,
    #868c95 56%,
    #e7e9ed 76%,
    #b2b8c0 100%
  );
  --btn-bg: linear-gradient(
    180deg,
    #ffffff 0%,
    #d5d9de 46%,
    #a4aab2 54%,
    #e9ebee 100%
  );
  --btn-fg: #050506;
  --field: #131417;
  --field-line: rgba(255, 255, 255, 0.17);
  --focus: #ffffff;
  --glow: rgba(255, 255, 255, 0.1);
  --err: #ff9a9a;
  --nav-h: 72px;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 11vw, 136px);
  --max: 1240px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef0f2;
  --bg-alt: #e4e7eb;
  --bg-foot: #dde1e6;
  --panel-alt: #ffffff;
  --field-alt: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #e6e8eb;
  --text: #16181b;
  --muted: #555b64;
  --line: rgba(0, 0, 0, 0.13);
  --line-2: rgba(0, 0, 0, 0.34);
  --metal: linear-gradient(
    105deg,
    #08090a 0%,
    #5b616a 19%,
    #0f1012 38%,
    #737982 58%,
    #15161a 78%,
    #474c54 100%
  );
  --btn-bg: linear-gradient(
    180deg,
    #383b40 0%,
    #1b1c1f 46%,
    #000000 54%,
    #2c2e32 100%
  );
  --btn-fg: #ffffff;
  --field: #f5f6f7;
  --field-line: rgba(0, 0, 0, 0.2);
  --focus: #000000;
  --glow: rgba(0, 0, 0, 0.06);
  --err: #b3261e;
  color-scheme: light;
}

html {
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

.ud {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
.ud a {
  color: inherit;
}
.ud ul,
.ud ol {
  list-style: none;
}
.ud button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.ud input {
  font: inherit;
  color: inherit;
}
.ud svg {
  display: block;
}
.ud :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.ud-wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.ud-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.ud-skip:focus {
  top: 12px;
}
.ud-h2 {
  font-size: clamp(1.85rem, 6.2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
.ud-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 60ch;
}
.ud-metal {
  background: var(--metal);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .ud-metal {
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.ud .ud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.ud .ud-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.ud .ud-btn-solid {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 28px -14px var(--line-2);
}
.ud .ud-btn-solid:hover {
  filter: brightness(1.08);
}
.ud .ud-btn-line {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.ud .ud-btn-line:hover {
  border-color: var(--text);
}
.ud .ud-btn:active {
  transform: scale(0.98);
}

/* ---------- BILD-PLATZHALTER ----------
   Jede .ud-slot zeigt den erwarteten Dateinamen, bis die Bilddatei im Ordner img/ liegt.
   Bild einsetzen = Datei mit genau diesem Namen hochladen, am HTML muss nichts geändert werden. */
.ud-slot {
  position: relative;
  overflow: hidden;
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 15px,
    var(--line) 15px 16px
  );
  border: 1px solid var(--line);
}
.ud-slot::before {
  content: "Bild: " attr(data-file) "\A" attr(data-size);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}
.ud-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- LOGO ---------- */
.ud-logo {
  fill: url(#ud-silver);
  display: block;
}
:root[data-theme="light"] .ud-logo {
  fill: url(#ud-chrome);
}

/* ---------- NAV ---------- */
html.ud-lock {
  overflow: hidden;
}
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid,
.nav.is-open {
  background: var(--bg);
  border-bottom-color: var(--line);
}
@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  .nav.is-solid:not(.is-open) {
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
.nav-bar {
  height: var(--nav-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}
.nav-logo .ud-logo {
  height: 46px;
  width: 97px;
}
.nav-links {
  display: none;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.ud .nav-theme {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease;
}
.ud .nav-theme:hover {
  border-color: var(--line-2);
}
.nav-theme svg {
  width: 18px;
  height: 18px;
  grid-area: 1/1;
  transition:
    opacity 0.25s ease,
    transform 0.45s ease;
}
.nav-theme .nav-ico-moon {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}
:root[data-theme="light"] .nav-theme .nav-ico-sun {
  opacity: 0;
  transform: rotate(60deg) scale(0.6);
}
:root[data-theme="light"] .nav-theme .nav-ico-moon {
  opacity: 1;
  transform: none;
}
.nav-lang {
  display: flex;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ud .nav-lang button {
  min-width: 36px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.ud .nav-lang button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.ud .nav-burger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.nav-burger span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.nav-burger span:first-child {
  transform: translateY(-3.5px);
}
.nav-burger span:last-child {
  transform: translateY(3.5px);
}
.nav.is-open .nav-burger span:first-child {
  transform: rotate(45deg);
}
.nav.is-open .nav-burger span:last-child {
  transform: rotate(-45deg);
}

/* Beim Laden fallen Logo, Links und Schalter nacheinander von oben ein */
@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ud-first .nav-logo,
.ud-first .nav-links a,
.ud-first .nav-tools > * {
  animation: nav-drop 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nav-logo {
  animation-delay: 0.05s;
}
.nav-links a:nth-child(1) {
  animation-delay: 0.15s;
}
.nav-links a:nth-child(2) {
  animation-delay: 0.22s;
}
.nav-links a:nth-child(3) {
  animation-delay: 0.29s;
}
.nav-links a:nth-child(4) {
  animation-delay: 0.36s;
}
.nav-tools > *:nth-child(1) {
  animation-delay: 0.44s;
}
.nav-tools > *:nth-child(2) {
  animation-delay: 0.51s;
}
.nav-tools > *:nth-child(3) {
  animation-delay: 0.58s;
}

/* Handy: Menü fährt von rechts nach links herein */
.nav-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(86vw, 360px);
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 8px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
  transform: translateX(100%);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.4s;
}
.nav.is-open .nav-drawer {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-drawer-link[aria-current="page"] {
  color: var(--muted);
}
.nav.is-open .nav-drawer-link {
  opacity: 1;
  transform: translateX(0);
}
.nav.is-open .nav-drawer-link:nth-child(1) {
  transition-delay: 0.1s;
}
.nav.is-open .nav-drawer-link:nth-child(2) {
  transition-delay: 0.16s;
}
.nav.is-open .nav-drawer-link:nth-child(3) {
  transition-delay: 0.22s;
}
.nav.is-open .nav-drawer-link:nth-child(4) {
  transition-delay: 0.28s;
}
.nav-drawer-foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 14px;
}
.nav-drawer-foot .ud-btn {
  width: 100%;
}
.nav-drawer-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.nav-shade {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}
.nav-shade.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}
/* Handy/Tablet: Hell/Dunkel und Sprache sitzen im Menü, oben bleiben nur Logo und Menü-Knopf */
@media (max-width: 959px) {
  .ud .nav-tools > .nav-theme,
  .ud .nav-tools > .nav-lang {
    display: none;
  }
  .nav-logo .ud-logo {
    height: 50px;
    width: 105px;
  }
}
.nav-drawer-tools {
  margin-top: 4px;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav.is-open .nav-drawer-tools {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.34s;
}
.nav-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 379px) {
  .nav-bar {
    gap: 8px;
  }
  .nav-logo .ud-logo {
    height: 46px;
    width: 97px;
  }
  .nav-tools {
    gap: 6px;
  }
  .ud .nav-theme,
  .ud .nav-burger {
    width: 40px;
    height: 40px;
  }
  .nav-lang {
    height: 40px;
  }
  .ud .nav-lang button {
    min-width: 32px;
    padding: 0 7px;
  }
}
@media (min-width: 960px) {
  .nav-bar {
    grid-template-columns: 1fr auto 1fr;
  }
  .nav-logo .ud-logo {
    height: 56px;
    width: 118px;
  }
  .nav-links {
    display: flex;
    gap: 6px;
  }
  .nav-links a {
    position: relative;
    padding: 12px 16px;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--text);
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .ud .nav-burger,
  .nav-drawer,
  .nav-shade {
    display: none;
  }
}

/* =====================================================================
   AB HIER: NUR impressum.html / datenschutz.html
   Präfix: lg- (Rechtstexte). Ruhiges Lese-Layout, Zeilenlänge max. ca. 72 Zeichen.
   ===================================================================== */
.lg {
  padding-top: calc(
    var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 72px)
  );
  padding-bottom: clamp(40px, 6vw, 64px);
}
.lg-h1 {
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  padding-bottom: 0.08em;
}
.lg-lead {
  margin-top: 18px;
}
.lg-en {
  margin-top: 18px;
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text);
}
.lg-en:empty {
  display: none;
}
.lg-body {
  padding-block: clamp(40px, 6vw, 72px) var(--sec);
  border-top: 1px solid var(--line);
}
.lg-grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
}
.lg-text {
  max-width: 72ch;
  min-width: 0;
}
.lg-text section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.lg-text section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.lg-text h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 12px;
}
.lg-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.lg-text p,
.lg-text li {
  color: var(--muted);
  line-height: 1.7;
}
.lg-text p + p,
.lg-text ul + p,
.lg-text address + p,
.lg-text p + address,
.lg-text p + ul,
.lg-text h3 + p {
  margin-top: 12px;
}
.lg-text h3 + p {
  margin-top: 0;
}
.lg-text strong {
  color: var(--text);
}
.lg-text ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 1.1em;
  list-style: disc;
}
.lg-text a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  overflow-wrap: anywhere;
}
.lg-text a:hover {
  text-decoration-color: var(--text);
}
.lg-addr {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}
/* Platzhalter: gestrichelter Rahmen, damit nichts Offenes übersehen wird. Beim Ausfüllen das ganze <span class="lg-todo"> durch den Text ersetzen. */
.lg-todo {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--err);
  border-radius: 6px;
  color: var(--err);
}
.lg-toc {
  align-self: start;
}
.lg-toc-h {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.lg-toc ol {
  display: grid;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: toc;
}
.lg-toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}
.lg-toc a {
  display: grid;
  grid-template-columns: 1.8em 1fr;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lg-toc a::before {
  content: counter(toc);
  font-size: 0.8rem;
}
.lg-toc a:hover {
  color: var(--text);
}
.lg-stand {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .lg-grid-toc {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .lg-grid-toc .lg-toc {
    order: 2;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
}

/* ---------- FOOTER ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 28px;
}
.foot-brand-col {
  grid-column: 1 / -1;
}
.foot-brand {
  display: inline-block;
}
.foot-logo {
  height: 104px;
  width: 219px;
}
.foot-tag {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
  margin-top: 18px;
}
.foot-brand-col .ud-btn {
  margin-top: 22px;
}
.foot-h {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.foot-col li {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.foot-col a:hover {
  color: var(--text);
}
.foot-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}
.foot-copy {
  color: var(--muted);
  font-size: 0.85rem;
}
.foot-legal {
  display: flex;
  gap: 22px;
}
.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.foot-legal a:hover {
  color: var(--text);
}
@media (min-width: 700px) {
  .foot-top {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1040px) {
  .foot-top {
    grid-template-columns: 1.55fr 1fr 1.3fr 1fr 1.2fr;
    gap: 32px;
  }
  .foot-brand-col {
    grid-column: auto;
  }
}

/* ---------- EINBLENDEN BEIM SCROLLEN ----------
   Jedes Element mit data-rv startet unsichtbar und gleitet herein, sobald es ins Bild kommt.
   data-rv (von unten) · data-rv="left" / "right" (seitlich, ab 860px) · data-rv="zoom" (Bilder, Karten) · data-rv="fade" (nur einblenden).
   Kommen mehrere Elemente gleichzeitig ins Bild, erscheinen sie nacheinander (Abstand 90 ms, per Skript). */
.ud-js [data-rv] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rv-d, 0s);
}
.ud-js [data-rv="zoom"] {
  transform: translate3d(0, 26px, 0) scale(0.955);
}
.ud-js [data-rv="fade"] {
  transform: none;
}
@media (min-width: 860px) {
  .ud-js [data-rv="left"] {
    transform: translate3d(-40px, 0, 0);
  }
  .ud-js [data-rv="right"] {
    transform: translate3d(40px, 0, 0);
  }
}
.ud-js [data-rv].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- ABSCHNITTE IM WECHSEL ----------
   Jeder zweite Abschnitt ist eine Spur heller (dunkles Design) bzw. dunkler (helles Design).
   --bg wird lokal überschrieben, damit alles, was die Hintergrundfarbe nutzt (z. B. Kreise), mitzieht. */
main > section:nth-of-type(even) {
  --bg: var(--bg-alt);
  --panel: var(--panel-alt);
  --field: var(--field-alt);
  background-color: var(--bg);
}
.ud .foot {
  --bg: var(--bg-foot);
  background-color: var(--bg);
}

/* ---------- INTRO: DAS LOGO ZEICHNET SICH ----------
   Nur beim ersten Aufruf pro Besuch. Klick oder Taste überspringt. Die Linie folgt der Kontur des Logos,
   danach füllt sich der Silberverlauf. Nav und Hero warten (animation-play-state), bis das Intro weg ist. */
.intro {
  display: none;
}
.ud-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 26px;
  background: var(--bg);
  cursor: pointer;
  animation: intro-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.9s forwards;
}
.ud-intro .intro.is-skip {
  animation: intro-out 0.25s ease forwards;
}
.intro-logo {
  width: min(74vw, 460px);
  height: auto;
  aspect-ratio: 1059/503;
  fill: url(#ud-silver);
  fill-opacity: 0;
  stroke: #d5d9de;
  stroke-width: 2.4;
  stroke-dasharray: 14600;
  stroke-dashoffset: 14600;
  animation:
    intro-draw 1.45s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards,
    intro-fill 0.6s ease 1.2s forwards;
}
:root[data-theme="light"] .intro-logo {
  fill: url(#ud-chrome);
  stroke: #3a3d42;
}
.intro-bar {
  width: min(40vw, 180px);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.intro-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-bar 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes intro-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes intro-fill {
  to {
    fill-opacity: 1;
    stroke-opacity: 0;
  }
}
@keyframes intro-bar {
  to {
    transform: scaleX(1);
  }
}
@keyframes intro-out {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
  }
}
.ud-intro .nav-logo,
.ud-intro .nav-links a,
.ud-intro .nav-tools > *,
.ud-intro .ud-metal {
  animation-play-state: paused;
}
html.ud-intro {
  overflow: hidden;
}

/* ---------- WEICHER SEITENWECHSEL ----------
   View Transitions: beim Klick auf einen Link blendet die alte Seite aus und die neue gleitet herein.
   Die Navigation bleibt dabei stehen. Browser ohne Unterstützung wechseln wie gewohnt. */
@view-transition {
  navigation: auto;
}
.nav {
  view-transition-name: ud-nav;
}
::view-transition-old(root) {
  animation: vt-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .ud *,
  .ud *::before,
  .ud *::after {
    animation: none !important;
    transition: none !important;
  }
  .ud-js [data-rv] {
    opacity: 1;
    transform: none;
  }
}
