/* SG Dietzenbach calendar skin - inherits the site's typography */
.kurabu-events,.kurabu-content-wrap,.kurabu-departments,.kurabu-department-detail,.kurabu-team-detail,.kurabu-modal,.kurabu-error,.kurabu-empty{
  --sg-blue:#21539a;
  --sg-blue-dark:#173d73;
  --sg-blue-soft:#eef4fb;
  --sg-ink:#20252b;
  --sg-muted:#6f747b;
  --sg-line:#e5e8ec;
  --sg-surface:#fff;
  --sg-danger:#b32d2e;
  --sg-radius:3px;
  font:inherit;
  color:var(--sg-ink);
}
.kurabu-events *,.kurabu-content-wrap *,.kurabu-departments *,.kurabu-department-detail *{box-sizing:border-box}
.kurabu-heading{margin:0 0 1.5rem;font:inherit;font-size:clamp(1.7rem,3vw,2.35rem);font-weight:700;line-height:1.15;color:var(--sg-ink)}

/* Button, der die ganze Karte klickbar macht (Titel bleibt Überschrift) */
.kurabu-open{all:unset;cursor:pointer;color:inherit;font:inherit}
.kurabu-open::after{content:"";position:absolute;inset:0}
.kurabu-open:focus-visible{outline:0}
.kurabu-event:focus-within{outline:2px solid var(--sg-blue);outline-offset:2px}

/* Filterleiste */
.kurabu-filters{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 1.5rem;padding:0;border:0}
.kurabu-filters button{appearance:none;-webkit-appearance:none;border:1px solid var(--sg-line);background:var(--sg-surface);color:var(--sg-ink);border-radius:2px;padding:.62rem .9rem;font:inherit;font-size:.78rem;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.035em;cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease}
.kurabu-filters button:hover,.kurabu-filters button:focus-visible{border-color:var(--sg-blue);color:var(--sg-blue);outline:0}
.kurabu-filters button.is-active{background:var(--sg-blue);border-color:var(--sg-blue);color:#fff}

.kurabu-month{position:relative;margin:2.2rem 0 .8rem;padding:0 0 .55rem;font:inherit;font-size:1.28rem;font-weight:700;line-height:1.2;color:var(--sg-ink);border-bottom:2px solid var(--sg-blue)}
.kurabu-month:first-child{margin-top:.4rem}
.kurabu-month[hidden]{display:none}

/* Monatsnavigation (EventON-Stil) */
.kurabu-month-nav{display:flex;align-items:center;gap:.6rem;margin:0 0 1.1rem;padding:.7rem .9rem;background:var(--sg-blue);color:#fff;border-radius:var(--sg-radius)}
.kurabu-month-nav .kurabu-month-title{flex:1 1 auto;margin:0;font:inherit;font-size:1.3rem;font-weight:800;line-height:1.2;color:#fff;text-transform:uppercase;letter-spacing:.03em;outline:0}
.kurabu-month-arrow{order:2;display:inline-grid;place-items:center;width:2.2rem;height:2.2rem;border:1px solid rgba(255,255,255,.55);border-radius:50%;color:#fff!important;font-size:1.4rem;line-height:1;text-decoration:none!important;transition:background .18s ease}
.kurabu-month-arrow:hover,.kurabu-month-arrow:focus-visible{background:rgba(255,255,255,.18);outline:0}
.kurabu-month-arrow.is-disabled{opacity:.35}
.kurabu-month-nav .kurabu-month-title{order:1}
.kurabu-month-today{order:3;padding:.45rem .7rem;border:1px solid rgba(255,255,255,.55);border-radius:2px;color:#fff!important;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;text-decoration:none!important}
.kurabu-month-today:hover,.kurabu-month-today:focus-visible{background:rgba(255,255,255,.18);outline:0}
.kurabu-events.is-loading .kurabu-calendar-shell,.kurabu-events.is-loading .kurabu-filters{opacity:.45;pointer-events:none;transition:opacity .15s ease}
.kurabu-filters-label{flex:0 0 auto;min-width:4.2rem;color:var(--sg-muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.kurabu-filters+.kurabu-filters{margin-top:-.9rem}
.kurabu-filter-empty[hidden],.kurabu-cal-pager[hidden]{display:none}

/* Filterleiste (Dropdowns wie im bisherigen Kalender) */
.kurabu-filterbar{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 .9rem;padding:.6rem;background:#f1f2f4;border-radius:8px}
.kurabu-dd{position:relative}
.kurabu-dd-btn{display:inline-flex;align-items:center;gap:.5rem;min-width:12rem;margin:0;padding:.55rem .8rem;border:1px solid #d9dce1;border-radius:6px;background:#fff;color:var(--sg-ink);font:inherit;font-size:.86rem;line-height:1.3;cursor:pointer;text-align:left}
.kurabu-dd-btn::after{content:"";margin-left:auto;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sg-muted)}
.kurabu-dd-btn[aria-expanded="true"],.kurabu-dd.is-filtered .kurabu-dd-btn{background:#2b2f33;border-color:#2b2f33;color:#fff}
.kurabu-dd-btn[aria-expanded="true"]::after,.kurabu-dd.is-filtered .kurabu-dd-btn::after{border-top-color:#fff}
.kurabu-dd-btn:focus-visible{outline:2px solid var(--sg-blue);outline-offset:1px}
.kurabu-dd-menu{position:absolute;z-index:20;top:calc(100% + 4px);left:0;width:max(100%,15rem);max-height:22rem;overflow:auto;padding:4px;border-radius:6px;background:#2b2f33;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.kurabu-dd-menu[hidden]{display:none}
.kurabu-dd-item{display:flex;align-items:center;gap:.6rem;width:100%;margin:0 0 2px;padding:.55rem .7rem;border:0;border-radius:3px;background:var(--kc,#f4f5f7);color:#fff;font:inherit;font-size:.84rem;line-height:1.25;text-align:left;cursor:pointer}
.kurabu-dd-item.is-all{background:#f4f5f7;color:var(--sg-ink)}
/* Einträge ohne Spartenfarbe (z. B. „Art"): heller Grund, dunkle Schrift – sonst weiß auf weiß */
.kurabu-dd-item:not([style*="--kc"]){background:#f4f5f7!important;color:var(--sg-ink)!important}
.kurabu-dd-item[style*="--kc"]{background:var(--kc)!important;color:#fff!important}
.kurabu-dd-item:not([style*="--kc"]):hover,.kurabu-dd-item:not([style*="--kc"]):focus-visible{background:#fff!important;box-shadow:inset 0 0 0 2px var(--sg-blue)}
.kurabu-dd-item::before{content:"";flex:0 0 1rem;width:1rem;height:1rem;border-radius:50%;border:2px solid currentColor;box-sizing:border-box;opacity:.6}
.kurabu-dd-item[aria-pressed="true"]::before{opacity:1;border:0;background:#2b2f33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat}
.kurabu-dd-item[aria-pressed="false"]{filter:saturate(.35);opacity:.7}
.kurabu-dd-item:hover,.kurabu-dd-item:focus-visible{filter:brightness(1.08);opacity:1;outline:0;box-shadow:inset 0 0 0 2px rgba(255,255,255,.7)}
.kurabu-events .screen-reader-text,.kurabu-team-detail .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Navigation Woche/Monat: ‹ Titel › Heute */
.kurabu-events.is-week .kurabu-month-nav,.kurabu-events.is-month .kurabu-month-nav,.kurabu-events.is-year .kurabu-month-nav,.kurabu-events.is-monthlist .kurabu-month-nav{background:none;color:var(--sg-ink);padding:0;gap:.5rem}
.kurabu-events .kurabu-month-nav .kurabu-month-title{order:2;flex:0 1 auto;color:var(--sg-ink);font-size:1rem;letter-spacing:.02em}
.kurabu-events .kurabu-month-arrow{border-color:#c9cdd3;color:var(--sg-ink)!important;width:2rem;height:2rem;font-size:1.25rem}
.kurabu-events .kurabu-month-arrow.is-prev{order:1}.kurabu-events .kurabu-month-arrow.is-next{order:3}
.kurabu-events .kurabu-month-arrow:hover,.kurabu-events .kurabu-month-arrow:focus-visible{background:#eef1f4}
.kurabu-events .kurabu-month-today{order:4;margin-left:.3rem;border:0;background:#2fa4e7;color:#fff!important;border-radius:999px;padding:.45rem .9rem}
.kurabu-events .kurabu-month-today:hover,.kurabu-events .kurabu-month-today:focus-visible{background:#1b8ccc}
/* Umschalter Woche | Monat */
.kurabu-viewswitch{order:5;display:inline-flex;margin-left:auto;padding:3px;border-radius:999px;background:#eef0f3}
.kurabu-viewswitch a,.kurabu-viewswitch span{display:inline-flex;align-items:center;padding:.4rem .95rem;border-radius:999px;color:var(--sg-ink)!important;font-size:.78rem;font-weight:700;text-decoration:none!important;line-height:1.2}
.kurabu-viewswitch a:hover,.kurabu-viewswitch a:focus-visible{background:#fff;outline:0}
.kurabu-viewswitch .is-active{background:#2b2f33;color:#fff!important}

/* Jahresübersicht: 12 Monate, Punkte je Sparte */
.kurabu-year{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.kurabu-ymonth{padding:.8rem .7rem .7rem;border:1px solid #e3e5e8;border-radius:6px;background:#fff}
.kurabu-ymonth.is-past{opacity:.55}
.kurabu-ymonth h4{margin:0 0 .5rem;font:inherit;font-size:.95rem;font-weight:800}
.kurabu-ymonth h4 a{color:var(--sg-ink)!important;text-decoration:none!important}
.kurabu-ymonth h4 a:hover,.kurabu-ymonth h4 a:focus-visible{color:var(--sg-blue)!important}
.kurabu-ymonth-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.kurabu-ywd{padding-bottom:.25rem;font-size:.6rem;font-weight:700;text-transform:uppercase;color:var(--sg-muted)}
.kurabu-yday{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:2.15rem;padding:.2rem 0 .15rem;border-radius:4px;color:#9aa0a6;font-size:.74rem;line-height:1.2;text-decoration:none!important}
.kurabu-yday.has-events{color:var(--sg-ink)!important;font-weight:700;cursor:pointer}
.kurabu-yday.has-events:hover,.kurabu-yday.has-events:focus-visible{background:#eef1f4;outline:0}
.kurabu-yday.has-events:focus-visible{box-shadow:inset 0 0 0 2px var(--sg-blue)}
.kurabu-yday.is-today .d{display:grid;place-items:center;min-width:1.35rem;height:1.35rem;border-radius:4px;background:#f47c7c;color:#fff}
.kurabu-yday.is-past.has-events{font-weight:600}
.kurabu-ydots{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;max-width:100%;margin-top:2px}
.kurabu-ydot{width:6px;height:6px;border-radius:50%;background:var(--kc,#21539a)}
.kurabu-ydot[hidden]{display:none}
/* Tage, deren Punkte alle weggefiltert sind, wie leere Tage darstellen */
.kurabu-yday.has-events:not(:has(.kurabu-ydot:not([hidden]))){color:#9aa0a6!important;font-weight:400;pointer-events:none}
@container (max-width:900px){.kurabu-year{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (max-width:680px){.kurabu-year{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}}
@container (max-width:430px){.kurabu-year{grid-template-columns:1fr}.kurabu-yday{min-height:2.6rem;font-size:.85rem}.kurabu-ydot{width:7px;height:7px}}

/* Monatsraster */
.kurabu-mgrid{border:1px solid #e3e5e8;border-radius:6px;overflow:hidden;background:#fff}
.kurabu-mgrid-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#f6f7f8;border-bottom:1px solid #e3e5e8}
.kurabu-mgrid-head span{padding:.55rem .3rem;text-align:center;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--sg-muted)}
.kurabu-mgrid-body{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.kurabu-mgrid-day{min-width:0;min-height:6.5rem;padding:.35rem;border-right:1px solid #e3e5e8;border-bottom:1px solid #e3e5e8}
.kurabu-mgrid-day:nth-child(7n){border-right:0}
.kurabu-mgrid-date{display:flex;justify-content:flex-end;margin-bottom:.3rem}
.kurabu-mgrid-date .wday{display:none}
.kurabu-mgrid-date .day{display:grid;place-items:center;min-width:1.7rem;height:1.7rem;padding:0 .25rem;border-radius:5px;font-size:.85rem;font-weight:700;color:var(--sg-ink)}
.kurabu-mgrid-day.is-today .kurabu-mgrid-date .day{background:#f47c7c;color:#fff}
.kurabu-mgrid-day.is-other{background:#fafbfc}
.kurabu-mgrid-day.is-other .kurabu-mgrid-date .day{color:#b0b5ba}
.kurabu-mgrid-day.is-past .kurabu-tile,.kurabu-mgrid-day.is-other .kurabu-tile{opacity:.55}
.kurabu-mgrid-events{display:flex;flex-direction:column;gap:3px}
.kurabu-tile.is-mini{padding:2px 5px;border-radius:3px;font-size:10.5px;line-height:1.35}
.kurabu-tile.is-mini .kurabu-open{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-transform:none;font-weight:600}
.kurabu-tile.is-mini .kurabu-tile-time{display:inline;font-size:inherit;font-weight:700;opacity:.9}

/* Wochenraster */
.kurabu-event-list{container-type:inline-size}
.kurabu-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #e3e5e8;border-radius:6px;overflow:hidden;background:#fff}
.kurabu-week-day{min-width:0;border-left:1px solid #e3e5e8}
.kurabu-week-day:first-child{border-left:0}
.kurabu-week-head{display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.7rem .3rem .8rem;background:#f6f7f8;border-bottom:1px solid #e3e5e8}
.kurabu-week-head .wday{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--sg-muted)}
.kurabu-week-head .day{display:grid;place-items:center;min-width:2.4rem;height:2.4rem;padding:0 .3rem;border-radius:6px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);font-size:1.25rem;font-weight:700;color:var(--sg-ink)}
.kurabu-week-day.is-today .kurabu-week-head .day{background:#f47c7c;color:#fff}
.kurabu-week-events{display:flex;flex-direction:column;gap:5px;padding:.6rem .4rem;min-height:4rem}
.kurabu-tile{position:relative;padding:5px 7px;border-radius:5px;background:var(--kc,#21539a);color:#fff;font-size:11px;line-height:1.3;cursor:pointer;transition:filter .15s ease,transform .15s ease}
.kurabu-tile:hover{filter:brightness(1.08);transform:translateY(-1px)}
.kurabu-tile[hidden]{display:none}
.kurabu-tile:focus-within{outline:2px solid var(--sg-ink);outline-offset:1px}
.kurabu-tile-time{display:block;opacity:.85;font-size:10px}
.kurabu-tile .kurabu-open{display:block;position:static;font-weight:700;text-transform:uppercase;letter-spacing:.01em;overflow-wrap:anywhere;hyphens:auto}
.kurabu-tile-cancel{display:inline-block;margin-top:2px;padding:0 4px;background:rgba(0,0,0,.35);border-radius:3px;font-size:9px;font-weight:700;text-transform:uppercase}
.kurabu-tile.is-cancelled .kurabu-open{text-decoration:line-through}
.kurabu-week-day.is-past .kurabu-tile{opacity:.6}
.kurabu-event{position:relative}

/* Terminbalken (Liste, Monat, Kompakt) */
.kurabu-bar{display:grid;grid-template-columns:3.6rem minmax(0,1fr) minmax(0,15rem);gap:.9rem;align-items:center;margin:0 0 .45rem;padding:.75rem 1rem;border-radius:6px;background:var(--kc,#21539a);color:#fff;cursor:pointer;transition:filter .15s ease}
.kurabu-bar:hover{filter:brightness(1.07)}
.kurabu-bar[hidden]{display:none}
.kurabu-bar:focus-within{outline:2px solid var(--sg-ink);outline-offset:2px}
.kurabu-bar.is-cancelled h3{text-decoration:line-through}
.kurabu-bar-date{display:flex;flex-direction:column;align-items:center;text-transform:uppercase;line-height:1}
.kurabu-bar-date .wday,.kurabu-bar-date .mon{font-size:.62rem;font-weight:600;letter-spacing:.06em;opacity:.85}
.kurabu-bar-date .day{margin:.15rem 0;font-size:1.65rem;font-weight:800}
.kurabu-bar-main{min-width:0}
.kurabu-bar h3{margin:0;font:inherit;font-size:1rem;font-weight:800;line-height:1.25;color:#fff;text-transform:uppercase}
.kurabu-bar-sub{margin-top:.15rem;font-size:.78rem;opacity:.9}
.kurabu-bar-sub:empty{display:none}
.kurabu-bar-lead{margin-top:.15rem;font-size:.76rem;opacity:.9}
.kurabu-bar-lead em,.kurabu-ev-lead em{opacity:.75}
.kurabu-bar-side{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;font-size:.76rem;line-height:1.35}
.kurabu-bar-time{font-weight:700}
.kurabu-ev-badge{display:inline-block;padding:.12rem .45rem;border-radius:3px;background:#f9d27e;color:#3a2a06;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.kurabu-bar .kurabu-badge{margin:0 .4rem 0 0;padding:.05rem .35rem;font-size:.6rem;background:rgba(0,0,0,.35)}
.kurabu-bar.is-past{opacity:.6}
.kurabu-more{display:inline-flex;align-items:center;gap:.4rem;margin:.2rem 0 .4rem;padding:.5rem .95rem;border:1px solid #c9cdd3;border-radius:999px;background:#fff;color:var(--sg-ink);font:inherit;font-size:.78rem;cursor:pointer}
.kurabu-more::before{content:"+";font-weight:700}
.kurabu-more:hover,.kurabu-more:focus-visible{border-color:var(--sg-blue);color:var(--sg-blue);outline:0}
.kurabu-more[hidden]{display:none}
.kurabu-events .kurabu-month{margin:1.4rem 0 .6rem;padding:0;border:0;font-size:.95rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
@container (max-width:620px){
  .kurabu-bar{grid-template-columns:3rem minmax(0,1fr);gap:.4rem .75rem;padding:.65rem .8rem}
  .kurabu-bar-side{grid-column:2;flex-direction:row;flex-wrap:wrap;gap:.2rem .6rem}
  .kurabu-bar-date .day{font-size:1.4rem}
  .kurabu-bar h3{font-size:.92rem}
}

/* Detail-Popup wie im bisherigen Kalender (EventON) */
.kurabu-ev-modal .kurabu-modal-dialog{width:min(820px,100%);border-radius:15px;background:#fff}
.kurabu-ev-head{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,12rem);gap:.9rem;align-items:start;padding:1rem 3.4rem 1rem 1rem;background:var(--kc,#21539a);color:#fff}
.kurabu-ev-head.has-thumb{grid-template-columns:6.5rem auto minmax(0,1fr) minmax(0,12rem)}
.kurabu-ev-thumb{width:6.5rem;height:6.5rem;object-fit:cover;border-radius:10px;display:block}
.kurabu-ev-date{display:flex;flex-direction:column;align-items:center;min-width:2.2rem;text-transform:uppercase;line-height:1}
.kurabu-ev-date .wday,.kurabu-ev-date .mon{font-size:.62rem;font-weight:600;opacity:.85;letter-spacing:.06em}
.kurabu-ev-date .day{margin:.15rem 0;font-size:1.7rem;font-weight:800}
.kurabu-ev-head h3{margin:0;font:inherit;font-size:1.15rem;font-weight:800;line-height:1.2;color:#fff;text-transform:uppercase}
.kurabu-ev-sub,.kurabu-ev-lead{margin:.3rem 0 0;font-size:.8rem;opacity:.92}
.kurabu-ev-headside{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;font-size:.76rem;line-height:1.35}
.kurabu-ev-time{font-weight:700}
.kurabu-ev-head .kurabu-badge{background:rgba(0,0,0,.35)}
.kurabu-ev-modal .kurabu-modal-close{background:rgba(255,255,255,.95)}
.kurabu-ev-body{display:flex;flex-direction:column;gap:6px;padding:6px;background:#fff}
.kurabu-ev-image{border-radius:15px;overflow:hidden;background:#eef1f4}
.kurabu-ev-image img{display:block;width:100%;max-height:520px;object-fit:cover}
.kurabu-ev-card{margin:0;padding:1.1rem 1.25rem;border-radius:15px;background:#f3f3f3}
.kurabu-ev-card h4{display:flex;align-items:center;gap:.5rem;margin:0 0 .6rem;font:inherit;font-size:.95rem;font-weight:800;color:var(--sg-ink)}
.kurabu-icon{display:inline-block;flex:0 0 auto;width:1em;height:1em;vertical-align:-.125em}
.kurabu-ev-card h4 .kurabu-icon{width:1.05rem;height:1.05rem}
.kurabu-ev-headside .kurabu-icon{margin-right:.35rem;opacity:.9}
.kurabu-ev-time,.kurabu-ev-loc{display:flex;align-items:baseline}
.kurabu-ev-loc .kurabu-icon{flex:0 0 auto;transform:translateY(.1em)}
.kurabu-ev-more .kurabu-icon{width:.7rem;height:.7rem}
.kurabu-ev-address{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.2rem!important}
.kurabu-copy{display:inline-grid;place-items:center;width:2rem;height:2rem;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sg-ink);cursor:pointer}
.kurabu-copy:hover,.kurabu-copy:focus-visible{background:#e3e4e6;outline:0}
.kurabu-copy.is-copied{color:#2f8f4e}
.kurabu-copy .kurabu-icon{width:1.05rem;height:1.05rem}
.kurabu-copy-done{font-size:.76rem;font-weight:700;color:#2f8f4e}
.kurabu-copy-done:empty{display:none}
.kurabu-copy-done.is-error{color:var(--sg-danger)}
.kurabu-ev-address span:first-child{user-select:all}
.kurabu-ev-card p{margin:0;font-size:.88rem;line-height:1.55}
.kurabu-ev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.kurabu-ev-leads{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;list-style:none;margin:0;padding:0}
.kurabu-ev-leads li{display:flex;align-items:center;gap:.8rem}
.kurabu-ev-leads .kurabu-avatar{flex-basis:4rem;width:4rem;height:4rem;font-size:1.1rem;border-radius:12px}
.kurabu-ev-leads strong{display:block;margin-bottom:.35rem}
.kurabu-ev-more{display:inline-flex;align-items:center;gap:.3rem;margin-top:.5rem;padding:.3rem .7rem;border-radius:999px;background:#e3e4e6;color:var(--sg-ink)!important;font-size:.74rem;font-weight:700;text-decoration:none!important}
.kurabu-ev-more:hover,.kurabu-ev-more:focus-visible{background:#d5d7da;outline:0}
.kurabu-ev-place{position:relative;border-radius:15px;overflow:hidden}
.kurabu-ev-place img{display:block;width:100%;height:230px;object-fit:cover}
.kurabu-ev-place span{position:absolute;right:1rem;bottom:.8rem;color:#fff;font-weight:800;text-transform:uppercase;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.kurabu-ev-export{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem;padding:.9rem 1.25rem}
.kurabu-ev-export>.kurabu-icon{width:1.1rem;height:1.1rem}
.kurabu-ev-export a{color:var(--sg-ink)!important;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em;text-decoration:none!important}
.kurabu-ev-export a:hover,.kurabu-ev-export a:focus-visible{color:var(--sg-blue)!important}
.kurabu-ev-body>p{margin:.3rem .4rem}
.kurabu-event-link{display:inline-flex;align-items:center;padding:.62rem .9rem;background:var(--kc,var(--sg-blue));color:#fff!important;text-decoration:none!important;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em;border-radius:2px;transition:filter .18s ease}
.kurabu-event-link:hover,.kurabu-event-link:focus-visible{filter:brightness(1.12);outline:0}
@media(max-width:640px){
  .kurabu-ev-head,.kurabu-ev-head.has-thumb{grid-template-columns:auto minmax(0,1fr);padding:1rem 3.2rem 1rem 1rem}
  .kurabu-ev-thumb{display:none}
  .kurabu-ev-headside{grid-column:2}
  .kurabu-ev-head h3{font-size:1.05rem}
  .kurabu-ev-grid{grid-template-columns:1fr}
}

/* Wochenraster auf schmalen Bildschirmen: Tage untereinander, leere Tage ausblenden */
@container (max-width:760px){
  .kurabu-mgrid{border:0;background:none}
  .kurabu-mgrid-head{display:none}
  .kurabu-mgrid-body{grid-template-columns:1fr;gap:.5rem}
  .kurabu-mgrid-day{display:grid;grid-template-columns:3.4rem minmax(0,1fr);min-height:0;padding:0;border:1px solid #e3e5e8!important;border-radius:6px;overflow:hidden;background:#fff}
  .kurabu-mgrid-day.is-other,.kurabu-mgrid-day:not(:has(.kurabu-tile:not([hidden]))){display:none}
  .kurabu-mgrid-date{flex-direction:column;align-items:center;justify-content:flex-start;gap:.35rem;margin:0;padding:.6rem .3rem;background:#f6f7f8;border-right:1px solid #e3e5e8}
  .kurabu-mgrid-date .wday{display:block;font-size:.68rem;font-weight:600;text-transform:uppercase;color:var(--sg-muted)}
  .kurabu-mgrid-date .day{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);min-width:2.2rem;height:2.2rem;font-size:1.1rem}
  .kurabu-mgrid-events{padding:.5rem;gap:5px}
  .kurabu-tile.is-mini{padding:7px 9px;font-size:12px;border-radius:5px}
  .kurabu-tile.is-mini .kurabu-open{white-space:normal;text-transform:uppercase;font-weight:700}
  .kurabu-tile.is-mini .kurabu-tile-time{display:block;font-size:11px;font-weight:400}
  .kurabu-week{grid-template-columns:1fr;border:0;background:none;gap:.5rem}
  .kurabu-week-day{display:grid;grid-template-columns:3.4rem minmax(0,1fr);border:1px solid #e3e5e8;border-radius:6px;overflow:hidden;background:#fff}
  .kurabu-week-day:first-child{border-left:1px solid #e3e5e8}
  .kurabu-week-head{justify-content:flex-start;padding:.6rem .3rem;border-bottom:0;border-right:1px solid #e3e5e8}
  .kurabu-week-day:not(:has(.kurabu-tile:not([hidden]))){display:none}
  .kurabu-week-events{padding:.5rem;min-height:0}
  .kurabu-tile{font-size:12px;padding:7px 9px}
  .kurabu-tile-time{font-size:11px}
}

/* News: Top-News-Kacheln */
.kurabu-news-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;margin:0 0 2.5rem}
.kurabu-news-top.has-1{grid-template-columns:1fr}
.kurabu-news-top.has-many .kurabu-news-tile.is-large{grid-row:span 2}
/* z-index:0 = eigener Stapelkontext: Bild/Verlauf liegen negativ dahinter, der Text bleibt im Fluss,
   damit sich die Klickfläche (.kurabu-open::after) über die ganze Kachel spannt. */
.kurabu-news-tile{position:relative;z-index:0;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;min-height:110px;aspect-ratio:2/1;background:var(--sg-blue);cursor:pointer}
.kurabu-news-top.has-many .kurabu-news-tile.is-large{aspect-ratio:auto}
.kurabu-news-top.has-1 .kurabu-news-tile{aspect-ratio:21/9}
.kurabu-news-top.has-2 .kurabu-news-tile:not(.is-large){aspect-ratio:auto}
.kurabu-news-tile img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.kurabu-news-tile:hover img{transform:scale(1.03)}
.kurabu-news-tile::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(10,18,30,.78) 0%,rgba(10,18,30,.35) 45%,rgba(10,18,30,0) 75%)}
.kurabu-news-tile-text{padding:.75rem .8rem;color:#fff}
.kurabu-news-tile h3{margin:0 0 .25rem;font:inherit;font-size:.82rem;font-weight:700;line-height:1.3;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.kurabu-news-tile.is-large .kurabu-news-tile-text{padding:1rem 1.1rem}
.kurabu-news-tile.is-large h3{font-size:1rem}
.kurabu-news-tile time{display:block;font-size:.7rem;line-height:1.3;color:rgba(255,255,255,.88)}
.kurabu-news-tile:focus-within{outline:3px solid var(--sg-blue);outline-offset:2px}

/* News: Neueste Artikel */
.kurabu-news-latest-heading{margin-bottom:1rem}
.kurabu-news-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--sg-line)}
.kurabu-news-row{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;margin:0;padding:.95rem 1.4rem;border-bottom:1px solid var(--sg-line);cursor:pointer;transition:background .18s ease}
.kurabu-news-row:hover{background:var(--sg-blue-soft)}
.kurabu-news-row:focus-within{outline:2px solid var(--sg-blue);outline-offset:-2px}
.kurabu-news-row-main{min-width:0}
.kurabu-news-row h3{margin:0;font:inherit;font-size:1rem;font-weight:700;line-height:1.35;color:var(--sg-ink)}
.kurabu-news-row:hover h3{color:var(--sg-blue)}
.kurabu-news-row p{margin:.3rem 0 0;color:var(--sg-muted);font-size:.88rem;line-height:1.45}
.kurabu-news-row time{flex:0 0 auto;white-space:nowrap;color:var(--sg-muted);font-size:.86rem}

/* News: Datum im Popup */
.kurabu-card-date{margin-bottom:.35rem;color:var(--sg-blue);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}

/* News: Seitennavigation */
.kurabu-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem;margin:1.75rem 0 0}
.kurabu-pagination button{font:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
.kurabu-pagination a,.kurabu-pagination span,.kurabu-pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .55rem;border:1px solid var(--sg-line);border-radius:2px;background:#fff;color:var(--sg-ink);font-size:.78rem;line-height:1;text-decoration:none}
.kurabu-pagination a:hover,.kurabu-pagination a:focus-visible,.kurabu-pagination button:not(:disabled):not(.is-current):hover,.kurabu-pagination button:focus-visible{border-color:var(--sg-blue);color:var(--sg-blue);outline:0}
.kurabu-pagination .is-current{background:var(--sg-blue);border-color:var(--sg-blue);color:#fff;font-weight:700}
.kurabu-pagination .is-disabled{color:#b0b5ba;cursor:default}
.kurabu-pagination .kurabu-pagination-gap{min-width:auto;padding:0 .1rem;border:0;background:none}

/* Hinweise */
.kurabu-error,.kurabu-empty{margin:0 0 1rem;padding:1rem 1.1rem;border:1px solid var(--sg-line);border-left:4px solid var(--sg-blue);border-radius:var(--sg-radius);background:#fff}

/* Ferien-/Hinweis-Overlay */
.kurabu-calendar-shell{position:relative}
.kurabu-calendar-shell.has-notice .kurabu-event-list{filter:blur(1.5px);opacity:.28;pointer-events:none;user-select:none}
.kurabu-calendar-notice{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-start;justify-content:center;padding:3rem 1rem;background:rgba(255,255,255,.68);backdrop-filter:blur(2px)}
.kurabu-calendar-notice-box{display:flex;gap:.9rem;align-items:flex-start;max-width:620px;padding:1.15rem 1.35rem;background:#fff;border-left:4px solid var(--sg-blue);box-shadow:0 10px 30px rgba(19,53,95,.12);font-size:1rem;line-height:1.55}
.kurabu-calendar-notice-icon{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--sg-blue);color:#fff;font-weight:800}

/* Modal */
body.kurabu-modal-open{overflow:hidden}
.kurabu-modal[hidden]{display:none}
.kurabu-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:1rem;opacity:0;transition:opacity .18s ease;cursor:auto}
.kurabu-modal.is-open{opacity:1}
.kurabu-modal-backdrop{position:absolute;inset:0;background:rgba(16,25,38,.68)}
.kurabu-modal-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(88vh,900px);overflow:auto;background:#fff;color:var(--sg-ink);box-shadow:0 20px 60px rgba(0,0,0,.25);transform:translateY(10px);transition:transform .18s ease;text-align:left}
.kurabu-modal.is-open .kurabu-modal-dialog{transform:none}
.kurabu-modal-close{position:absolute;z-index:2;top:.65rem;right:.65rem;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.94);font-size:1.7rem;line-height:1;cursor:pointer;color:var(--sg-ink)}
.kurabu-modal-close:focus-visible{outline:2px solid var(--sg-blue)}
.kurabu-modal-image{aspect-ratio:16/6;overflow:hidden;background:#eef1f4}
.kurabu-modal-image img{width:100%;height:100%;object-fit:cover;display:block}
.kurabu-modal-content{padding:1.6rem}
.kurabu-modal-content h3{margin:.15rem 0 1rem;font-size:1.65rem;line-height:1.2}
.kurabu-modal-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0 0 1.2rem}
.kurabu-modal-facts>div{padding:.75rem .85rem;background:var(--sg-blue-soft)}
.kurabu-modal-facts strong,.kurabu-modal-facts span{display:block}
.kurabu-modal-facts strong{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--sg-blue);margin-bottom:.2rem}
.kurabu-modal-facts span{font-size:.92rem}

/* Abteilungen & Teams */
.kurabu-department-grid,.kurabu-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.kurabu-department-card,.kurabu-team-card{border:1px solid var(--sg-line);background:#fff}
.kurabu-department-card img,.kurabu-team-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.kurabu-department-card>div,.kurabu-team-card>div{padding:1rem}
.kurabu-department-card h3,.kurabu-team-card h4{margin:0 0 .45rem}
.kurabu-department-card p,.kurabu-team-card p{margin:0 0 .7rem;color:var(--sg-muted);font-size:.9rem;line-height:1.5}
.kurabu-department-detail{font:inherit;color:var(--sg-ink)}
.kurabu-department-hero{margin-bottom:1.35rem;max-height:460px;overflow:hidden}
.kurabu-department-hero img{width:100%;height:100%;max-height:460px;object-fit:cover;display:block}
.kurabu-department-copy{margin-bottom:2rem}
.kurabu-department-copy h2{margin:0 0 1rem}
.kurabu-teams{margin:2rem 0}
.kurabu-teams>h3,.kurabu-department-calendar>h3{margin:0 0 1rem;font-size:1.35rem}

/* Spartenübersicht: Gruppen, verlinkte Karten */
.kurabu-group-heading{margin:2rem 0 .9rem;font:inherit;font-size:1.15rem;font-weight:800;color:var(--sg-ink)}
.kurabu-group-heading:first-child{margin-top:0}
.kurabu-department-card.is-linked,.kurabu-team-card.is-linked{position:relative;transition:box-shadow .18s ease,transform .18s ease}
.kurabu-department-card.is-linked:hover,.kurabu-team-card.is-linked:hover{box-shadow:0 8px 24px rgba(19,53,95,.12);transform:translateY(-2px)}
.kurabu-card-link{color:inherit!important;text-decoration:none!important}
.kurabu-card-link::after{content:"";position:absolute;inset:0}
.kurabu-card-link:focus-visible{outline:0}
.kurabu-department-card.is-linked:focus-within,.kurabu-team-card.is-linked:focus-within{outline:2px solid var(--sg-blue);outline-offset:2px}
.kurabu-back{display:inline-flex;align-items:center;gap:.4rem;color:var(--sg-ink)!important;font-size:.88rem;font-weight:600;text-decoration:none!important}
.kurabu-back::before{content:"←"}
.kurabu-back:hover{color:var(--sg-blue)!important}
.kurabu-department-detail .kurabu-department-title{margin:0 0 1rem;font:inherit;font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:800;line-height:1.15}
.kurabu-slots{list-style:none;margin:.3rem 0 0;padding:0;color:var(--sg-muted);font-size:.84rem;line-height:1.45}
.kurabu-slots li{position:relative;padding-left:1rem}
.kurabu-slots li::before{content:"";position:absolute;left:0;top:.5em;width:.45rem;height:.45rem;border-radius:50%;background:var(--kc,#21539a)}
.kurabu-slots.is-large{font-size:1rem;color:var(--sg-ink);margin-bottom:1.6rem}
.kurabu-slots.is-large li{padding:.35rem 0 .35rem 1.2rem}
.kurabu-slots.is-large li::before{top:.85em}

/* Teamseite (wie KURABU) */
.kurabu-team-detail{font:inherit;color:var(--sg-ink)}
.kurabu-team-detail *{box-sizing:border-box}
.kurabu-team-hero{position:relative;z-index:0;display:flex;align-items:flex-end;min-height:clamp(220px,38vw,420px);margin:0 0 1rem;border-radius:6px;overflow:hidden;background:var(--kc,#21539a)}
.kurabu-team-hero img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 35%}
/* Detailseiten (Sparten/Teams) nicht über die volle Breite */
.kurabu-page-width{max-width:1100px;margin-left:auto;margin-right:auto}
.kurabu-team-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(10,18,30,.75),rgba(10,18,30,0) 65%)}
.kurabu-team-hero.no-image{min-height:0}
.kurabu-team-hero-text{padding:1.4rem 1.5rem;color:#fff}
.kurabu-team-hero h1{margin:0 0 .4rem;font:inherit;font-size:clamp(1.5rem,3.4vw,2.4rem);font-weight:800;line-height:1.15;color:#fff;text-transform:uppercase}
.kurabu-team-hero-text span{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.kurabu-tabs{display:flex;gap:.3rem;margin:0 0 1.4rem;border-bottom:1px solid var(--sg-line)}
.kurabu-tabs[hidden]{display:none}
.kurabu-tabs button{appearance:none;-webkit-appearance:none;margin:0 0 -1px;padding:.65rem 1rem;border:0;border-bottom:2px solid transparent;background:none;color:var(--sg-muted);font:inherit;font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;cursor:pointer}
.kurabu-tabs button[aria-selected="true"]{border-bottom-color:var(--kc,#21539a);color:var(--sg-ink)}
.kurabu-tabs button:focus-visible{outline:2px solid var(--sg-blue);outline-offset:-2px}
.kurabu-tab-panel[hidden]{display:none}
.kurabu-tab-panel>h3{margin:1.6rem 0 .7rem;font:inherit;font-size:1.25rem;font-weight:800}
.kurabu-tab-panel>h3:first-child{margin-top:0}
.kurabu-team-detail.has-tabs .kurabu-tab-fallback-heading{display:none}
.kurabu-leads{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.75rem;list-style:none;margin:0;padding:0}
.kurabu-leads li{display:flex;align-items:center;gap:.75rem;padding:.8rem;border:1px solid var(--sg-line);border-radius:6px;background:#fff;font-weight:700}
.kurabu-avatar{display:grid;place-items:center;flex:0 0 2.4rem;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--kc,#21539a);color:#fff;font-size:.8rem;font-weight:800}

@media(max-width:800px){
  .kurabu-department-grid,.kurabu-team-grid{grid-template-columns:1fr 1fr}
  .kurabu-modal-facts{grid-template-columns:1fr}
}
@media(max-width:600px){
  .kurabu-filters{gap:.35rem}
  .kurabu-filters-label{flex-basis:100%}
  .kurabu-month-nav{flex-wrap:wrap;gap:.45rem}
  .kurabu-month-nav .kurabu-month-title{flex-basis:100%}.kurabu-filters button{padding:.55rem .7rem;font-size:.7rem}
  .kurabu-department-grid,.kurabu-team-grid{grid-template-columns:1fr}
  .kurabu-news-top{grid-template-columns:1fr}
  .kurabu-news-top.has-many .kurabu-news-tile.is-large{grid-row:auto;aspect-ratio:16/9}
  .kurabu-news-tile,.kurabu-news-top.has-2 .kurabu-news-tile:not(.is-large){aspect-ratio:16/9}
  .kurabu-news-row{flex-direction:column;gap:.2rem;padding:.85rem .5rem}
  .kurabu-modal-content{padding:1.1rem}.kurabu-modal-content h3{font-size:1.3rem}
  .kurabu-calendar-notice{padding:1.5rem .7rem}
}

/* Theme-Schutz: Avada ("responsive typography") setzt per JS font-size !important auf alle Überschriften
   im Inhalt (.fusion-responsive-typography-calculated). Plugin-Überschriften behalten hier ihre Größe. */
.kurabu-news .kurabu-news-row h3{font-size:1rem!important;line-height:1.35!important}
.kurabu-news .kurabu-news-tile h3{font-size:.82rem!important;line-height:1.3!important}
.kurabu-news .kurabu-news-tile.is-large h3{font-size:1rem!important}
.kurabu-events .kurabu-bar h3{font-size:1rem!important;line-height:1.25!important;text-transform:uppercase!important}
.kurabu-events .kurabu-month{font-size:.95rem!important;line-height:1.2!important}
.kurabu-events .kurabu-month-nav .kurabu-month-title{font-size:1rem!important;line-height:1.2!important}
.kurabu-events .kurabu-ymonth h4{font-size:.95rem!important;line-height:1.3!important}
.kurabu-modal .kurabu-modal-content h3{font-size:1.65rem!important;line-height:1.2!important}
.kurabu-modal .kurabu-ev-head h3{font-size:1.15rem!important;line-height:1.2!important;color:#fff!important;text-transform:uppercase!important}
.kurabu-modal .kurabu-ev-card h4{font-size:.95rem!important;line-height:1.3!important}
.kurabu-department-detail .kurabu-department-title{font-size:clamp(1.8rem,3.5vw,2.6rem)!important;line-height:1.15!important}
.kurabu-team-detail .kurabu-team-hero h1{font-size:clamp(1.5rem,3.4vw,2.4rem)!important;line-height:1.15!important;color:#fff!important}
.kurabu-team-detail .kurabu-tab-panel>h3,.kurabu-departments .kurabu-group-heading{font-size:1.2rem!important;line-height:1.25!important}
.kurabu-departments .kurabu-department-card h3{font-size:1.15rem!important;line-height:1.3!important}
.kurabu-department-detail .kurabu-team-card h4{font-size:1rem!important;line-height:1.3!important}
.kurabu-department-detail .kurabu-teams>h3,.kurabu-department-detail .kurabu-department-calendar>h3{font-size:1.35rem!important;line-height:1.25!important}
@media(max-width:600px){
  .kurabu-events .kurabu-bar h3{font-size:.92rem!important}
  .kurabu-modal .kurabu-ev-head h3{font-size:1.1rem!important}
  .kurabu-modal .kurabu-modal-content h3{font-size:1.3rem!important}
}
