/* DAN LIO — danlio.com
   Mobile-first, kein Framework. */

:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f2;
  --color-bg-dark: #0d0d0d;
  --color-text: #111111;
  --color-text-muted: #55554f;
  --color-text-on-dark: #f5f5f2;
  --color-text-on-dark-muted: #b9b9b3;
  --color-accent: #e2352f;
  --color-accent-hover: #ff4a42;
  --color-border: #e3e3dd;
  --color-border-dark: #2a2a2a;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 720px;
  --header-height: 64px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.6;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-2);
  background: transparent;
}

.site-header .logo {
  line-height: 0;
}

.site-header .logo img {
  height: 48px;
  width: auto;
}

.site-header.is-scrolled {
  justify-content: flex-end;
}

.site-header.is-scrolled .logo {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.75), 0 0 10px rgba(255, 255, 255, 0.5);
}

.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--color-accent);
}

/* Nav-Toggle: nur mobil sichtbar, und dort nur sobald man über den Hero
   hinausgescrollt ist (siehe Media-Query weiter unten). */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #000;
  color: #000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 8px rgba(255, 255, 255, 0.85);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 699px) {
  .site-header.is-scrolled .nav-toggle {
    display: flex;
  }

  .site-header.is-scrolled .site-nav ul {
    display: none;
  }

  .site-header.is-scrolled .site-nav ul.is-open {
    display: flex;
    position: absolute;
    top: 60px;
    right: var(--space-2);
    background: rgba(255, 255, 255, 0.97);
    padding: var(--space-2) var(--space-3);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  }

  .site-header.is-scrolled .site-nav ul.is-open a {
    text-shadow: none;
  }
}

@media (min-width: 700px) {
  .site-header .logo img {
    height: 96px;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }

  .site-nav a {
    font-size: 0.9rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-floating {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}

.hero-below {
  padding: var(--space-4) var(--space-2) var(--space-5);
  text-align: center;
  background: var(--color-bg);
}

.hero-below .hero-text {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 46ch;
  margin: 0 auto var(--space-2);
}

.hero-below .hero-instruments {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.hero-instruments a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Social icons ---------- */

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.social-list a:hover,
.social-list a:focus {
  color: var(--color-accent);
}

.social-list svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Current song / CTA ---------- */

.current-song {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  padding: var(--space-2) var(--space-3);
  text-align: center;
}

.current-song-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.current-song .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.current-song .label {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
}

.current-song-cover {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.2rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: var(--color-accent-hover);
  color: #fff;
}

/* ---------- Generic sections ---------- */

.section {
  padding: var(--space-4) var(--space-2);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  text-align: center;
}

.section h2.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin: 0 0 var(--space-1);
}

.section-quote {
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
}

.section p {
  margin: 0 0 var(--space-2);
}

.bio-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bio-toggle {
  display: inline-block;
  background: none;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: var(--space-2);
}

.bio-toggle:hover,
.bio-toggle:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.section-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  margin-bottom: var(--space-3);
}

@media (min-width: 700px) {
  .section-photo {
    aspect-ratio: 16 / 9;
    object-position: center 25%;
  }
}

/* ---------- Musik ---------- */

.disco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

@media (min-width: 700px) {
  .disco-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
  }
}

.disco-card {
  text-align: center;
}

.disco-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: var(--space-1);
}

.disco-card h4 {
  margin: 0 0 var(--space-1);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.disco-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover,
.btn--outline:focus {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Video-Modal (Fullscreen-Musikvideo) ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-inner,
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 201;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Kontakt-Popup ---------- */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-modal-box iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

.contact-modal-close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-btn-wrap {
  text-align: center;
}

/* ---------- Presse ---------- */

.press-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}

.press-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.press-item:first-child {
  border-top: 1px solid var(--color-border);
}

.press-outlet {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.press-headline {
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.press-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.press-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Kurzbeschreibung, wo die Überschrift allein den Beitrag nicht erklärt. */
.press-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

/* Beiträge mit mehreren Quellen (z.B. Artikel plus TV-Beitrag). */
.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
}

/* Falter: kein Artikel-Link vorhanden, stattdessen ein Button, der den
   abfotografierten Ausschnitt im Bild-Modal öffnet. */
.press-image-btn {
  display: inline-block;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-accent);
  cursor: pointer;
}

/* Zunächst nur die ersten vier Beiträge, der Rest kommt über "Alle anzeigen". */
.press-list.is-collapsed .press-item--extra {
  display: none;
}

.press-toggle-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Bild-Modal (Presse-Ausschnitte) ---------- */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}

.image-modal[hidden] {
  display: none;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.image-modal-box {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.image-modal-box img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.image-modal-close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Kontakt / Formular ---------- */

.form-container {
  max-width: 640px;
  margin: var(--space-3) auto 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.form-container--compact {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
}

.form-container iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

.form-container--compact iframe {
  height: 500px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-4) var(--space-2);
  text-align: center;
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: 0 0 var(--space-2);
  padding: 0;
}

.footer-links a {
  color: var(--color-text-on-dark-muted);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-accent);
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-content {
  padding: calc(var(--header-height) + var(--space-4)) var(--space-2) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.legal-content h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: var(--space-4) 0 var(--space-1);
}

.legal-content a {
  text-decoration: underline;
}
