*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #101010;
  --bg-soft: #171717;
  --surface: #1d1d1d;
  --surface-strong: #242424;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --gold-soft: rgba(201, 168, 76, 0.14);
  --text: #f4f2eb;
  --text-muted: #aaa59a;
  --border: rgba(255, 255, 255, 0.1);
  --danger: #f0b5b5;
  --danger-bg: rgba(180, 60, 60, 0.16);
  --success: #bfe7c7;
  --success-bg: rgba(80, 160, 100, 0.14);
  --radius: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 24px;
}

#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 16, 16, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100%, 1160px);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height var(--transition);
}

#header.shrunk .header-inner { height: 58px; }

.logo-img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop a,
.mobile-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover,
.mobile-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

.hero-section {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16, 16, 16, 0.48), rgba(16, 16, 16, 0.88)),
    url("https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?auto=format&fit=crop&q=80&w=1800") center/cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), transparent 45%, rgba(0, 0, 0, 0.32));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 52px;
}

.hero-logo-img {
  width: min(240px, 62vw);
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}

.hero-content h1 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 760px;
  margin-bottom: 22px;
}

.hero-desc {
  max-width: 660px;
  color: #ddd7c8;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  margin-bottom: 28px;
}

.hero-actions,
.contact-actions,
.ticket-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: #12110d;
  border-color: var(--gold);
}

.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
}

.btn-full { width: 100%; }

.btn-disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.hero-ticket-card,
.ticket-order,
.step-card,
.contact-panel {
  background: rgba(29, 29, 29, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-ticket-card {
  padding: 30px;
  backdrop-filter: blur(18px);
}

.ticket-label,
.ticket-form-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ticket-card h2,
.ticket-copy h2,
.section-header h2,
.contact-panel h2 {
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-ticket-card h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.event-facts {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.event-facts div,
.price-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.event-facts span,
.price-summary span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.event-facts strong,
.price-summary strong {
  text-align: right;
  color: var(--text);
}

#tickets,
#ablauf,
#kontakt {
  padding: 92px 0;
}

#tickets {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: start;
}

.ticket-copy h2,
.section-header h2,
.contact-panel h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.ticket-copy p,
.contact-panel p,
.step-card p,
.ticket-note,
.ticket-form-desc {
  color: var(--text-muted);
}

.ticket-availability {
  margin-top: 24px;
}

.ticket-remaining,
.ticket-sold-out,
.ticket-presale-closed,
.ticket-form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.94rem;
  border: 1px solid var(--border);
}

.ticket-remaining {
  background: var(--success-bg);
  color: var(--success);
}

.ticket-sold-out,
.ticket-presale-closed,
.ticket-form-status.is-error {
  background: var(--danger-bg);
  border-color: rgba(240, 181, 181, 0.32);
  color: var(--danger);
}

.ticket-order {
  padding: 28px;
  position: sticky;
  top: 88px;
}

.quantity-row {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.quantity-row label,
.form-group label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.quantity-btn,
.quantity-control input {
  border: 0;
  background: transparent;
  color: var(--text);
}

.quantity-btn {
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
}

.quantity-btn:hover { background: rgba(255, 255, 255, 0.06); }

.quantity-control input {
  min-width: 0;
  text-align: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.08rem;
}

.price-summary {
  margin-bottom: 22px;
}

.ticket-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: #ff6b6b;
  background: rgba(255, 72, 72, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.55);
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 800;
}

.section-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 26px;
  box-shadow: none;
}

.step-card span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #12110d;
  font-weight: 900;
}

.step-card h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.contact-panel {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: none;
}

#footer {
  padding: 34px 0;
  background: #0b0b0b;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo-img {
  width: auto;
  height: 42px;
  margin-bottom: 10px;
}

.footer-inner p,
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--gold-light); }

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.ticket-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.ticket-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.ticket-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 32px;
  background: #171717;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ticket-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
}

.ticket-modal-close:hover {
  color: var(--text);
  border-color: rgba(201, 168, 76, 0.36);
}

.ticket-form,
.ticket-success {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ticket-form h3,
.ticket-success h3 {
  padding-right: 42px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.12;
}

.ticket-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group-full { grid-column: 1 / -1; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.form-group textarea { resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(201, 168, 76, 0.62);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; }

  .hero-section { min-height: auto; }
  .hero-inner,
  .ticket-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 56px;
    gap: 32px;
  }

  .ticket-order {
    position: static;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  #tickets,
  #ablauf,
  #kontakt {
    padding: 68px 0;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-ticket-card,
  .ticket-order,
  .contact-panel,
  .ticket-modal-dialog {
    padding: 22px;
  }

  .ticket-form-grid {
    grid-template-columns: 1fr;
  }

  .event-facts div,
  .price-summary div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .event-facts strong,
  .price-summary strong {
    text-align: left;
  }
}
