/* ==========================================================================
   Konzertkarten – Gestaltung nach www.evangelisch-ehrenfeld.de

   Rot        #d50032  (Überschriften, Knöpfe, Linien)
   Rosa       #fbe5ea  (Flächen, Abschnitte)
   Purpur     #7474c1  (Unterzeilen – wie die h3 der Website)
   Schrift    Jost (frei, sehr nah an der Hausschrift Futura PT)
   Merkmale   Karten mit einer spitzen Ecke unten links (64px 64px 64px 0),
              kurzer roter Strich unter Überschriften, hinterlegte Zeilen,
              umrandete Knöpfe mit Pfeil, doppelte rote Linie

   Aufbau: 1 Grundlagen · 2 Kopf/Fuß · 3 Bausteine · 4 Konzertkarten · 5 Ticket · 6 Verwaltung
   ========================================================================== */

@import url("schriften/jost.css");

/* ------------------------------------------------------------ 1 Grundlagen */
:root {
  --rot: #d50032;
  --rot-dunkel: #a80028;
  --rosa: #fbe5ea;
  --rosa-hell: #fdf3f5;
  --purpur: #7474c1;
  --tuerkis: #00857e;
  --text: #1a1a1a;
  --leise: #6b6560;
  --linie: #ead5da;
  --ecke: 48px 48px 48px 0;          /* das Erkennungszeichen der Website */
  --schrift: "Futura PT", "Jost", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.55; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; color: var(--rot); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--rot); }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.mitte { text-align: center; }
.strich { width: 48px; height: 3px; background: var(--rot); border: 0; margin: .9rem 0 1.2rem; }
.mitte .strich { margin-left: auto; margin-right: auto; }
.band { display: inline-block; background: var(--rot); color: #fff; font-weight: 600; padding: .15em .6em; margin-bottom: .7rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.unterzeile { color: var(--purpur); font-weight: 700; font-size: 1.2rem; margin: -.1rem 0 0; }
.inhalt { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 640px; }

/* ------------------------------------------------------------ 2 Kopf und Fuß */
.kopf { border-bottom: 3px double var(--rot); padding-bottom: 4px; }
.kopf .inhalt { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.kopf img { height: 44px; display: block; }
.kopf nav a { color: var(--text); text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; margin-left: 18px; }
.kopf nav a:hover, .kopf nav a.aktiv { color: var(--rot); box-shadow: inset 0 -2px 0 var(--rot); }
.fuss { margin-top: 64px; padding: 28px 20px 36px; background: var(--rosa); color: var(--leise); font-size: .85rem; text-align: center; }
.fuss p { margin: .2rem 0; }

/* ------------------------------------------------------------ 3 Bausteine */
.knopf {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font: 600 1rem var(--schrift); color: var(--rot); background: #fff;
  border: 2px solid var(--rot); padding: .65em 1.15em; text-decoration: none; border-radius: 0;
  transition: background .15s, color .15s;
}
.knopf:hover { background: var(--rot); color: #fff; }
.knopf.voll { background: var(--rot); color: #fff; }
.knopf.voll:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf.gross { font-size: 1.12rem; padding: .8em 1.4em; }
.knopf.klein { font-size: .85rem; padding: .35em .7em; border-width: 1.5px; }
.knopf.leise-k { color: var(--leise); border-color: #cfc7c2; }
.knopf.leise-k:hover { background: #f1ecea; color: var(--text); }
.knopf[disabled], .knopf.aus { opacity: .45; pointer-events: none; }
.pfeil::after { content: "→"; font-size: 1.15em; line-height: 1; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.flaeche { background: var(--rosa); border-radius: var(--ecke); padding: 32px clamp(20px, 5vw, 48px); }
.weiss { background: #fff; border-radius: var(--ecke); padding: 28px clamp(20px, 4vw, 40px); box-shadow: 0 2px 22px rgba(213, 0, 50, .08); }
.meldung { background: var(--rosa); border-left: 4px solid var(--rot); padding: .8em 1em; margin: 0 0 1.2rem; }
.meldung.gut { background: #e3f4f2; border-color: var(--tuerkis); }
.fehler { background: #fff0f2; border: 2px solid var(--rot); color: var(--rot-dunkel); padding: .8em 1em; margin: 0 0 1.2rem; font-weight: 500; }

/* Formulare */
label { display: block; font-weight: 600; margin: 0 0 .35rem; }
.feld { margin-bottom: 1.15rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: 1.05rem var(--schrift); padding: .7em .85em; border: 2px solid #dccdd1; background: #fff; border-radius: 0; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); }
textarea { min-height: 90px; resize: vertical; }
.haken { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; }
.haken input { width: 22px; height: 22px; margin-top: .15em; accent-color: var(--rot); flex: none; }
.anzahl { display: flex; gap: 10px; flex-wrap: wrap; }
.anzahl label { margin: 0; }
.anzahl input { position: absolute; opacity: 0; }
.anzahl span { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 12px; border: 2px solid #dccdd1; font-size: 1.3rem; font-weight: 700; cursor: pointer; background: #fff; }
.anzahl input:checked + span { border-color: var(--rot); background: var(--rot); color: #fff; }
.anzahl input:focus-visible + span { outline: 3px solid var(--purpur); }
.honig { position: absolute; left: -5000px; }

/* ------------------------------------------------------------ 4 Startseite */
.held { background: var(--rosa); padding: 48px 0 56px; }
.held .inhalt { display: grid; grid-template-columns: 1fr; gap: 24px; }
.held p.einleitung { font-size: 1.12rem; max-width: 640px; }
.konzerte { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: -28px; }
.konzert { background: #fff; border-radius: var(--ecke); box-shadow: 0 4px 30px rgba(213, 0, 50, .10); padding: 30px 30px 28px; display: flex; flex-direction: column; }
.konzert .tag { display: flex; align-items: baseline; gap: 14px; margin-bottom: .6rem; }
.konzert .tag b { font-size: 3.1rem; line-height: .9; color: var(--rot); font-weight: 800; }
.konzert .tag span { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.konzert h2 { font-size: 1.35rem; margin-top: .3rem; }
.konzert .wo { color: var(--leise); margin-bottom: 1rem; }
.balken { height: 10px; background: var(--rosa); border-radius: 5px; overflow: hidden; margin: auto 0 .45rem; }
.balken i { display: block; height: 100%; background: var(--rot); border-radius: 5px; }
.plaetze { font-weight: 600; margin-bottom: 1.1rem; }
.plaetze.knapp { color: var(--rot); }
.ausverkauft { display: inline-block; background: #1a1a1a; color: #fff; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .45em .9em; transform: rotate(-2deg); }
.beschreibung { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ------------------------------------------------------------ 5 Ticket (Bildschirm) */
.ticket { display: grid; grid-template-columns: 1fr 190px; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 34px rgba(213, 0, 50, .16); position: relative; margin: 8px 0 26px; }
.ticket .t-haupt { background: var(--rosa); padding: 24px 26px; }
.ticket .t-haupt img { height: 34px; margin-bottom: 14px; display: block; }
.ticket h2 { font-size: 1.5rem; margin: .2rem 0 .1rem; }
.ticket .fakten { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; }
.ticket .fakten small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--rot-dunkel); font-weight: 600; }
.ticket .fakten b { font-size: 1.02rem; }
.ticket .t-abriss { background: var(--rot); color: #fff; text-align: center; padding: 22px 14px; border-left: 2px dashed var(--rosa); display: flex; flex-direction: column; justify-content: center; }
.ticket .t-abriss small { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 700; }
.ticket .t-abriss .code { font-size: 1.6rem; font-weight: 800; letter-spacing: .1em; margin: .3rem 0; }
.ticket .t-abriss .personen { font-size: 1.05rem; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 180px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }
.ticket.storniert { filter: grayscale(1); opacity: .55; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .t-abriss { border-left: 0; border-top: 2px dashed var(--rosa); }
  .ticket::before, .ticket::after { display: none; }
}
.konfetti { font-size: 2.6rem; line-height: 1; margin-bottom: .4rem; }
details.zurueck { margin-top: 30px; border-top: 1px solid var(--linie); padding-top: 18px; }
details.zurueck summary { cursor: pointer; color: var(--leise); }

/* ------------------------------------------------------------ 6 Verwaltung */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 10px 0 26px; }
.zahlen .weiss h3 { margin-bottom: .2rem; }
.gross-zahl { font-size: 2.6rem; font-weight: 800; color: var(--rot); line-height: 1; }
.reiter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.reiter a { padding: .45em .9em; border: 2px solid var(--linie); text-decoration: none; color: var(--text); font-weight: 600; }
.reiter a.aktiv { border-color: var(--rot); background: var(--rot); color: #fff; }
table.liste { width: 100%; border-collapse: collapse; font-size: .95rem; }
.liste th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rot-dunkel); border-bottom: 2px solid var(--rot); padding: .5em .5em; }
.liste td { border-bottom: 1px solid var(--linie); padding: .55em .5em; vertical-align: middle; }
.liste tr.weg td { color: #a49c97; text-decoration: line-through; }
.liste tr.drin td:first-child { box-shadow: inset 4px 0 0 var(--tuerkis); }
.liste form { display: inline; }
.marke { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1em .5em; border-radius: 99px; background: #eee; color: var(--leise); white-space: nowrap; }
.marke.gut { background: #e3f4f2; color: var(--tuerkis); }
.marke.schlecht { background: #fff0f2; color: var(--rot); }
.tabelle-rahmen { overflow-x: auto; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.verlauf { font-size: .85rem; color: var(--leise); }
.verlauf li { margin-bottom: .2rem; }
.status-gross { font-size: 4rem; line-height: 1; margin: 0 0 .4rem; }
.einlass-gut { background: #e3f4f2; border-radius: var(--ecke); padding: 28px; }
.einlass-warn { background: #fff4d6; border-radius: var(--ecke); padding: 28px; }
.einlass-schlecht { background: #fff0f2; border-radius: var(--ecke); padding: 28px; }
@media print { .kopf nav, .fuss, .knopf { display: none !important; } }

/* ------------------------------------------------------------ 7 Scanner am Eingang (Handy) */
.scanner-seite { background: #111; color: #fff; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.sc-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; background: var(--rot); }
.sc-kopf select { width: auto; font-weight: 600; padding: .45em .6em; border: 0; }
.sc-zaehler { text-align: right; line-height: 1.1; }
.sc-zaehler b { font-size: 1.9rem; font-weight: 800; }
.sc-zaehler span { font-size: .9rem; }
.sc-bild { position: relative; flex: 1; overflow: hidden; background: #000; }
.sc-bild video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-rahmen { position: absolute; left: 50%; top: 50%; width: min(62vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px solid rgba(255,255,255,.85); border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.sc-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: var(--rot); }
.sc-start h1 { color: #fff; font-size: 2.2rem; margin: 14px 0 6px; }
.sc-start p { max-width: 320px; }
.sc-start .knopf { background: #fff; color: var(--rot); border-color: #fff; margin-top: 10px; }
.sc-hinweis { background: rgba(0,0,0,.25); padding: .8em 1em; margin-top: 18px; font-size: .95rem; }
.sc-ergebnis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #fff; }
.sc-ergebnis.gut { background: #0a8f5a; }
.sc-ergebnis.warn { background: #e0a100; color: #1a1a1a; }
.sc-ergebnis.schlecht { background: #c4001f; }
.sc-zeichen { font-size: 7rem; line-height: 1; font-weight: 800; }
.sc-titel { font-size: 1.6rem; font-weight: 700; margin-top: 6px; }
.sc-name { font-size: 2.1rem; font-weight: 800; margin-top: 14px; line-height: 1.15; }
.sc-personen { font-size: 2.6rem; font-weight: 800; margin-top: 4px; }
.sc-info { font-size: 1.1rem; margin-top: 10px; opacity: .92; }
.sc-ergebnis .knopf { margin-top: 22px; background: rgba(255,255,255,.95); color: var(--text); border-color: transparent; }
.sc-fuss { padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px); background: #1d1d1d; }
.sc-fuss form { display: flex; gap: 8px; }
.sc-fuss input { flex: 1; text-transform: uppercase; letter-spacing: .08em; }
.sc-fuss p { margin: 8px 0 0; font-size: .8rem; color: #aaa; text-align: center; }
.sc-fuss a { color: #fff; }
.sc-fuss input::placeholder { text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------------------ 8 Veranstaltungen (allgemein) */
.konzert .band.klein { font-size: .8rem; margin-bottom: .2rem; }
/* Beschreibung auf der Startseite: höchstens 4 Zeilen, ganz steht sie auf der Buchungsseite */
.kurztext { color: var(--text); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vorschau-band { background: #1a1a1a; color: #fff; text-align: center; padding: .5em 1em; font-weight: 600; }
/* Schmale Bildschirme: Menü unter das Logo, in einer Zeile mit Umbruch */
@media (max-width: 760px) {
  .kopf .inhalt { flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .kopf nav { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .kopf nav a { margin-left: 0; font-size: .8rem; }
}
