/*
 * Copyright (c) 2026 Martin Bundschuh, SeeBubble Media FlexCo. All rights reserved.
 * Written by Martin Bundschuh.
 *
 * Gestaltung der TrackCast-Seiten (trackcast.html, trackcast-datenschutz.html).
 * Farben aus dem App-Theme „Regie“ (TrackCast/Sources/TrackCast/UI/Theme.swift):
 * Bühne, Fläche, Leiste sowie Cyan, Violett und Pink als Akzente.
 */
:root {
  --tc-stage: #07080f;
  --tc-timeline: #0c0e17;
  --tc-panel: #10121c;
  --tc-bar: #171a28;
  --tc-edge: rgba(199, 235, 255, 0.16);
  --tc-edge-soft: rgba(199, 235, 255, 0.08);
  --tc-cyan: #40dbff;
  --tc-violet: #8b6cff;
  --tc-violet-deep: #734deb;
  --tc-pink: #ff529e;
  --tc-grad: linear-gradient(120deg, #40dbff 0%, #8b6cff 52%, #ff529e 100%);
  --tc-grad-fill: linear-gradient(120deg, #0870ad 0%, #734deb 52%, #cc2b8a 100%);
  --tc-text: #ffffff;
  --tc-text-2: rgba(255, 255, 255, 0.72);
  --tc-text-3: rgba(255, 255, 255, 0.5);
  --tc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--tc-stage);
  color: var(--tc-text);
  font-family: var(--tc-font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
:where(img[width][height]) { height: auto; }

a { color: var(--tc-cyan); }

/* Leuchten im Hintergrund */
.tc-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(90px);
}
.tc-glow-1 { width: 760px; height: 760px; top: -320px; left: -220px; background: radial-gradient(circle, rgba(64, 219, 255, 0.16) 0%, transparent 70%); }
.tc-glow-2 { width: 820px; height: 820px; top: -260px; right: -300px; background: radial-gradient(circle, rgba(255, 82, 158, 0.13) 0%, transparent 70%); }
.tc-glow-3 { width: 700px; height: 700px; bottom: -340px; left: 30%; background: radial-gradient(circle, rgba(115, 77, 235, 0.14) 0%, transparent 70%); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.1rem 5%;
  background: rgba(7, 8, 15, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tc-edge-soft);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}
.navbar .logo img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 12px rgba(64, 219, 255, 0.3));
}
.navbar .logo span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tc-edge);
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-btn:hover { background: rgba(64, 219, 255, 0.12); border-color: rgba(64, 219, 255, 0.5); }
.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tc-edge);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 9.5rem;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-haupt {
  color: #fff;
  background: var(--tc-grad-fill);
  box-shadow: 0 10px 30px rgba(115, 77, 235, 0.35);
}
.btn-haupt:hover { box-shadow: 0 14px 38px rgba(64, 219, 255, 0.35); }
.btn-neben {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tc-edge);
}
.btn-neben:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(199, 235, 255, 0.35); }

/* Hero */
.hero {
  padding: 150px 5% 50px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero-inhalt {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-symbol {
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(115, 77, 235, 0.35));
  animation: tcSchweben 4s ease-in-out infinite alternate;
}
@keyframes tcSchweben {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-symbol { animation: none; }
  html { scroll-behavior: auto; }
}
.hero-marke {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: var(--tc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.1em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: #fff;
}
.hero-text {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--tc-text-2);
}
.hero-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.75rem;
}
.hero-hinweis {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tc-text-3);
}

/* Abschnitte */
.abschnitt {
  padding: 3.5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 80px;
}
.abschnitt-titel {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 15%, #bfeeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.abschnitt-text {
  margin: 0 auto 2.5rem;
  max-width: 700px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--tc-text-2);
}

/* Bilder */
.bilder {
  width: 100%;
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.bilder.hidden { display: none; }
.bild {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--tc-edge);
  background: var(--tc-panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.bild:first-child { grid-column: 1 / -1; }
.bild img { display: block; width: 100%; }

/* Funktionen */
.karten {
  width: 100%;
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.karte {
  background: linear-gradient(180deg, rgba(23, 26, 40, 0.9) 0%, rgba(16, 18, 28, 0.9) 100%);
  border: 1px solid var(--tc-edge-soft);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.karte:hover { border-color: rgba(64, 219, 255, 0.4); transform: translateY(-3px); }
.karte-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--tc-grad-fill);
  box-shadow: 0 6px 18px rgba(115, 77, 235, 0.35);
}
.karte-symbol svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.karte h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.karte p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--tc-text-2);
}

/* Fragen */
.fragen {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.frage {
  background: rgba(16, 18, 28, 0.85);
  border: 1px solid var(--tc-edge-soft);
  border-left: 3px solid var(--tc-cyan);
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
}
.frage:nth-child(3n + 2) { border-left-color: var(--tc-violet); }
.frage:nth-child(3n) { border-left-color: var(--tc-pink); }
.frage h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}
.frage p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--tc-text-2);
  overflow-wrap: anywhere;
}

/* Datenschutz-Hinweis */
.kasten {
  width: 100%;
  max-width: 860px;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 22px;
  border: 1px solid var(--tc-edge);
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 219, 255, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 82, 158, 0.12), transparent 55%),
    var(--tc-panel);
}
.kasten h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
}
.kasten p {
  margin: 0 auto 1.6rem;
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--tc-text-2);
}

/* Fußzeile */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--tc-edge-soft);
  padding: 2.5rem 5% 3.5rem;
  text-align: center;
  background: var(--tc-timeline);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  color: var(--tc-text-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--tc-cyan); }
footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tc-text-3);
}

/* Rechtstext (trackcast-datenschutz.html) */
.recht {
  max-width: 860px;
  margin: 130px auto 40px;
  padding: 2.75rem 3rem;
  background: rgba(16, 18, 28, 0.9);
  border: 1px solid var(--tc-edge);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.recht h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  background: var(--tc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  overflow-wrap: anywhere;
}
.recht h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.recht p, .recht li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tc-text-2);
  overflow-wrap: anywhere;
}
.recht p { margin: 0 0 1rem; }
.recht ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.recht li { margin-bottom: 0.45rem; }
.recht li::marker { color: var(--tc-cyan); }
.recht strong { color: #fff; }
.recht .stand { color: var(--tc-text-3); font-size: 0.93rem; }
.recht .fassung {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--tc-violet);
  border-radius: 8px;
  background: rgba(115, 77, 235, 0.1);
  font-size: 0.93rem;
}

/* Handy-Ansicht */
@media (max-width: 768px) {
  .navbar { padding: 0.9rem 1.25rem; gap: 0.6rem; }
  .nav-links { gap: 0.5rem; }
  .nav-btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  .lang-toggle { max-width: 7rem; padding: 0.5rem 0.6rem; }
  .hero { padding: 120px 1.25rem 30px; }
  .hero-symbol { width: 132px; height: 132px; }
  .abschnitt { padding: 2.5rem 1.25rem; }
  .bilder { grid-template-columns: 1fr; gap: 1rem; }
  .bild { border-radius: 12px; }
  .karten { grid-template-columns: 1fr; }
  .kasten { padding: 2rem 1.25rem; }
  .recht { margin: 100px 1rem 30px; padding: 1.75rem 1.35rem; }
}
@media (max-width: 480px) {
  .navbar { padding: 0.8rem 1rem; }
  .navbar .logo span { display: none; }
  .navbar .logo img { width: 40px; height: 40px; }
  .hero-knoepfe { flex-direction: column; align-self: stretch; }
  .hero-knoepfe .btn { width: 100%; }
  .kasten .btn { width: 100%; }
  .frage { padding: 1.15rem 1.2rem; }
  .karte { padding: 1.35rem 1.3rem; }
}
