/*
Theme Name: Jules der Halbe – Solar-Bizeps
Description: Landing-Page-Theme für die Debüt-Single „Solar-Bizeps" von Jules der Halbe. Solar-Neon-Design mit Scroll-Video, editierbaren Content-Karten (eigener Beitragstyp „Karten" mit wählbarer Bild-Ausrichtung) und Newsletter-Anmeldung mit Double-Opt-In.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Author: Jules der Halbe
Text Domain: jules-der-halbe
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Theme "Solar-Neon" über CSS-Variablen — Tailwind-Farben
   (base/card/ink/soft/accent) sind in header.php auf diese Variablen gemappt. */

html {
  --font-body: "Inter", system-ui, sans-serif;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
}

body {
  color: var(--ink);
  background-color: var(--bg);
  font-family: var(--font-body);
  margin: 0;
}

/* ============ Hintergrundvideo (Scroll-Scrub) ============ */
.bgvideo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bgvideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bgvideo-overlay {
  position: absolute;
  inset: 0;
}
body.has-bgvideo {
  background-color: transparent !important;
  background-image: none !important;
}
body.has-bgvideo main {
  position: relative;
  z-index: 10;
}

/* Scroll-Fortschrittsbalken */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ============ Header ============ */
.site-header {
  position: relative;
  z-index: 40;
  background: transparent;
}
.site-header nav {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ============ Karten über dem Video ============ */
.section-card {
  position: relative;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--muted);
  border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent);
}

/* ============ Hero ============ */
.hero-section {
  min-height: 92vh;
  min-height: 92svh;
}
.hero-section .kicker,
.hero-section p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero-anim {
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-anim:nth-child(2) { animation-delay: 0.1s; }
.hero-anim:nth-child(3) { animation-delay: 0.22s; }
.hero-anim:nth-child(4) { animation-delay: 0.34s; }
.hero-anim:nth-child(5) { animation-delay: 0.46s; }
.artist-name {
  color: var(--accent);
  letter-spacing: 0.22em;
  text-shadow: 0 0 18px rgba(255, 179, 71, 0.35);
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ============ Laufband ============ */
.marquee {
  position: relative;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.65rem 0;
  border-top: 1px solid var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  border-bottom: 1px solid var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Fixierte Newsletter-Leiste ============ */
.newsletter-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}
.newsletter-bar.is-hidden {
  transform: translateY(110%);
}
body.has-bgvideo {
  padding-bottom: 12rem;
}
@media (min-width: 768px) {
  body.has-bgvideo {
    padding-bottom: 5.5rem;
  }
}

/* ============ Sections einblenden ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .newsletter-bar { transition: none; }
  .hero-anim { animation: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Theme: Solar-Neon (dunkel)
   ============================================================ */
html[data-theme="solar"] {
  --bg: #0b0a14;
  --card: #17152a;
  --ink: #ffffff;
  --muted: #b6b1cc;
  --accent: #ffb347;
  --accent-2: #ff5e3a;
  --font-display: "Space Grotesk", sans-serif;
}
html[data-theme="solar"] .theme-bg {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 179, 71, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(255, 94, 58, 0.14), transparent);
}
html[data-theme="solar"] .bgvideo-overlay {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 179, 71, 0.12), transparent),
    linear-gradient(180deg, rgba(11, 10, 20, 0.7), rgba(11, 10, 20, 0.84));
}
html[data-theme="solar"] .hero-title {
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 179, 71, 0.4));
  animation: sun-shift 6s ease-in-out infinite;
}
@keyframes sun-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-theme="solar"] .hero-title {
    background: none;
    color: var(--accent);
  }
}
html[data-theme="solar"] .video-frame {
  box-shadow: 0 0 60px rgba(255, 179, 71, 0.22);
}
html[data-theme="solar"] .cover-art {
  box-shadow: 0 12px 60px rgba(255, 94, 58, 0.35);
}
html[data-theme="solar"] .cta-btn {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #1a1206;
  box-shadow: 0 4px 30px rgba(255, 179, 71, 0.35);
}

/* ============ Formularfelder ============ */
input,
textarea,
select {
  color: var(--ink);
  caret-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  color: color-mix(in srgb, var(--muted) 75%, transparent);
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ============ Karten-Inhalt (aus dem WordPress-Editor) ============ */
.card-content {
  color: #ffffff;
  line-height: 1.65;
  font-size: 0.95rem;
}
.card-content p {
  margin: 0 0 1rem;
}
.card-content p:last-child {
  margin-bottom: 0;
}
.card-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.card-content a:hover {
  color: var(--accent);
}
.card-content h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}
.card-content ul,
.card-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Responsives YouTube-Embed ([jdh_youtube]) */
.jdh-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
}
.jdh-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Streaming-Buttons ([jdh_streaming]) */
.jdh-streaming {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.jdh-streaming a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--muted);
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.jdh-streaming a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.jdh-streaming svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* Icon-Link (z.B. Instagram hinter Kartentitel) */
.icon-link svg {
  width: 100%;
  height: 100%;
  display: block;
}
