/* =========================================================================
   MILLERS.5 — millers5music.de
   Design tokens: "Concert-ticket" system — burgundy stage light, warm gold,
   torn-ticket signature motif used for badges, dividers and CTAs.
   ========================================================================= */

:root {
  /* ---- Dark theme (default) ---- */
  --bg: #120a0d;
  --bg-alt: #1b0f14;
  --bg-raised: #221319;
  --ink: #f5ece2;
  --ink-soft: #cbb9b0;
  --burgundy: #9c2148;
  --burgundy-strong: #c22a58;
  --gold: #cf9f45;
  --gold-soft: #e8c98a;
  --line: rgba(245, 236, 226, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --scrim: linear-gradient(180deg, rgba(10, 5, 7, 0.35) 0%, rgba(10, 5, 7, 0.55) 45%, rgba(10, 5, 7, 0.96) 100%);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-ui: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 4px;
  --container: 1180px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f1e6;
  --bg-alt: #efe4d1;
  --bg-raised: #fffaf1;
  --ink: #241318;
  --ink-soft: #5b4640;
  --burgundy: #7d1638;
  --burgundy-strong: #9c2148;
  --gold: #a97a1f;
  --gold-soft: #7d5b17;
  --line: rgba(36, 19, 24, 0.14);
  --shadow: 0 20px 40px rgba(90, 60, 40, 0.14);
  --scrim: linear-gradient(180deg, rgba(20, 10, 10, 0.15) 0%, rgba(20, 10, 10, 0.4) 45%, rgba(15, 8, 8, 0.92) 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--gold-soft);
  margin: 0 0 0.9em;
  font-weight: 600;
}
.eyebrow.center { text-align: center; }
.center-heading { text-align: center; max-width: 40ch; margin-left: auto; margin-right: auto; }
.center-lead { text-align: center; max-width: 54ch; margin: 0 auto 2.4em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--burgundy-strong); color: #fdf3ec; }
.btn-primary:hover { background: var(--burgundy); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(245, 236, 226, 0.08); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(36, 19, 24, 0.06); }
.btn-outline { border-color: var(--burgundy-strong); color: var(--burgundy-strong); background: transparent; }
.btn-outline:hover { background: var(--burgundy-strong); color: #fdf3ec; }
.btn-block { width: 100%; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 700; display: inline-flex; align-items: baseline; }
.logo-main { letter-spacing: 0.02em; }
.logo-dot { color: var(--burgundy-strong); margin-left: 0.05em; }

.nav-desktop ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.nav-desktop a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3em 0;
  color: var(--ink);
  opacity: 0.85;
}
.nav-desktop a:hover { opacity: 1; }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--burgundy-strong);
  transition: right 0.25s ease;
}
.nav-desktop a:hover::after { right: 0; }
.nav-desktop .nav-cta {
  border: 1px solid var(--burgundy-strong);
  padding: 0.5em 1.1em;
  border-radius: var(--radius);
  opacity: 1;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--burgundy-strong); color: #fdf3ec; }

.header-controls { display: flex; align-items: center; gap: 0.9rem; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.2s ease, transform 0.3s ease; }
.theme-toggle .icon-sun { opacity: 0; transform: scale(0.6) rotate(-40deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.6) rotate(40deg); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile.open { max-height: 420px; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.nav-mobile a {
  display: block;
  padding: 0.85em 0.2em;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .nav-cta { color: var(--burgundy-strong); font-weight: 700; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-scrim { position: absolute; inset: 0; background: var(--scrim); }

.ticket-badge {
  font-family: var(--font-ui);
  background: var(--burgundy-strong);
  color: #fdf3ec;
  padding: 0.7em 1.1em;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  box-shadow: var(--shadow);
  position: relative;
}
.ticket-badge::before,
.ticket-badge::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}
.ticket-badge::before { left: -7px; }
.ticket-badge::after { right: -7px; }
.ticket-badge-line1 { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.ticket-badge-line2 { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }

.hero-badge { position: absolute; top: 6.5rem; left: 1.5rem; z-index: 2; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  width: 100%;
  color: #fdf3ec;
}
.hero-content .hero-sub { color: rgba(253, 243, 236, 0.82); max-width: 52ch; }
.hero-content h1 { color: #fdf3ec; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .btn-ghost { border-color: rgba(253, 243, 236, 0.5); color: #fdf3ec; }
.hero .btn-ghost:hover { background: rgba(253, 243, 236, 0.12); }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(253, 243, 236, 0.55);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 6px; left: 50%;
  width: 4px; height: 8px; border-radius: 2px;
  background: #fdf3ec;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section-inner + .section-inner { margin-top: 5rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col.reverse .col-media { order: 2; }
.two-col.reverse .col-text { order: 1; }

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.inline-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

/* Für hochformatige Fotos, bei denen oben viel leerer Hintergrund ist:
   Bildausschnitt nach unten verschieben, damit Person + Instrument
   vollständig sichtbar bleiben, statt oben unnötig viel Bühnenhintergrund
   zu zeigen. Das etwas breitere Seitenverhältnis sorgt dafür, dass
   tatsächlich oben beschnitten wird (statt seitlich). */
.focus-bottom {
  aspect-ratio: 5 / 4 !important;
  object-position: center 100% !important;
}
@media (max-width: 900px) {
  .focus-bottom { height: auto !important; }
}

/* Lineup */
.lineup {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lineup-card {
  background: var(--bg-raised);
  padding: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  transition: background-color 0.25s ease;
}
.lineup-card:hover { background: color-mix(in srgb, var(--burgundy) 12%, var(--bg-raised)); }
.lineup-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1rem;
}
.lineup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.lineup-icons { display: flex; gap: 0.5rem; justify-content: center; margin: 0.2rem 0 0.1rem; padding: 0 1rem; }
.lineup-icon { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.lineup-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding: 0 1rem; }
.lineup-role { font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; padding: 0 1rem; }
.lineup-bio { font-family: var(--font-body); font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft); padding: 0 1.2rem; margin: 0.4rem 0 0; }

/* Repertoire */
.decades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0;
}
.decade-chip {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6em 1.3em;
  border: 1px solid var(--burgundy-strong);
  border-radius: 999px;
  color: var(--burgundy-strong);
}
.request-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px dashed var(--line);
}
.request-note p { margin: 0; max-width: none; color: var(--ink); font-family: var(--font-ui); font-size: 0.95rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-wide { grid-column: span 1; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fdf3ec;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
}
.gallery-item-placeholder {
  display: grid;
  place-items: center;
  background: var(--bg-raised);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
  border-style: dashed;
}
.gallery-hint { text-align: center; font-size: 0.85rem; margin-top: 1.6rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--font-ui); }
.contact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-soft); }
.contact-list a { font-size: 1rem; }
.contact-list a:hover { color: var(--burgundy-strong); }

.booking-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8em 0.9em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--burgundy-strong);
  outline-offset: 1px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--bg-alt); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand { font-family: var(--font-ui); }
.footer-brand p { font-size: 0.82rem; margin: 0.3em 0 0; max-width: 30ch; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-family: var(--font-ui); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--burgundy-strong); }
.footer-copy { font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-soft); margin: 0; width: 100%; text-align: center; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--burgundy-strong);
  outline-offset: 2px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .nav-mobile { display: block; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse .col-media,
  .two-col.reverse .col-text { order: initial; }

  .lineup { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }

  .hero-badge { top: 5.5rem; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0.75rem 1.1rem; }
  .section { padding: 4.5rem 0; }
  .section-inner + .section-inner { margin-top: 3.5rem; }
  .lineup { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: span 1; }
  .hero-content { padding-bottom: 3.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* =========================================================================
   DEMOS-SEITE
   ========================================================================= */
.page-header {
  padding: 9rem 0 2rem;
  text-align: center;
}
.page-header .eyebrow { justify-content: center; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.demo-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}
.demo-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s ease; opacity: 0.88; }
.demo-thumb:hover img { transform: scale(1.04); opacity: 1; }
.demo-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fdf3ec;
}
.demo-thumb .play-icon span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--burgundy-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.demo-thumb:hover .play-icon span { transform: scale(1.08); }
.demo-body { padding: 1.4rem 1.6rem 1.8rem; }
.demo-body h3 { margin-bottom: 0.3em; }
.demo-body p { margin-bottom: 0; }

/* Video-Popup: eingebettetes YouTube-Video im responsiven 16:9-Player */
.video-modal-box {
  max-width: 900px;
  padding: 0.9rem;
  background: #000;
}
.video-modal-box .modal-close {
  top: -0.4rem;
  right: -0.4rem;
  background: var(--bg-raised);
}
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 2px;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-fallback {
  margin: 0.8rem 0 0.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.video-fallback a { color: var(--gold-soft); text-decoration: underline; }
.video-fallback a:hover { color: var(--burgundy-strong); }

@media (max-width: 700px) {
  .demo-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 7.5rem; }
}

/* =========================================================================
   COOKIE-HINWEIS
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
  padding: 1.1rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.cookie-banner-inner p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex: 1 1 320px;
}
.cookie-link {
  background: none;
  border: none;
  color: var(--burgundy-strong);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.82rem; }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
