/* Gemeinsame Grundlage für alle drei Bereiche. Farben und Schrift nach kulturhof-perg.at. */
:root {
  --petrol: #3f8080; --petrol-dunkel: #2f6767;
  --orange: #f5962a; --orange-hell: #f8c996; --sand: #fbead8;
  --dunkel: #2b2b2b; --gelb: #fec600; --gold: #c8963c; --weiss: #fff;
  --grau: #6b6b6b; --linie: #e2ded8; --rot: #b3261e; --gruen: #2e7d32;
  --schrift: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sitz-frei: #e6f4ea; --sitz-frei-rand: #4caf50;
  --sitz-gewaehlt: #2f6fdb; --sitz-gewaehlt-rand: #1b4aa3;
  --sitz-belegt: #d9d9d9; --sitz-belegt-rand: #a3a3a3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--schrift); font-size: 16px; color: var(--dunkel); background: var(--weiss); line-height: 1.4; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; }
a { color: var(--petrol-dunkel); }
.grau { color: var(--grau); }
.fehler { color: var(--rot); min-height: 1.2em; margin: 6px 0 0; font-weight: 700; }
.meldungen { background: var(--sand); border-left: 4px solid var(--orange); padding: 8px 12px; margin: 0 0 16px; border-radius: 4px; }
.meldungen p { margin: 4px 0; }

/* Wortmarke mit dem Tor-Zeichen aus dem Logo */
.wortmarke { display: inline-flex; align-items: center; text-decoration: none; color: inherit; font-weight: 700; letter-spacing: 0.18em; font-size: 20px; line-height: 1; }
.wortmarke small { display: block; font-size: 9px; letter-spacing: 0.32em; margin-top: 4px; font-weight: 400; }
.tor { display: inline-block; width: 16px; height: 13px; border: 3px solid var(--gold); border-bottom: 0; margin-right: 10px; flex: none; }
h1 .tor { width: 22px; height: 17px; border-width: 4px; margin-right: 12px; }

/* Formulare */
input, select, textarea, button { font: inherit; }
input, select, textarea { padding: 7px 9px; border: 1px solid #b9b3aa; border-radius: 4px; background: #fff; color: var(--dunkel); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
input.kurz { width: 66px; }
button { cursor: pointer; }
.knopf { display: inline-block; padding: 10px 18px; background: var(--dunkel); color: #fff; border: 0; border-radius: 3px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; font-size: 14px; line-height: 1.2; }
.knopf:hover { background: #000; }
.knopf.klein { padding: 6px 12px; font-size: 12px; }
.knopf.gross { padding: 14px 22px; font-size: 16px; }
.knopf.aus, .knopf:disabled { background: #9a9a9a; cursor: default; }
button.leise { background: #fff; color: #444; border: 1px solid #bbb; border-radius: 3px; padding: 5px 10px; font-size: 13px; }
button.leise:hover { border-color: #444; }
form.zeile, div.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
form.zeile input { flex: 1; min-width: 160px; }
form.spalte { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 8px 0; }
form.spalte label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--grau); }
form.spalte label.kontrolle { flex-direction: row; align-items: center; gap: 8px; color: var(--dunkel); font-size: 15px; }
form.spalte label input, form.spalte label select, form.spalte label textarea { font-size: 16px; }
form.inline { display: inline; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--grau); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
.aktionen { white-space: nowrap; }

/* Legende */
.legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--grau); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 1px solid #999; }
.lg.frei::before { background: var(--sitz-frei); border-color: var(--sitz-frei-rand); }
.lg.belegt::before, .lg.gesperrt::before { background: var(--sitz-belegt); border-color: var(--sitz-belegt-rand); }
.lg.reserviert::before { background: #fff3cd; border-color: #d9a300; }
.lg.bezahlt::before { background: #cfe2ff; border-color: #2f6fdb; }
.lg.haus::before { background: #f8d7da; border-color: #c1121f; }
.lg.inaktiv::before { background: #f4f4f4; border-color: #ccc; border-style: dashed; }
.lg.gewaehlt::before { background: var(--sitz-gewaehlt); border-color: var(--sitz-gewaehlt-rand); }

/* Saalplan */
.saalplan-svg { width: 100%; max-width: 640px; height: auto; display: block; }
.buehne { fill: var(--dunkel); }
.buehne-text { fill: #fff; font-size: 13px; letter-spacing: 3px; }
.reihe-text { font-size: 11px; fill: #777; }
.platz { cursor: pointer; }
.platz rect, .platz circle { stroke-width: 1; }
.platz-text { font-size: 9px; fill: #333; pointer-events: none; }
.platz.frei rect, .platz.frei circle { fill: var(--sitz-frei); stroke: var(--sitz-frei-rand); }
.platz.frei:hover rect, .platz.frei:hover circle { filter: brightness(0.9); }
.platz.belegt rect, .platz.belegt circle, .platz.gesperrt rect, .platz.gesperrt circle { fill: var(--sitz-belegt); stroke: var(--sitz-belegt-rand); }
.platz.belegt { cursor: default; }
.platz.belegt .platz-text, .platz.gesperrt .platz-text { fill: #888; }
.platz.gesperrt .platz-text { text-decoration: line-through; }
.platz.reserviert rect, .platz.reserviert circle { fill: #fff3cd; stroke: #d9a300; }
.platz.bezahlt rect, .platz.bezahlt circle { fill: #cfe2ff; stroke: #2f6fdb; }
.platz.haus rect, .platz.haus circle { fill: #f8d7da; stroke: #c1121f; }
.platz.inaktiv rect, .platz.inaktiv circle { fill: #f4f4f4; stroke: #ccc; stroke-dasharray: 2 2; }
.platz.inaktiv .platz-text { fill: #bbb; }
.platz.inaktiv { cursor: default; }
.platz.gewaehlt rect, .platz.gewaehlt circle { fill: var(--sitz-gewaehlt); stroke: var(--sitz-gewaehlt-rand); }
.platz.gewaehlt .platz-text { fill: #fff; font-weight: 700; }

/* Zusatzplätze: gestrichelt. Ohne Freigabe der Vorstellung hell mit orangem Rand. */
.platz.zusatz rect, .platz.zusatz circle { fill: #fff8ec; stroke: #e0a040; stroke-dasharray: 3 2; }
.platz.zusatz .platz-text { fill: #b07020; }
.platz.zusatz-markiert rect, .platz.zusatz-markiert circle { stroke-dasharray: 3 2; }
.lg.zusatz::before { background: #fff8ec; border-color: #e0a040; border-style: dashed; }
.reihe-text.preis-text { fill: #444; font-weight: 700; }
.modus label { font-size: 14px; color: var(--grau); margin-right: 12px; }
.summe { font-weight: 700; }
.platz-text.klein { font-size: 7.5px; }
/* Plus-Felder im Editor: hier einen Zusatzsessel dazustellen */
.slot { cursor: pointer; }
.slot rect { fill: none; stroke: #c9c3ba; stroke-dasharray: 2 2; }
.slot .platz-text { fill: #a9a39a; font-size: 14px; }
.slot:hover rect { stroke: var(--orange); fill: #fff4e6; }
.slot:hover .platz-text { fill: var(--orange); }
.lg.slot::before { background: none; border-style: dashed; border-color: #c9c3ba; }
/* Von jemand anderem gerade gewählt */
.platz.gehalten rect, .platz.gehalten circle { fill: #ffe7c2; stroke: #e0a040; }
.platz.gehalten { cursor: not-allowed; }
.platz.gehalten .platz-text { fill: #9a6a1a; }
.lg.gehalten::before { background: #ffe7c2; border-color: #e0a040; }
/* Hinweis auf das Testsystem */
.testbanner { background: repeating-linear-gradient(135deg, #b3261e 0 18px, #8f1c16 18px 36px); color: #fff; text-align: center; font-weight: 700; letter-spacing: 0.08em; padding: 12px 16px; font-size: 16px; text-transform: uppercase; }
.testmarke { display: inline-block; background: #b3261e; color: #fff; font-weight: 700; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin-right: 10px; }
