:root {
  --bg: #0e0e10;
  --text: #f2f2f0;
  --text-muted: #a3a3a8;
  --accent: #ffffff;
  --border: #2a2a2e;
  --surface: #19191c;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --text: #16161a;
  --text-muted: #62626a;
  --accent: #16161a;
  --border: #e4e4e7;
  --surface: #f0f0f0;
}

* {
  box-sizing: border-box;
}

/* Motorsport-Headlines: Orbitron nur für H1 & H2 */
h1, h2 {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, color 0.25s ease;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
}

.logo {
  font-family: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.snake-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-right: 14px;
  white-space: nowrap;
}

.snake-btn-top:hover {
  transform: translateY(-1px);
  border-color: var(--text-muted);
}

.snake-btn-top .snake-emoji {
  font-size: 15px;
}

/* Shop-Button in der Navigation — hervorgehoben wie der Snake-Button */
.nav a.shop-btn-top {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav a.shop-btn-top:hover {
  transform: translateY(-1px);
  border-color: var(--text-muted);
  color: var(--text);
}

#theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
  border-color: var(--text-muted);
}

.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.content {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.photo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo.no-photo img {
  display: none;
}

.photo.no-photo {
  position: relative;
}

.photo.no-photo::after {
  content: "FRYS";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 460px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.ig-link:hover {
  opacity: 0.85;
}

.sections {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.section-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section-row {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.section-row-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-row .arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.section-row:hover .arrow {
  transform: translateX(4px);
}

.section-row-desc {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 460px;
}

.availability {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  max-width: 460px;
}

.availability-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.availability-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.availability-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.availability-note a:hover {
  color: #00fff7;
}

.availability-bar {
  width: 100%;
  max-width: 280px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.availability-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #ef4444;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.availability-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ef4444;
}

.references-band {
  background: #00fff7;
  border-radius: 20px;
  padding: 28px 24px;
}

.references-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e0e10;
  margin: 0 0 12px;
}

.references-list {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  color: #0e0e10;
  margin: 0;
}

.tools-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 20px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.values-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.value-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.snake-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}

.snake-lightbox.open {
  display: flex;
}

.snake-lb-frame {
  width: 100%;
  max-width: 420px;
  height: min(760px, 92vh);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.snake-lb-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.snake-lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.snake-lb-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .snake-lightbox { padding: 16px; }
  .snake-lb-close { top: 14px; right: 16px; font-size: 28px; }
}

.footer {
  padding: 24px 40px;
  font-size: 13px;
  color: #262626;
  text-align: center;
}

.footer a {
  color: #262626;
  text-decoration: none;
}

:root[data-theme="light"] .footer,
:root[data-theme="light"] .footer a {
  color: #dfdfdf;
}

.footer .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Rechtstexte (Impressum) */
.legal {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 24px 100px;
}

.legal h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 34px 0 10px;
}

.legal p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}

.legal p.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

@media (max-width: 480px) {
  .topbar { padding: 20px; }
  .content { padding: 40px 24px 60px; }
  h1 { font-size: 26px; }
  .section-row-title { font-size: 18px; }
  .nav { gap: 14px; margin-right: 12px; }
  .snake-btn-top { padding: 7px 11px; font-size: 10px; gap: 4px; margin-right: 8px; }
  .snake-btn-top .snake-emoji { font-size: 13px; }
}

@media (max-width: 380px) {
  .snake-btn-top .snake-label { display: none; }
  .snake-btn-top { padding: 8px; }
}

/* ===== Mobile Bottom Dock (iPhone-optimierte Navigation) ===== */
.dock { display: none; }

@media (max-width: 760px) {
  .topbar .nav,
  .topbar .snake-btn-top {
    display: none;
  }

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 7px;
    border-radius: 26px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .dock a,
  .dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 66px;
    padding: 8px 8px 7px;
    border-radius: 19px;
    border: none;
    background: none;
    color: var(--text-muted);
    text-decoration: none;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .dock a svg,
  .dock button svg {
    width: 21px;
    height: 21px;
  }

  .dock .dock-emoji {
    font-size: 19px;
    line-height: 21px;
  }

  .dock .active {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 10%, transparent);
  }
}
