:root{--bg:#f6f4ef;--card:#fff;--text:#202020;--muted:#6b6b6b;--brand:#1f4d2b;--brand2:#8d1f1f;--line:#e3ded4;--warn:#fff3cd;--danger:#f8d7da;--success:#d1e7dd;--paid:#d8f3dc;--radius:16px}*{box-sizing:border-box}html{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.45}body{margin:0}.topbar{background:linear-gradient(90deg,var(--brand),#316b3e);color:#fff;padding:1rem 0;box-shadow:0 2px 10px #0002}.topbar .inner,.container{max-width:2040px;margin:0 auto;padding:0 1.5rem}.topbar a{color:#fff;text-decoration:none}.brand{font-weight:800;font-size:1.1rem}.container{padding-top:1.4rem;padding-bottom:2rem}.narrow{max-width:1870px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 25px #0000000d;padding:1.25rem;margin:1rem 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.full{grid-column:1/-1}label{display:block;font-weight:650;margin:.45rem 0 .25rem}input,select,textarea{width:100%;padding:.75rem;border:1px solid #cfc8bd;border-radius:10px;font:inherit;background:#fff}textarea{min-height:140px}.small{font-size:.9rem;color:var(--muted)}.btn,button{display:inline-flex;align-items:center;gap:.35rem;background:var(--brand);color:#fff;border:0;border-radius:999px;padding:.75rem 1.05rem;font-weight:700;text-decoration:none;cursor:pointer}button.secondary,.btn.secondary{background:#645a4f}.btn.danger,button.danger{background:var(--brand2)}.btn.light{background:#fff;color:var(--brand);border:1px solid var(--brand)}.alert{padding:1rem;border-radius:12px;margin:1rem 0;border:1px solid #0001}.success{background:var(--success)}.warning{background:var(--warn)}.danger{background:var(--danger)}.muted{color:var(--muted)}.pricebox{font-size:1.25rem;font-weight:800;color:var(--brand)}table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}th,td{border-bottom:1px solid var(--line);padding:.62rem;text-align:left;vertical-align:top}th{background:#efe9de;cursor:pointer;white-space:nowrap}tr.flag-due{background:#fff3cd}tr.flag-paid{background:var(--paid)}tr.cancelled{opacity:.65;text-decoration:line-through}.adminnav{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.adminnav a{background:#fff;color:var(--brand);border:1px solid #fff8;padding:.5rem .75rem;border-radius:999px;text-decoration:none;font-weight:700}.kpi{background:#fff;border-radius:14px;padding:1rem;border:1px solid var(--line)}.docs{display:flex;flex-wrap:wrap;gap:.5rem}.docs a{padding:.35rem .6rem;background:#efe9de;border-radius:999px;color:var(--text);text-decoration:none}.copyrow{display:flex;gap:.5rem}.copyrow input{font-size:.88rem}.footer{color:var(--muted);font-size:.9rem;padding:2rem 1rem;text-align:center}.backbar{display:flex;justify-content:flex-start;margin:.75rem 0 0}.backbtn{background:#fff;color:var(--brand);border:1px solid #fff8}.field-stack{display:flex;flex-direction:column;gap:.75rem}.field-error{color:#8d1f1f;font-weight:700;margin-top:.35rem}.required-note{margin:.85rem 0;color:var(--muted);font-size:.95rem}.checkline{display:flex;align-items:flex-start;gap:.8rem;margin:.7rem 0;font-weight:650}.checkline input[type="checkbox"]{width:1.55rem;height:1.55rem;min-width:1.55rem;margin:.05rem 0 0;accent-color:var(--brand);outline:2px solid #7d7468;outline-offset:2px}.doc-accept{border:2px solid var(--brand);border-radius:14px;padding:1rem;background:#f9f7f1}.doc-accept .checkline{font-size:1.05rem}.email-pair{max-width:680px}.inline-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.topbar .inner{display:flex;flex-direction:column;gap:.6rem}.success-card{text-align:center;padding:2rem}.success-title{font-size:clamp(2rem,5vw,4.2rem);color:var(--brand);letter-spacing:.03em;margin:.4rem 0}.lead{font-size:1.25rem;font-weight:700}.tablewrap{overflow:auto}
@media(min-width:1100px){.card{padding:1.6rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem 1.4rem}.grid3{gap:1.15rem 1.4rem}table{font-size:.95rem}}
@media(max-width:780px){.grid,.grid3{grid-template-columns:1fr}.container{padding-left:1rem;padding-right:1rem}.narrow{max-width:100%}.topbar .inner{display:block}th,td{min-width:130px}.btn,button{width:100%;justify-content:center}.adminnav a{flex:1 1 auto;text-align:center}}
@media print{.topbar,.btn,button,.adminnav{display:none}.card{box-shadow:none;border:1px solid #ddd}}

.map-card iframe{width:100%;min-height:420px;border:1px solid var(--line);border-radius:14px;background:#efe9de}.map-card a{font-weight:700;color:var(--brand)}
.event-list{display:grid;gap:1rem}.event-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);gap:1.2rem;align-items:stretch}.event-overview .map-card{margin:0;height:100%;padding:0;border:0;box-shadow:none}.map-card iframe{width:100%;height:340px;border:0;border-radius:14px;background:#eee}.event-map .map-card h2{display:none}.row-overdue{background:#f8d7da!important}.reminder-badge{display:inline-block;padding:.25rem .5rem;border-radius:999px;background:#fff3cd;font-weight:700}@media(max-width:900px){.event-overview{grid-template-columns:1fr}.map-card iframe{height:260px}}
.info-note{background:#eef6ef;border-color:#cfe6d2}.compact-map{padding:1rem}.compact-map .map-placeholder{min-height:135px;border:1px dashed #b6ad9d;border-radius:14px;background:linear-gradient(135deg,#efe9de,#f8f5ee);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1rem;color:var(--brand)}.compact-map .map-placeholder strong{font-size:1.25rem}.compact-map .btn{width:auto}.event-map .compact-map{height:auto}.event-overview .compact-map{padding:1rem;border:1px solid var(--line);box-shadow:0 8px 25px #0000000d}.no-car-hint{margin-top:.25rem}
@media(min-width:1100px){.compact-map{max-width:720px}.event-overview .compact-map{max-width:none}}
/* Nachtrag 7 */
.topbar .inner,.container{max-width:2448px}.narrow{max-width:2244px}.event-info-map-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.75fr);gap:1rem;align-items:start}.event-info-map-row .event-info-card{margin:1rem 0}.event-info-map-side .compact-map{margin:1rem 0;max-width:none}.event-info-map-side .map-placeholder{min-height:120px}.captcha-field{grid-column:1/2}.car-options[style*="display: none"],.trailer-options[style*="display: none"]{display:none!important}@media(max-width:900px){.event-info-map-row{grid-template-columns:1fr}.captcha-field{grid-column:1/-1}}
/* Nachtrag 9 */
.link-button{background:transparent!important;color:var(--brand)!important;border:0!important;padding:0!important;border-radius:0!important;text-decoration:underline;font-weight:800;display:inline;cursor:pointer}.modal{border:0;border-radius:18px;box-shadow:0 20px 70px #0005;max-width:min(720px,92vw);padding:1.5rem}.modal::backdrop{background:#0008}.modal .copyrow input{min-width:0}.modal .copyrow button{white-space:nowrap}
/* Nachtrag 13 */
.email-optin{color:#0f7b35!important;font-weight:800}.email-optout{color:#a01818!important;font-weight:800}.email-optin:hover,.email-optout:hover{text-decoration:underline}
/* Nachtrag 15 */
.filterbar{margin:1rem 0}.searchrow{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.searchrow input[type="search"]{flex:1 1 360px}.searchrow .btn,.searchrow button{width:auto}.tablewrap tr[style*="display: none"]{display:none!important}
/* Nachtrag 17 */
.custom-modal-backdrop{position:fixed;inset:0;background:#0008;z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.custom-modal-box{background:#fff;border-radius:18px;box-shadow:0 20px 70px #0006;max-width:min(640px,94vw);padding:1.5rem;border:1px solid var(--line)}.custom-modal-box h2{margin-top:0;color:var(--brand)}.custom-modal-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.custom-modal-actions button{width:auto}
/* Nachtrag 18 */
.event-info-card h2{margin:.15rem 0 .55rem}.event-info-card .grid{gap:.35rem .9rem}.event-info-card p{margin:.18rem 0;line-height:1.25}.event-info-card{padding:1rem 1.15rem}.event-info-map-row .event-info-card{margin:.65rem 0}.event-info-map-side .compact-map{margin:.65rem 0}
/* Nachtrag 19/20: Terminbild ersetzt OpenStreetMap im Frontend */
.event-image-card{padding:.75rem;margin:.65rem 0;overflow:hidden}.event-image-card img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:14px;border:1px solid var(--line);background:#f3efe8}.event-info-map-side .event-image-card{height:100%;max-height:100%;padding:0;border:0;box-shadow:none;background:transparent}.event-info-map-side .event-image-card img{height:100%;max-height:260px}.event-overview .event-image-card{margin:0;height:auto;padding:0;border:0;box-shadow:none;background:transparent}.event-overview .event-image-card img{height:auto;max-height:240px;min-height:0}.event-image-preview{margin-top:.75rem}.event-image-preview img{display:block;max-width:420px;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);margin-bottom:.5rem}@media(max-width:900px){.event-image-card img,.event-info-map-side .event-image-card img,.event-overview .event-image-card img{height:auto;max-height:220px;min-height:0}}

/* Nachtrag 20 Fix: Terminbild wirklich kompakt begrenzen und Cache-Bust über v=20260614n21 */
.event-map{align-self:start!important}
.event-image-card{width:100%!important;overflow:hidden!important}
.event-image-card img{display:block!important;width:100%!important;object-fit:cover!important}
.event-image-overview{height:380px!important;max-height:380px!important}
.event-image-detail{height:352px!important;max-height:352px!important}
.event-overview{align-items:start!important}
.event-info-map-row{align-items:start!important}
@media(max-width:900px){.event-image-overview{height:340px!important;max-height:340px!important}.event-image-detail{height:272px!important;max-height:272px!important}}

/* Nachtrag 20 Layout-Fix: Bildbox in der Anmeldemaske oben synchron zur Infobox und gleich hoch */
.event-info-image-sync{align-items:stretch!important}
.event-info-image-sync .event-info-card{margin:0!important;height:100%}
.event-info-image-sync .event-info-map-side{display:flex!important;align-items:stretch!important;align-self:stretch!important;margin:0!important}
.event-info-image-sync .event-image-detail{height:auto!important;max-height:none!important;min-height:0!important;flex:1 1 auto!important;margin:0!important}
.event-info-image-sync .event-image-detail img{height:100%!important;max-height:none!important;min-height:0!important}
@media(max-width:900px){.event-info-image-sync .event-image-detail{height:272px!important;max-height:272px!important}.event-info-image-sync .event-image-detail img{height:100%!important}}

.weather-preview{padding:1rem 1.15rem;border-radius:14px;background:#eef7ee;border:1px solid #cfe5cf;font-weight:600;line-height:1.45}
.footer a{color:inherit;text-decoration:none;font-weight:700}.footer a:hover{text-decoration:underline}.footer-sep{display:inline-block;margin:0 .35rem}
/* Nachtrag 26 */
.payment-qr-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:1rem;align-items:start;margin-top:.75rem}.payment-qr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:.75rem;text-align:center}.payment-qr img{width:180px;height:180px;max-width:100%;display:block;margin:0 auto}.amount-overpaid{color:#b00020!important;font-weight:900}.row-refund-open{background:#f0e6ff!important}.refund-box,.payment-box{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fffaf2}.iban-ok{color:#0f7b35;font-weight:700}@media(max-width:780px){.payment-qr-row{grid-template-columns:1fr}.payment-qr img{width:210px;height:210px}}


/* Nachtrag 36: Passwort anzeigen/ausblenden */
.password-toggle-wrap{position:relative;display:block;width:100%}
.password-toggle-input{padding-right:3.1rem!important;width:100%;box-sizing:border-box}
.password-toggle-button{position:absolute;right:.45rem;top:50%;transform:translateY(-50%);width:2.25rem!important;height:2.25rem!important;min-width:2.25rem;padding:0!important;border-radius:10px!important;display:flex!important;align-items:center;justify-content:center;background:#f8f5ee!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important;font-size:1.05rem;line-height:1;cursor:pointer}
.password-toggle-button:hover,.password-toggle-button:focus{background:#efe9de!important;outline:2px solid var(--brand);outline-offset:1px}
td .password-toggle-wrap{min-width:190px}

.availability{margin:18px 0;padding:16px;background:#f2f7f3;border:1px solid #b5cbbb;border-radius:10px;color:#183c28}
.availability-title{font-weight:700;margin:0 0 8px}
.availability-bar{position:relative;height:36px;background:#fff;border:1px solid #55745e;border-radius:7px;overflow:hidden}
.availability-fill{position:absolute;inset:0 auto 0 0;background:#89c798}
.availability-value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;color:#112e1d}
.availability-remaining{margin:10px 0 0}.availability .small{margin-bottom:0}

/* V47: payment QR remains readable at its full display size. */
.payment-qr-row{grid-template-columns:minmax(0,1fr) 340px}.payment-qr img{width:308px;height:auto;max-width:100%}@media(max-width:780px){.payment-qr-row{grid-template-columns:1fr}.payment-qr img{width:308px;height:auto}}
