/* ============================================================
   VEREINSFARBEN – hier anpassen
   ============================================================ */
:root {
    --akzent:       #f2521b;   /* Bengalo-Orange – gegen eure Vereinsfarbe tauschen */
    --akzent-tinte: #ffffff;   /* Schriftfarbe auf dem Akzent */

    --asphalt:      #17181b;   /* Seitenhintergrund */
    --asphalt-hell: #212327;
    --papier:       #f4f0e6;   /* Ticket-Papier */
    --papier-alt:   #eae4d6;
    --tinte:        #1b1a17;   /* Druckfarbe auf dem Ticket */
    --grau:         #8d8f94;
    --rot:          #c22f1c;

    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    background:
        repeating-linear-gradient(-45deg,
            transparent 0 34px,
            rgba(255,255,255,.015) 34px 68px),
        var(--asphalt);
    color: #e8e6e0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}
.wrap-breit { max-width: 960px; }

/* ---------------- Kopf ---------------- */

.kopf { text-align: center; margin-bottom: 34px; }

.kopf h1 {
    margin: 0;
    font-size: clamp(2.1rem, 8vw, 3.2rem);
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.05;
}
.kopf h1::after {
    content: "";
    display: block;
    width: 82px;
    height: 6px;
    margin: 12px auto 0;
    background: var(--akzent);
    transform: skewX(-18deg);
}
.claim {
    margin: 10px 0 0;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .74rem;
    color: var(--grau);
}
.kopf-klein { margin-bottom: 22px; }
.kopf-klein h1 { font-size: 1.5rem; }
.kopf-klein h1::after { width: 52px; height: 4px; margin-top: 8px; }

/* ---------------- Ticket (öffentliche Seite) ---------------- */

.ticket {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    background: var(--papier);
    color: var(--tinte);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    transform: rotate(-.6deg);
}

.stub {
    position: relative;
    background: var(--akzent);
    color: var(--akzent-tinte);
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stub span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-body {
    position: relative;
    padding: 30px 28px 26px;
    border-left: 2px dashed rgba(27,26,23,.35);
}
/* Ausgestanzte Löcher an der Perforation */
.ticket-body::before,
.ticket-body::after {
    content: "";
    position: absolute;
    left: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--asphalt);
}
.ticket-body::before { top: -10px; }
.ticket-body::after  { bottom: -10px; }

.feld-label {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .7rem;
    font-weight: 700;
    color: rgba(27,26,23,.6);
}

.code-feld {
    width: 100%;
    padding: 14px 10px;
    border: 2px solid var(--tinte);
    border-radius: 6px;
    background: var(--papier-alt);
    color: var(--tinte);
    font-family: var(--mono);
    font-size: 1.35rem;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.code-feld:focus,
.eingabe:focus,
.btn:focus-visible,
.link-btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 2px;
}

.btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--tinte);
    color: var(--papier);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--akzent); color: var(--akzent-tinte); }
.btn-gross { padding: 16px 18px; }

.fehler {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: rgba(194,47,28,.12);
    border-left: 4px solid var(--rot);
    color: var(--rot);
    font-weight: 600;
    font-size: .92rem;
}

.hinweis {
    margin: 16px 0 0;
    font-size: .82rem;
    color: rgba(27,26,23,.55);
}

.filmname {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.15;
}
.meta {
    margin: 0 0 18px;
    font-family: var(--mono);
    font-size: .82rem;
    color: rgba(27,26,23,.65);
}

/* Stempel */
.stempel {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border: 3px solid var(--akzent);
    border-radius: 4px;
    color: var(--akzent);
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    transform: rotate(7deg);
    animation: stempeln .35s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stempeln {
    from { transform: rotate(7deg) scale(1.9); opacity: 0; }
    to   { transform: rotate(7deg) scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .stempel { animation: none; }
}

.fuss {
    margin-top: 26px;
    text-align: center;
    font-size: .74rem;
    letter-spacing: .06em;
    color: var(--grau);
}

@media (max-width: 430px) {
    .ticket { grid-template-columns: 1fr; transform: none; }
    .stub { border-radius: 10px 10px 0 0; padding: 8px; }
    .stub span { writing-mode: horizontal-tb; transform: none; }
    .ticket-body { border-left: 0; border-top: 2px dashed rgba(27,26,23,.35); padding: 24px 18px 22px; }
    .ticket-body::before { top: -10px; left: -10px; }
    .ticket-body::after  { top: -10px; left: auto; right: -10px; bottom: auto; }
}

/* ---------------- Admin ---------------- */

.menue {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-content: center;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .78rem;
    font-weight: 700;
}
.menue a { color: var(--grau); text-decoration: none; padding: 4px 0; }
.menue a.aktiv, .menue a:hover { color: #fff; box-shadow: 0 3px 0 var(--akzent); }

.karte {
    background: var(--asphalt-hell);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 20px;
}
.karte-schmal { max-width: 460px; margin-left: auto; margin-right: auto; }
.karte h2 {
    margin: 0 0 14px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--grau);
}
.karte a { color: #fff; }

.zahlen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.zahl {
    background: var(--asphalt-hell);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.zahl strong { display: block; font-size: 1.9rem; font-weight: 900; }
.zahl span {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    color: var(--grau);
}

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.08);
    vertical-align: middle;
}
th {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .66rem;
    color: var(--grau);
}
tr:last-child td { border-bottom: 0; }

.mono { font-family: var(--mono); font-size: .84rem; }
.grau { color: var(--grau); }
.rot  { color: #ff6a4d; }
.leer { color: var(--grau); font-size: .9rem; }
.leer code, .karte code {
    font-family: var(--mono);
    background: rgba(255,255,255,.08);
    padding: 1px 5px;
    border-radius: 4px;
}

.eingabe {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: var(--asphalt);
    color: #fff;
    font-size: .95rem;
    font-family: inherit;
}
.eingabe.schmal { width: 110px; }

.zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.zeile > div { flex: 1 1 180px; }
.zeile .btn { width: auto; margin-top: 0; padding: 11px 22px; flex: 0 0 auto; }

.admin .btn { background: var(--akzent); color: var(--akzent-tinte); }
.admin .btn:hover { filter: brightness(1.12); }
.admin .feld-label { color: var(--grau); }

.inline { display: inline; }
.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
}
.link-btn.rot { color: #ff6a4d; }
.aktionen { white-space: nowrap; }
.aktionen a, .aktionen form { margin-right: 10px; }

.meldung {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 18px;
    font-weight: 600;
    background: rgba(70,160,90,.15);
    border-left: 4px solid #4ca464;
}
.meldung.fehler {
    background: rgba(194,47,28,.15);
    border-left-color: var(--rot);
}

.hash-box {
    word-break: break-all;
    background: var(--asphalt);
    padding: 10px 12px;
    border-radius: 6px;
    user-select: all;
}

/* ---------- Neu: Zweit-Knopf & Dateiliste (öffentliche Seite) ---------- */

.btn-zweit {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--tinte);
    border: 2px solid var(--tinte);
    box-shadow: none;
}
.btn-zweit:hover { background: rgba(0, 0, 0, .06); transform: none; }

.datei-liste {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    text-align: left;
}
.datei-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px dashed var(--linie);
}
.datei-liste li:last-child { border-bottom: 0; }
.datei-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.datei-name small { font-weight: 400; color: var(--grau); margin-left: 6px; white-space: nowrap; }
.datei-knoepfe { display: flex; gap: 8px; flex-shrink: 0; }

.mini-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--tinte);
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--tinte);
}
.mini-btn-voll { background: var(--akzent); border-color: var(--akzent); color: #fff; }

/* ---------- Neu: Kino-Ansicht (ansehen.php) ---------- */

body.kino { background: #101114; }
.wrap-kino { max-width: 900px; }
.kino video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    border-radius: 10px;
    display: block;
}
.kino-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: #e8e6e0;
}
.kino .filmname { color: #e8e6e0; margin: 0; }
.kino-meta { margin: 4px 0 0; color: #8d8f94; font-size: .85rem; }
.btn-kino { display: inline-block; width: auto; padding: 12px 22px; }
.kino .zurueck { color: #8d8f94; }

/* ---------- Neu: Admin-Ergänzungen ---------- */

.zahlen { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .zahlen { grid-template-columns: repeat(2, 1fr); } }

.eingabe-mini { padding: 7px 9px; font-size: .82rem; width: auto; }

.kopf-link {
    float: right;
    font-size: .78rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.unterzeile td {
    background: rgba(0, 0, 0, .14);
    border-bottom: 2px solid var(--linie);
}
.datei-verwaltung {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}
.datei-verwaltung .feld-label { margin: 0; }

.datei-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--linie);
    border-radius: 999px;
    padding: 4px 6px 4px 12px;
    font-size: .82rem;
}
.datei-chip small { color: var(--grau); }
.datei-chip.fehlt { border-color: var(--rot); }
.datei-chip.fehlt small { color: var(--rot); font-weight: 700; }
.chip-x {
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: inherit;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 1;
    cursor: pointer;
}
.chip-x:hover { background: var(--rot); color: #fff; }

.datei-hinzu, .release-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
