
:root{--red:#d90d20;--gold:#efbd3a;--ink:#141a24;--muted:#606875;--line:#e2e6eb;--bg:#f4f5f7}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,"Segoe UI",Arial,sans-serif;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.flagline{display:block!important;width:100%!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;border:0!important;background:#ffeb00!important;background-image:linear-gradient(to bottom,#000 0%,#000 33.3333%,#dd0000 33.3333%,#dd0000 66.6667%,#ffeb00 66.6667%,#ffeb00 100%)!important;background-size:100% 100%!important;background-repeat:no-repeat!important}header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.header-inner{max-width:none;width:100%;margin:auto;padding:11px 28px;min-height:76px;display:flex;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:10px;min-width:260px}.mark{width:58px;display:flex;flex-direction:column;gap:4px;transform:skew(-18deg)}.mark i{display:block;height:10px;border-radius:70% 12% 80% 15%}.mark i:nth-child(1){background:#111;width:57px}.mark i:nth-child(2){background:var(--red);width:51px}.mark i:nth-child(3){background:var(--gold);width:45px}.brand-name{font-weight:850;font-size:32px;letter-spacing:-1px;line-height:1.1;white-space:nowrap}.brand-name span{color:var(--red)}.brand-sub{font-size:13px;color:#565d67}.nav{display:flex;flex-wrap:wrap;row-gap:4px;gap:2px;justify-content:flex-end;align-items:center;flex:1;min-width:0}.nav a{font-size:12px;padding:9px 8px;border-radius:7px;white-space:nowrap}.nav a:hover,.nav a.active{background:var(--red);color:#fff}.nav-toggle{display:none}
.hero{min-height:350px;position:relative;display:flex;align-items:center;background:#1a2530;color:white;overflow:hidden}.hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,15,24,.88),rgba(9,15,24,.58) 42%,rgba(9,15,24,.12)),url('/static/images/hero-demonstration.png') center/cover no-repeat}.hero-inner{position:relative;max-width:1880px;width:100%;margin:auto;padding:45px 28px}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:2px;margin-bottom:10px}.hero h1{font-size:clamp(36px,4.4vw,57px);line-height:1.04;letter-spacing:-1.7px;margin:0 0 13px;max-width:650px}.gold{color:var(--gold)}.hero p{max-width:560px;font-size:16px;color:#f0f2f5;margin:0 0 22px}.actions{display:flex;gap:10px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:8px;border:1px solid transparent;font-size:13px;font-weight:750;cursor:pointer}.primary{background:var(--red);color:#fff}.secondary{background:#fff;border-color:#d8dce2;color:var(--ink)}.small{padding:8px 11px;font-size:12px}.wrap{max-width:none;width:100%;margin:auto;padding:0 28px}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 24px}.shortcut{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px;min-height:103px}.shortcut-icon{font-size:28px;color:var(--red);width:34px;flex-shrink:0;text-align:center}.shortcut h3{font-size:14px;margin:0 0 4px}.shortcut p{font-size:12px;color:var(--muted);margin:0 0 5px}.text-link{font-size:12px;color:var(--red);font-weight:800}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.section-head h2{font-size:25px;margin:0}.section-icon{color:var(--red);margin-right:9px}.all-link{color:var(--red);font-weight:750;font-size:12px;white-space:nowrap}
.events{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.event-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0;display:flex;flex-direction:column}.flyer{aspect-ratio:0.707;position:relative;background:#e8e9ec;display:flex;align-items:center;justify-content:center;overflow:hidden}.flyer img{width:100%;height:100%;object-fit:contain;background:#fff}.placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;color:#fff;font-weight:800;background:linear-gradient(145deg,#35414d,#10151c)}.mini-flag{display:flex;flex-direction:column;width:50px;transform:rotate(-8deg);margin-bottom:10px;box-shadow:0 2px 6px #0004}.mini-flag i{height:8px}.mini-flag i:nth-child(1){background:#111}.mini-flag i:nth-child(2){background:#d90d20}.mini-flag i:nth-child(3){background:#efbd3a}.placeholder strong{font-size:clamp(10px,1vw,14px);line-height:1.2}.placeholder small{font-size:9px;font-weight:500;margin-top:8px}.date-badge{position:absolute;top:6px;left:6px;background:#fff;border-radius:5px;min-width:39px;text-align:center;overflow:hidden;box-shadow:0 2px 7px #0002}.date-badge .month{display:block;background:var(--red);color:#fff;font-size:8px;font-weight:850;padding:3px}.date-badge .day{font-size:20px;font-weight:850;line-height:1.1}.date-badge .weekday{font-size:9px;color:#626975;padding-bottom:3px}.event-content{padding:9px;display:flex;flex-direction:column;flex:1}.event-content h3{font-size:12px;line-height:1.25;margin:0 0 6px;overflow-wrap:anywhere}.meta{font-size:10px;color:#515966;margin:2px 0;overflow-wrap:anywhere}.bottom-panels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 28px}.panel{display:flex;min-height:140px;background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.panel-image{width:34%;flex-shrink:0;background:#dce1e5 center/cover}.panel-copy{padding:14px}.panel h3{font-size:16px;margin:0 0 5px}.panel p{font-size:12px;color:var(--muted);margin:0 0 10px}.footer{background:#111923;color:#e7eaf0;padding:24px 20px;font-size:12px}.footer-inner{max-width:none;width:100%;margin:auto;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer a{text-decoration:underline}.notice,.hint{font-size:12px;color:#737b87}.notice{margin:0 0 20px}.page-hero{background:linear-gradient(115deg,#17212e,#303d4b);color:white;padding:35px 0}.page-hero h1{font-size:clamp(30px,4vw,44px);line-height:1.1;margin:0 0 10px}.page-hero p{max-width:760px;margin:0;color:#e4e8ee}.content-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin:23px 0}.content-card h2{margin:0 0 12px;font-size:22px}.calendar-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-day{border:1px solid var(--line);border-radius:7px;background:#fff;min-height:60px;padding:7px;text-align:left;color:var(--ink);cursor:pointer}.calendar-day.head{min-height:0;border:0;background:transparent;text-align:center;font-size:12px;font-weight:850;color:var(--muted);padding:5px}.calendar-day.has-event{background:#fff0f1;border-color:#e5a4ab}.calendar-day .event-dot{display:block;color:var(--red);font-size:10px;font-weight:750;margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:750}.field input,.field select,.field textarea{width:100%;border:1px solid #cdd3dc;border-radius:7px;padding:10px 11px;background:#fff}.field textarea{min-height:110px;resize:vertical}.checkrow{display:flex;gap:9px;align-items:flex-start;font-size:13px}.checkrow input{margin-top:4px}.form-message{display:none;margin-top:15px;padding:12px;border-radius:8px;background:#eef8f0;color:#176538;font-size:13px}.form-message.error{display:block;background:#fff0f0;color:#a11;border:1px solid #e6a0a0}.frequency{display:flex;gap:10px;flex-wrap:wrap}.frequency label{border:1px solid var(--line);padding:11px 14px;border-radius:8px;display:flex;gap:8px;align-items:center;background:#fff}.region-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px}.region-grid label{min-width:0;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;display:flex;gap:10px;align-items:center;justify-content:flex-start;cursor:pointer;font-size:14px}.region-grid input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;width:20px!important;height:20px!important;min-width:20px;flex:0 0 20px;margin:0;accent-color:var(--red);cursor:pointer}.file-row{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.flyer-preview{width:min(100%,260px);aspect-ratio:0.707;border:1px dashed #aeb5bf;border-radius:8px;background:#f6f7f9;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#707887;text-align:center;padding:10px}.flyer-preview img{width:100%;height:100%;object-fit:contain;background:white}.demo-tag{display:inline-block;background:#fff1c9;color:#735400;font-size:11px;font-weight:800;padding:4px 8px;border-radius:5px}
@media(max-width:1450px){.events{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1100px){.brand{min-width:220px}.brand-name{font-size:27px}.nav a{padding:8px 5px;font-size:10px}.shortcuts{grid-template-columns:repeat(2,1fr)}.events{grid-template-columns:repeat(4,minmax(0,1fr))}.bottom-panels{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-panels .panel:first-child{grid-column:auto}}@media(max-width:760px){
  .header-tools{flex:1 0 100%;width:100%;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
  .header-tools .member-auth-widget{order:10;flex:0 0 auto;margin-left:auto;max-width:100%;white-space:nowrap!important}
.header-inner{flex-wrap:wrap}.brand{flex:1}.nav-toggle{display:block;background:white;border:1px solid var(--line);border-radius:7px;padding:7px 11px}.nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch}.nav.open{display:flex}.nav a{font-size:14px}.hero{min-height:390px}.hero-inner{padding:35px 19px}.wrap{padding:0 12px}.shortcuts{gap:8px}.shortcut{padding:11px;gap:8px}.events{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.event-content{padding:8px}.bottom-panels{grid-template-columns:1fr}.bottom-panels .panel:first-child{grid-column:auto}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.region-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.region-grid label{min-height:46px;padding:10px;font-size:13px}.region-grid input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px;flex-basis:20px}.file-row{grid-template-columns:1fr}.flyer-preview{width:200px}}@media(max-width:460px){.brand-name{font-size:22px}.brand-sub{font-size:9px}.shortcuts,.events{grid-template-columns:repeat(2,minmax(0,1fr))}.actions .button{width:100%}.calendar-day{min-height:42px;padding:4px}.calendar-controls .button{font-size:10px;padding:7px}}

.flyer-preview{position:relative;display:flex;flex-direction:column;padding:0}.flyer-preview img{width:100%;height:100%;object-fit:contain;min-height:0}.flyer-preview iframe{flex:1;min-height:0}.flyer-preview-caption{position:absolute;left:0;right:0;bottom:0;padding:5px 7px;background:rgba(17,25,35,.82);color:#fff;font-size:10px;overflow-wrap:anywhere;text-align:center}.flyer-preview:has(img),.flyer-preview:has(iframe){background:#fff}

.pdf-flyer-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:12px;text-align:center;color:#27364a;font-weight:800;background:#f4f6f8}.event-card .flyer .date-badge{z-index:2}

/* PDF-Miniaturansicht auf Veranstaltungskarten */
.pdf-thumbnail{position:absolute;inset:0;background:#f2f3f5;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pdf-thumbnail object{width:100%;height:100%;border:0;pointer-events:none;background:#fff}
.pdf-thumbnail-open{position:absolute;inset:0;z-index:3;display:block;background:transparent}
.pdf-thumbnail-hint{position:absolute;left:0;right:0;bottom:0;z-index:4;pointer-events:none;text-align:center;background:rgba(17,25,35,.78);color:white;font-size:9px;padding:4px 2px}
.pdf-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;height:100%;background:linear-gradient(145deg,#f7f7f7,#dfe3e8);color:#a51d2d;font-weight:900;font-size:26px}
.pdf-fallback small{font-size:10px;color:#303b49;font-weight:700}
.calendar-day.has-event{overflow:auto}
.calendar-day .event-dot{white-space:normal;overflow-wrap:anywhere;line-height:1.25;text-align:left;background:rgba(255,255,255,.75);border-radius:4px;padding:3px;margin-top:4px}

/* Bestätigungsseite und Veranstaltungsdetails */
.confirmation-wrap{padding-top:42px;padding-bottom:54px}
.confirmation-card{max-width:900px;margin:0 auto}
.confirmation-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.confirmation-nav{flex-wrap:wrap}
.event-detail-wrap{padding-top:28px;padding-bottom:56px}
.event-detail-card{display:grid;grid-template-columns:minmax(240px,0.8fr) minmax(300px,1.2fr);gap:28px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:0 6px 24px #1720330b}
.event-detail-flyer{min-width:0;align-self:start;aspect-ratio:0.707;background:#f0f1f3;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.event-detail-flyer>a{display:block;width:100%;height:100%}
.event-detail-flyer img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.detail-pdf{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px}
.detail-pdf object{width:100%;flex:1;min-height:280px;background:white}
.event-detail-info h2{margin:12px 0 16px}
.event-facts{margin:0 0 22px}
.event-facts div{padding:10px 0;border-bottom:1px solid var(--line)}
.event-facts dt{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.event-facts dd{margin:3px 0 0;font-weight:650}
.event-description{white-space:pre-line;line-height:1.7}
.privacy-note{font-size:12px;color:var(--muted);border-left:3px solid var(--gold);padding:8px 12px;background:#fffaf0}
.calendar-event-link{display:block;color:#263343;text-decoration:none;cursor:pointer}
.calendar-event-link:hover{background:#fff;border:1px solid var(--red);color:var(--red)}
@media(max-width:760px){.event-detail-card{grid-template-columns:1fr}.event-detail-flyer{max-width:420px;width:100%;margin:0 auto}.confirmation-nav{display:none}}

/* Homepage event flyer links and public flyer download */
.event-flyer-link{display:flex;color:inherit;text-decoration:none;cursor:pointer;transition:filter .15s ease}.event-flyer-link:hover{filter:brightness(.97)}.event-flyer-link:focus-visible,.event-title-link:focus-visible{outline:3px solid #d7a928;outline-offset:2px}.event-title-link{color:inherit;text-decoration:none}.event-title-link:hover{text-decoration:underline;color:var(--red)}.event-detail-flyer{height:fit-content;aspect-ratio:auto;flex-direction:column;gap:12px;overflow:visible;background:transparent}.event-detail-flyer>a:not(.button){display:block;width:100%;aspect-ratio:0.707;overflow:hidden;border-radius:8px;background:#f0f1f3}.event-detail-flyer .detail-pdf{width:100%;display:flex;flex-direction:column;gap:10px}.event-detail-flyer .detail-pdf object{width:100%;aspect-ratio:0.707;background:#f0f1f3;border-radius:8px}.flyer-download{align-self:flex-start}.event-detail-flyer>.flyer-download{align-self:stretch;text-align:center}
.event-flyer-link .pdf-thumbnail object{pointer-events:none}.event-detail-flyer>a.button{width:auto;height:auto;max-width:100%;box-sizing:border-box}.event-detail-flyer .detail-pdf>a.button{width:100%;text-align:center;box-sizing:border-box}

/* Clear visual cancellation mark on flyer cards and detail page */
.cancelled-stamp{position:absolute;z-index:3;left:-13%;top:42%;width:126%;transform:rotate(-24deg);background:rgba(190,20,35,.94);color:#fff;text-align:center;font-size:clamp(15px,1.5vw,28px);font-weight:950;letter-spacing:.1em;padding:9px 0;border-top:3px solid #fff;border-bottom:3px solid #fff;text-shadow:0 1px 2px #600;pointer-events:none;box-shadow:0 2px 10px #0004}.detail-cancelled-stamp{position:absolute;top:45%;font-size:clamp(18px,2vw,30px)}.event-detail-flyer{position:relative}.cancelled-notice{padding:12px 14px;margin-bottom:14px;border:1px solid #e4a0a6;border-left:5px solid #b4232d;background:#fff0f1;color:#8f1520;border-radius:7px}.cancelled-inline{color:#b4232d;font-weight:900}.event-card .flyer .cancelled-stamp{pointer-events:none}


/* Barrierearme Darstellung: Systemvorgabe als Standard, manuell umschaltbar */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--bg);color:var(--ink);font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.theme-toggle:hover{border-color:var(--red)}
.theme-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(max-width:760px){.theme-toggle{align-self:flex-start;margin:5px 0 4px}}
:root[data-theme="dark"]{color-scheme:dark;--ink:#edf1f6;--muted:#b1bbc8;--line:#394453;--bg:#151a21}
:root[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="dark"] header{background:#1b222c;border-color:var(--line)}
:root[data-theme="dark"] .brand-sub{color:#c0c8d2}
:root[data-theme="dark"] .shortcut,:root[data-theme="dark"] .event-card,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .content-card,:root[data-theme="dark"] .calendar-day,:root[data-theme="dark"] .frequency label,:root[data-theme="dark"] .region-grid label,:root[data-theme="dark"] .admin-event,:root[data-theme="dark"] .auth-card{background:#202833;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .event-card .flyer img,:root[data-theme="dark"] .flyer-preview img{background:#fff}
:root[data-theme="dark"] .date-badge{background:#f4f5f7;color:#141a24}
:root[data-theme="dark"] .date-badge .weekday{color:#515966}
:root[data-theme="dark"] .meta,:root[data-theme="dark"] .hint,:root[data-theme="dark"] .notice,:root[data-theme="dark"] .shortcut p,:root[data-theme="dark"] .panel p,:root[data-theme="dark"] .fieldline{color:#c0c8d2}
:root[data-theme="dark"] .calendar-day.head{background:transparent;color:#c0c8d2}
:root[data-theme="dark"] .calendar-day.has-event{background:#3a242b;border-color:#82414b}
:root[data-theme="dark"] .secondary{background:#293340;border-color:#4a5666;color:#f0f3f7}
:root[data-theme="dark"] .theme-toggle{background:#293340;color:#f0f3f7;border-color:#4a5666}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .auth-card input,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#151b23;color:#f0f3f7;border-color:#4a5666}
:root[data-theme="dark"] .page-hero{background:linear-gradient(115deg,#111923,#252f3b)}
:root[data-theme="dark"] .notice{background:#293340}
:root[data-theme="dark"] .demo-tag{background:#4b401f;color:#ffe6a0}
:root[data-theme="dark"] .flyer-preview{background:#202833;border-color:#596574;color:#c0c8d2}
:root[data-theme="dark"] .placeholder{color:#fff}
:root[data-theme="dark"] .admin-event{background:#202833}
:root[data-theme="dark"] .status.pending{background:#51451e;color:#ffe8a1}
:root[data-theme="dark"] .status.approved{background:#1d4934;color:#a7f0c5}
:root[data-theme="dark"] .status.rejected,:root[data-theme="dark"] .status.cancelled{background:#51282d;color:#ffb9c0}
@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark}}

:root[data-theme="dark"] .calendar-day:not(.head){background:#40546a;color:#f6f8fb;border-color:#60758d}
:root[data-theme="dark"] .calendar-day:not(.head):hover{background:#4c637d;border-color:#9aafc4}
:root[data-theme="dark"] .calendar-day.has-event{background:#58404a;border-color:#b16b7b}

/* Lesbarkeit der Veranstaltungsdetails: dunkle Schrift auf der hellen Detailkarte */
.event-detail-card,
.event-detail-card .event-detail-info,
.event-detail-card .event-detail-info h1,
.event-detail-card .event-detail-info h2,
.event-detail-card .event-detail-info h3,
.event-detail-card .event-detail-info p,
.event-detail-card .event-detail-info strong,
.event-detail-card .event-detail-info label,
.event-detail-card .event-detail-info .detail-value,
.event-detail-card .event-detail-info .detail-label {
  color: #202936;
}
.event-detail-card .event-detail-info .detail-label,
.event-detail-card .event-detail-info .muted {
  color: #596574;
}
.event-detail-card .event-detail-info a:not(.button) {
  color: #202936;
}

/* Brückenleuchten-Rubrik und verständliche Adress-Hilfe */
.panel-image{background-position:center;background-size:cover}
.bridge-hero{min-height:340px;padding:52px 0;color:#fff;background:linear-gradient(90deg,rgba(9,20,34,.94) 0%,rgba(9,20,34,.72) 46%,rgba(9,20,34,.12) 100%),url('/static/images/brueckenleuchten-header.jpg') center 52%/cover no-repeat}
.bridge-hero .eyebrow{font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#ffd45d;font-size:12px}
.bridge-hero h1{font-size:clamp(32px,4.4vw,52px);line-height:1.08;max-width:760px;margin:10px 0 14px}
.bridge-hero h2{font-size:clamp(19px,2.2vw,26px);margin:0 0 12px}
.bridge-hero p{max-width:650px;font-size:17px;line-height:1.55;margin:0 0 20px}
.bridge-content{max-width:1000px;margin:24px auto;line-height:1.65}
.bridge-content h2{margin-top:24px}
.bridge-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.address-help{border:1px solid #e9c34b;background:#fff8d9;color:#423712;padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.45;margin-top:2px}
.address-help strong{display:block;margin-bottom:3px}
.google-route{display:inline-flex;align-items:center;gap:8px;margin:12px 0;padding:12px 16px;background:#bd1020;color:#fff!important;border-radius:8px;text-decoration:none!important;font-weight:800}
.google-route:hover{background:#9f0d1a}
@media(max-width:760px){.bridge-hero{padding:36px 0;min-height:300px}.bridge-hero p{font-size:15px}.bottom-panels .panel{min-height:125px}}


/* V33: Logo neben dem Anliegen auf der Über-uns-Seite */
.about-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,34%);gap:28px;align-items:center}
.about-copy{min-width:0}
.about-logo{display:flex;align-items:center;justify-content:center;min-width:0;padding:12px}
.about-logo img{display:block;width:100%;max-width:390px;height:auto;object-fit:contain}
@media(max-width:760px){.about-card{grid-template-columns:1fr;gap:14px}.about-logo{grid-row:1;padding:4px 8px 12px}.about-logo img{max-width:240px}}

/* V33: Detailansicht folgt konsequent dem gewählten Farbmodus */
:root[data-theme="dark"] .event-detail-card,
:root[data-theme="dark"] .event-detail-info,
:root[data-theme="dark"] .event-detail-content,
:root[data-theme="dark"] .event-detail-section,
:root[data-theme="dark"] .detail-info,
:root[data-theme="dark"] .detail-panel,
:root[data-theme="dark"] .detail-pdf,
:root[data-theme="dark"] .event-detail-wrap,
:root[data-theme="dark"] .event-detail-card .event-detail-info,
:root[data-theme="dark"] .event-detail-card .event-detail-content{
  background:#202833!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] .event-detail-card p,
:root[data-theme="dark"] .event-detail-card h2,
:root[data-theme="dark"] .event-detail-card h3,
:root[data-theme="dark"] .event-detail-card li,
:root[data-theme="dark"] .event-detail-card label,
:root[data-theme="dark"] .event-detail-card .meta,
:root[data-theme="dark"] .event-detail-card .muted{
  color:var(--ink)!important;
}
:root[data-theme="dark"] .event-detail-card a:not(.button):not(.btn){
  color:#f2c75c;
}
:root[data-theme="dark"] .event-detail-card input,
:root[data-theme="dark"] .event-detail-card select,
:root[data-theme="dark"] .event-detail-card textarea{
  background:#151a21!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] .event-detail-card .event-detail-flyer,
:root[data-theme="dark"] .event-detail-card .event-detail-flyer img,
:root[data-theme="dark"] .event-detail-card .detail-pdf object{
  /* Flyer/PDF bleiben in Originalfarben und werden nicht abgedunkelt. */
  color-scheme:light;
}
:root[data-theme="light"] .event-detail-card{
  background:#fff;color:#141a24;border-color:#e2e6eb;
}


/* Mehrsprachigkeit: Sprachwahl in der Kopfzeile */
.language-picker{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-size:12px;white-space:nowrap}
.language-picker select{max-width:135px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;outline-offset:3px}
.language-picker select option{background:var(--bg);color:var(--ink)}
@media(max-width:760px){.language-picker{align-self:flex-start;margin:5px 0 4px}.language-picker select{max-width:100%}}


/* Newsletter: einheitliche, gut erreichbare Auswahlkarten */
.frequency,.horizon-options{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}
.frequency .choice-card,.horizon-options .choice-card{box-sizing:border-box;min-height:46px;min-width:140px;padding:10px 16px;border:1px solid var(--line);border-radius:9px;display:flex;gap:10px;align-items:center;justify-content:flex-start;cursor:pointer;background:var(--card,#fff);color:var(--ink);font-size:14px;font-weight:750;transition:border-color .15s,background-color .15s,box-shadow .15s}
.frequency .choice-card input,.horizon-options .choice-card input{appearance:auto;-webkit-appearance:radio;width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;margin:0;accent-color:var(--red);cursor:pointer}
.frequency .choice-card:has(input:checked),.horizon-options .choice-card:has(input:checked){border-color:var(--red);background:#fff0f1;box-shadow:inset 0 0 0 1px var(--red)}
.region-grid label:has(input:checked){border-color:var(--red);background:#fff0f1;box-shadow:inset 0 0 0 1px var(--red)}
:root[data-theme="dark"] .frequency .choice-card,:root[data-theme="dark"] .horizon-options .choice-card{background:#202833;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .frequency .choice-card:has(input:checked),:root[data-theme="dark"] .horizon-options .choice-card:has(input:checked),:root[data-theme="dark"] .region-grid label:has(input:checked){background:#39232a;border-color:#f04452;box-shadow:inset 0 0 0 1px #f04452}
@media(max-width:600px){.frequency .choice-card,.horizon-options .choice-card{flex:1 1 calc(50% - 10px);min-width:0;min-height:48px;padding:10px 12px}.horizon-options .choice-card{flex-basis:calc(33.333% - 10px);justify-content:center}}


/* Newsletter V39: keine vorausgewählten Optionen und Einwilligung sauber ausrichten */
.frequency .choice-card:has(input:checked),
.horizon-options .choice-card:has(input:checked),
.region-grid label:has(input:checked){outline-offset:2px}
.consent-check{display:flex;align-items:flex-start;justify-content:flex-start;gap:12px;width:100%;max-width:100%;box-sizing:border-box;text-align:left;cursor:pointer;line-height:1.5;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--ink)}
.consent-check input{flex:0 0 20px;width:20px!important;height:20px!important;min-width:20px;margin:1px 0 0;accent-color:var(--red);cursor:pointer}
.consent-check span{flex:1;min-width:0;text-align:left}
:root[data-theme="dark"] .consent-check{background:#202833;border-color:var(--line);color:var(--ink)}
.region-grid input[type="checkbox"]{width:18px;height:18px;min-width:18px;accent-color:var(--red)}


/* V41: einheitliche Einwilligungszeilen, kompakter Flaggen-Umschalter und besser lesbare Navigation */
.checkrow{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;width:100%;text-align:left;line-height:1.5;}
.checkrow input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important;margin:2px 0 0!important;accent-color:var(--red);cursor:pointer;}
.language-picker{display:inline-flex;align-items:center;justify-content:center;padding:2px!important;width:44px;height:40px;min-width:44px;border:1px solid var(--line);border-radius:50%!important;background:var(--bg);overflow:hidden;}
.language-picker select{appearance:none;-webkit-appearance:none;width:100%;height:100%;max-width:none!important;text-align:center;text-align-last:center;font-size:21px!important;font-weight:400!important;padding:0!important;border:0!important;outline-offset:2px;cursor:pointer;background:transparent;color:var(--ink);}
.language-picker select option{font-size:16px;background:var(--bg);color:var(--ink);}
.nav a{font-size:14px!important;padding:10px 9px!important;}
@media(max-width:1100px){.nav{gap:3px}.nav a{font-size:13px!important;padding:9px 7px!important;}}
@media(max-width:760px){.language-picker{align-self:flex-start;margin:5px 0 4px;width:44px;height:40px;}.nav a{font-size:15px!important;padding:11px 10px!important;}}

/* V42: sichtbare runde Länderflaggen und einheitlicher Theme-Schalter im Adminbereich */
.language-flag-menu{position:relative;display:inline-flex;align-items:center;justify-content:center;z-index:1000;flex:0 0 auto}
.language-flag-current{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:4px;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--ink);cursor:pointer}
.language-flag-current svg{display:block;width:30px;height:30px}
.language-flag-options{position:absolute;top:calc(100% + 7px);right:0;z-index:1001;min-width:155px;padding:6px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0003;display:grid;gap:3px}
.language-flag-options[hidden]{display:none!important}
.language-flag-option{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.language-flag-option svg{width:26px;height:26px;flex:none}
.language-flag-option:hover,.language-flag-option.selected{background:var(--line)}
.admin-theme-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.admin-theme-tools .theme-toggle{font-size:14px;padding:9px 12px}
:root[data-theme="dark"] .admin-event,:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .user-card,:root[data-theme="dark"] .admin-wrap .content-card{background:#202833!important;color:var(--ink)!important;border-color:var(--line)!important}
:root[data-theme="dark"] .admin-event h2,:root[data-theme="dark"] .admin-wrap h1,:root[data-theme="dark"] .admin-wrap h2,:root[data-theme="dark"] .auth-card h1{color:var(--ink)}
:root[data-theme="dark"] .notice{background:#293340!important;color:var(--ink)!important;border:1px solid var(--line)}
:root[data-theme="dark"] .admin-event .fieldline,:root[data-theme="dark"] .admin-wrap p,:root[data-theme="dark"] .user-row{color:var(--muted);border-color:var(--line)}
:root[data-theme="dark"] .auth-card input,:root[data-theme="dark"] .user-card input{background:#151a21;color:var(--ink);border-color:var(--line)}
@media(max-width:760px){.admin-theme-tools{margin-left:0}.language-flag-current{width:40px;height:40px}}

/* Versteckten ursprünglichen Sprach-Select vollständig ausblenden, wenn das Flaggenmenü aktiv ist. */
.language-picker[hidden]{display:none!important}


/* Public website operating-mode indicator in the local administration header */
.mode-indicator{display:inline-flex;align-items:center;white-space:nowrap;flex-shrink:0;margin:0 12px;padding:7px 11px;border-radius:999px;font-size:.82rem;font-weight:800;line-height:1.2;border:1px solid currentColor}
.mode-operational{color:#167342;background:#e2f7e9}
.mode-maintenance{color:#b42318;background:#ffe8e6}
@media(max-width:900px){.mode-indicator{margin:6px 0}.header-inner{flex-wrap:wrap}.nav{flex-wrap:wrap}}

/* Flexible venue location selector — robust sizing and readable cards */
.location-choice{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  width:100%;
  min-width:0;
  align-items:stretch;
}
.location-choice .choice-card{
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  min-width:0;
  min-height:112px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
  background:var(--card);
  color:var(--ink);
  overflow-wrap:break-word;
  word-break:normal;
}
.location-choice .choice-card input{
  display:block;
  width:18px;
  height:18px;
  min-width:18px;
  margin:2px 0 0;
  flex:0 0 18px;
  accent-color:var(--red);
}
.location-choice .choice-card span{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:6px;
  min-width:0;
  overflow-wrap:break-word;
  word-break:normal;
}
.location-choice .choice-card strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:normal}
.location-choice .choice-card small{display:block;color:var(--muted);font-size:13px;line-height:1.45;overflow-wrap:break-word;word-break:normal}
.location-choice .choice-card:has(input:checked){border-color:var(--red);box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 18%,transparent)}
.location-fields[hidden]{display:none!important}
@media(max-width:900px){.location-choice{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.location-choice{grid-template-columns:minmax(0,1fr)}.location-choice .choice-card{min-height:0}}

/* V65: klarere Auswahl und gezielte Abstände im Formular für Serienveranstaltungen */
.event-kind-field{margin-bottom:10px}
.event-kind-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:9px}
.event-kind-choice .choice-card{box-sizing:border-box;display:flex;align-items:center;gap:11px;min-width:0;min-height:72px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fff);cursor:pointer;color:var(--ink);}
.event-kind-choice .choice-card input{appearance:auto;-webkit-appearance:radio;width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;margin:0;accent-color:var(--red)}
.event-kind-choice .choice-card span{display:block;min-width:0}
.event-kind-choice .choice-card strong{display:block;line-height:1.35;margin-bottom:3px}
.event-kind-choice .choice-card small{display:block;color:var(--muted);line-height:1.4;font-weight:400}
.event-kind-choice .choice-card:has(input:checked){border-color:var(--red);box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 18%,transparent);background:#fff8f8}
#seriesOptions{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);margin:4px 0 8px}
#seriesOptions>.form-grid{row-gap:16px}
#seriesOptions .address-help{line-height:1.5;padding:12px 14px}
@media(max-width:600px){.event-kind-choice{grid-template-columns:1fr;gap:9px}.event-kind-choice .choice-card{min-height:62px;padding:12px}#seriesOptions{padding:12px}}


/* V66: Serienformular im Dark-Modus ohne helle Flächen und mit klarer Feldlogik */
:root[data-theme="dark"] #seriesOptions{background:#202833!important;color:var(--ink);border-color:#3b4654}
:root[data-theme="dark"] #seriesOptions label,:root[data-theme="dark"] #seriesOptions .hint,:root[data-theme="dark"] #seriesOptions .address-help{color:#d3dbe5}
:root[data-theme="dark"] #seriesOptions .address-help{background:#293340!important;border-color:#465364;color:#e3e9f0}
:root[data-theme="dark"] .event-kind-choice .choice-card{background:#202833;color:#e3e9f0;border-color:#465364}
:root[data-theme="dark"] .event-kind-choice .choice-card small{color:#b9c4d2}
:root[data-theme="dark"] .event-kind-choice .choice-card:has(input:checked){background:#39232a;color:#fff;border-color:#f04452}
:root[data-theme="dark"] #seriesOptions input,:root[data-theme="dark"] #seriesOptions select{background:#151a21!important;color:#f0f4f8!important;border-color:#465364!important}
:root[data-theme="dark"] #seriesOptions input::placeholder{color:#9aa8b8}

/* V68: hidden muss auch gegenüber Layout-Regeln Vorrang haben */
[hidden] { display: none !important; }

[hidden]{display:none!important}

/* V70: Bestätigungsseite für Veranstaltungsmeldungen im Dark-Modus */
:root[data-theme="dark"] .confirmation-wrap .confirmation-card {
  background: #202833;
  color: #edf1f6;
  border-color: #394453;
}
:root[data-theme="dark"] .confirmation-wrap .confirmation-card p,
:root[data-theme="dark"] .confirmation-wrap .confirmation-card .demo-tag {
  color: #c0c8d2;
}
:root[data-theme="dark"] .confirmation-wrap .confirmation-card strong {
  color: #ffffff;
}
:root[data-theme="dark"] .confirmation-wrap .confirmation-card code {
  background: #151b23;
  color: #f0f3f7;
  border-color: #394453;
}

[hidden]{display:none!important}

/* Einheitliche Admin-Kopfzeile: feste Reihenfolge, aktive Seite dauerhaft rot. */
.admin-nav{justify-content:flex-start;flex-wrap:wrap;gap:4px;min-width:0}
.admin-nav a{font-size:12px;padding:9px 10px;border-radius:7px;white-space:nowrap}
.admin-nav a:hover,.admin-nav a.active{background:var(--red)!important;color:#fff!important}
.admin-nav .admin-logout-form{display:inline-flex;margin:0;white-space:nowrap}
.admin-nav .theme-toggle{margin-left:0!important;white-space:nowrap}
@media(min-width:761px){.admin-nav{flex:1;justify-content:flex-end}.admin-nav a,.admin-nav button{flex-shrink:0}}
@media(max-width:1100px){.admin-nav a{font-size:11px;padding:8px 7px}}


/* V107: calendar event days use a light neutral grey; event labels are black unless cancelled. */
.calendar-day.has-event { background: #e5e7eb; border-color: #cbd0d7; color: #111827; }
.calendar-day.has-event .event-dot { color: #111827; background: rgba(255,255,255,.72); }
.calendar-day.has-event.is-cancelled, .calendar-day.has-event.is-cancelled .event-dot,
.calendar-day .event-dot.is-cancelled, .calendar-event-link.is-cancelled { color: #b4232d !important; }
:root[data-theme="dark"] .calendar-day.has-event { background: #46505c; border-color: #66717e; color: #f3f4f6; }
:root[data-theme="dark"] .calendar-day.has-event .event-dot { color: #f3f4f6; background: rgba(20,25,32,.72); }
:root[data-theme="dark"] .calendar-day.has-event.is-cancelled,
:root[data-theme="dark"] .calendar-day.has-event.is-cancelled .event-dot,
:root[data-theme="dark"] .calendar-day .event-dot.is-cancelled,
:root[data-theme="dark"] .calendar-event-link.is-cancelled { color: #ff7b86 !important; }

/* V108: Kalender lesbarer und Absagen deutlich kennzeichnen */
.calendar-day.has-event {
  background: #dfe3e8 !important;
  border-color: #b9c1ca !important;
  color: #17202a !important;
}
.calendar-day.has-event .event-dot,
.calendar-day.has-event .calendar-event-link {
  display: block;
  margin-top: 5px;
  padding: 5px 6px;
  border-radius: 4px;
  background: #f8fafc !important;
  color: #17202a !important;
  border: 1px solid #cbd2da;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}
.calendar-day.has-event .calendar-event-link:hover {
  background: #fff !important;
  border-color: var(--red) !important;
  color: #111827 !important;
}
.calendar-day.has-event .calendar-event-link.is-cancelled,
.calendar-day.has-event .event-dot.is-cancelled {
  background: #fde8e8 !important;
  border-color: #dc2626 !important;
  color: #b4232d !important;
  font-weight: 850;
}
:root[data-theme="dark"] .calendar-day.has-event {
  background: #414b57 !important;
  border-color: #647181 !important;
  color: #f3f4f6 !important;
}
:root[data-theme="dark"] .calendar-day.has-event .event-dot,
:root[data-theme="dark"] .calendar-day.has-event .calendar-event-link {
  background: #e8edf2 !important;
  color: #17202a !important;
  border-color: #aab5c1;
}
:root[data-theme="dark"] .calendar-day.has-event .calendar-event-link.is-cancelled,
:root[data-theme="dark"] .calendar-day.has-event .event-dot.is-cancelled {
  background: #5b2028 !important;
  color: #ffe4e6 !important;
  border-color: #ef4444 !important;
}


/* V109: ausgewogene Kalenderfarben für Hell- und Dunkelmodus */
.calendar-day.has-event {
  background: #d4d9df !important;
  border-color: #aeb7c1 !important;
  color: #17202a !important;
}
.calendar-day.has-event .event-dot,
.calendar-day.has-event .calendar-event-link {
  background: #edf0f3 !important;
  color: #17202a !important;
  border: 1px solid #b9c2cc !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  padding: 5px 6px !important;
  border-radius: 5px !important;
}
.calendar-day.has-event .calendar-event-link:hover {
  background: #f5f6f8 !important;
  border-color: var(--red) !important;
  color: #111827 !important;
}
.calendar-day.has-event .calendar-event-link.is-cancelled,
.calendar-day.has-event .event-dot.is-cancelled {
  background: #fde8e8 !important;
  border-color: #c92a36 !important;
  color: #a61b29 !important;
  font-weight: 850 !important;
}
:root[data-theme="dark"] .calendar-day.has-event {
  background: #343d48 !important;
  border-color: #566271 !important;
  color: #f0f2f5 !important;
}
:root[data-theme="dark"] .calendar-day.has-event .event-dot,
:root[data-theme="dark"] .calendar-day.has-event .calendar-event-link {
  background: #414b57 !important;
  color: #f0f2f5 !important;
  border-color: #657181 !important;
  font-size: 12px !important;
}
:root[data-theme="dark"] .calendar-day.has-event .calendar-event-link:hover {
  background: #4a5663 !important;
  color: #ffffff !important;
  border-color: var(--red) !important;
}
:root[data-theme="dark"] .calendar-day.has-event .calendar-event-link.is-cancelled,
:root[data-theme="dark"] .calendar-day.has-event .event-dot.is-cancelled {
  background: #49272d !important;
  border-color: #b84b57 !important;
  color: #ff929b !important;
  font-weight: 850 !important;
}

/* V110: Im Dark Mode die freien Flächen um schmalere Flyer dunkel halten. */
:root[data-theme="dark"] .event-card .flyer {
  background: #202833 !important;
}
:root[data-theme="dark"] .event-card .flyer img {
  background: #202833 !important;
}

/* Public administrator directory on the About page */
.about-admins{min-width:0;padding:22px;border:1px solid var(--line,var(--border,#394452));border-radius:14px;background:var(--card,#202a36)}
.about-admins h2{margin-top:0}
.public-admin-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:18px}
.public-admin{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:12px;border-radius:12px;background:var(--surface,#293543)}
.public-admin-role{font-size:.86rem;color:var(--muted,#777);line-height:1.35}
.public-admin img{width:104px;height:104px;object-fit:cover;border-radius:50%;border:2px solid var(--line,#66717f);background:var(--surface,#293543)}
.public-admin img[src=""]{display:none}
@media(max-width:700px){.about-admins{padding:16px}.public-admin img{width:80px;height:80px}}


/* V113: responsive calendar and mobile navigation polish */
.calendar-empty{pointer-events:none;background:transparent;border-color:transparent}
.calendar-day-number{display:block;font-weight:800;line-height:1.2}
.calendar-agenda{display:none}
.calendar-agenda-empty{padding:18px 14px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:12px}
.agenda-event{display:flex;align-items:center;gap:13px;padding:13px 14px;margin:0 0 9px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--ink);text-decoration:none;box-shadow:0 2px 8px rgba(20,30,45,.04);min-width:0}
.agenda-event:hover{border-color:var(--red);transform:translateY(-1px)}
.agenda-date{display:flex;flex:0 0 52px;min-height:58px;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;background:#f3f4f6;color:#202938}
.agenda-date strong{font-size:22px;line-height:1.1}
.agenda-date small{font-size:11px;text-transform:uppercase;font-weight:800}
.agenda-info{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.agenda-title{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.agenda-meta{font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.agenda-event.is-cancelled .agenda-title{color:#b4232d}
.calendar-controls .button{white-space:normal}
.nav-toggle{align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:23px;line-height:1;color:var(--ink);cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.08)}
@media(max-width:760px){
  .header-inner{padding:10px 14px;gap:10px}
  .brand{min-width:0;gap:8px}
  .mark{width:38px;flex:0 0 38px}
  .mark i{height:7px}
  .mark i:nth-child(1){width:38px}.mark i:nth-child(2){width:34px}.mark i:nth-child(3){width:29px}
  .brand-name{font-size:clamp(20px,5.4vw,26px);letter-spacing:-.7px}
  .brand-sub{font-size:9px;line-height:1.25;max-width:245px}
  .nav-toggle{display:inline-flex;flex:0 0 44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#202938}
  .nav{display:none;flex-basis:100%;width:100%;padding:8px 0 4px;gap:5px}
  .nav.open{display:flex}
  .nav a{display:block;width:100%;box-sizing:border-box;border-radius:8px;background:var(--surface,#fff);border:1px solid var(--line);padding:11px 12px!important}
  .nav .language-picker,.nav .theme-toggle{align-self:stretch;margin:2px 0;width:auto;min-height:42px}
  .calendar-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .calendar-controls strong{grid-column:1/-1;grid-row:1;text-align:center;font-size:18px;padding:5px 0}
  .calendar-controls #prevMonth{grid-column:1;grid-row:2}
  .calendar-controls #nextMonth{grid-column:2;grid-row:2}
  .calendar-controls .button{font-size:12px;padding:10px 8px;min-height:42px}
  /* V132: Monatskalender auf Mobilgeräten sichtbar halten; Agenda ergänzt ihn. */
  .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
  .calendar-day{min-width:0;overflow-wrap:anywhere}
  .calendar-day .event-dot{font-size:9px;line-height:1.1}
  .calendar-agenda{display:block}
  .calendar-day{min-height:0}
  .page-hero h1{font-size:clamp(28px,7vw,38px);line-height:1.12;overflow-wrap:anywhere}
  .page-hero p{font-size:15px;line-height:1.55}
  .content-card{padding:15px}
  .section-head h2{font-size:22px}
}
@media(min-width:761px){
  .calendar-agenda{display:none!important}
  .calendar-grid{display:grid}
}
@media(max-width:380px){
  .brand-sub{max-width:190px}
  .calendar-controls .button{font-size:11px}
  .agenda-event{gap:10px;padding:11px}
  .agenda-date{flex-basis:46px}
  .agenda-title{font-size:14px}
}
:root[data-theme="dark"] .agenda-event{background:#202833;border-color:var(--line)}
:root[data-theme="dark"] .agenda-date{background:#354252;color:#f6f8fb}
:root[data-theme="dark"] .nav-toggle{background:#202833;color:var(--ink);border-color:var(--line)}

/* V132: Überschriften in schmalen Smartphone-Karten nicht abschneiden. */
@media(max-width:460px){.page-hero h1{font-size:clamp(26px,6.2vw,34px);max-width:100%;overflow-wrap:break-word;hyphens:auto}.shortcut{min-width:0}.shortcut>div:last-child{min-width:0;flex:1}.shortcut h3{overflow-wrap:anywhere;hyphens:auto;line-height:1.25}}

/* V135: Auf Smartphones Kalendertermine als lesbare Tagesliste statt 7 schmaler Spalten. */
@media (max-width: 600px) {
  .calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .calendar-day.head { display: none; }
  .calendar-day:not(.head) {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    text-align: left;
    border-radius: 8px;
    font-size: 16px;
    overflow-wrap: normal;
    word-break: normal;
  }
  .calendar-day:not(.head):empty { display: none; }
  .calendar-day.has-event {
    min-height: 56px;
    padding: 10px 12px;
  }
  .calendar-day .event-dot {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    margin-top: 6px;
  }
  .calendar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .calendar-controls strong {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    font-size: 18px;
  }
  .calendar-controls .button { font-size: 13px; }
}


/* V136: Mobile Navigation keeps readable contrast in both themes. */
@media (max-width: 760px) {
  .nav.open a:not(.active) {
    background: #202833 !important;
    color: #edf1f6 !important;
    border-color: #394453 !important;
  }
  .nav.open a:not(.active):hover,
  .nav.open a:not(.active):focus-visible {
    background: #303b49 !important;
    color: #ffffff !important;
  }
  .nav.open a.active,
  .nav.open a[aria-current="page"] {
    background: var(--red, #d90d20) !important;
    color: #ffffff !important;
    border-color: var(--red, #d90d20) !important;
  }
  .nav.open .theme-toggle,
  .nav.open .language-picker {
    color: var(--ink, #edf1f6) !important;
  }
}


/* V137: Mobile Kalender zeigt die Termine direkt im Tagesraster; die doppelte Agenda darunter bleibt ausgeblendet. */
@media (max-width: 760px) { .calendar-agenda { display: none !important; } }

/* V176: Datenschutzhinweis auf der Veranstaltungsdetailseite im Dark-Modus lesbar halten. */
:root[data-theme="dark"] .privacy-note { background: #293340 !important; color: #edf1f6 !important; border-left-color: #e0b84f; }


/* V189: Im Dark Mode nur den freien Platz um den Flyer abdunkeln; die Originaldatei bleibt unverändert. */
:root[data-theme="dark"] .event-detail-flyer > a:not(.button),
:root[data-theme="dark"] .event-detail-flyer .detail-pdf object {
  background: #202833 !important;
}
:root[data-theme="dark"] .event-detail-flyer img {
  background: transparent !important;
}
:root[data-theme="dark"] .event-detail-flyer {
  background: transparent !important;
}

/* V226: compact centered filters with multi-select category checkboxes */
.event-filter{width:min(calc(100% - 28px),900px);margin:16px auto 22px!important;padding:18px;display:grid;grid-template-columns:minmax(150px,220px) minmax(280px,1fr) auto auto;gap:12px;align-items:end}
.event-filter .field{min-width:0;width:100%;margin:0}
.event-filter .field input,.event-filter .field select{width:100%;min-width:0}
.event-filter .filter-categories{border:0;padding:0;margin:0;min-width:0}
.event-filter .filter-categories legend{font-weight:600;margin-bottom:8px}
.filter-category-options{display:flex;flex-wrap:wrap;gap:6px 12px;max-width:100%}
.filter-category-option{display:inline-flex;align-items:center;gap:6px;font-size:.92rem;white-space:nowrap}
.filter-category-option input{width:auto!important;min-width:auto!important;margin:0}
.event-filter button,.event-filter>a{white-space:nowrap;justify-self:start}
@media(max-width:850px){.event-filter{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);width:calc(100% - 28px)}.event-filter button,.event-filter>a{grid-row:auto}}
@media(max-width:520px){.event-filter{grid-template-columns:minmax(0,1fr);padding:14px}.event-filter button,.event-filter>a{width:100%;text-align:center;justify-self:stretch}.filter-category-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}


/* V227: Filter kompakt mittig, Rubriken als Mehrfachauswahl und Kalendernavigation oberhalb. */
.event-filter{box-sizing:border-box;width:min(calc(100% - 28px),900px);margin:16px auto 22px!important;padding:16px 18px;display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:12px 16px;align-items:start}
.event-filter>.field{min-width:0;width:100%;margin:0}
.event-filter>.field input{box-sizing:border-box;width:100%;min-width:0}
.event-filter .filter-categories{grid-column:2;grid-row:1 / span 2;min-width:0;border:0;padding:0;margin:0}
.event-filter .filter-categories legend{font-size:13px;font-weight:750;margin:0 0 8px;padding:0}
.filter-category-options{display:flex;flex-wrap:wrap;gap:7px 8px;max-width:100%}
.filter-category-option{display:inline-flex;align-items:center;gap:7px;white-space:normal;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--surface,#202833);cursor:pointer;font-size:12px;line-height:1.25}
.filter-category-option input{appearance:auto!important;-webkit-appearance:checkbox!important;width:15px!important;height:15px!important;min-width:15px!important;margin:0;accent-color:var(--red);flex:0 0 15px}
.event-filter .filter-categories .hint{display:block;margin-top:7px}
.event-filter button,.event-filter>a{justify-self:start;align-self:center;white-space:nowrap}
.event-filter .field:first-child{grid-column:1;grid-row:1}
.event-filter button{grid-column:1;grid-row:2}
.event-filter>a{grid-column:1;grid-row:3}
.calendar-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px 0 14px}
.calendar-controls strong{grid-column:2;grid-row:1;text-align:center;white-space:nowrap;font-size:18px}
.calendar-controls #prevMonth{grid-column:1;grid-row:1;justify-self:start}
.calendar-controls #nextMonth{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:760px){.event-filter{grid-template-columns:minmax(0,1fr);width:100%;padding:14px}.event-filter>.field:first-child,.event-filter .filter-categories,.event-filter button,.event-filter>a{grid-column:1;grid-row:auto}.event-filter .filter-categories{margin-top:2px}.event-filter button,.event-filter>a{width:auto}.calendar-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.calendar-controls strong{grid-column:1/-1;grid-row:1}.calendar-controls #prevMonth{grid-column:1;grid-row:2;justify-self:stretch}.calendar-controls #nextMonth{grid-column:2;grid-row:2;justify-self:stretch}}

/* V228: aufgeraeumtes responsives Layout fuer Filter, Navigation und Veranstaltungskarten */
.event-filter{
  box-sizing:border-box;
  width:min(calc(100% - 32px),980px);
  margin:18px auto 24px!important;
  padding:18px 20px;
  display:grid;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:12px 18px;
  align-items:start;
}
.event-filter>.field{grid-column:1;grid-row:1;min-width:0;margin:0}
.event-filter>.field input{box-sizing:border-box;width:100%;min-height:44px}
.event-filter .filter-categories{grid-column:2;grid-row:1 / span 2;min-width:0;margin:0;padding:0;border:0}
.event-filter .filter-categories legend{font-size:14px;font-weight:800;margin:0 0 9px;padding:0}
.filter-category-options{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;max-width:100%}
.filter-category-option{display:inline-flex;align-items:center;gap:8px;min-height:40px;box-sizing:border-box;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#202833);font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.filter-category-option input{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px;margin:0;accent-color:var(--red)}
.event-filter button,.event-filter>a{grid-row:2;align-self:start;justify-self:start;min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.event-filter button{grid-column:1}
.event-filter>a{grid-column:1;transform:translateX(116px)}
.event-filter .filter-categories .hint{display:block;margin-top:9px;font-size:12px}
.calendar-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;margin:20px 0 16px}
.calendar-controls strong{grid-column:2;grid-row:1;text-align:center;white-space:nowrap;font-size:20px}
.calendar-controls #prevMonth{grid-column:1;grid-row:1;justify-self:start}
.calendar-controls #nextMonth{grid-column:3;grid-row:1;justify-self:end}
.calendar-controls .button{min-height:44px;padding:10px 14px;font-size:13px}
.events{align-items:stretch;gap:12px}
.event-card{min-width:0}
.event-content h3{font-size:clamp(13px,1vw,16px);line-height:1.35}
.event-content .meta{font-size:12px;line-height:1.4}
.nav a,.nav .theme-toggle,.language-picker select{min-height:40px}
.nav a{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:900px){
  .event-filter{width:min(calc(100% - 24px),760px);grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:12px 14px}
  .filter-category-option{font-size:13px}
  .events{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .header-inner{gap:10px;padding:10px 14px}
  .brand{min-width:0;max-width:calc(100% - 60px)}
  .brand-name{font-size:clamp(21px,5vw,27px)}
  .brand-sub{font-size:11px;line-height:1.35}
  .nav-toggle{min-width:48px;min-height:48px;font-size:25px}
  .nav.open{gap:5px;padding:8px 0 4px}
  .nav a,.nav .theme-toggle,.nav .language-picker{box-sizing:border-box;width:100%;min-height:46px;justify-content:flex-start;padding:12px 14px;font-size:15px}
  .nav .language-picker select{min-height:42px;font-size:16px}
  .event-filter{width:100%;padding:16px;grid-template-columns:minmax(0,1fr);gap:14px}
  .event-filter>.field,.event-filter .filter-categories,.event-filter button,.event-filter>a{grid-column:1;grid-row:auto;transform:none}
  .event-filter>.field input{font-size:16px;min-height:46px}
  .event-filter .filter-categories legend{font-size:15px}
  .filter-category-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .filter-category-option{min-height:46px;padding:9px 10px;font-size:13px}
  .filter-category-option input{width:20px!important;height:20px!important;min-width:20px!important;flex-basis:20px}
  .event-filter button,.event-filter>a{width:100%;min-height:46px;justify-self:stretch;font-size:14px}
  .calendar-controls{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;margin:16px 0 12px}
  .calendar-controls strong{grid-column:2;grid-row:1;font-size:16px;white-space:normal}
  .calendar-controls #prevMonth{grid-column:1;grid-row:1;justify-self:stretch}
  .calendar-controls #nextMonth{grid-column:3;grid-row:1;justify-self:stretch}
  .calendar-controls .button{min-height:44px;padding:8px 6px;font-size:12px;white-space:normal}
  .calendar-grid{gap:4px}
  .calendar-day{font-size:13px;min-height:48px;padding:5px}
  .calendar-day.head{font-size:12px;padding:5px 1px}
  .events{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .event-content{padding:10px}
  .event-content h3{font-size:14px}
  .event-content .meta{font-size:12px}
  .shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .shortcut{min-height:120px;padding:12px;align-items:flex-start}
  .shortcut h3{font-size:14px;line-height:1.35}
  .shortcut p,.text-link{font-size:13px;line-height:1.4}
  .section-head{align-items:flex-start}
  .section-head h2{font-size:21px;line-height:1.25}
  .all-link{font-size:12px;white-space:normal;text-align:right}
  .page-hero{padding:28px 0}
  .page-hero p{font-size:16px;line-height:1.5}
}
@media(max-width:380px){
  .wrap{padding-left:10px;padding-right:10px}
  .filter-category-options{grid-template-columns:minmax(0,1fr)}
  .events{grid-template-columns:minmax(0,1fr)}
  .shortcuts{grid-template-columns:minmax(0,1fr)}
  .calendar-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .calendar-controls strong{grid-column:1/-1;grid-row:1}
  .calendar-controls #prevMonth{grid-column:1;grid-row:2}
  .calendar-controls #nextMonth{grid-column:2;grid-row:2}
}


/* V229: Die Flyer-Liste im Kalender folgt Monat, PLZ und Rubrikfiltern. */
.events > .event-card[hidden], .month-flyers-empty[hidden] { display: none !important; }
body .events { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
body .events > .event-card { min-width: 0; }
@media (max-width: 760px) { body .events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { body .events { grid-template-columns: minmax(0, 1fr); gap: 14px; } }


/* V230: gezielte Mobiloptimierung nach Live-Screenshots */
@media (max-width: 760px) {
  /* Die vier Startseiten-Schnellzugriffskacheln sind redundant zur Hauptnavigation. */
  body .shortcuts { display: none !important; }
  body .header-inner { min-height: 68px; padding: 10px 14px; }
  body .brand { min-width: 0; max-width: calc(100% - 60px); }
  body .brand-name { font-size: clamp(22px, 5.5vw, 28px); }
  body .brand-sub { font-size: 12px; line-height: 1.35; }
  body .nav-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 48px; min-width: 48px; min-height: 48px; font-size: 25px; }
  body .nav { display: none; flex-direction: column; align-items: stretch; flex-basis: 100%; width: 100%; gap: 7px; }
  body .nav.open { display: flex !important; }
  body .nav a, body .nav .theme-toggle, body .nav .language-picker { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 48px; box-sizing: border-box; padding: 12px 14px !important; font-size: 16px !important; }
  body .nav .language-picker select { min-height: 44px; font-size: 16px; }
  body .hero { min-height: 0; }
  body .hero-inner { padding: 30px 18px; }
  body .hero h1 { font-size: clamp(32px, 8vw, 42px); }
  body .hero p, body .page-hero p { font-size: 16px; line-height: 1.55; }
  body .wrap { padding-left: 14px; padding-right: 14px; }
  body .section-head { align-items: flex-start; flex-wrap: wrap; }
  body .section-head h2 { font-size: 23px; }
  body .event-filter { width: 100% !important; max-width: none; display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 14px; padding: 16px; }
  body .event-filter > *, body .event-filter>.field:first-child, body .event-filter .filter-categories, body .event-filter button, body .event-filter>a { grid-column: 1 !important; grid-row: auto !important; min-width: 0; }
  body .event-filter input:not([type=checkbox]), body .event-filter select { min-height: 48px; font-size: 16px; }
  body .filter-category-options { grid-template-columns: minmax(0,1fr) !important; gap: 8px; }
  body .filter-category-option { min-height: 48px; padding: 11px 12px; font-size: 15px; }
  body .filter-category-option input { width: 22px !important; height: 22px !important; min-width: 22px !important; }
  body .event-filter button, body .event-filter>a, body .button { min-height: 46px; font-size: 15px; }
  /* Ein Formularfeld pro Zeile: kein seitliches Quetschen auf Mobilgeräten. */
  body .form-grid, body .contact-grid, body .file-row, body .event-detail-card { grid-template-columns: minmax(0,1fr) !important; }
  body .form-grid > *, body .form-grid .field, body .field.full { grid-column: 1 !important; min-width: 0; }
  body input:not([type=checkbox]):not([type=radio]), body select, body textarea { font-size: 16px; max-width: 100%; }
  body .content-card { padding: 16px; }
  body .events { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px; }
  body .event-content { padding: 11px; }
  body .event-content h3 { font-size: 15px; line-height: 1.35; }
  body .event-content .meta { font-size: 13px; line-height: 1.45; }
  body .calendar-controls { display: grid !important; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important; gap: 6px; }
  body .calendar-controls strong { grid-column: 2 !important; grid-row: 1 !important; font-size: 16px; }
  body .calendar-controls #prevMonth { grid-column: 1 !important; grid-row: 1 !important; }
  body .calendar-controls #nextMonth { grid-column: 3 !important; grid-row: 1 !important; }
  body .calendar-controls .button { min-height: 46px; font-size: 13px; padding: 8px 7px; }
  body .calendar-grid { display: flex !important; flex-direction: column !important; gap: 8px; }
  body .calendar-day.head { display: none !important; }
  body .calendar-day:not(.head) { display: block; width: 100%; min-height: 0; padding: 12px; font-size: 16px; text-align: left; }
  body .calendar-day .event-dot { font-size: 13px; line-height: 1.4; }
  body .calendar-agenda { display: block !important; }
  body .bottom-panels { grid-template-columns: minmax(0,1fr) !important; }
  body .footer-inner { flex-direction: column; align-items: flex-start; font-size: 13px; }
}
@media (max-width: 520px) {
  body .events { grid-template-columns: minmax(0,1fr) !important; }
  body .event-card { max-width: 460px; width: 100%; margin-inline: auto; }
  body .flyer { max-height: 620px; }
  body .date-badge .day { font-size: 23px; }
  body .event-content h3 { font-size: 16px; }
  body .event-content .meta { font-size: 14px; }
  body .nav a, body .nav .theme-toggle, body .nav .language-picker { font-size: 16px !important; }
  body .calendar-controls { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  body .calendar-controls strong { grid-column: 1/-1 !important; grid-row: 1 !important; }
  body .calendar-controls #prevMonth { grid-column: 1 !important; grid-row: 2 !important; }
  body .calendar-controls #nextMonth { grid-column: 2 !important; grid-row: 2 !important; }
}


/* V233: Schnellzugriffskacheln nur auf Mobilgeräten ausblenden; Desktop unverändert lassen. */
@media (max-width: 760px) {
  body .shortcuts { display: none !important; }
}
@media (max-width: 760px) {
  body .events { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  body .event-card { width: 100% !important; max-width: 460px !important; margin-inline: auto !important; }
  body .flyer { max-height: none !important; }
  body .event-content { padding: 14px !important; }
  body .event-content h3 { font-size: 17px !important; line-height: 1.4 !important; }
  body .event-content .meta { font-size: 14px !important; line-height: 1.5 !important; }
  body .filter-category-option { min-height: 48px !important; font-size: 15px !important; }
  body .filter-category-option input { width: 22px !important; height: 22px !important; min-width: 22px !important; }
  body .form-grid, body .contact-grid, body .location-choice, body .event-kind-choice { grid-template-columns: minmax(0,1fr) !important; }
  body input:not([type=checkbox]):not([type=radio]), body select, body textarea { min-height: 46px; font-size: 16px !important; }
}
@media (max-width: 520px) {
  body .events { grid-template-columns: minmax(0,1fr) !important; }
  body .event-card { max-width: 100% !important; }
  body .wrap { padding-left: 14px !important; padding-right: 14px !important; }
}


/* V232: verbindliche Smartphone-Darstellung */
@media screen and (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 16px !important; line-height: 1.55 !important; }
  .header-inner { padding: 10px 14px !important; gap: 10px !important; min-height: 68px !important; }
  .brand { min-width: 0 !important; flex: 1 1 auto !important; gap: 8px !important; }
  .mark { width: 38px !important; flex: 0 0 38px !important; }
  .mark i { height: 7px !important; }
  .mark i:nth-child(1) { width: 38px !important; }
  .mark i:nth-child(2) { width: 34px !important; }
  .mark i:nth-child(3) { width: 30px !important; }
  .brand-name { font-size: clamp(20px, 5.5vw, 27px) !important; letter-spacing: -.5px !important; white-space: normal !important; }
  .brand-sub { font-size: 11px !important; line-height: 1.25 !important; max-width: 250px !important; }
  .nav-toggle { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 48px !important; min-height: 48px !important; padding: 8px 12px !important; font-size: 25px !important; color: var(--ink) !important; background: #fff !important; border: 1px solid #9aa4b2 !important; border-radius: 10px !important; }
  .nav { display: none !important; flex: 1 0 100% !important; width: 100% !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; flex-direction: unset !important; align-items: stretch !important; gap: 8px !important; padding: 8px 0 4px !important; }
  .nav.open { display: grid !important; }
  .nav a, .nav .theme-toggle, .nav .language-picker { display: flex !important; align-items: center !important; justify-content: flex-start !important; min-height: 54px !important; padding: 12px !important; white-space: normal !important; overflow-wrap: anywhere !important; font-size: 15px !important; line-height: 1.3 !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: #202a36 !important; color: #fff !important; }
  .nav a.active { background: var(--red) !important; color: #fff !important; }
  .wrap { width: 100% !important; max-width: 100% !important; padding-left: 14px !important; padding-right: 14px !important; }
  .hero-inner { padding: 30px 16px !important; }
  .hero h1, .page-hero h1 { font-size: clamp(28px, 7vw, 36px) !important; line-height: 1.12 !important; }
  .hero p, .page-hero p { font-size: 16px !important; line-height: 1.5 !important; }
  .shortcuts { display: none !important; }
  .events { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 16px !important; }
  .event-card { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 auto !important; }
  .flyer { max-height: none !important; }
  .event-content { padding: 14px !important; }
  .event-content h3 { font-size: 18px !important; line-height: 1.4 !important; }
  .event-content .meta, .event-content p { font-size: 15px !important; line-height: 1.5 !important; }
  .event-filter { display: grid !important; grid-template-columns: minmax(0,1fr) !important; width: 100% !important; max-width: 100% !important; gap: 14px !important; padding: 16px !important; }
  .event-filter > *, .event-filter .field, .event-filter .filter-categories, .event-filter button, .event-filter a { grid-column: 1 !important; min-width: 0 !important; }
  .filter-category-options { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 9px !important; }
  .filter-category-option { display: flex !important; align-items: center !important; min-height: 52px !important; padding: 12px !important; font-size: 16px !important; line-height: 1.35 !important; }
  .filter-category-option input, input[type=checkbox], input[type=radio] { width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; flex: 0 0 22px !important; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100% !important; max-width: 100% !important; min-height: 48px !important; font-size: 16px !important; padding: 11px 12px !important; }
  textarea { min-height: 120px !important; }
  .form-grid, .contact-grid, .location-choice, .event-kind-choice, .file-row, .event-detail-card { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  .form-grid > *, .form-grid .field, .field.full { grid-column: 1 !important; min-width: 0 !important; }
  button, .button, input[type=submit] { min-height: 48px !important; font-size: 16px !important; }
  .calendar-controls { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 8px !important; }
  .calendar-controls strong { grid-column: 1 / -1 !important; grid-row: 1 !important; text-align: center !important; font-size: 18px !important; }
  .calendar-controls #prevMonth { grid-column: 1 !important; grid-row: 2 !important; }
  .calendar-controls #nextMonth { grid-column: 2 !important; grid-row: 2 !important; }
  .calendar-grid { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  .calendar-day.head { display: none !important; }
  .calendar-day:not(.head) { display: block !important; width: 100% !important; min-height: 0 !important; padding: 12px !important; font-size: 16px !important; text-align: left !important; }
  .calendar-day .event-dot { font-size: 14px !important; line-height: 1.45 !important; }
  .footer-inner { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; font-size: 14px !important; }
}
@media screen and (max-width: 420px) {
  .nav { grid-template-columns: minmax(0,1fr) !important; }
  .brand-sub { max-width: 205px !important; }
  .section-head h2 { font-size: 22px !important; }
}

/* V234: Rubrik-Filter in der hellen Ansicht mit echtem hellen Hintergrund und lesbarer Schrift. */
.filter-category-option{background:#fff!important;color:#202936!important;border-color:#cbd2dc!important}
.filter-category-option span{color:#202936!important}
.filter-category-option input{accent-color:var(--red)}
.event-filter .filter-categories legend{color:var(--ink)}
:root[data-theme="dark"] .filter-category-option{background:#202833!important;color:#edf1f6!important;border-color:#596574!important}
:root[data-theme="dark"] .filter-category-option span{color:#edf1f6!important}
.date-badge .date-relative{display:block;padding:7px 6px;font-size:12px;line-height:1.2;font-weight:900;color:#202936;background:#fff;white-space:nowrap}
.date-badge.date-today .date-relative{background:#d90d20;color:#fff}
.date-badge.date-tomorrow .date-relative{background:#efbd3a;color:#202936}
.calendar-relative{display:inline-block;margin-top:3px;padding:2px 5px;border-radius:4px;font-size:10px;font-weight:900;line-height:1.2;background:#fff;color:#202936}
.calendar-relative.is-today{background:#d90d20;color:#fff}.calendar-relative.is-tomorrow{background:#efbd3a;color:#202936}
:root[data-theme="dark"] .calendar-relative{background:#202833;color:#edf1f6}:root[data-theme="dark"] .calendar-relative.is-today{background:#d90d20;color:#fff}:root[data-theme="dark"] .calendar-relative.is-tomorrow{background:#efbd3a;color:#202936}


/* V238: Sprachwahl und Theme dauerhaft im Kopfbereich erreichbar */
.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;position:relative;z-index:20}
.header-tools .language-picker{display:none!important}
.header-tools .language-flag-menu{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.header-tools .language-flag-current{width:44px;height:44px}
.header-tools .language-flag-options{top:calc(100% + 6px);right:0}
.header-tools .theme-toggle{min-height:44px;white-space:nowrap}
@media(max-width:760px){
  .header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px!important}
  .brand{flex:1 1 0!important;min-width:0!important;max-width:none!important}
  .header-tools{order:2;gap:6px;margin-left:auto}
  .header-tools .language-flag-current{width:42px;height:42px}
  .header-tools .theme-toggle{width:44px;min-width:44px;height:42px;min-height:42px;padding:4px!important;font-size:0!important;justify-content:center}
  .header-tools .theme-toggle::first-letter{font-size:20px}
  .header-tools .theme-toggle{color:transparent!important;position:relative}
  .header-tools .theme-toggle::after{content:'☀/☾';font-size:15px;color:var(--ink);position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
  :root[data-theme="dark"] .header-tools .theme-toggle::after{color:var(--ink)}
  .nav-toggle{order:3;flex:0 0 44px!important;min-width:44px!important}
  .nav{order:4;flex:1 0 100%!important;width:100%!important}
  .header-tools .language-flag-options{position:absolute;right:0;top:calc(100% + 6px);min-width:160px}
}


/* V240: Hamburger-Kontrast folgt zuverlässig dem aktiven Hell-/Dunkelmodus. */
:root[data-theme="dark"] body .nav-toggle,
html[data-theme="dark"] body .nav-toggle { color:#f5f7fa !important; background:#202833 !important; border-color:#aab4c0 !important; }
:root[data-theme="light"] body .nav-toggle,
html[data-theme="light"] body .nav-toggle { color:#202938 !important; background:#ffffff !important; border-color:#9aa4b2 !important; }


/* V259: Admin mobile menu is icon-only; prevent label from consuming header space. */
.admin-nav-toggle{font-size:0!important;gap:0!important;padding:8px!important;width:44px;min-width:44px;flex:0 0 44px;white-space:nowrap}
.admin-nav-toggle::first-letter{font-size:25px}
.admin-nav-toggle{font-size:25px!important}
.admin-nav-toggle span{display:none!important}
@media(min-width:761px){.admin-nav-toggle{display:none!important}}
@media(max-width:760px){.admin-nav-toggle{display:inline-flex!important;align-items:center;justify-content:center;order:3;margin-left:auto}}


/* V261: WhatsApp-Community neben dem Kontaktbereich auf der Über-uns-Seite */
.about-bottom-panels{grid-column:1/-1;display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,2fr);gap:10px;align-items:stretch;margin-top:2px;min-width:0}
.about-contact-panel,.about-community-panel{min-width:0;display:flex;align-items:flex-start;gap:16px;padding:16px;border:1px solid var(--line,#394452);border-radius:13px;background:var(--card,#202a36);color:var(--ink)}
.about-contact-panel h2,.about-community-panel h2{margin:0 0 8px;font-size:1.12rem}
.about-contact-panel p,.about-community-panel p{margin:0;color:var(--ink);overflow-wrap:anywhere}
.about-panel-icon{width:48px;height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;border-radius:13px;color:#fff;font-size:25px}
.about-contact-icon{background:#b91c2b}
.about-whatsapp-icon{background:#20bd50}
.about-whatsapp-icon svg{width:31px;height:31px}
.about-community-panel{border-color:#19a94a;align-items:center;gap:18px}
.about-community-copy{flex:1;min-width:0}
.about-community-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;padding:11px 18px;border-radius:8px;background:#18ad46;color:#fff!important;font-weight:800;text-decoration:none!important}
.about-community-button:hover{background:#128b38}
.about-community-qr{display:block;flex:0 0 120px;width:120px;padding:5px;border-radius:10px;background:#fff;line-height:0}
.about-community-qr img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.about-community-benefits{list-style:none;margin:0;padding:0;display:grid;gap:9px;min-width:155px}
.about-community-benefits li{display:flex;align-items:flex-start;gap:8px;color:var(--ink);font-weight:600}
.about-community-benefits li:before{content:"✓";display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#36c85b;color:#fff;font-size:12px;font-weight:900;line-height:1}
@media(max-width:1050px){.about-bottom-panels{grid-template-columns:1fr}.about-community-panel{flex-wrap:wrap}.about-community-benefits{grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 100%}}
@media(max-width:700px){.about-bottom-panels{gap:12px}.about-contact-panel,.about-community-panel{padding:14px;gap:12px}.about-community-qr{flex-basis:96px;width:96px}.about-community-benefits{grid-template-columns:1fr;flex-basis:100%}.about-community-button{width:100%;text-align:center}.about-panel-icon{width:40px;height:40px;flex-basis:40px}}
/* V513: Beide unteren Infofelder auf der Über-uns-Seite folgen explizit dem aktiven Theme. */
:root[data-theme="light"] .about-contact-panel,
:root[data-theme="light"] .about-community-panel {
  background: #ffffff !important;
  color: #202938 !important;
  border-color: #d5dce5;
}
:root[data-theme="light"] .about-contact-panel h2,
:root[data-theme="light"] .about-contact-panel p,
:root[data-theme="light"] .about-community-panel h2,
:root[data-theme="light"] .about-community-panel p,
:root[data-theme="light"] .about-community-benefits li {
  color: #202938 !important;
}
:root[data-theme="light"] .about-community-panel { border-color: #b9e8c7; }
:root[data-theme="dark"] .about-contact-panel,
:root[data-theme="dark"] .about-community-panel {
  background: var(--card, #202a36) !important;
  color: var(--ink) !important;
}
/* V278: Dynamisch geladene Länderflaggen für registrierte Sprachcodes. */
.language-flag-current img.language-flag-image{display:block;width:30px;height:30px;object-fit:cover;border-radius:50%;flex:none}
.language-flag-option img.language-flag-image{display:block;width:26px;height:19px;object-fit:cover;border-radius:3px;flex:none}


/* V294: Einheitliche, quadratische Auswahlfelder in Melde- und Bearbeitungsformularen.
   Radio-Felder behalten ihre gegenseitige Ausschließlichkeit, sehen aber wie Checkboxen aus. */
body input[type="checkbox"],
body input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-content: center !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 2px solid var(--line, #9aa4b2) !important;
  border-radius: 4px !important;
  background-color: var(--card, #fff) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 13px 13px !important;
  accent-color: var(--red, #e3182b);
  cursor: pointer;
  vertical-align: middle;
}
body input[type="checkbox"]:checked,
body input[type="radio"]:checked {
  border-color: var(--red, #e3182b) !important;
  background-color: var(--red, #e3182b) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2 6.4 11.4 13 4.8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
body input[type="checkbox"]:focus-visible,
body input[type="radio"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red, #e3182b) 35%, transparent);
  outline-offset: 2px;
}
:root[data-theme="dark"] body input[type="checkbox"],
:root[data-theme="dark"] body input[type="radio"] {
  background-color: #202833 !important;
  border-color: #7b8796 !important;
}
:root[data-theme="dark"] body input[type="checkbox"]:checked,
:root[data-theme="dark"] body input[type="radio"]:checked {
  background-color: var(--red, #e3182b) !important;
  border-color: var(--red, #e3182b) !important;
}
.registration-checkbox .checkrow { align-items: center !important; gap: 10px !important; }
.registration-checkbox .checkrow input { margin-top: 0 !important; }

/* V542: kompakte gemeinsame Kopfbereichsgruppe aus Profilbild und Logout. */
.header-tools .member-auth-widget{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;max-width:none}
.header-tools .member-auth-widget .member-logout-form{display:inline-flex;align-items:center;margin:0}
.header-tools .member-auth-widget .member-logout-form button{white-space:nowrap}
/* V300: compact member avatar in the header; the red circle replaces the language flag. */
.header-tools .member-avatar-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;box-sizing:border-box;border-radius:50%;overflow:hidden;background:#bd1020;color:#fff;border:2px solid #bd1020;text-decoration:none;font-weight:800;font-size:18px;box-shadow:0 0 0 1px rgba(255,255,255,.6)}
.header-tools .member-avatar-link img{display:block;width:100%;height:100%;object-fit:cover}
.header-tools .member-avatar-link:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:760px){.header-tools .member-avatar-link{width:42px;height:42px;flex-basis:42px}}
.header-tools .language-flag-menu[hidden]{display:none!important}


/* V303: sichtbare Abmeldeaktion neben dem Mitgliederprofil */
.member-logout-button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:9px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--bg);color:var(--ink);font:inherit;font-size:12px;
  font-weight:750;cursor:pointer;white-space:nowrap
}
.member-logout-button:hover{border-color:var(--red);color:var(--red)}
.member-logout-form{flex-shrink:0}
@media(max-width:620px){
  .member-logout-button{padding:8px 9px}
  .header-tools{gap:6px}
}

/* V326: country-specific newsletter radius regions */
.newsletter-regions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 12px}
.newsletter-region{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);min-width:0}
.newsletter-region-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.newsletter-region .field{position:relative}
.newsletter-region .region-suggestions{position:relative;z-index:5;display:flex;flex-direction:column;max-height:220px;overflow:auto;border-radius:7px}
.newsletter-region .place-suggestion{width:100%;padding:10px;text-align:left;border:1px solid var(--line);border-top:0;background:var(--surface,#fff);color:var(--ink);cursor:pointer}
.newsletter-region .place-suggestion:first-child{border-top:1px solid var(--line);border-radius:7px 7px 0 0}
.newsletter-region .place-suggestion:last-child{border-radius:0 0 7px 7px}
.newsletter-region .place-suggestion:hover,.newsletter-region .place-suggestion:focus{background:#fff0f1;color:#222}
.newsletter-region .suggestion-note{padding:9px;color:var(--muted);font-size:12px}
.newsletter-region .selected-place{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:760px){.newsletter-regions{grid-template-columns:1fr}}
:root[data-theme="dark"] .newsletter-region{background:#202833;border-color:var(--line)}
:root[data-theme="dark"] .newsletter-region .place-suggestion{background:#151b23;color:#f0f3f7;border-color:var(--line)}


/* Einheitlicher, geräteunabhängiger Zeitwähler */
.custom-time-input{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line,#d9dee5);border-radius:9px;background:var(--bg,#fff);color:var(--ink,#141a24);cursor:pointer;}
.custom-time-input:focus{outline:2px solid var(--red,#d90d20);outline-offset:2px;}
.time-picker-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(12,17,25,.58);}
.time-picker-dialog{width:min(100%,410px);max-height:min(92dvh,620px);overflow:hidden;border:1px solid var(--line,#e2e6eb);border-radius:16px;background:#fff;color:#141a24;box-shadow:0 22px 70px rgba(0,0,0,.3);display:flex;flex-direction:column;}
.time-picker-titlebar{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e2e6eb;font-size:1.08rem;font-weight:700;}
.time-picker-close{width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:1.5rem;cursor:pointer;}
.time-picker-readout{padding:16px 12px 8px;text-align:center;font-size:2rem;font-weight:600;letter-spacing:.07em;font-variant-numeric:tabular-nums;}
.time-picker-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:8px 22px 18px;touch-action:pan-y;user-select:none;-webkit-user-select:none;}
.time-picker-column{position:relative;height:252px;overflow:hidden;border:1px solid #e2e6eb;border-radius:13px;background:#f8f9fb;touch-action:pan-y;}
.time-picker-column::before{content:"";position:absolute;z-index:2;left:0;right:0;top:50%;height:48px;transform:translateY(-50%);background:rgba(217,13,32,.12);border-top:1px solid rgba(217,13,32,.18);border-bottom:1px solid rgba(217,13,32,.18);pointer-events:none;}
.time-picker-list{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;padding:102px 0;}
.time-picker-list::-webkit-scrollbar{display:none;}
.time-picker-option{height:48px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;font-size:1.12rem;color:#727b87;font-variant-numeric:tabular-nums;cursor:pointer;}
.time-picker-option[aria-selected="true"]{position:relative;z-index:3;color:#d90d20;font-weight:750;}
.time-picker-column-label{position:absolute;z-index:4;top:9px;left:0;right:0;text-align:center;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:#727b87;pointer-events:none;}
.time-picker-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:0 14px 14px;}
.time-picker-action{min-height:48px;padding:10px 6px;border:0;border-radius:10px;background:#e9ecf0;color:#141a24;font-weight:600;cursor:pointer;}
.time-picker-action.primary{background:#d90d20;color:#fff;}
.time-picker-action:focus-visible,.time-picker-close:focus-visible{outline:2px solid #d90d20;outline-offset:2px;}
:root[data-theme="dark"] .time-picker-dialog{background:#202833;color:#edf1f6;border-color:#394453;}
:root[data-theme="dark"] .time-picker-titlebar{border-color:#394453;}
:root[data-theme="dark"] .time-picker-column{background:#171d25;border-color:#394453;}
:root[data-theme="dark"] .time-picker-column::before{background:rgba(255,70,86,.17);border-color:rgba(255,90,105,.28);}
:root[data-theme="dark"] .time-picker-option{color:#aab4c2;}
:root[data-theme="dark"] .time-picker-option[aria-selected="true"]{color:#ff6674;}
:root[data-theme="dark"] .time-picker-column-label{color:#aab4c2;}
:root[data-theme="dark"] .time-picker-action{background:#343e4c;color:#edf1f6;}
:root[data-theme="dark"] .time-picker-action.primary{background:#d90d20;color:#fff;}
:root[data-theme="dark"] .custom-time-input{background:#202833;color:#edf1f6;border-color:#394453;}
@media(max-width:380px){.time-picker-overlay{padding:9px}.time-picker-columns{gap:8px;padding:8px 12px 14px}.time-picker-column{height:228px}.time-picker-list{padding:90px 0}.time-picker-option{height:48px}.time-picker-actions{gap:6px;padding:0 9px 10px}.time-picker-action{font-size:.9rem}}
@media(prefers-reduced-motion:no-preference){.time-picker-dialog{animation:timePickerIn .14s ease-out}@keyframes timePickerIn{from{opacity:.75;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}}

.event-engagement-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:5px;font-size:11px;font-weight:700;color:var(--muted,#697386)}.agenda-event .event-engagement-meta{font-size:12px}.event-engagement-meta span{white-space:nowrap}


/* V347: mobile public header – keep language/theme/menu together at upper right; auth link on its own row below. */
@media(max-width:760px){
  body .header-inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
  body .header-tools{order:2!important;display:flex!important;flex:1 0 100%!important;width:100%!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;margin-left:0!important}
  body .header-tools .nav-toggle{display:inline-flex!important;order:3!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;min-height:44px!important;align-items:center!important;justify-content:center!important}
  body .header-tools .member-auth-widget{order:10!important;flex:0 0 auto!important;margin-left:auto!important;margin-top:2px!important;white-space:nowrap!important;max-width:100%!important}
  body .brand{order:1!important;flex:1 1 100%!important;min-width:0!important}
  body .nav{order:4!important;flex:1 0 100%!important;width:100%!important}
}


/* V349: kompakte Smartphone-Kopfzeile – Marke und Bedienelemente in einer Zeile. */
@media (max-width: 760px) {
  body .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 7px !important;
    padding: 8px 10px !important;
  }
  body .brand {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
  }
  body .brand-name {
    font-size: clamp(15px, 3.7vw, 21px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;
  }
  body .brand-sub { display: none !important; }
  body .header-tools {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 62% !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  body .header-tools .language-flag-current,
  body .header-tools .theme-toggle,
  body .header-tools .nav-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 34px !important;
    padding: 2px !important;
    border-radius: 8px !important;
  }
  body .header-tools .language-flag-current { overflow: hidden !important; }
  body .header-tools .member-auth-widget {
    order: 4 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 124px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  body .header-tools .member-auth-widget a,
  body .header-tools .member-auth-widget button,
  body .header-tools .member-auth-widget .button {
    font-size: 12px !important;
    line-height: 1.1 !important;
    padding: 7px 8px !important;
    min-height: 34px !important;
    white-space: nowrap !important;
  }
  body .header-tools .member-avatar-link img {
    width: 30px !important;
    height: 30px !important;
  }
  body .header-tools .nav-toggle { order: 3 !important; }
  body .nav { order: 5 !important; flex: 1 0 100% !important; width: 100% !important; }
}
@media (max-width: 390px) {
  body .header-inner { padding-left: 7px !important; padding-right: 7px !important; gap: 4px !important; }
  body .brand-name { font-size: 14px !important; letter-spacing: -0.6px !important; }
  body .header-tools { gap: 3px !important; max-width: 64% !important; }
  body .header-tools .language-flag-current,
  body .header-tools .theme-toggle,
  body .header-tools .nav-toggle { width: 31px !important; min-width: 31px !important; flex-basis: 31px !important; }
  body .header-tools .member-auth-widget { max-width: 112px !important; }
  body .header-tools .member-auth-widget a,
  body .header-tools .member-auth-widget button,
  body .header-tools .member-auth-widget .button { font-size: 11px !important; padding: 6px !important; }
}

/* V365: Entfernung auf Veranstaltungskarten */
.event-distance{font-weight:700;color:var(--accent,#237a55)}

/* V381: final mobile-header layout fix after V380.
   Keep the logo and controls in one stable row; keep navigation on its own full-width row. */
@media screen and (max-width: 760px) {
  body header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
  }
  body header .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    flex: initial !important;
    order: initial !important;
  }
  body header .brand-name {
    font-size: clamp(14px, 3.6vw, 21px) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
  body header .brand-sub { display: none !important; }
  body header .header-tools {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: initial !important;
    order: initial !important;
  }
  body header .header-tools .language-flag-current,
  body header .header-tools .theme-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    box-sizing: border-box !important;
  }
  body header .header-tools .theme-toggle::after { font-size: 14px !important; }
  body header .header-tools .member-auth-widget {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 3 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 72px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  body header .header-tools .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 4 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    padding: 6px !important;
    font-size: 24px !important;
    box-sizing: border-box !important;
  }
  body header nav.nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 8px 0 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    order: initial !important;
  }
  body header nav.nav.open {
    display: flex !important;
  }
  body header nav.nav > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }
}
@media screen and (max-width: 390px) {
  body header .header-inner { padding-left: 7px !important; padding-right: 7px !important; column-gap: 5px !important; }
  body header .brand .mark { width: 31px !important; flex-basis: 31px !important; }
  body header .brand .mark i:nth-child(1) { width: 31px !important; }
  body header .brand .mark i:nth-child(2) { width: 28px !important; }
  body header .brand .mark i:nth-child(3) { width: 24px !important; }
  body header .brand-name { font-size: 13px !important; letter-spacing: -.4px !important; }
  body header .header-tools { gap: 3px !important; }
  body header .header-tools .language-flag-current,
  body header .header-tools .theme-toggle { width: 34px !important; min-width: 34px !important; flex-basis: 34px !important; }
  body header .header-tools .member-auth-widget { max-width: 55px !important; font-size: 10px !important; padding: 5px !important; }
  body header .header-tools .nav-toggle { width: 40px !important; min-width: 40px !important; flex-basis: 40px !important; }
}

/* Mehrtägige Veranstaltungen: kompakte Datumsfelder nebeneinander auf dem Flyer */
.date-badge.date-badge-range{display:flex;gap:2px;min-width:0;padding:3px;max-width:calc(100% - 12px);}
.date-badge-range .date-range-item{display:flex;flex-direction:column;align-items:center;min-width:22px;border-radius:3px;overflow:hidden;}
.date-badge-range .month{width:100%;box-sizing:border-box;font-size:7px;padding:2px 1px;}
.date-badge-range .day{font-size:15px;line-height:1.1;padding:2px 1px;}
@media(max-width:600px){.date-badge.date-badge-range{gap:1px;padding:2px}.date-badge-range .date-range-item{min-width:18px}.date-badge-range .day{font-size:12px}}


/* V440: opaque public team profile dialog in both themes. */
#publicTeamProfileDialog { background: rgba(0, 0, 0, .76) !important; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
#publicTeamProfileDialog .public-team-profile-dialog-panel { background: #ffffff !important; color: #202938 !important; border-color: #cbd2dc !important; opacity: 1 !important; isolation: isolate; }
#publicTeamProfileDialog .public-team-profile-dialog-panel h2,
#publicTeamProfileDialog .public-team-profile-dialog-panel h3,
#publicTeamProfileDialog .public-team-profile-dialog-panel p,
#publicTeamProfileDialog .public-team-profile-dialog-panel li,
#publicTeamProfileDialog .public-team-profile-dialog-panel strong { color: #202938; }
#publicTeamProfileDialog .public-team-profile-dialog-panel a:not(.button) { color: #0757a6; }
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel { background: #202833 !important; color: #edf1f6 !important; border-color: #596574 !important; }
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel h2,
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel h3,
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel p,
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel li,
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel strong { color: #edf1f6 !important; }
:root[data-theme="dark"] #publicTeamProfileDialog .public-team-profile-dialog-panel a:not(.button) { color: #91c7ff !important; }
@media (max-width: 600px) { #publicTeamProfileDialog { padding: 10px !important; } #publicTeamProfileDialog .public-team-profile-dialog-panel { margin: 2vh auto !important; padding: 16px !important; max-height: 92vh; overflow: auto; box-sizing: border-box; } }

/* v468: kompakte, breite Fußzeile mit mittiger Linkgruppe und Besucherzähler rechts. */
.footer .footer-inner { display:grid !important; grid-template-columns:minmax(190px,1fr) minmax(0,2.4fr) minmax(130px,1fr); grid-template-rows:auto auto; align-items:center; column-gap:22px; row-gap:10px; width:100%; max-width:none; }
.footer .footer-inner > div:first-child { grid-column:1; grid-row:1; min-width:0; }
.footer .footer-inner .footer-links { grid-column:2; grid-row:1; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:0 7px; text-align:center; min-width:0; }
.footer .footer-inner .footer-links a, .footer .footer-inner #dtCookieSettingsLink { font-size:12px; line-height:1.5; text-decoration:underline; white-space:nowrap; }
.footer .footer-inner .footer-visitor-count { grid-column:3; grid-row:1; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:1px; }
.footer-visitor-number { font-size:clamp(19px,2vw,25px); line-height:1.1; font-weight:800; font-variant-numeric:tabular-nums; }
.footer-visitor-label { font-size:11px; opacity:.85; }
.footer .footer-inner .footer-copyright { grid-column:1 / -1; grid-row:2; text-align:center; font-size:11px; opacity:.8; }
@media (max-width: 900px) { .footer .footer-inner { grid-template-columns:1fr 1fr; column-gap:12px; } .footer .footer-inner > div:first-child { grid-column:1; grid-row:1; } .footer .footer-inner .footer-visitor-count { grid-column:2; grid-row:1; align-items:flex-end; } .footer .footer-inner .footer-links { grid-column:1 / -1; grid-row:2; } .footer .footer-inner .footer-copyright { grid-row:3; } }
@media (max-width: 520px) { .footer .footer-inner { grid-template-columns:1fr; text-align:center; gap:10px; } .footer .footer-inner > div:first-child, .footer .footer-inner .footer-links, .footer .footer-inner .footer-visitor-count, .footer .footer-inner .footer-copyright { grid-column:1; } .footer .footer-inner > div:first-child { grid-row:1; } .footer .footer-inner .footer-visitor-count { grid-row:2; align-items:center; } .footer .footer-inner .footer-links { grid-row:3; } .footer .footer-inner .footer-copyright { grid-row:4; } }

/* Pending member-change alert */
.admin-member-change-alert{display:block;background:#b91c1c;color:#fff;padding:9px 16px;text-align:center;font-weight:700;border-radius:8px;margin:8px 0}.admin-member-change-alert a{color:#fff;text-decoration:underline}.member-change-count{display:inline-block;min-width:1.4em;padding:1px 5px;border-radius:999px;background:#b91c1c;color:#fff;text-align:center;font-size:.8em;font-weight:800}

/* Unterstützerdaten: klar unterscheidbare Freigabe- und Prüfstatus */
.status.approved{display:inline-block;padding:3px 9px;border-radius:999px;background:#d1fae5;color:#065f46;border:1px solid #a7f3d0;font-weight:600}
.status.pending{display:inline-block;padding:3px 9px;border-radius:999px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;font-weight:600}
.status-submitted{display:inline-block;margin-top:5px;padding:3px 8px;border-radius:7px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;font-size:.88em;font-weight:600}
:root[data-theme="dark"] .status.approved{background:#1d4934;color:#a7f0c5;border-color:#276749}
:root[data-theme="dark"] .status.pending,:root[data-theme="dark"] .status-submitted{background:#51451e;color:#ffe8a1;border-color:#76652b}


/* V514: Der Administratorenbereich auf "Über uns" muss dem aktiven Theme folgen. */
:root[data-theme="light"] .about-admins {
  background: #ffffff !important;
  color: #202938 !important;
  border-color: #d5dce5 !important;
}
:root[data-theme="light"] .about-admins h2,
:root[data-theme="light"] .about-admins p,
:root[data-theme="light"] .about-admins .public-admin,
:root[data-theme="light"] .about-admins .public-admin strong,
:root[data-theme="light"] .about-admins .public-admin-role {
  color: #202938 !important;
}
:root[data-theme="light"] .about-admins .public-admin {
  background: #f3f6f9 !important;
  border: 1px solid #e0e5eb !important;
}
:root[data-theme="dark"] .about-admins {
  background: #202833 !important;
  color: #edf1f6 !important;
  border-color: #394453 !important;
}
:root[data-theme="dark"] .about-admins h2,
:root[data-theme="dark"] .about-admins p,
:root[data-theme="dark"] .about-admins .public-admin,
:root[data-theme="dark"] .about-admins .public-admin strong,
:root[data-theme="dark"] .about-admins .public-admin-role {
  color: #edf1f6 !important;
}
:root[data-theme="dark"] .about-admins .public-admin {
  background: #293543 !important;
  border-color: #394453 !important;
}

/* V550: Rubriken direkt im Formular anzeigen statt natives Browser-Dropdown.
   Dadurch bleiben alle Rubriknamen in Chrome/Edge sichtbar und lesbar. */
#eventForm .category-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 9px;
  margin-top: 5px;
}
#eventForm .category-choice-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd2dc;
  border-radius: 8px;
  background: #fff;
  color: #202938;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
#eventForm .category-choice-card input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--red, #d90d20);
}
#eventForm .category-choice-card span { min-width: 0; overflow-wrap: anywhere; }
#eventForm .category-choice-card:has(input:checked) {
  border-color: var(--red, #d90d20);
  background: #fff0f1;
  box-shadow: 0 0 0 1px var(--red, #d90d20) inset;
}
:root[data-theme="dark"] #eventForm .category-choice-card {
  border-color: #596574;
  background: #202833;
  color: #edf1f6;
}
:root[data-theme="dark"] #eventForm .category-choice-card:has(input:checked) {
  border-color: #ff6674;
  background: #482b33;
  box-shadow: 0 0 0 1px #ff6674 inset;
}
@media (max-width: 520px) {
  #eventForm .category-choice-grid { grid-template-columns: minmax(0, 1fr); }
  #eventForm .category-choice-card { min-height: 50px; font-size: 15px; }
}

/* Gemeinsame Scroll-Wheel-Uhr: gleicher Auswahlbalken und Theme-Farben auf allen Seiten. */
.time-picker-native-value{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.time-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.time-picker-trigger:focus-visible,.time-picker-wheel:focus-visible{outline:2px solid var(--accent,#087bff);outline-offset:2px}
.time-picker-trigger-value.is-empty{color:var(--muted,#777)}
.time-picker-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.58);backdrop-filter:blur(5px)}
.time-picker-overlay[hidden]{display:none}
.time-picker-dialog{width:min(100%,520px);max-height:92dvh;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.35)}
.time-picker-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.time-picker-header h2{margin:0;font-size:1.25rem}
.time-picker-close{border:0;background:transparent;color:var(--text);font-size:2rem;line-height:1;cursor:pointer}
.time-picker-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px 22px 22px}
.time-picker-column-wrap>label{display:block;margin-bottom:10px;text-align:center;font-weight:650;color:var(--muted,var(--text))}
.time-picker-wheel-frame{height:308px;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.time-picker-wheel{height:100%;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:thin;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.time-picker-selection-window{position:absolute;z-index:4;pointer-events:none;left:0;right:0;top:132px;height:44px;border-top:1px solid var(--accent,#087bff);border-bottom:1px solid var(--accent,#087bff);border-radius:8px;background:color-mix(in srgb,var(--accent,#087bff) 16%,transparent)}
.time-picker-wheel-list{display:flex;flex-direction:column;padding:132px 0}
.time-picker-option{height:44px;min-height:44px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;font-size:1.35rem;font-variant-numeric:tabular-nums;color:var(--text);opacity:.72;cursor:pointer;user-select:none}
.time-picker-option[aria-selected="true"]{font-weight:800;font-size:1.55rem;opacity:1}
.time-picker-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:18px 22px 22px;border-top:1px solid var(--line)}
.time-picker-actions button{min-height:48px;border-radius:11px;padding:9px 10px;font:inherit;font-weight:700;cursor:pointer}
.time-picker-delete{border:1px solid #e53945;background:color-mix(in srgb,#e53945 10%,var(--card));color:#e53945}
.time-picker-cancel{border:1px solid var(--line);background:var(--card);color:var(--text)}
.time-picker-accept{border:1px solid var(--accent,#087bff);background:var(--accent,#087bff);color:white}
html[data-theme="dark"] .time-picker-option{color:#e8edf7}html[data-theme="light"] .time-picker-option{color:#202938}
@media(max-width:480px){.time-picker-overlay{padding:10px}.time-picker-header{padding:15px 17px}.time-picker-columns{gap:10px;padding:15px 14px 18px}.time-picker-wheel-frame{height:286px}.time-picker-wheel-list{padding:121px 0}.time-picker-selection-window{top:121px}.time-picker-actions{gap:7px;padding:14px}.time-picker-actions button{font-size:.9rem;padding:8px 5px}}


/* V052: mobile public header – brand and all controls fit in one uncluttered row. */
@media screen and (max-width: 760px) {
  body header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-rows: auto auto !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    padding: 8px 9px !important;
    min-width: 0 !important;
  }
  body header .brand {
    grid-column: 1 !important; grid-row: 1 !important;
    min-width: 0 !important; width: 100% !important; max-width: 100% !important;
    gap: 6px !important; overflow: hidden !important;
  }
  body header .brand .mark { width: 32px !important; flex: 0 0 32px !important; }
  body header .brand .mark i:nth-child(1) { width: 32px !important; }
  body header .brand .mark i:nth-child(2) { width: 28px !important; }
  body header .brand .mark i:nth-child(3) { width: 24px !important; }
  body header .brand-name {
    font-size: clamp(14px, 3.8vw, 18px) !important;
    letter-spacing: -.45px !important; white-space: nowrap !important;
  }
  body header .header-tools {
    grid-column: 2 !important; grid-row: 1 !important;
    display: flex !important; flex-wrap: nowrap !important;
    align-items: center !important; justify-content: flex-end !important;
    gap: 3px !important; width: max-content !important; max-width: none !important;
    min-width: 0 !important; margin: 0 !important;
  }
  body header .header-tools .theme-toggle,
  body header .header-tools .language-flag-current,
  body header .header-tools .member-avatar-link {
    width: 34px !important; min-width: 34px !important; height: 36px !important;
    min-height: 36px !important; flex: 0 0 34px !important;
    box-sizing: border-box !important;
  }
  body header .header-tools .member-avatar-link { border-radius: 50% !important; }
  body header .header-tools .member-auth-widget {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; flex: 0 0 auto !important;
    width: auto !important; min-width: 0 !important; max-width: 58px !important;
    margin: 0 !important; padding: 0 !important; white-space: nowrap !important;
  }
  body header .header-tools .member-auth-widget a,
  body header .header-tools .member-auth-widget button,
  body header .header-tools .member-auth-widget .button {
    min-height: 34px !important; padding: 5px 6px !important;
    font-size: 11px !important; line-height: 1.1 !important; white-space: nowrap !important;
  }
  body header .header-tools .nav-toggle {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 38px !important; min-width: 38px !important; height: 40px !important;
    min-height: 40px !important; flex: 0 0 38px !important;
    margin: 0 !important; padding: 4px !important; font-size: 22px !important;
    box-sizing: border-box !important;
  }
  body header nav.nav {
    grid-column: 1 / -1 !important; grid-row: 2 !important;
    width: 100% !important; min-width: 0 !important;
  }
}
@media screen and (max-width: 390px) {
  body header .header-inner { padding-left: 7px !important; padding-right: 7px !important; column-gap: 5px !important; }
  body header .brand .mark { width: 29px !important; flex-basis: 29px !important; }
  body header .brand .mark i:nth-child(1) { width: 29px !important; }
  body header .brand .mark i:nth-child(2) { width: 26px !important; }
  body header .brand .mark i:nth-child(3) { width: 22px !important; }
  body header .brand-name { font-size: 13px !important; }
  body header .header-tools { gap: 2px !important; }
  body header .header-tools .theme-toggle,
  body header .header-tools .language-flag-current,
  body header .header-tools .member-avatar-link { width: 32px !important; min-width: 32px !important; flex-basis: 32px !important; }
  body header .header-tools .nav-toggle { width: 36px !important; min-width: 36px !important; flex-basis: 36px !important; }
  body header .header-tools .member-auth-widget { max-width: 52px !important; }
}

/* V053: keep the public header on one row after member authentication as well. */
@media (max-width: 760px) {
  body header .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  body header .brand {
    display: flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 42% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  body header .brand .mark { flex: 0 0 30px !important; width: 30px !important; }
  body header .brand .mark i:nth-child(1) { width: 30px !important; }
  body header .brand .mark i:nth-child(2) { width: 26px !important; }
  body header .brand .mark i:nth-child(3) { width: 22px !important; }
  body header .brand-name { font-size: clamp(13px, 3.8vw, 18px) !important; white-space: nowrap !important; }
  body header .brand-sub { display: none !important; }
  body header .header-tools {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 5px !important;
    margin: 0 !important;
    order: 2 !important;
  }
  body header .header-tools .language-flag-current,
  body header .header-tools .theme-toggle,
  body header .header-tools .member-avatar-link {
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }
  body header .header-tools .member-auth-widget {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }
  body header .header-tools .member-logout-form { display: inline-flex !important; flex: 0 0 auto !important; margin: 0 !important; }
  body header .header-tools .member-auth-widget .member-logout-form button {
    min-width: 52px !important;
    min-height: 38px !important;
    padding: 5px 7px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  body header .header-tools .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
  }
}
@media (max-width: 390px) {
  body header .header-inner { gap: 4px !important; padding-left: 7px !important; padding-right: 7px !important; }
  body header .brand { max-width: 35% !important; }
  body header .header-tools { gap: 3px !important; }
  body header .header-tools .language-flag-current,
  body header .header-tools .theme-toggle,
  body header .header-tools .member-avatar-link { flex-basis: 34px !important; width: 34px !important; min-width: 34px !important; height: 36px !important; min-height: 36px !important; }
  body header .header-tools .member-logout-form button { min-width: 46px !important; padding: 4px 5px !important; font-size: 10px !important; }
  body header .header-tools .nav-toggle { flex-basis: 36px !important; width: 36px !important; min-width: 36px !important; height: 38px !important; min-height: 38px !important; }
}


/* V055: Angemeldete Mitglieder verwalten Sprache und Darstellung im Mitgliederbereich.
   Im öffentlichen Kopf bleiben dann nur Profil, Logout und Hamburger-Menü sichtbar. */
@media screen {
  body header .header-tools.member-authenticated .language-picker,
  body header .header-tools.member-authenticated .language-flag-menu,
  body header .header-tools.member-authenticated > .theme-toggle {
    display: none !important;
  }
  body header .header-tools.member-authenticated {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  body header .header-tools.member-authenticated .member-auth-widget {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
  }
}


/* V056: authenticated mobile header – full brand wordmark, only profile/logout/menu. */
@media screen and (max-width: 760px) {
  body header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 7px !important;
    padding: 8px 9px !important;
    min-width: 0 !important;
  }
  body header .brand {
    grid-column: 1 !important; grid-row: 1 !important;
    display: flex !important; align-items: center !important;
    flex: initial !important; width: 100% !important;
    min-width: 0 !important; max-width: 100% !important;
    gap: 6px !important; overflow: visible !important;
  }
  body header .brand .mark {
    width: 32px !important; flex: 0 0 32px !important;
  }
  body header .brand .mark i:nth-child(1) { width: 32px !important; }
  body header .brand .mark i:nth-child(2) { width: 28px !important; }
  body header .brand .mark i:nth-child(3) { width: 24px !important; }
  body header .brand > span:last-child { min-width: 0 !important; flex: 1 1 auto !important; }
  body header .brand-name {
    display: inline-block !important;
    width: auto !important; max-width: none !important;
    overflow: visible !important; text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(14px, 4.35vw, 18px) !important;
    letter-spacing: -.35px !important; line-height: 1.12 !important;
  }
  body header .brand-sub { display: none !important; }
  body header .header-tools {
    grid-column: 2 !important; grid-row: 1 !important;
    display: flex !important; flex-wrap: nowrap !important;
    align-items: center !important; justify-content: flex-end !important;
    gap: 4px !important; width: max-content !important;
    max-width: none !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important;
  }
  body header .header-tools.member-authenticated .language-flag-menu,
  body header .header-tools.member-authenticated .theme-toggle {
    display: none !important;
  }
  body header .header-tools .member-auth-widget {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; flex: 0 0 auto !important;
    width: auto !important; max-width: none !important;
    min-width: 0 !important; margin: 0 !important; padding: 0 !important;
    gap: 4px !important; white-space: nowrap !important;
  }
  body header .header-tools .member-avatar-link {
    display: inline-flex !important; width: 40px !important; height: 40px !important;
    min-width: 40px !important; flex: 0 0 40px !important;
  }
  body header .header-tools .member-logout-form { display: inline-flex !important; margin: 0 !important; }
  body header .header-tools .member-logout-button,
  body header .header-tools .member-logout-form button,
  body header .header-tools .member-auth-widget .button {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; min-height: 40px !important;
    padding: 7px 9px !important; font-size: 12px !important;
    line-height: 1.1 !important; white-space: nowrap !important;
  }
  body header .header-tools .nav-toggle {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; width: 42px !important;
    min-width: 42px !important; height: 42px !important;
    min-height: 42px !important; flex: 0 0 42px !important;
    margin: 0 !important; padding: 5px !important; font-size: 24px !important;
  }
  body header nav.nav { grid-column: 1 / -1 !important; grid-row: 2 !important; }
}
@media screen and (max-width: 390px) {
  body header .header-inner { padding-left: 7px !important; padding-right: 7px !important; column-gap: 5px !important; }
  body header .brand .mark { width: 29px !important; flex-basis: 29px !important; }
  body header .brand .mark i:nth-child(1) { width: 29px !important; }
  body header .brand .mark i:nth-child(2) { width: 26px !important; }
  body header .brand .mark i:nth-child(3) { width: 22px !important; }
  body header .brand-name { font-size: clamp(13.5px, 4.1vw, 16px) !important; letter-spacing: -.4px !important; }
  body header .header-tools { gap: 3px !important; }
  body header .header-tools .member-avatar-link { width: 38px !important; height: 38px !important; min-width: 38px !important; flex-basis: 38px !important; }
  body header .header-tools .member-auth-widget button,
  body header .header-tools .member-auth-widget .button { min-height: 38px !important; padding: 6px 7px !important; font-size: 11px !important; }
  body header .header-tools .nav-toggle { width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; flex-basis: 40px !important; }
}


/* V057: enlarge only the Demo-Termine.de wordmark; preserve the graphic mark and controls. */
@media screen and (max-width: 760px) {
  body header .brand .mark { flex: 0 0 32px !important; width: 32px !important; }
  body header .brand .mark i:nth-child(1) { width: 32px !important; }
  body header .brand .mark i:nth-child(2) { width: 28px !important; }
  body header .brand .mark i:nth-child(3) { width: 24px !important; }
  body header .brand-name {
    font-size: clamp(18px, 5.4vw, 23px) !important;
    letter-spacing: -.45px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }
}
@media screen and (max-width: 390px) {
  body header .brand-name { font-size: clamp(17px, 5.1vw, 20px) !important; }
}
