﻿/* ---------------------------
   Modern Theme (2025)
   calm • readable • responsive
---------------------------- */

/* -------------------------------------------------
   THEME VARIABLES
   Default = Dark (wie bisher)
   Light aktivieren via: <html data-theme="light">
   Dark  aktivieren via: <html data-theme="dark">  (optional)
-------------------------------------------------- */

:root{
  /* Dark default */
  --bg: #0b1220;
  --surface: #0f1a2e;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --soft: rgba(255,255,255,0.10);

  --accent: #3aa7ff;
  --accent2:#55d6ff;
  --ok:#46e6a5;

  /* Link-Farben (neu, besser sichtbar) */
  --link: #60a5fa;
  --linkHover: #93c5fd;

  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --shadow2: 0 10px 30px rgba(0,0,0,0.32);
  --radius: 18px;
  --radius2: 14px;
  --max: 1120px;

  /* Hintergrund (Dark) */
  --bgGradient:
    radial-gradient(900px 600px at 20% 10%, rgba(58,167,255,0.18), transparent 55%),
    radial-gradient(800px 500px at 85% 20%, rgba(85,214,255,0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(70,230,165,0.10), transparent 60%),
    linear-gradient(180deg, #071022 0%, #050b16 100%);
}

/* Light Theme */
html[data-theme="light"]{
  --bg: #f7fafc;
  --surface: #ffffff;
  --card: rgba(15,23,42,0.04);
  --card2: rgba(15,23,42,0.06);
  --text: rgba(15,23,42,0.92);
  --muted: rgba(15,23,42,0.68);
  --soft: rgba(15,23,42,0.10);

  --accent: #2563eb;
  --accent2:#38bdf8;
  --ok:#22c55e;

  /* Link-Farben (Light) */
  --link: #2563eb;
  --linkHover: #1d4ed8;

  --shadow: 0 18px 50px rgba(15,23,42,0.12);
  --shadow2: 0 10px 30px rgba(15,23,42,0.10);

  /* Hintergrund (Light) */
  --bgGradient:
    radial-gradient(900px 600px at 20% 10%, rgba(37,99,235,0.12), transparent 55%),
    radial-gradient(800px 500px at 85% 20%, rgba(56,189,248,0.10), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(34,197,94,0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

/* Optional: explizit Dark Theme (wenn du data-theme="dark" setzen willst) */
html[data-theme="dark"]{
  /* nutzt die :root Werte */
}

/* Reset / Base */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bgGradient);
  line-height: 1.65;
}

/* ---------------------------
   Links (neu)
---------------------------- */
a{
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus{
  color: var(--linkHover);
  text-decoration: underline;
}
a:focus{
  outline: 2px solid rgba(58,167,255,0.35);
  outline-offset: 2px;
}
html[data-theme="light"] a:focus{
  outline: 2px solid rgba(37,99,235,0.35);
}

/* Container */
.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Navigation */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,11,22,0.78), rgba(5,11,22,0.48));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Light: Nav heller */
html[data-theme="light"] .nav{
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
  border-bottom: 1px solid rgba(15,23,42,0.10);
}

.nav .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .85rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  text-decoration:none;
  color: var(--text);
  font-weight:700;
  letter-spacing:-0.02em;
}
.brand .dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 0 0 6px rgba(58,167,255,0.12);
}
html[data-theme="light"] .brand .dot{
  box-shadow:0 0 0 6px rgba(37,99,235,0.10);
}

.nav a.small{
  color: var(--muted);
  text-decoration:none;
  font-weight:600;
}
.nav a.small:hover{ color: var(--text); }

/* Hero */
.hero{
  padding: clamp(3.5rem, 6vw, 6rem) 0 2.5rem;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.4rem;
}
.hero-card{
  position:relative;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(58,167,255,0.25), transparent 60%),
    radial-gradient(700px 420px at 90% 20%, rgba(85,214,255,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  overflow:hidden;
}

/* Light: Hero Card weniger "glasig" */
html[data-theme="light"] .hero-card{
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(37,99,235,0.14), transparent 60%),
    radial-gradient(700px 420px at 90% 20%, rgba(56,189,248,0.10), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,0.04), rgba(15,23,42,0.02));
  border:1px solid rgba(15,23,42,0.10);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.4rem .7rem;
  border-radius:999px;
  background: var(--card2);
  border:1px solid var(--soft);
  color: var(--muted);
  font-weight:650;
  font-size:.92rem;
}
.kicker .spark{
  width:8px;
  height:8px;
  border-radius:99px;
  background: var(--ok);
}
.hero h1{
  margin:.9rem 0 .6rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height:1.08;
  letter-spacing:-0.03em;
}
.hero p.lead{
  margin:0 0 1.1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width:60ch;
}

/* Buttons */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.75rem 1.05rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  border:1px solid var(--soft);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow2);
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#071022;
  border:none;
}

/* Facts */
.facts{
  display:grid;
  gap:.8rem;
}
.fact{
  padding:.85rem 1rem;
  border-radius: var(--radius2);
  background: var(--card);
  border:1px solid var(--soft);
}
.fact strong{ display:block; }

/* Sections */
.section{
  padding:2.2rem 0;
}
.section h2{
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  letter-spacing:-0.02em;
}

.media-section{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start; /* wichtig */
}

.media-box{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--soft);
  background: var(--card);
  box-shadow: var(--shadow2);
}

.media-box img{
  width: 100%;
  height: auto;
  display: block;
}

.media-caption{
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .95rem;
}

@media (min-width: 860px){
  .media-section{
    grid-template-columns: 1fr 1fr;   /* statt 1.15fr 0.85fr */
    gap: 1.6rem;
  }
}

.gallery{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0; /* statt 1rem */
}

@media (min-width:860px){
  .gallery:not(.gallery--stack){ grid-template-columns: repeat(3, 1fr); }
}

.gallery .media-box{
  height: 100%;
}

.gallery .media-box img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto; /* sicherheitshalber */
}

/* Galerie in dieser Section untereinander (1 Spalte, große 16:9 Karten) */
.gallery--stack{
  grid-template-columns: 1fr !important;
}

/* Cards */
.grid{
  display:grid;
  gap:1rem;
}
.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border:1px solid var(--soft);
  box-shadow: var(--shadow2);
  padding:1.2rem;
}

/* Videos */
.video-grid{
  display:grid;
  gap:1rem;
}
.video{
  aspect-ratio:16/9;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--soft);
  box-shadow: var(--shadow2);
}
.video iframe{
  width:100%;
  height:100%;
  border:0;
}

/* ---------------------------
   FAQ – CSS Shapes (no text)
---------------------------- */

.faq details{
  border-radius: var(--radius2);
  background: var(--card);
  border:1px solid var(--soft);
  padding:.9rem 1rem;
  margin:.75rem 0;
}

.faq summary{
  cursor:pointer;
  font-weight:750;
  position:relative;
  padding-right:28px;
  list-style:none;
}

.faq summary::-webkit-details-marker{
  display:none;
}

/* Arrow shape */
.faq summary::after{
  content:"";
  position:absolute;
  right:6px;
  top:50%;
  width:0;
  height:0;
  transform: translateY(-50%);
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:8px solid var(--muted);
  transition: transform 0.25s ease, border-top-color 0.2s ease;
}

/* Hover: Pfeil etwas heller */
.faq summary:hover::after{
  border-top-color: var(--text);
}

/* Open state */
.faq details[open] summary::after{
  transform: translateY(-50%) rotate(180deg);
}

.faq p{
  margin:.7rem 0 0;
  color: var(--muted);
}

/* Footer */
.footer{
  padding:2.4rem 0 3rem;
  border-top:1px solid var(--soft);
  color: var(--muted);
}
.footer a{
  color: var(--link);
  text-decoration:none;
  font-weight:700;
}
.footer a:hover{
  color: var(--linkHover);
  text-decoration: underline;
}

/* Responsive */
@media (min-width:860px){
  .hero-grid{ grid-template-columns:1.25fr .75fr; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .video-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1080px){
  .grid{ grid-template-columns:repeat(3,1fr); }
}

/* ---------------------------
   YouTube 2-Klick Lösung
---------------------------- */

.video-click{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
  cursor: pointer;
  border: 1px solid var(--soft);
  background: var(--card);
}

.video-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 200px;
  height: 56px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #071022;
  box-shadow: var(--shadow);
}

/* ---------------------------
   Theme Toggle Button
---------------------------- */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow2);
  font-size: 1rem;
  line-height: 1;
}
.theme-toggle:hover{
  filter: brightness(1.05);
}
.theme-toggle:focus{
  outline: 2px solid rgba(58,167,255,0.35);
  outline-offset: 2px;
}
html[data-theme="light"] .theme-toggle:focus{
  outline: 2px solid rgba(37,99,235,0.35);
}
