:root {
    --akzent: #d7262f;
    --text: #1a1a1a;
    --grau: #f3f3f3;
    --linie: #d9d9d9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kopf, .inhalt, .fuss {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Orgabereich: volle Fensterbreite für die Tabellen */
.breit .kopf, .breit .inhalt, .breit .fuss { max-width: none; padding-left: 1.5rem; padding-right: 1.5rem; }

.kopf { padding-top: 1rem; padding-bottom: .75rem; border-bottom: 3px solid var(--akzent); }
.kopf img { display: block; width: 100%; max-width: 18rem; height: auto; }

.inhalt { padding-top: 1.25rem; padding-bottom: 2rem; }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .25rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--linie); }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; }

a { color: var(--akzent); }

.termin { font-size: 1.2rem; font-weight: 600; margin: 0; }
.motto { font-style: italic; margin: .25rem 0 1rem; }

.knopf {
    display: inline-block;
    padding: .75rem 1.5rem;
    background: var(--akzent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: .35rem;
}
.knopf:hover, .knopf:focus { background: #b01c24; }

.hinweis { padding: .75rem 1rem; background: var(--grau); border-left: 4px solid var(--akzent); }

.tabelle { overflow-x: auto; margin: .5rem 0 1rem; }
.tabelle table { border-collapse: collapse; width: 100%; min-width: 20rem; }
.tabelle th, .tabelle td { padding: .45rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { background: var(--grau); }
.tabelle td.preis, .tabelle th.preis { text-align: right; white-space: nowrap; }

.fuss { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--linie); font-size: .9rem; }
.fuss a { margin-right: 1.25rem; }

ul { padding-left: 1.25rem; }

/* Anmeldeformular */
.anmeldeformular form > div,
.anmeldeformular fieldset > div,
.anmeldeformular .plz-ort > div { margin: 0 0 1rem; }

.anmeldeformular label { display: block; font-weight: 600; margin-bottom: .25rem; }

.anmeldeformular input[type="text"],
.anmeldeformular input[type="email"],
.anmeldeformular input[type="tel"],
.anmeldeformular input[type="date"],
.anmeldeformular select,
.anmeldeformular textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: .5rem .6rem;
    font: inherit;
    font-size: 1rem; /* ab 16px zoomt iOS nicht in das Feld */
    color: inherit;
    background: #fff;
    border: 1px solid #8c8c8c;
    border-radius: .3rem;
}
.anmeldeformular textarea { min-height: 6rem; }
.anmeldeformular [aria-invalid="true"] { border: 2px solid var(--akzent); }

.anmeldeformular input[type="checkbox"],
.anmeldeformular input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: .15rem 0 0;
    accent-color: var(--akzent);
}
.anmeldeformular div:has(> input[type="radio"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem .6rem;
    align-items: start;
}
.anmeldeformular input[type="radio"] + label,
.feld-haken label { font-weight: normal; margin: 0; }

.feld-haken { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: start; }
.feld-haken ul { grid-column: 1 / -1; }

.anmeldeformular ul:has(> li[id*="_error"]) { list-style: none; padding: 0; margin: .25rem 0; }
.anmeldeformular li[id*="_error"], .fehler { color: var(--akzent); font-weight: 600; }
.help-text, .klein { font-size: .9rem; color: #555; }
.help-text { margin-top: .2rem; }

.plz-ort { display: grid; grid-template-columns: 7rem 1fr; gap: 0 .75rem; }

.person {
    position: relative;
    margin: 0 0 1rem;
    padding: .75rem 1rem .25rem;
    background: #fafafa;
    border: 1px solid var(--linie);
    border-radius: .5rem;
}
.person legend { padding: 0 .35rem; font-size: 1.1rem; font-weight: 700; }
.person .entfernen { position: absolute; top: .35rem; right: .75rem; }

button.knopf { width: 100%; border: 0; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.knopf[disabled] { opacity: .6; cursor: wait; }
.knopf-zweit {
    padding: .6rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--akzent);
    background: #fff;
    border: 2px solid var(--akzent);
    border-radius: .35rem;
    cursor: pointer;
}
.knopf-leise { padding: .25rem; font: inherit; color: var(--akzent); text-decoration: underline; background: none; border: 0; cursor: pointer; }

.kosten { margin: 1.5rem 0; }
.kosten dl { margin: 0; }
.kosten .posten { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--linie); }
.kosten dd { margin: 0; white-space: nowrap; }
.kosten .summe { font-weight: 700; }
.kosten .posten:not(.summe) { padding-left: .75rem; font-size: .9rem; color: #444; }

.einwilligung { margin: 1.5rem 0 1rem; }
.absenden { margin: 1.5rem 0; }

/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.email-gross { margin: .25rem 0 1rem; font-size: 1.5rem; font-weight: 700; word-break: break-all; }

.orga-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--linie); }

.hinweis.erfolg { border-left-color: #2e7d32; }
.hinweis.fehler { border-left-color: var(--akzent); color: var(--akzent); font-weight: 600; }
.filter { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: .5rem; }
.filter label { display: block; font-weight: 600; }
.filter .feld-haken { align-self: center; }
.daten { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.daten dt { font-weight: 600; }
.daten dd { margin: 0; }
.status-bezahlt, .status-ueberzahlt { color: #2e7d32; font-weight: 600; }
.status-storniert { color: #777; font-weight: 600; }
tr.storniert td { color: #777; text-decoration: line-through; }
tr.storniert td:nth-child(8), tr.storniert td:nth-child(9), tr.storniert td:first-child { text-decoration: none; }
form.zahlung { max-width: 20rem; margin-bottom: 1rem; }
form.zahlung input { display: block; margin-bottom: .5rem; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; margin: 0 0 1.5rem; }
.kachel { display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; background: var(--grau); border: 1px solid var(--linie); border-radius: .5rem; color: inherit; text-decoration: none; }
a.kachel:hover { border-color: var(--akzent); }
.kachel .zahl { font-size: 1.6rem; font-weight: 700; }
.statistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2rem; }
