/* =============================================================
   IT-Dark-Theme  ·  Akzent: Cyan / Neon-Blau
   Farben zentral als CSS-Variablen -> hier anpassen
   ============================================================= */
:root {
  --bg:        #070a0d;
  --bg-2:      #0b1016;
  --panel:     #0e151d;
  --panel-2:   #111b24;
  --border:    #1c2a36;
  --text:      #cdd9e5;
  --muted:     #7d8ea0;
  --accent:    #22d3ee;
  --accent-2:  #38bdf8;
  --ok:        #3ddc97;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.accent { color: var(--accent); }
.ok { color: var(--ok); }

/* ---------- Hintergrund: Binär-Regen + Overlay ---------- */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(7, 10, 13, 0.55) 0%, rgba(7, 10, 13, 0.82) 45%, rgba(7, 10, 13, 0.92) 100%);
}

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent);
}
.scroll-progress__readout {
  position: fixed;
  top: 10px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  z-index: 60;
}
@media (max-width: 720px) {
  .scroll-progress__readout { display: none; } /* kollidiert sonst mit dem Menü-Knopf */
}

/* ---------- Navigation · Liquid Glass ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(12px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(24, 30, 39, 0.72), rgba(14, 18, 25, 0.58));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 10px 34px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
/* wandernder Glanz (liquid) */
.nav::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(40% 60% at 30% 20%, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
  animation: navSheen 14s ease-in-out infinite alternate;
}
@keyframes navSheen {
  from { transform: translate3d(-8%, -4%, 0) rotate(0deg); }
  to   { transform: translate3d(12%, 6%, 0) rotate(8deg); }
}

/* Marke · Logo + Schriftzug ohne Hintergrund-Kasten */
.nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #eef4f9;
  white-space: nowrap;
}
.nav__brand:hover { text-decoration: none; }

/* sichtbarer Zustand (Logo + Schriftzug)
   6-Sekunden-Takt: jedes Zeichen + das Logo drehen sich im Platz,
   klappen zur Binärziffer um, halten kurz, drehen zurück. */
.brand__solid {
  display: flex;
  align-items: center;
  gap: 10px;
  perspective: 720px;
}
.nav__logo {
  height: 54px;                 /* rund doppelt so groß */
  width: auto;                  /* Seitenverhältnis erhalten */
  flex-shrink: 0;
  display: block;
}
.nav__brand-text {
  display: inline-flex;
  gap: 0.5px;
  font-size: 17px;
  letter-spacing: 0.5px;
}
.nav__prompt { color: var(--accent); }

/* Zeichen-/Logo-Flip */
.ch {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
  animation: brandFlip 6s cubic-bezier(.55, 0, .45, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.ch--accent .ch__face { color: var(--accent); }
.ch__face,
.ch__bit {
  display: inline-block;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.ch__bit {
  position: absolute;
  left: 0; right: 0; top: 0;
  text-align: center;
  transform: rotateY(180deg);
  color: var(--accent);
}
.ch--logo { margin-right: 2px; }
.ch--logo .ch__bit {
  top: 50%;
  transform: translateY(-50%) rotateY(180deg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1;
}
@keyframes brandFlip {
  0%, 46%   { transform: rotateY(0deg); }
  56%       { transform: rotateY(360deg); }   /* Drehung im Platz */
  64%, 80%  { transform: rotateY(540deg); }   /* -> Binärziffer */
  90%, 100% { transform: rotateY(720deg); }   /* zurück zum Zeichen */
}

/* Navi-Tasten · quadratisch mit runden Ecken, 10px Abstand, Glas */
.nav__end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  min-width: 0;
}
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
/* Gemeinsamer Glas-Knopf (Menü + Social) */
.nav__ico,
.soc {
  --sz: 42px;
  position: relative;
  width: var(--sz);
  height: var(--sz);
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #cdd6e0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 12px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .16s ease, border-color .18s ease;
}
.nav__ico::after,
.soc::after {                    /* Glanzlicht oben */
  content: "";
  position: absolute;
  inset: 1px 1px 45%;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}
.nav__ico svg,
.soc svg {
  position: relative;
  width: 19px;
  height: 19px;
}
.nav__ico:hover,
.soc:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.35);
}
.nav__ico:active,
.soc:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}
.nav__ico.is-active {
  color: var(--accent);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.06));
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 14px rgba(34, 211, 238, 0.28),
    0 0 16px rgba(34, 211, 238, 0.22);
}

/* ---------- Sprachumschalter DE / EN (Toggle mit Kreis) ---------- */
.langtog {
  --h: 30px;
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  height: var(--h);
  margin-left: 2px;
  padding: 0;
  -webkit-appearance: none;
          appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 10px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: var(--font-mono);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.langtog:hover { border-color: rgba(34, 211, 238, 0.4); }
.langtog__opt {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: color .18s ease, opacity .18s ease;
  pointer-events: none;
}
.langtog__opt--de { left: 0; }
.langtog__opt--en { right: 0; }
.langtog__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(var(--h) - 4px);
  height: calc(var(--h) - 4px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.95), rgba(34, 211, 238, 0.7));
  color: #06222b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 12px rgba(34, 211, 238, 0.4);
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.langtog[aria-checked="true"] .langtog__knob { transform: translateX(28px); }
.langtog[aria-checked="false"] .langtog__opt--de { color: transparent; }
.langtog[aria-checked="true"]  .langtog__opt--en { color: transparent; }
.langtog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Zoom-Regler neben dem Terminal ---------- */
.term-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.term-wrap .terminal { width: 100%; max-width: none; }
.zoomctl {
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);   /* die vertikale Linie */
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.zoomctl__ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.zoomctl__ico svg { width: 100%; height: 100%; }
.zoomctl__btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #dbe6f0;
  font: 700 16px/1 var(--font-mono);
  cursor: pointer;
  transition: transform .1s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.zoomctl__btn:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); }
.zoomctl__btn:active { transform: translateY(1px); }
.zoomctl__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.zoomctl__gauge {
  flex: 1 1 auto;
  width: 8px;
  min-height: 54px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}
.zoomctl__gauge i {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--zg, 40%);
  background: linear-gradient(0deg, var(--accent), rgba(34, 211, 238, 0.5));
  transition: height .18s ease, width .18s ease;
}
.zoomctl__val {
  font: 500 10px var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
}
/* Ab ~880px kein Platz mehr rechts -> Regler unter das Terminal */
@media (max-width: 880px) {
  .zoomctl {
    position: static;
    margin: 12px 0 0;
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 12px 12px;
    justify-content: center;
  }
  .zoomctl__gauge { width: 54px; min-height: 0; height: 8px; flex: 0 1 120px; }
  .zoomctl__gauge i { inset: 0 auto 0 0; width: var(--zg, 40%); height: auto; }
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}
.section {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 12vh, 120px) 0;
  scroll-margin-top: 100px;
}
/* dezente Trennlinie wie im Footer – weich, mittig ein Hauch Cyan */
.section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.05) 12%,
    rgba(34, 211, 238, 0.4) 50%,
    rgba(255, 255, 255, 0.05) 88%,
    transparent);
  pointer-events: none;
}
.section__title {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3.5vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.section__title::before { content: "$ "; color: var(--accent); }
.section__index {
  display: inline-block;
  font-size: 0.7em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.section__lead { color: var(--muted); margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 104px;
  overflow: hidden;
}
/* Kopf: kleines Porträt vor dem Namen */
.hero__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  margin-bottom: 6px;
}
.hero__avatar {
  width: clamp(64px, 12vw, 104px);
  height: clamp(64px, 12vw, 104px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.14),
    0 0 26px rgba(34, 211, 238, 0.16);
}
.hero__avatar img {
  width: 82%;                    /* Foto etwas kleiner im Kreis */
  height: 82%;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 50%;
  filter: grayscale(0.12) contrast(1.03);
}
.binary-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.06;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  word-break: break-all;
  user-select: none;
  pointer-events: none;
}
.hero__hi {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 1px;
  margin: 0 0 10px;
  font-size: 0.85rem;
}
.hero__name {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: #eaf2f8;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}
.hero__role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.82rem, 3.2vw, 1.5rem);
  margin: 0 0 28px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Tool-Dock (Hero, Endlos-Lauf rechts -> links) ---------- */
.dock {
  margin-top: 24px;
  max-width: 620px;
  padding: 18px 0;                 /* Luft nach oben/unten, damit Hover-Icons nicht abgeschnitten werden */
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.dock:not(.dock--ready) { overflow-x: auto; }
.dock__track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 40px);
  width: max-content;
}
.dock--ready .dock__track { animation: dockScroll 30s linear infinite; }
/* Hover: Mausposition steuert Richtung/Tempo (JS) – Cursor als Hinweis */
.dock--ready { cursor: ew-resize; }
@keyframes dockScroll { to { transform: translateX(-50%); } }
.dock__item {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.6;
  filter: grayscale(0.25);
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.dock__item:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-3px) scale(1.14);
  text-decoration: none;
}
.dock__item svg { width: 100%; height: 100%; display: block; }

/* Sprung-Tasten zu den Rechnern (unter dem Dock, rechtsbündig) */
.hero__jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.jumpbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 11px;                 /* eckig mit runden Ecken */
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #cdd6e0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.055);   /* sehr dünn / dezent */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.jumpbtn:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 14px rgba(34, 211, 238, 0.18);
}
.jumpbtn__ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;                  /* passend zur Tastenform */
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel);
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(34, 211, 238, 0.18); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: var(--accent); color: var(--accent); }

/* ---------- Terminalfenster ---------- */
.terminal {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.04) inset;
  overflow: hidden;
  max-width: 640px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.terminal__bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2a3a48;
}
.terminal__bar .dot:nth-child(1) { background: #ff5f56; }
.terminal__bar .dot:nth-child(2) { background: #ffbd2e; }
.terminal__bar .dot:nth-child(3) { background: #27c93f; }
.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.terminal__body {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  overflow-x: auto;
  white-space: pre;
}
.terminal__body .prompt { color: var(--accent); }
.terminal__body .cmd { color: #eaf2f8; }
.terminal__body .out { color: var(--muted); }
.terminal__body .out[data-reveal] { opacity: 0; }
.terminal__body .out.show { opacity: 1; transition: opacity .25s; }
.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Panels / About ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 18px;
}
.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(34, 211, 238, 0.04);
}

/* ---------- Zahlensystem-Umrechner (About) ---------- */
.conv {
  margin-top: 18px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-mono);
}
.conv__prompt {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.conv__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 620px) {
  .conv__row { grid-template-columns: repeat(3, 1fr); }
}
.conv__field { display: block; }
.conv__tag {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.conv__tag small { font-size: 9px; letter-spacing: 0; opacity: 0.7; }
.conv input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #0a0f14;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: border-color .15s, box-shadow .15s;
}
.conv input::placeholder { color: #56606c; }
.conv input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.conv input.is-bad { border-color: #ff6b6b; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 107, 107, 0.15); }
.conv__hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.conv__hint.is-bad { color: #ff8a8a; }

/* ---------- IPv4-Subnetzrechner (Profil) ---------- */
.ipc {
  margin-top: 18px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-mono);
}
.ipc__prompt {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.ipc__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 620px) {
  .ipc__row { grid-template-columns: 1.2fr 1fr; }
}
.ipc__field { display: block; }
.ipc__tag {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 5px;
}
.ipc input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #0a0f14;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: border-color .15s, box-shadow .15s;
}
.ipc input::placeholder { color: #56606c; }
.ipc input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.ipc input.is-bad { border-color: #ff6b6b; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 107, 107, 0.15); }
.ipc__out {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
}
.ipc__out:empty { display: none; }
.ipc__out b { color: var(--text); font-weight: 400; }
.ipc__out .k { color: var(--accent); }
.ipc__hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ipc__hint.is-bad { color: #ff8a8a; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color .15s, transform .15s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--text);
}
.skill-card__bin {
  color: var(--accent);
  font-size: 0.8em;
  margin-right: 6px;
  opacity: 0.7;
}
.skill-card ul { margin: 0; padding-left: 18px; }
.skill-card li { color: var(--muted); margin: 4px 0; }
.skill-card li::marker { content: "› "; color: var(--accent); }

/* ---------- Timeline ---------- */
.tl-group { margin-top: 34px; }
.tl-group__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.tl-group__title::before { content: "// "; opacity: 0.5; }

.tl {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.tl__item {
  position: relative;
  padding: 0 0 26px 40px;
}
.tl__node {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.tl__node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tl__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color .15s;
}
.tl__card:hover { border-color: var(--accent); }
.tl__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.tl__title { margin: 4px 0 2px; font-size: 1.1rem; color: var(--text); }
.tl__org { margin: 0 0 10px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
/* Firmenname in der jeweiligen Markenfarbe (auf dunklem Karton lesbar gehalten) */
.org__name { color: var(--text); font-weight: 500; }
.org__name[data-org="synios"] { color: #f77f00; }                 /* SYNIOS – Orange */
.org__name[data-org="hsw"]    { color: #00afb9; }                 /* Hamburger Software – Türkis */
.org__name[data-org="aria"]   { color: #6b9080; }                 /* Aria IT – Salbeigrün */
.org__name[data-org="pars"]   { color: #5183c7; }                 /* Pars IT – Blau (aufgehellt aus #1e447c) */
.org__name[data-org="foka"]   { color: #e23b3b; }                 /* Foka – Rot */
.tl__desc { margin: 0; padding-left: 18px; }
.tl__desc li { color: var(--text); margin: 5px 0; }
.tl__desc li::marker { color: var(--accent); }
.tl__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 12px 0 0;
}
.tl__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ---------- Werdegang · 3D-Coverflow-Karussell ---------- */
.cf {
  position: relative;
  margin-top: 26px;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.cf__stage {
  position: relative;
  width: 100%;
  height: clamp(430px, 66vh, 520px);
  perspective: 1500px;
  overflow: hidden;
}
.cf__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.cf__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(600px, 92%);
  transform: translate(-50%, -50%);
  transition:
    transform .6s cubic-bezier(.22, 1, .36, 1),
    opacity .6s ease,
    filter .6s ease;
  will-change: transform, opacity, filter;
}
.cf__card .tl__card {
  background: linear-gradient(180deg, #121a22, #0d141b);
  padding: 20px 24px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.cf__card .tl__desc { margin: 0; }
.cf__card .tl__desc li { margin: 4px 0; }
.cf__card.is-current .tl__card {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.3),
    0 44px 90px -26px rgba(0, 0, 0, 0.9),
    0 0 46px rgba(34, 211, 238, 0.16);
}
.cf__cat {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* liquid Fade oben/unten – liegt über den Nachbarkarten, unter der Mittelkarte */
.cf__fade {
  position: absolute;
  left: -6%; right: -6%;
  height: 30%;
  z-index: 12;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cf__fade--top {
  top: 0;
  background: linear-gradient(180deg, var(--bg) 22%, rgba(7, 10, 13, 0.7) 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
  animation: cfLiquid 9s ease-in-out infinite alternate;
}
.cf__fade--bot {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 22%, rgba(7, 10, 13, 0.7) 60%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent);
          mask-image: linear-gradient(0deg, #000 55%, transparent);
  animation: cfLiquid 11s ease-in-out infinite alternate-reverse;
}
@keyframes cfLiquid {
  0%   { transform: translate3d(0, 0, 0) scaleX(1); }
  50%  { transform: translate3d(2%, 0, 0) scaleX(1.06); }
  100% { transform: translate3d(-2%, 0, 0) scaleX(1.02); }
}

/* Pfeil-Tasten */
.cf__nav {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  cursor: pointer;
  color: #cdd6e0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform .12s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cf__nav svg { width: 22px; height: 22px; }
.cf__nav:hover { color: #fff; transform: translateY(-1px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)); }
.cf__nav:active { transform: translateY(1px); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45); }

.cf__meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.cf__bar {
  display: block;
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.cf__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent);
}
.cf__bar i.run { transition: width 6s linear; }

/* Vor JS-Init / ohne JS: einfache Liste */
.cf:not(.cf--ready) .cf__stage {
  height: auto;
  perspective: none;
  overflow: visible;
  -webkit-mask-image: none;
          mask-image: none;
}
.cf:not(.cf--ready) .cf__track {
  position: static;
  display: grid;
  gap: 18px;
}
.cf:not(.cf--ready) .cf__card {
  position: static;
  transform: none;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.cf:not(.cf--ready) .cf__nav,
.cf:not(.cf--ready) .cf__fade,
.cf:not(.cf--ready) .cf__meter { display: none; }

/* ---------- Zertifikate ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.cert {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
}
.cert__bit {
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-weight: 700;
}
.cert__year { color: var(--muted); }

/* ---------- Scroll-Hinweis ---------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.scroll-hint:hover { text-decoration: none; color: var(--accent); }
.scroll-hint__arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Footer · Liquid Glass ---------- */
.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 24px clamp(16px, 5vw, 48px) 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #aeb8c4;
  background: linear-gradient(180deg, rgba(20, 25, 33, 0.6), rgba(12, 16, 22, 0.72));
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.footer::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 160%;
  background: radial-gradient(45% 55% at 75% 20%, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
  animation: navSheen 16s ease-in-out infinite alternate;
}
.footer__binary {
  position: relative;
  font-size: 11px;
  color: #cdd9e5;
  opacity: 0.09;
  word-break: break-all;
  max-width: 700px;
  margin: 0 auto 18px;
  text-align: center;
  user-select: none;
}
.footer__rule {
  position: relative;
  border: 0;
  height: 1px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05) 15%, rgba(34, 211, 238, 0.4) 50%, rgba(255, 255, 255, 0.05) 85%, transparent);
}
.footer__grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
/* Social-Icons (Uiverse.io / MrBishtji) – Liquid-Glass-Variante, im Footer */
#SocailIcons {
  position: static;
  transform: none;
  min-width: 0;
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}
#SocailIcons .icons {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

/* Hilfstext als Glas-Pille */
#SocailIcons .iconName {
  position: absolute;
  left: 50%;
  top: -30px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #eef4f9;
  transform: translateX(-50%) scale(0);
  transform-origin: bottom center;
  border-radius: 8px;
  white-space: nowrap;
  padding: 3px 9px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
#SocailIcons .icons:hover .iconName { transform: translateX(-50%) scale(1); }
#SocailIcons .instaIcon:hover .iconName { background: linear-gradient(30deg, rgba(0, 0, 255, 0.35), rgba(245, 96, 64, 0.35)); border-color: rgba(245, 96, 64, 0.55); }
#SocailIcons .linkedin:hover .iconName { background: rgba(2, 116, 179, 0.38); border-color: rgba(2, 116, 179, 0.6); }
#SocailIcons .whatsapp:hover .iconName { background: rgba(37, 211, 102, 0.35); border-color: rgba(37, 211, 102, 0.6); }
#SocailIcons .youtube:hover .iconName { background: rgba(255, 0, 0, 0.35); border-color: rgba(255, 0, 0, 0.6); }

/* Glas-Kreis */
#SocailIcons .icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  color: #dfe6ee;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  transition: color 0.3s ease, transform 0.25s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#SocailIcons .icon svg { width: 15px; height: 15px; position: relative; z-index: 2; }

/* aufsteigende Glas-Tönung in der Markenfarbe */
#SocailIcons .icon::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 10px;
  transition: height 0.35s ease;
  z-index: 1;
}
#SocailIcons .icons:hover .icon {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(0, 0, 0, 0.42);
}
#SocailIcons .icons:hover .icon::before { height: 100%; }
#SocailIcons .icon.insta::before { background: linear-gradient(40deg, rgba(0, 0, 255, 0.45), rgba(245, 96, 64, 0.45)); }
#SocailIcons .icon.link::before  { background: rgba(2, 116, 179, 0.5); }
#SocailIcons .icon.whats::before { background: rgba(37, 211, 102, 0.46); }
#SocailIcons .icon.tube::before  { background: rgba(255, 0, 0, 0.46); }

@media (max-width: 620px) {
  #SocailIcons { gap: 6px; }
  #SocailIcons .icons { width: 30px; height: 30px; }
  #SocailIcons .icon svg { width: 14px; height: 14px; }
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.footer__meta p { margin: 0; }
.footer__logo {
  display: block;
  width: auto;
  height: 96px;                  /* rund doppelt so groß */
  opacity: 0.8;
  filter: none;
  transition: opacity .2s ease;
}
.footer:hover .footer__logo { opacity: 1; }

@media (max-width: 620px) {
  .footer__grid { justify-content: flex-start; gap: 22px; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Kontaktformular ---------- */
.cform-wrap {
  margin-top: 24px;
  max-width: 680px;
}
.cform {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 520px) {
  .cform__row { grid-template-columns: 1fr 1fr; }
}
.cform__field {
  display: block;
  margin-top: 16px;
}
.cform__field:first-child,
.cform__row .cform__field { margin-top: 0; }
.cform__row { margin-bottom: 16px; }
.cform__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.cform input,
.cform textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #0a0f14;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cform input::placeholder,
.cform textarea::placeholder { color: #56606c; }
.cform input:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.cform textarea { resize: vertical; min-height: 130px; }
.cform__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.cform__send { cursor: pointer; border-radius: 8px; }
.cform__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.cform__hint.is-ok { color: var(--ok); }
.cform__hint.is-bad { color: #ff8a8a; }
.cform__botcheck { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }

/* Datenschutz-Zustimmung im Formular */
.cform__consent {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 4px 18px;
}
.cform__consent-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.cform__consent-text a { color: var(--accent); }

/* Neo-Toggle (Uiverse.io / chicogale) – Akzentfarbe an die Seite angepasst */
.neo-toggle-container {
  --toggle-width: 40px;
  --toggle-height: 19px;
  --toggle-bg: #181c20;
  --toggle-off-color: #475057;
  --toggle-on-color: #22d3ee;
  --toggle-transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  user-select: none;
}
.neo-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.neo-toggle {
  position: relative;
  width: var(--toggle-width);
  height: var(--toggle-height);
  display: block;
  cursor: pointer;
  transform: translateZ(0);
  perspective: 500px;
}
.neo-track {
  position: absolute; inset: 0;
  border-radius: calc(var(--toggle-height) / 2);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateZ(-1px);
  transition: transform var(--toggle-transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.neo-background-layer {
  position: absolute; inset: 0;
  background: var(--toggle-bg);
  background-image: linear-gradient(-45deg, rgba(20,20,20,0.8) 0%, rgba(30,30,30,0.3) 50%, rgba(20,20,20,0.8) 100%);
  transition: all var(--toggle-transition);
}
.neo-grid-layer {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(71,80,87,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71,80,87,0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0;
  transition: opacity var(--toggle-transition);
}
.neo-track-highlight {
  position: absolute; inset: 1px;
  border-radius: calc(var(--toggle-height) / 2);
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0));
  opacity: 0;
  transition: all var(--toggle-transition);
}
.neo-spectrum-analyzer {
  position: absolute; bottom: 3px; right: 5px;
  height: 5px; display: flex; align-items: flex-end; gap: 1px; overflow: hidden;
  opacity: 0; transition: opacity var(--toggle-transition);
}
.neo-spectrum-bar { width: 1px; height: 2px; background-color: var(--toggle-on-color); opacity: 0.8; }
.neo-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform var(--toggle-transition);
  z-index: 1;
}
.neo-thumb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--toggle-off-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--toggle-transition);
}
.neo-thumb-core {
  position: absolute; inset: 2.5px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  transition: all var(--toggle-transition);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.neo-thumb-icon { position: relative; width: 5px; height: 5px; transition: all var(--toggle-transition); }
.neo-thumb-wave {
  position: absolute; top: 50%; left: 50%;
  width: 5px; height: 1px; background: var(--toggle-off-color);
  transform: translate(-50%, -50%);
  transition: all var(--toggle-transition);
}
.neo-thumb-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--toggle-off-color);
  transform: scale(0); opacity: 0;
  transition: all var(--toggle-transition);
}
.neo-gesture-area { position: absolute; inset: -9px; z-index: 0; }
.neo-interaction-feedback { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.neo-ripple {
  position: absolute; top: 50%; left: 30%;
  width: 0; height: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--toggle-on-color) 0%, transparent 70%);
  transform: translate(-50%, -50%); opacity: 0;
  transition: all 0.4s ease-out;
}
.neo-progress-arc {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--toggle-on-color);
  transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.neo-status { position: absolute; bottom: -13px; left: 0; width: 100%; display: flex; justify-content: center; }
.neo-status-indicator { display: flex; align-items: center; gap: 3px; }
.neo-status-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background-color: var(--toggle-off-color);
  transition: all var(--toggle-transition);
}
.neo-status-text {
  font-size: 7.5px; font-weight: 600; color: var(--toggle-off-color);
  letter-spacing: 0.5px; transition: all var(--toggle-transition);
}
.neo-status-text::before { content: "STANDBY"; }
.neo-value-display {
  position: absolute; top: -15px; right: 0;
  font-size: 9px; font-weight: 500; color: var(--toggle-off-color);
  opacity: 0; transform: translateY(5px);
  transition: all var(--toggle-transition);
}

/* ON-Zustand */
.neo-toggle-input:checked + .neo-toggle .neo-thumb { transform: translateX(calc(var(--toggle-width) - 19px)); }
.neo-toggle-input:checked + .neo-toggle .neo-thumb-ring {
  background-color: var(--toggle-on-color);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}
.neo-toggle-input:checked + .neo-toggle .neo-thumb-wave {
  height: 4px; width: 4px; border-radius: 50%;
  background: transparent; border: 1px solid #fff;
}
.neo-toggle-input:checked + .neo-toggle .neo-thumb-pulse {
  transform: scale(1.2); opacity: 0.3; animation: neo-pulse 1.5s infinite;
}
.neo-toggle-input:checked + .neo-toggle .neo-track-highlight {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2)); opacity: 1;
}
.neo-toggle-input:checked + .neo-toggle .neo-grid-layer { opacity: 1; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-analyzer { opacity: 1; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-bar:nth-child(1) { animation: neo-spectrum 0.9s infinite; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-bar:nth-child(2) { animation: neo-spectrum 0.8s 0.1s infinite; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-bar:nth-child(3) { animation: neo-spectrum 1.1s 0.2s infinite; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-bar:nth-child(4) { animation: neo-spectrum 0.7s 0.1s infinite; }
.neo-toggle-input:checked + .neo-toggle .neo-spectrum-bar:nth-child(5) { animation: neo-spectrum 0.9s 0.15s infinite; }
.neo-toggle-input:checked + .neo-toggle .neo-status-dot {
  background-color: var(--toggle-on-color); box-shadow: 0 0 8px var(--toggle-on-color);
}
.neo-toggle-input:checked + .neo-toggle .neo-status-text { color: var(--toggle-on-color); }
.neo-toggle-input:checked + .neo-toggle .neo-status-text::before { content: "ACCEPTED"; }
.neo-toggle-input:checked + .neo-toggle + .neo-value-display { opacity: 1; transform: translateY(0); }
.neo-toggle-input:checked + .neo-toggle + .neo-value-display .neo-value-text { color: var(--toggle-on-color); }
.neo-toggle:hover .neo-thumb-ring { transform: scale(1.05); }

/* Pflichtfeld nicht bestätigt */
.neo-toggle-container.is-required .neo-track {
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.7), 0 0 14px rgba(255, 107, 107, 0.4);
}
.neo-toggle-container.is-required .neo-status-text { color: #ff8a8a; }

@keyframes neo-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  50%  { transform: scale(1.5); opacity: 0.2; }
  100% { transform: scale(1);   opacity: 0.5; }
}
@keyframes neo-spectrum {
  0%   { height: 3px; }
  50%  { height: 8px; }
  100% { height: 3px; }
}

/* ---------- Rechtliches: Footer-Links, Legal-Seiten, Consent ---------- */
.footer__legal {
  position: relative;
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__legal a,
.footer__legal-btn {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.footer__legal a:hover,
.footer__legal-btn:hover { color: var(--accent); }
.footer__legal span { margin: 0 8px; opacity: .5; }
.footer__legal-btn {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Legal-Seiten (Impressum / Datenschutz) */
.legalhead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px clamp(16px, 5vw, 24px) 8px;
}
.legalhead__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #eef4f9;
}
.legalhead__brand:hover { text-decoration: none; }
.legalhead__brand img { height: 30px; width: auto; display: block; }
.legalhead__back {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.legal {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 24px) 96px;
  color: var(--text);
  line-height: 1.7;
}
.legal h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  margin: 12px 0 24px;
  color: #eaf2f8;
}
.legal h1::before { content: "$ "; color: var(--accent); }
.legal h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin: 34px 0 8px;
  color: var(--accent);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); }
.legal code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
}
.legal__meta { margin-top: 34px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.legal__nav {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Consent-Hinweis unten */
.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(680px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 25, 33, 0.92), rgba(12, 16, 22, 0.94));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.7);
}
.consent[hidden] { display: none; }
.consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c4cdd8;
}
.consent__text a { color: var(--accent); }
.consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.consent__actions .btn { font-size: 13px; padding: 9px 16px; cursor: pointer; }
@media (max-width: 560px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(7, 10, 13, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s, border-color .15s;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Reveal-Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  /* Blocklayout: Logo Zeile 1, Icon-/Sprach-Leiste Zeile 2.
     Icons teilen sich die Breite (flex: 1) und schrumpfen mit,
     der Sprachschalter behält feste Breite -> passt auf jedes Handy. */
  .nav { display: block; padding: 6px 10px; overflow: visible; }
  .nav::before { inset: 0; }
  .nav__brand { display: inline-flex; padding: 2px; gap: 8px; }
  /* mobile.html (Klasse .is-mobile-page an <html>) zeigt Schriftzug + Flip-
     Effekt bewusst wie am Desktop -> diese drei Regeln dort nicht anwenden. */
  html:not(.is-mobile-page) .nav__brand-text { display: none; }
  .nav__logo { height: 36px; width: auto; }
  /* Marken-Flip auf Mobil (index.html) ruhig stellen (Schriftzug ist ausgeblendet) */
  html:not(.is-mobile-page) .nav__brand .ch { animation: none !important; transform: none !important; will-change: auto; }
  html:not(.is-mobile-page) .nav__brand .ch__bit { display: none; }
  .nav__end {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
  }
  .nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .nav__ico { --sz: 36px; border-radius: 10px; }
  .nav__ico svg { width: 17px; height: 17px; }
  .langtog { --h: 28px; width: 50px; min-width: 50px; margin: 0; }
  .langtog__opt { font-size: 9px; }
  .langtog[aria-checked="true"] .langtog__knob { transform: translateX(22px); }
}
@media (max-width: 360px) {
  .nav__ico { --sz: 32px; }
  .nav__ico svg { width: 15px; height: 15px; }
  .langtog { --h: 26px; width: 44px; min-width: 44px; }
  .langtog[aria-checked="true"] .langtog__knob { transform: translateX(20px); }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #matrix { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .terminal__body .out[data-reveal] { opacity: 1; }
  .ch { animation: none !important; transform: none !important; }
  .ch__bit { display: none; }
}
