/* UNGENIERT – öffentliche Gästeseiten (Anmeldung, Fragebogen, Shop)
   Design-Tokens 1:1 von ungeniert.org (src/styles/global.css), reduziert auf das,
   was die Formular-Flows brauchen. Kein Build-Schritt, alle Assets selbst gehostet. */

/* Überschriften: Playfair Display Black (OFL) – Textschrift: Noto Sans (OFL) */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/playfair-display-900.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/noto-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/noto-sans-700.woff2') format('woff2'); }

:root {
  --bg: #07040f;
  --bg-2: #120a26;
  --bg-3: #1b1038;
  --ink: #f4f0ff;
  --ink-2: #c9bde6;
  --ink-3: #8f82b3;
  --neon: #8a5cff;
  --neon-2: #b08cff;
  --glow: rgba(138, 92, 255, 0.45);
  --wing: #d8c4ff;
  --ok: #7ee2b8;
  --warn: #ffb86b;
  --line: rgba(176, 140, 255, 0.22);
  --pink: #ff3d9a;
  --green: #3dff9a;
  --cyan: #3cd7ff;
  --yellow: #ffd84a;
  --orange: #ff7a45;
  --violet: #b08cff;
  --rainbow: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--neon-2));
  --radius: 14px;
  --max: 1120px;
  --form-max: 560px;
  --field-bg: rgba(7, 4, 15, 0.6);
  --card-bg: rgba(27, 16, 56, 0.6);
  --font-head: 'Playfair Display', 'Cooper Black', 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 600px at 50% -10%, #2a1457 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--neon-2); text-decoration: none; }
a:hover { color: var(--wing); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header (wie .site-header auf ungeniert.org, nicht sticky: Formulare brauchen den Platz) ---------- */
.site-header { background: rgba(7, 4, 15, 0.75); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.site-header::after { content: ''; display: block; height: 2px; background: var(--rainbow); opacity: 0.85; }
.brand { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; margin: -0.2rem 0; gap: 0.1rem; }
.brand img { display: block; height: 55px; width: auto; filter: drop-shadow(0 0 10px rgba(176, 140, 255, 0.35)); transition: filter 0.25s ease; }
.brand:hover { text-decoration: none; }
.brand:hover img { filter: drop-shadow(0 0 16px rgba(176, 140, 255, 0.7)); }
.brand .slogan { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 800; white-space: nowrap; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lang-switch { display: inline-flex; align-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem; background: rgba(27, 16, 56, 0.5); }
.lang-switch a { display: inline-grid; place-items: center; min-width: 2.6rem; min-height: 2.2rem; padding: 0 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.active { color: #120a26; background: var(--pink); }

@media (max-width: 640px) {
  .site-header .wrap { min-height: 72px; }
  .brand img { height: 45px; }
  .brand .slogan { font-size: 0.55rem; letter-spacing: 0.2em; }
}
/* sehr schmale Handys (≤ 380 px): Logo, Slogan und Sprachumschalter nebeneinander */
@media (max-width: 380px) {
  .site-header .wrap { gap: 0.5rem; }
  .brand img { height: 40px; }
  .brand .slogan { font-size: 0.5rem; letter-spacing: 0.14em; }
  .lang-switch a { min-width: 2.3rem; padding: 0 0.45rem; font-size: 0.8rem; }
}

/* ---------- Seiteninhalt ---------- */
main { flex: 1; }
.page { width: min(var(--form-max), 100% - 2rem); margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.6rem) 0 3rem; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.01em; line-height: 1.12; margin: 0 0 0.6em; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 5.5vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.04em; hyphens: auto; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.muted { color: var(--ink-3); font-size: 0.95rem; }
.pre-line { white-space: pre-line; }
hr, .divider { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* Karten (wie .aside-card) */
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); margin: 1.3rem 0; }
.card > :first-child { margin-top: 0; }
.card label:first-of-type { margin-top: 0.9rem; }
@media (max-width: 480px) { .card { padding: 1.1rem; } }

/* KI-Warnhinweis im Fragebogen: auffällige Box mit durchgestrichenem AI-Symbol */
.ai-warn { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; margin: 0 0 1.6rem; border-radius: var(--radius); border: 2px solid var(--pink); background: rgba(255, 61, 154, 0.12); box-shadow: 0 0 28px rgba(255, 61, 154, 0.25); }
.ai-warn-icon { flex: 0 0 auto; display: grid; place-items: center; color: var(--pink); filter: drop-shadow(0 0 8px rgba(255, 61, 154, 0.6)); }
.ai-warn-text strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; }
.ai-warn-text p { margin: 0; max-width: none; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 480px) { .ai-warn { gap: 0.8rem; padding: 0.9rem 1rem; } .ai-warn-icon svg { width: 44px; height: 44px; } }

/* Hinweis- und Fehlerboxen (wie .notice) */
.notice, .alert, .error-box {
  padding: 1rem 1.2rem; margin: 0 0 1.3rem;
  border-radius: var(--radius); border: 1px solid var(--warn);
  background: rgba(255, 184, 107, 0.08); color: var(--ink); font-size: 1rem;
}
.alert, .error-box { border-color: var(--orange); background: rgba(255, 122, 69, 0.12); }
.alert::before, .error-box::before { content: '!'; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: 0.6rem; border-radius: 50%; background: var(--orange); color: #120a26; font-weight: 800; font-size: 0.9rem; vertical-align: -0.2rem; }

/* ---------- Formulare ---------- */
form { margin: 0; }
fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; min-width: 0; }
label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); margin: 1.25rem 0 0.4rem; }
label.field-label { margin-top: 1rem; }
.form-section { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 0.4rem; color: var(--ink); }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  display: block; width: 100%; min-height: 52px;
  padding: 0.8rem 1rem;
  font-size: 1rem; font-family: inherit; line-height: 1.4;
  color: var(--ink); background: var(--field-bg);
  border: 1px solid var(--line); border-radius: 12px;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wing); box-shadow: 0 0 0 3px rgba(216, 196, 255, 0.22), 0 0 18px var(--glow); }
input[type=date] { -webkit-appearance: none; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c9bde6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
select option { background: var(--bg-2); color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }

input[type=file] {
  display: block; width: 100%; padding: 0.9rem; font-size: 0.95rem; font-family: inherit;
  color: var(--ink-2); background: var(--field-bg);
  border: 1px dashed var(--neon-2); border-radius: 12px;
}
input[type=file]::file-selector-button {
  margin: 0 0.8rem 0 0; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--ink); background: transparent; border: 1.5px solid var(--neon-2);
}
input[type=file]:focus { border-style: solid; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.95rem; color: var(--ink-2); }
.check input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; margin: 0.15rem 0 0; accent-color: var(--pink); cursor: pointer; }
.check label { margin: 0; font-weight: 400; cursor: pointer; }

.err { color: var(--warn); font-size: 0.95rem; font-weight: 500; margin: 0.4rem 0 0; }

/* Fragen (Fragebogen) */
.q { margin: 0 0 2rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-left: 3px solid var(--neon); border-radius: var(--radius); background: var(--card-bg); }
.q-text { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 0.6rem; white-space: pre-line; }
.q label { margin-top: 0.6rem; }
@media (max-width: 480px) { .q { padding: 1rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; min-height: 52px; margin-top: 1.6rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.3; text-align: center; text-decoration: none;
  border: 1.5px solid var(--neon-2); color: var(--ink); background: transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { color: var(--ink); text-decoration: none; transform: translateY(-1px); background: rgba(138, 92, 255, 0.15); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 0 24px rgba(255, 61, 154, 0.45); }
.btn-primary:hover { background: #ff5cab; border-color: #ff5cab; color: #fff; }
.btn-alt { border-color: var(--green); }
.btn-alt:hover { background: rgba(61, 255, 154, 0.12); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
@media (min-width: 560px) { .btn { display: inline-flex; width: auto; min-width: 240px; } }

/* ---------- Shop: Event-Auswahl (Radio-Karten) ---------- */
.event-option { display: block; position: relative; cursor: pointer; margin: 0 0 0.7rem; }
.event-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.event-box {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-bg); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.event-option:hover .event-box { border-color: var(--neon-2); }
.event-option input:checked + .event-box { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 22px rgba(255, 61, 154, 0.35); background: rgba(255, 61, 154, 0.08); }
.event-option input:focus-visible + .event-box { outline: 3px solid var(--wing); outline-offset: 3px; }
.event-option.disabled { cursor: not-allowed; }
.event-option.disabled .event-box { opacity: 0.55; filter: grayscale(0.6); }
.event-option.disabled:hover .event-box { border-color: var(--line); }
.event-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); display: block; }
.event-name .badge { margin-top: 0.3rem; }
.event-date { display: block; font-size: 0.9rem; color: var(--neon-2); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.25rem; }
.event-price { text-align: right; white-space: nowrap; flex-shrink: 0; }
.price-now { display: block; font-weight: 700; font-size: 1.25rem; color: var(--green); font-variant-numeric: tabular-nums; }
.price-old { display: block; font-size: 0.85rem; color: var(--ink-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.event-option.disabled .price-now { color: var(--ink-3); }

/* Badges (wie .badge.tickets / .badge.sold_out) */
.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-2); width: fit-content; vertical-align: middle; line-height: 1.5; }
.badge.tickets { background: var(--green); border-color: var(--green); color: #120a26; }
.badge.sold_out { background: rgba(255, 184, 107, 0.15); border-color: var(--warn); color: var(--warn); }
.event-note { display: block; margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.4; }
.event-note.bought { color: var(--green); }
.price-door { display: block; margin-top: 0.2rem; font-size: 0.85rem; font-weight: 600; color: var(--warn); white-space: normal; max-width: 9rem; text-align: right; }
.event-option.disabled .price-door { color: var(--ink-3); }

/* ---------- Footer (wie .site-footer) ---------- */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); padding: 2.2rem 0 1.6rem; color: var(--ink-3); font-size: 0.95rem; }
.site-footer .venue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin: 0; }
.site-footer .venue strong { color: var(--ink); font-weight: 700; }
.site-footer a { color: var(--ink-2); }
.site-footer .legal { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer .legal nav { display: flex; flex-wrap: wrap; gap: 0.3rem 0; }
.site-footer .legal nav a { padding: 0.2rem 0; }
.site-footer .legal nav a + a::before { content: '·'; color: var(--ink-3); margin: 0 0.5rem; }

/* Zwei Marken im Header: Libelle Wien (links, eigene weisse Fassung) und Ungeniert */
.site-header .wrap { min-height: 108px; }
.brands { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.brand-libelle { padding-right: 1.1rem; border-right: 1px solid var(--line); }
.brand-libelle img { height: 88px; filter: drop-shadow(0 0 8px rgba(176, 140, 255, 0.35)); }
.brand-libelle:hover img { filter: drop-shadow(0 0 14px rgba(176, 140, 255, 0.7)); }
@media (max-width: 640px) {
  .site-header .wrap { min-height: 84px; gap: 0.6rem; }
  .brands { gap: 0.6rem; flex: 1 1 auto; min-width: 0; }
  .brand-libelle { padding-right: 0.6rem; flex-shrink: 0; }
  .brand-libelle img { height: 56px; }
  .brand-ungeniert { flex: 1 1 auto; min-width: 0; align-items: flex-start; }
  .brand-ungeniert img { height: auto; width: 100%; max-width: 150px; }
  .brand-ungeniert .slogan { max-width: 100%; overflow: hidden; }
  .lang-switch { flex-shrink: 0; }
}
@media (max-width: 380px) {
  .brand-libelle img { height: 46px; }
  .brand-ungeniert img { max-width: 112px; }
  .brand .slogan { font-size: 0.4rem; letter-spacing: 0.08em; }
  .lang-switch a { min-width: 2.1rem; min-height: 2rem; padding: 0 0.4rem; font-size: 0.75rem; }
}

/* sichtbarer Auswahlkreis in den Event-Karten (das echte Radio ist unsichtbar) */
.event-radio { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); margin-right: 0.9rem; position: relative; transition: border-color 0.15s ease, background 0.15s ease; }
.event-option input:checked + .event-box .event-radio { border-color: var(--pink); background: var(--pink); box-shadow: inset 0 0 0 4px var(--card, #120a26); }
.event-option.disabled .event-radio { opacity: 0.4; }

/* Textblock der Event-Karte nimmt die Restbreite (Auswahlkreis links, Preis rechts) */
.event-box > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }

/* ---------- /signup: zwei gleichwertige Einstiege (Anmeldung | Ticket-Link) ---------- */
.page.page-wide { width: min(1040px, 100% - 2rem); }
.page.page-wide h1 { text-align: center; margin-bottom: 1.2rem; }
.choice { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: stretch; margin-top: 0.4rem; }
.choice .choice-card { margin: 0; display: flex; flex-direction: column; }
.choice .choice-card h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.choice .choice-card .lead { font-size: 1.02rem; margin-bottom: 0.6rem; }
.choice .choice-card .btn { display: flex; width: 100%; min-width: 0; }
@media (min-width: 760px) {
  .choice { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .choice .choice-card { padding: 1.7rem; }
}

/* ---------- Gäste-Portal „Mein Bereich" (my.libelle.at) ---------- */
.page.page-portal { width: min(760px, 100% - 2rem); }
.portal-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 1.6rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(27, 16, 56, 0.5); }
.portal-nav a, .portal-nav button { display: inline-grid; place-items: center; min-height: 2.3rem; padding: 0 0.9rem; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.portal-nav a:hover, .portal-nav button:hover { color: var(--ink); text-decoration: none; background: rgba(138, 92, 255, 0.15); }
.portal-nav a.active { color: #120a26; background: var(--pink); }
.portal-nav form { margin-left: auto; }
.portal-nav button { color: var(--ink-3); }
@media (max-width: 560px) { .portal-nav { border-radius: var(--radius); } .portal-nav a, .portal-nav button { font-size: 0.85rem; padding: 0 0.7rem; } }

.notice-ok { border-color: var(--ok); background: rgba(126, 226, 184, 0.1); }
.status-box.tone-ok { border-color: var(--ok); }
.status-box.tone-warn { border-color: var(--warn); }
.status-box.tone-info { border-color: var(--neon-2); }
.status-box .btn { margin-top: 1rem; }

.tablewrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ptable th, .ptable td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ptable th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .nowrap, .nowrap { white-space: nowrap; }
.ptable .event-note { margin-top: 0.35rem; color: var(--ink-3); font-size: 0.85rem; }

.event-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.event-item { display: grid; gap: 0.3rem; margin: 0 0 0.7rem; padding: 1rem 1.1rem; }
.event-item .event-date { margin-top: 0; }
.event-item .badge { margin-top: 0.3rem; }

input:disabled { opacity: 0.6; cursor: not-allowed; }
