/* ==========================================================================
   GET WASTED – BE DOOM  ·  Mini Site (Ticket)
   Dunkles Doom-Theme, abgestimmt auf das Banner (Schwarz / Orange #f6a868 /
   Lila #391086). Blackmoor-Headlines. Eigenständig – eigene Assets.
   ========================================================================== */

/* ── Schrift (lokal) ── */
@font-face {
  font-family: 'Blackmoor';
  src: url('../fonts/Blackmoor-LET-Plain1_0.woff') format('woff'),
       url('../fonts/Blackmoor-LET-Plain1_0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Design-Tokens ── */
:root {
  --ink:          #cbc4d6;   /* Fließtext               */
  --ink-strong:   #f2ebe0;   /* Überschriften (warmweiß) */
  --muted:        #a096b0;   /* gedämpfter Text          */
  --muted-2:      #837a93;   /* Meta / noch gedämpfter   */

  --purple:       #4a18a0;   /* Buttons                  */
  --purple-hover: #5d28bd;
  --purple-deep:  #391086;   /* Banner-Lila              */
  --orange:       #f6a868;   /* Akzent (Preis, Links)    */
  --orange-hover: #ffbd84;
  --danger:       #e0563f;

  --panel:        rgba(255,255,255,0.055);
  --panel-strong: rgba(255,255,255,0.075);
  --panel-hover:  rgba(255,255,255,0.11);
  --line:         rgba(150,120,210,0.22);
  --input-bg:     rgba(255,255,255,0.07);
  --input-border: rgba(150,120,210,0.30);
  --footer-bg:    rgba(0,0,0,0.45);

  --display: 'Blackmoor', 'UnifrakturMaguntia', serif;
  --font:    Arial, Helvetica, sans-serif;

  --radius: 6px;
  --max:    860px;
}

/* ── Reset / Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: #08070c;
  background-image: linear-gradient(180deg,
                      rgba(57,16,134,0.45) 0%,
                      rgba(28,8,66,0.28) 32%,
                      rgba(8,7,12,0) 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

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

/* ── Seiten-Gerüst ── */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header (vollflächiges Banner) ── */
.site-banner { width: 100%; z-index: 200; position: relative; }
.site-header { width: 100%; display: block; padding: 0; }
.header-banner { width: 100%; height: auto; display: block; }

/* Sprachumschalter (DE / EN) – oben rechts im Banner */
.lang-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 210;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  border-radius: 5px;
  backdrop-filter: blur(3px);
}
.lang-switch button {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1;
}
.lang-switch button:hover { color: var(--orange); }
.lang-switch button.active {
  background: var(--orange);
  color: #1a0f24;
}
@media (max-width: 600px) {
  .lang-switch { top: 6px; right: 6px; }
  .lang-switch button { font-size: 0.68rem; padding: 3px 7px; }
}

/* Variante: Umschalter mittig im Seitenfluss (Startseite, über dem Ticket) */
.lang-switch-row { display: flex; justify-content: center; margin: 4px 0 20px; }
.lang-switch.inline { position: static; top: auto; right: auto; }
.lang-switch.inline button { font-size: 0.82rem; padding: 7px 16px; }

/* Optionaler Titel-Streifen (z.B. „Checkout“) */
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(57,16,134,0.30);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--orange);
}

/* ── Inhaltsbereich ── */
.content-area { flex: 1; }
.content-inner { max-width: var(--max); margin: 0 auto; padding: 30px 20px 50px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

section { margin-bottom: 44px; }
section:last-child { margin-bottom: 0; }

.page-heading {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--ink-strong);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.section-title {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink-strong);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  font-weight: normal;
  text-transform: none;
}
.divider { border: none; border-top: 1px solid var(--line); margin: 12px 0 18px; }

/* ── Ticket-/Produktkarte ── */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  align-items: start;
}
.product-image { overflow: hidden; background: rgba(0,0,0,0.35); aspect-ratio: 1/1; border-radius: 3px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(246,168,104,0.30); font-size: 3rem;
}

.product-name {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--ink-strong);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.product-price { font-size: 1.3rem; color: var(--orange); font-weight: 700; margin-bottom: 14px; }
.product-desc  { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }

/* Mengenwähler */
.qty { display: flex; align-items: center; margin-bottom: 18px; }
.qty button {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--input-border);
  color: var(--ink-strong);
  font-size: 1.1rem; cursor: pointer; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.qty button:hover { background: rgba(74,24,160,0.45); border-color: var(--purple-hover); }
.qty span {
  min-width: 46px; height: 38px; line-height: 38px; text-align: center;
  color: var(--ink-strong);
  border-top: 1px solid var(--input-border);
  border-bottom: 1px solid var(--input-border);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border: none;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--purple-hover); color: #fff; box-shadow: 0 0 18px rgba(93,40,189,0.45); }
.btn:disabled, .btn.disabled { background: #3a3145; color: #9a93a8; cursor: not-allowed; box-shadow: none; }
.btn-block { display: block; width: 100%; }

.sold-out { color: var(--danger); font-weight: 700; }

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 20px;
}
.site-footer a { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.03em; transition: color 0.2s; white-space: nowrap; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-name { font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.03em; }

/* ── Checkout ── */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  margin: 18px 0; transition: color 0.2s;
}
.back-link:hover { color: var(--orange); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

#checkoutForm {
  background: var(--panel-strong);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 0.92rem; padding: 0.55rem 0.7rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--ink-strong);
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: rgba(255,255,255,0.10);
}
.field input.err { border-color: var(--danger); }
.field .hint { font-size: 0.72rem; color: var(--danger); }
.field textarea { resize: vertical; min-height: 70px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.checkbox input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--purple); flex-shrink: 0; }
.checkbox a { color: var(--orange); text-decoration: underline; }

/* Zustellart-Auswahl */
.radio-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--input-border); border-radius: 4px;
  background: rgba(255,255,255,0.04); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-option:hover { border-color: var(--purple-hover); }
.radio-option input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--purple); flex-shrink: 0; }
.radio-option span { display: flex; flex-direction: column; }
.radio-option strong { color: var(--ink-strong); font-size: 0.92rem; }
.radio-option small { color: var(--muted); font-size: 0.76rem; line-height: 1.5; margin-top: 2px; }
.radio-option:has(input:checked) { border-color: var(--orange); background: rgba(246,168,104,0.09); }

.widerruf {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 18px;
}
.widerruf strong { display: block; color: var(--ink-strong); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }

.summary {
  background: var(--panel-strong);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  padding: 20px;
  position: sticky;
  top: 20px;
}
.summary h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink-strong);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.82rem; color: var(--muted); border-bottom: 1px solid rgba(150,120,210,0.12); }
.sum-row.total {
  border-bottom: none; margin-top: 6px; padding-top: 8px;
  color: var(--ink-strong); font-weight: 700; font-size: 1rem;
}
.sum-row.total span:last-child { color: var(--orange); }

/* ── Soli-Ticket: freiwilliger Aufschlag ── */
.soli-box {
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px dashed var(--orange);
  border-radius: 6px;
  background: rgba(246,168,104,0.07);
}
.soli-box strong { color: var(--ink-strong); font-size: 0.9rem; }
.soli-hint { font-size: 0.74rem; color: var(--muted); line-height: 1.5; margin: 4px 0 10px; }
.soli-input { display: flex; align-items: center; gap: 8px; }
.soli-input span { color: var(--orange); font-weight: 700; font-size: 1rem; }
.soli-input input {
  flex: 1; min-width: 0; padding: 9px 10px;
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 4px;
  color: var(--ink-strong); font-size: 0.95rem;
}
.soli-input input:focus { outline: none; border-color: var(--orange); }
.soli-input input::placeholder { color: var(--muted-2); }
.soli-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.soli-quick button {
  flex: 1; min-width: 56px; padding: 6px 4px; cursor: pointer;
  background: transparent; border: 1px solid var(--input-border); border-radius: 4px;
  color: var(--ink); font-size: 0.8rem;
}
.soli-quick button:hover { border-color: var(--orange); color: var(--orange); }

#paypal-button-container { margin-top: 16px; }
.pay-note { font-size: 0.66rem; color: var(--muted-2); text-align: center; margin-top: 10px; line-height: 1.6; }

/* ── Erfolgs-Overlay ── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(8,7,12,0.97);
  align-items: center; justify-content: center; flex-direction: column;
  text-align: center; padding: 24px;
}
.overlay h2 { font-family: var(--display); font-size: 2rem; color: var(--orange); margin-bottom: 10px; letter-spacing: 0.03em; }
.overlay p  { color: var(--muted); margin-bottom: 24px; }

/* ── Statische Textseiten (Impressum etc.) ── */
.text-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.text-content h1 { font-family: var(--display); font-size: 1.8rem; color: var(--ink-strong); letter-spacing: 0.03em; margin-bottom: 12px; font-weight: normal; }
.text-content h2 { font-size: 1.05rem; color: var(--ink-strong); margin: 1.4rem 0 0.3rem; }
.text-content h3 { font-size: 1rem; color: var(--ink-strong); margin: 1.2rem 0 0.3rem; }
.text-content p  { margin-bottom: 0.6rem; }
.text-content ul { margin: 0.4rem 0 0.6rem 1.5rem; line-height: 2; }
.text-content a  { color: var(--orange); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .content-inner { padding: 22px 12px 36px; }
  .product { grid-template-columns: 1fr; gap: 18px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
