@layer base,layout,components,responsive,news-list;
@layer base {
:root{--bg:#f7f7f3;--surface:#fff;--ink:#202c30;--muted:#677176;--line:#e4e7e5;--red:#c91e35;--blue:#244d85;--soft:#eeefea;--shadow:0 8px 28px #24303906;color-scheme:light;font-family:Arial,Helvetica,sans-serif;font-size:16px}
:root[data-theme=dark]{--bg:#141c22;--surface:#1d2830;--ink:#edf2f3;--muted:#b0bcc1;--line:#35434c;--soft:#202d36;--red:#fa6b7d;--blue:#94b9ed;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.65}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,summary{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:default}img{display:block;width:100%;height:auto}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(36px,4vw,58px)}h2{font-size:clamp(27px,3vw,36px)}h3{font-size:23px}p+p{margin-top:16px}svg.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}:focus-visible{outline:3px solid var(--blue);outline-offset:5px}::selection{background:#eac3cb;color:#17232c}[hidden]{display:none!important}.skip{position:fixed;top:-80px;left:16px;z-index:100;background:var(--surface);padding:12px}.skip:focus{top:10px}
}
@layer layout {
.wrap{width:min(1200px,calc(100% - 72px));margin-inline:auto}.header{background:var(--bg);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:118px}.brand{width:247px;flex-shrink:0}.brand img{mix-blend-mode:multiply}:root[data-theme=dark] .brand{background:#fff;padding:8px;border-radius:6px}.head-right{display:flex;align-items:flex-end;flex-direction:column;gap:17px;padding:17px 0}.tools{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted)}.social{display:inline-flex;align-items:center;gap:6px}.social svg{width:15px;height:15px}.search-open{background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:6px 13px;display:flex;align-items:center;gap:11px;min-width:190px;text-align:left;font-size:12px}.search-open svg{width:15px;height:15px}.theme{display:flex;background:none;border:0;padding:5px}.theme svg{width:18px;height:18px}.navigation{display:flex;align-items:center;gap:27px;font-size:14px;font-weight:600}.nav-item{position:relative;display:flex;align-items:center;gap:5px}.nav-item>a{padding:7px 0;white-space:nowrap}.nav-item>a[aria-current=page]{color:var(--red)}.sub-toggle{padding:2px;border:0;background:none;display:flex}.sub-toggle svg{width:13px;height:13px}.submenu{display:none;position:absolute;top:100%;left:-18px;min-width:220px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #0001;z-index:25}.submenu a{display:block;padding:10px;border-radius:6px}.submenu a:hover{background:var(--soft)}.nav-item:hover .submenu,.nav-item:focus-within .submenu,.nav-item.open .submenu{display:block}.nav-placeholder{color:var(--muted);font-weight:400}.menu-toggle{display:none}.preview-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.hero{position:relative;isolation:isolate;border-radius:0 0 20px 20px;overflow:hidden;background:#18272c;min-height:540px;color:#fff}.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;z-index:-2}.hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#091b23d9 0%,#12232c83 55%,#14252b18 100%),linear-gradient(0deg,#12252c99,transparent 65%)}.hero-inner{padding-top:77px;padding-bottom:35px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--red);display:block;margin-bottom:14px}.hero .eyebrow{color:#fff}.hero h1{max-width:660px;font-size:clamp(35px,3.7vw,54px);line-height:1.08}.hero p{max-width:475px;margin-top:22px;color:#f0f2f2;line-height:1.75;font-size:16px}.hero .button{margin-top:25px}.hero-dots{display:flex;gap:12px;margin-top:35px;align-items:center}.hero-dot{border:0;background:transparent;min-width:25px;min-height:32px;padding:8px 3px;display:flex;align-items:center;justify-content:center}.hero-dot:after{content:'';width:8px;height:8px;border-radius:12px;background:#ffffff70;box-shadow:0 0 0 1px #fff5}.hero-dot[aria-pressed=true]:after{width:25px;background:#fff;box-shadow:none}
.section{padding-block:62px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:27px}.section-head .eyebrow{margin-bottom:10px}.section-head.quick-head{justify-content:flex-start;align-items:center;gap:32px;margin-bottom:23px}.quick-head .eyebrow{margin:0}.quick-head h2{font-size:24px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.news-section{padding-top:8px;padding-bottom:70px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.page-intro{padding:42px 0 47px;border-bottom:1px solid var(--line)}.breadcrumbs{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:28px}.breadcrumbs a:hover{color:var(--red)}.page-intro .intro{max-width:690px;font-size:17px;color:var(--muted);margin-top:18px}.content-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px;align-items:start}.two-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.footer{background:var(--soft);border-radius:20px 20px 0 0;padding:43px 0 22px}.footer-main{display:flex;align-items:flex-start;justify-content:space-between;gap:30px}.footer h2{font-size:25px;max-width:340px}.footer p{font-size:13px;color:var(--muted);margin-top:10px}.footer-links{display:flex;gap:30px;font-size:13px;flex-wrap:wrap}.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:32px;padding-top:18px;font-size:11px;color:var(--muted)}
}
@layer components {
.button{display:inline-flex;align-items:center;justify-content:center;gap:26px;padding:12px 20px;border-radius:7px;border:1px solid transparent;background:#c91e35;color:#fff;font-size:13px;font-weight:700;min-height:47px}.button:hover{background:#ac162b}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.button.secondary:hover{border-color:var(--red)}.text-link{display:inline-flex;gap:12px;align-items:center;font-weight:600;font-size:13px}.text-link:hover{color:var(--red)}.text-link svg{width:18px;height:18px}.quick-card{display:flex;align-items:center;gap:18px;position:relative;padding:28px 23px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);transition:transform .2s,border-color .2s}.quick-card>.icon{color:var(--red);width:28px;height:28px}.quick-card strong{display:block;font-size:15px}.quick-card small{font-size:11px;color:var(--muted)}.corner{position:absolute;right:16px;top:11px;color:var(--muted);font-size:15px}.quick-card:hover{transform:translateY(-3px);border-color:var(--red)}.quick-card.placeholder{opacity:.75}.post{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.post-image{aspect-ratio:1.65;object-fit:cover;transition:transform .4s}.post>a{display:block;overflow:hidden}.post>a:hover img{transform:scale(1.03)}.post-body{padding:25px}.post-meta{font-size:10px;color:var(--muted);display:flex;gap:12px;margin-bottom:15px;letter-spacing:.06em}.post-meta span{color:var(--red);font-weight:700}.post h3{font-size:23px}.post p{font-size:13px;color:var(--muted);margin-block:15px 22px}.post h3 a:hover{color:var(--red)}.panel{padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.panel h2{font-size:26px;margin-bottom:16px}.panel h3{margin-bottom:14px}.panel p{color:var(--muted);font-size:14px}.feature{display:flex;flex-direction:column;min-height:280px;padding:35px}.feature>.icon{width:34px;height:34px;color:var(--red);margin-bottom:28px}.feature h2{margin-bottom:14px}.feature p{margin-bottom:28px;max-width:440px}.feature .text-link{margin-top:auto}.info-note{padding:18px 22px;background:var(--soft);border-left:3px solid var(--blue);font-size:13px;color:var(--muted);border-radius:0 8px 8px 0;margin-top:28px}.pill{border:1px solid var(--line);padding:5px 12px;border-radius:30px;font-size:11px;background:var(--surface)}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:28px}.filters button{border:1px solid var(--line);background:var(--surface);padding:9px 22px;border-radius:30px;font-size:13px}.filters button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}.file-card{display:flex;flex-direction:column;min-height:270px}.file-card .file-icon{color:var(--red);background:var(--soft);width:50px;height:57px;display:grid;place-items:center;border-radius:7px;font-size:12px;font-weight:700;margin-bottom:23px}.file-card h2{font-size:22px}.file-card .text-link{margin-top:auto;padding-top:25px}.file-card small{color:var(--muted);font-size:12px}.gallery-card .post-image{background:#e8eceb}.gallery-card .post-body{padding:22px}.gallery-card h2{font-size:22px;margin-block:13px}.gallery-card .post-meta{justify-content:space-between}.gallery-card p{margin-bottom:0}.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.photo-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.photo-item button{padding:0;border:0;width:100%;background:var(--soft);position:relative}.photo-item button:hover:after{content:'Vergrößern ↗';position:absolute;bottom:15px;right:15px;padding:5px 12px;background:var(--surface);border-radius:20px;font-size:12px}.photo-item img{aspect-ratio:1.5;object-fit:cover}.photo-caption{display:flex;justify-content:space-between;gap:20px;padding:16px 20px;font-size:13px}.photo-caption a{color:var(--red)}.toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.toolbar p{color:var(--muted);font-size:13px}.directory-search{display:flex;align-items:center;gap:12px;padding:13px 17px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:24px}.directory-search svg{color:var(--muted)}.directory-search input{width:100%;background:transparent;border:0;color:var(--ink);outline-offset:3px}.municipality{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:12px;overflow:hidden}.municipality summary{cursor:pointer;list-style:none;padding:22px;display:flex;align-items:center;gap:16px;font-weight:700}.municipality summary::-webkit-details-marker{display:none}.municipality summary>.icon{color:var(--red)}.municipality summary span{margin-left:auto;font-size:12px;color:var(--muted);font-weight:400}.municipality summary .chevron{width:17px;height:17px;color:var(--muted)}.municipality[open] .chevron{transform:rotate(180deg)}.municipality-body{padding:0 22px 22px;border-top:1px solid var(--line)}.municipality-body>a{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.municipality-body>a:last-child{border:0;padding-bottom:0}.municipality-body a:hover{color:var(--red)}.map-demo{background:#e7ece6;border:1px solid #d4dfd6;border-radius:14px;min-height:360px;position:relative;overflow:hidden;color:#273f36}.map-demo svg.map-art{width:100%;height:340px}.map-label{position:absolute;top:17px;left:20px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#4a6255}.map-marker{position:absolute;left:33%;top:62%;display:flex;gap:8px;align-items:center;padding:6px 13px;background:#fff;border-radius:20px;color:#273039;font-size:12px;box-shadow:0 3px 10px #0002}.map-marker:before{content:'';width:9px;height:9px;border-radius:50%;background:#c91e35}.map-demo>small{position:absolute;bottom:14px;left:20px;font-size:10px}.stat-row{display:flex;gap:50px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:25px 0}.stat-row strong{display:block;font-size:27px;letter-spacing:-.04em}.stat-row span{font-size:12px;color:var(--muted)}.profile-block+.profile-block{margin-top:30px}.profile-block h2{font-size:26px;margin-bottom:15px}.profile-block p{color:var(--muted)}.profile-block ul{padding-left:20px;color:var(--muted)}.contact-line{display:flex;gap:12px;align-items:center;color:var(--blue);margin-top:18px}.tag-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.article{max-width:800px;margin:auto}.article>img{border-radius:15px;max-height:480px;object-fit:cover;margin-bottom:14px}.caption{font-size:11px;color:var(--muted);margin-bottom:30px}.article h2{font-size:27px;margin:30px 0 15px}.article p{color:var(--muted)}.empty{padding:60px 20px;text-align:center;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);padding:30px;width:min(670px,calc(100% - 32px));max-height:85vh}dialog::backdrop{background:#0c1b26a8;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-head h2{font-size:26px}.close-dialog{display:flex;background:var(--soft);border:0;border-radius:30px;padding:8px}.results a{display:block;padding:14px 0;border-bottom:1px solid var(--line)}.results a strong{display:block}.results small{color:var(--muted)}.results p{font-size:14px;color:var(--muted);padding:10px 0}.lightbox{width:min(1100px,calc(100% - 32px))}.lightbox img{max-height:65vh;object-fit:contain}.lightbox .text-link{margin-top:15px}.mobile-only{display:none}
}
@layer responsive {
@media(min-width:1600px){.hero-inner{padding-top:90px}.hero{min-height:580px}}
@media(max-width:1100px){.wrap{width:calc(100% - 48px)}.navigation{gap:16px;font-size:12px}.brand{width:210px}.quick-card{padding:24px 16px;gap:12px}.quick-card strong{font-size:14px}.post-body{padding:20px}.post h3{font-size:21px}.header-inner{gap:20px}}
@media(max-width:820px){.header-inner{min-height:90px}.brand{width:210px}.head-right{flex-direction:row;align-items:center;gap:14px}.tools>.social,.tools>.preview-label{display:none}.tools{gap:10px}.search-open{min-width:0;padding:9px}.search-open span{display:none}.menu-toggle{display:flex;background:none;border:0;padding:5px}.navigation{display:none;position:absolute;top:89px;left:0;right:0;padding:20px 24px;background:var(--surface);z-index:40;box-shadow:0 20px 30px #0001;align-items:stretch;flex-direction:column;gap:5px}.navigation.is-open{display:flex}.nav-item{flex-wrap:wrap;justify-content:space-between;font-size:15px}.nav-item>a{padding:10px 0}.sub-toggle{padding:12px}.submenu{position:static;width:100%;box-shadow:none;display:none;border:0;background:var(--soft)}.nav-item:hover .submenu,.nav-item:focus-within .submenu{display:none}.nav-item.open .submenu{display:block}.hero{min-height:510px}.hero-inner{padding-top:65px}.hero h1{max-width:560px;font-size:43px}.quick-grid{grid-template-columns:repeat(2,1fr)}.news-grid,.three-grid{grid-template-columns:repeat(2,1fr)}.news-grid .post:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.news-grid .post:last-child .post-image{height:100%}.content-grid{grid-template-columns:1fr}.two-grid{gap:18px}.footer-main{flex-direction:column}.footer-links{gap:24px}.section{padding-block:42px}.news-section{padding-top:10px}.map-demo{min-height:300px}}
@media(max-width:540px){.wrap{width:calc(100% - 36px)}.brand{width:175px}.header-inner{gap:10px;min-height:82px}.head-right{gap:5px}.tools{gap:5px}.navigation{top:81px}.hero{min-height:535px;border-radius:0 0 15px 15px}.hero-inner{padding-top:55px;padding-bottom:25px}.hero h1{font-size:37px;line-height:1.12}.hero p{font-size:14px;max-width:340px;margin-top:20px}.hero-photo{object-position:59% center}.hero:after{background:linear-gradient(90deg,#0c1d29dc,#13252c66),linear-gradient(0deg,#10232cc7,transparent)}.hero-dots{margin-top:23px}.hero .button{margin-top:22px}.quick-head.section-head{display:block}.quick-head .eyebrow{margin-bottom:10px}.quick-grid{gap:12px}.quick-card{padding:23px 13px;gap:11px;align-items:flex-start}.quick-card>.icon{width:22px;height:22px;margin-top:4px}.quick-card strong{font-size:13px}.quick-card small{font-size:10px}.corner{right:9px;top:5px}.news-grid,.two-grid,.three-grid,.gallery-grid{grid-template-columns:1fr}.news-grid .post:last-child{display:block;grid-column:auto}.news-grid .post:last-child .post-image{height:auto}.section-head{align-items:center}.section-head h2{font-size:29px}.section-head>.text-link{font-size:11px;gap:5px}.page-intro{padding-top:25px;padding-bottom:32px}.page-intro h1{font-size:36px}.page-intro .intro{font-size:15px}.breadcrumbs{margin-bottom:23px;font-size:11px}.panel{padding:24px}.feature{min-height:255px}.toolbar{align-items:flex-start;flex-direction:column}.footer{padding-top:32px}.footer h2{font-size:23px}.footer-bottom{flex-direction:column;gap:6px}.footer-links{gap:18px;font-size:12px}.municipality summary{padding:18px;gap:10px}.municipality summary span{font-size:10px}.stat-row{gap:35px}.section{padding-block:36px}.news-section{padding-top:7px}.photo-caption{font-size:12px;padding:14px}.filters button{padding:8px 18px}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
}

/* Breite Beitragszeilen auf Startseite und Nachrichtenübersicht. */
@layer news-list {
  .news-grid { grid-template-columns: 1fr; gap: 22px; }
  .news-grid .post,
  .news-grid .post:last-child {
    display: grid;
    grid-template-columns: minmax(260px, 35%) minmax(0, 1fr);
    gap: 32px;
    padding: 22px;
  }
  .news-grid .post > a { border-radius: 9px; }
  .news-grid .post .post-image,
  .news-grid .post:last-child .post-image {
    height: 100%; min-height: 230px; aspect-ratio: 1.65; object-fit: cover;
  }
  .news-grid .post-body { padding: 7px 10px 7px 0; align-self: center; }
  .news-grid .post h3 { font-size: clamp(23px, 2.3vw, 29px); max-width: 720px; }
  .news-grid .post p { font-size: 14px; max-width: 690px; }
  @media (max-width: 700px) {
    .news-grid .post,
    .news-grid .post:last-child { grid-template-columns: 1fr; gap: 19px; padding: 15px; }
    .news-grid .post .post-image,
    .news-grid .post:last-child .post-image { height: auto; min-height: 0; aspect-ratio: 1.65; }
    .news-grid .post-body { padding: 0 4px 8px; }
  }
}

@layer components {
  .footer-columns { display: grid; grid-template-columns: auto auto; gap: 75px; }
  .footer-columns .footer-links { display: flex; flex-direction: column; gap: 9px; }
  .footer-links a:hover { color: var(--red); }
  .footer-follow h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; margin: 0 0 13px; line-height: 1.65; }
  .footer-socials { display: flex; gap: 10px; }
  .footer-socials a, .footer-socials button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; transition: color .15s, border-color .15s; }
  .footer-socials .icon { width: 19px; height: 19px; }
  .footer-socials a:hover, .footer-socials button:hover { color: var(--red); border-color: var(--red); }
  .footer-credit { text-align: center; font-size: 11px; color: var(--muted); margin-top: 22px; }
  .footer-credit span { display: inline-block; margin: 0 3px; }
}
@layer responsive {
  @media (max-width: 540px) {
    .footer-columns { width: 100%; grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-socials { gap: 7px; }
    .footer-socials a, .footer-socials button { width: 36px; height: 36px; }
  }
}

@layer components {
  .news-intro { padding: 22px 0 25px; }
  .news-intro .breadcrumbs { margin-bottom: 12px; }
  .news-title-row { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
  .news-title-row h1 { font-size: clamp(34px, 3.4vw, 46px); }
  .news-title-row .eyebrow { margin: 0; }
  .news-intro .intro { margin-top: 9px; font-size: 15px; }
  .news-list-section { padding-top: 30px; }
  .load-more { text-align: center; margin-top: 32px; }
  .load-more button:disabled { opacity: .65; }
  .load-more p { font-size: 12px; color: var(--muted); margin-top: 10px; }
}
@layer news-list {
  .news-grid .post-without-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--soft); color: var(--muted); }
  .post-without-photo .icon { width: 35px; height: 35px; color: var(--red); margin-bottom: 8px; }
  .post-without-photo span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
  .post-without-photo strong { font-size: 34px; color: var(--ink); }
}
@layer responsive {
  @media(max-width: 540px) {
    .news-intro { padding: 17px 0 20px; }
    .news-intro .breadcrumbs { margin-bottom: 11px; }
    .news-title-row { gap: 9px 18px; }
    .news-title-row h1 { font-size: 34px; }
    .news-title-row .eyebrow { font-size: 9px; }
    .news-intro .intro { font-size: 13px; margin-top: 8px; }
    .news-list-section { padding-top: 22px; }
  }
}

/* Gemeinsamer einzeiliger Header mit aufklappbarer Suche. */
@layer header-update {
  .header-inner { min-height: 104px; gap: 24px; }
  .head-right { flex-direction: row; align-items: center; padding: 20px 0; }
  .navigation { gap: 22px; }
  .header-actions { display: flex; align-items: center; gap: 15px; }
  .inline-search { position: relative; margin: 0; }
  .search-field { display: flex; align-items: center; width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: width .22s ease; }
  .inline-search.expanded .search-field { width: 220px; }
  .search-toggle { width: 36px; height: 36px; flex-shrink: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; padding: 0; }
  .search-toggle .icon { width: 18px; height: 18px; }
  .search-field input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 5px 12px 5px 0; outline-offset: 0; color: var(--ink); font-size: 13px; }
  .header-socials { display: flex; gap: 5px; align-items: center; }
  .header-socials a,.header-socials button { width: 30px; height: 36px; padding: 6px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
  .header-socials .icon { width: 18px; height: 18px; }
  .header-socials a:hover,.header-socials button:hover { color: var(--red); }
  .inline-results { position: absolute; top: calc(100% + 12px); right: 0; width: 350px; max-width: calc(100vw - 36px); max-height: min(440px,65vh); overflow-y: auto; padding: 10px 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; box-shadow: 0 12px 30px #0002; z-index: 50; font-size: 13px; font-weight: 400; }
  @media (min-width:821px) and (max-width:1150px) {
    .navigation { gap: 13px; font-size: 12px; }
    .header-inner { gap: 18px; }
    .brand { width: 190px; }
    .inline-search.expanded .search-field { width: 175px; }
    .header-actions { gap: 8px; }
  }
  @media (max-width:820px) {
    .header-inner { min-height: 82px; }
    .navigation { top: 81px; }
    .header-actions { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
    .inline-search.expanded .search-field { width: min(230px,calc(100vw - 150px)); }
    .inline-results { right: auto; left: 0; }
  }
  @media (prefers-reduced-motion:reduce) { .search-field { transition:none; } }
}

@layer calendar {
  .events-section{padding-top:30px}.events-topline,.event-month-bar{display:flex;justify-content:space-between;align-items:center;gap:20px}.events-topline{margin-bottom:25px}.demo-label{font-size:11px;letter-spacing:.03em;color:var(--muted)}
  .event-view-switch{display:flex;gap:3px;padding:4px;border:1px solid var(--line);background:var(--surface);border-radius:9px}.event-view-switch button{display:flex;align-items:center;gap:8px;background:transparent;border:0;padding:8px 15px;border-radius:6px;font-size:12px}.event-view-switch .icon{width:16px;height:16px}.event-view-switch button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
  .event-filters{display:flex;gap:20px;align-items:end;padding:22px 25px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.event-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;min-width:220px}.event-filters select{border:1px solid var(--line);border-radius:7px;padding:10px 35px 10px 12px;color:var(--ink);background:var(--bg);font-size:13px;max-width:100%}.filter-reset{border:0;background:none;font-size:12px;color:var(--muted);margin-left:auto;padding:12px 0}.filter-reset:hover{color:var(--red)}
  .event-month-bar{margin:30px 0 20px}.event-period{display:flex;align-items:baseline;gap:17px}.event-period h2{font-size:27px;text-transform:capitalize}.event-period>span{font-size:12px;color:var(--muted)}.event-month-controls{display:flex;gap:8px;align-items:center}.event-current,.event-month-arrow{background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:36px}.event-current{padding:6px 13px;font-size:12px;margin-right:6px}.event-month-arrow{width:36px;font-size:25px;line-height:1}.event-month-controls button:hover{border-color:var(--red)}
  .events-table-wrap{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}.events-table{width:100%;border-collapse:collapse;text-align:left}.events-table th{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:var(--muted);background:var(--soft);padding:15px 23px}.events-table td{padding:24px 23px;border-top:1px solid var(--line);font-size:13px}.events-table th:first-child{width:195px}.events-table th:last-child{width:170px}.event-row:hover{background:color-mix(in srgb,var(--soft) 40%,var(--surface))}.event-date{display:flex;align-items:center;gap:13px}.event-date>strong{font-size:32px;letter-spacing:-.04em;line-height:1}.event-date>div{display:flex;flex-direction:column}.event-date span{font-size:11px;color:var(--muted)}.event-date small{font-size:11px;color:var(--red);font-weight:600}.event-title-button{border:0;background:none;padding:0;display:flex;text-align:left;align-items:center;gap:15px;font-size:16px;font-weight:600}.event-title-button .icon{width:14px;height:14px;color:var(--muted)}.event-title-button:hover{color:var(--red)}.event-title-button[aria-expanded=true] .icon{transform:rotate(180deg)}
  .event-badge{display:inline-block;border-radius:20px;padding:4px 10px;font-size:10px;white-space:nowrap}.fest{--event-color:#b9233c;--event-bg:#fae9ed}.jugend{--event-color:#206b58;--event-bg:#e6f1ea}.verband{--event-color:#305c93;--event-bg:#e8eef7}.event-badge,.month-event{color:var(--event-color);background:var(--event-bg)}
  .event-detail-row>td{padding:0}.event-detail{display:flex;gap:35px;justify-content:space-between;padding:28px;background:var(--soft)}.event-detail h3{font-size:23px;margin-bottom:13px}.event-detail p{max-width:680px;font-size:13px;color:var(--muted)}.event-detail-facts{display:flex;flex-wrap:wrap;gap:10px 25px;margin-top:20px;color:var(--muted);font-size:12px}.event-detail-facts>span{display:flex;align-items:center;gap:8px}.event-detail-facts .icon{width:17px;height:17px}.event-detail-actions{display:flex;flex-direction:column;justify-content:center;gap:17px;flex-shrink:0}.event-detail-actions .button{font-size:11px;gap:12px;min-height:40px;padding:9px 13px}.event-detail-actions .text-link{font-size:11px}#event-selection{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:22px}.event-footer-note{display:flex;gap:12px;align-items:center;margin-top:25px;font-size:12px;color:var(--muted)}.event-footer-note>.icon{width:18px;height:18px}
  .month-calendar{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}.month-weekdays,.month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-weekdays{background:var(--soft);font-size:11px;font-weight:600;color:var(--muted)}.month-weekdays>span{padding:12px 15px}.month-day{min-height:128px;border-top:1px solid var(--line);border-right:1px solid var(--line);padding:9px;min-width:0}.month-day:nth-child(7n){border-right:0}.month-day.outside{background:color-mix(in srgb,var(--soft) 50%,var(--surface));color:#a3aaa8}.month-day-number{display:grid;place-items:center;width:25px;height:25px;font-size:12px;margin-bottom:7px}.is-today .month-day-number{background:var(--ink);color:var(--surface);border-radius:50%}.month-event{display:flex;flex-direction:column;text-align:left;width:100%;border:0;border-left:2px solid var(--event-color);border-radius:4px;padding:7px;margin-top:5px;line-height:1.35}.month-event time{font-size:9px;opacity:.85}.month-event>span{font-size:11px;font-weight:600;margin-top:2px;overflow-wrap:anywhere}.month-event>small{font-size:9px;margin-top:5px}.month-event:hover{filter:brightness(.96)}.month-legend{display:flex;gap:25px;justify-content:flex-end;margin-top:15px;font-size:10px;color:var(--muted)}.month-legend>span{display:flex;align-items:center;gap:6px}.month-legend i{width:7px;height:7px;background:var(--event-color);border-radius:50%}.event-empty{text-align:center;padding:60px 25px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.event-empty>.icon{width:35px;height:35px;color:var(--muted);margin-bottom:18px}.event-empty h3{font-size:23px}.event-empty p{font-size:13px;color:var(--muted);margin:15px 0}.event-empty button{border:0;background:none;color:var(--red)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  @media(max-width:1050px) and (min-width:821px){.navigation{gap:10px;font-size:11px}.brand{width:170px}.header-actions{gap:5px}.inline-search.expanded .search-field{width:145px}}
  @media(max-width:760px){.event-filters{gap:15px;flex-wrap:wrap}.event-filters label{min-width:0;flex:1}.filter-reset{margin-left:0;padding:0}.event-detail{flex-direction:column;gap:20px}.event-detail-actions{align-items:flex-start}.events-table th,.events-table td{padding:18px 14px}.events-table th:first-child{width:145px}.events-table th:last-child{width:140px}.event-title-button{font-size:14px}.month-day{padding:5px;min-height:100px}.month-event{padding:4px}.month-event>small{display:none}}
  @media(max-width:540px){.events-topline{align-items:flex-start;gap:15px}.demo-label{max-width:160px;font-size:10px}.event-view-switch button{padding:7px 10px;font-size:11px}.event-view-switch .icon{width:14px;height:14px}.event-filters{padding:17px;gap:14px}.event-filters label{flex-basis:100%;font-size:10px}.event-filters select{padding:9px 10px;font-size:12px}.event-month-bar{align-items:flex-start;gap:12px}.event-period{flex-direction:column;gap:4px}.event-period h2{font-size:22px}.event-current{font-size:10px;padding:5px 8px;margin-right:0;max-width:75px;line-height:1.3}.event-month-controls{gap:5px}.event-month-arrow{width:30px}.events-table thead{display:none}.events-table tbody{display:block}.events-table .event-row{display:grid;grid-template-columns:95px minmax(0,1fr);border-top:1px solid var(--line);padding:18px 14px;gap:9px 12px}.events-table .event-row:first-child{border-top:0}.events-table td{padding:0;border:0}.event-date{gap:8px;align-items:flex-start}.event-date>strong{font-size:27px}.event-date span{font-size:9px}.event-date small{font-size:10px}.event-title-button{font-size:14px;gap:6px;line-height:1.4}.event-row td:first-child{grid-row:1/3}.event-town-cell{grid-column:2;font-size:11px!important;color:var(--muted)}.event-row td:last-child{grid-column:2}.event-badge{font-size:9px;padding:3px 8px}.event-detail-row:not([hidden]),.event-detail-row>td{display:block}.event-detail{padding:20px}.event-detail h3{font-size:21px}.event-detail-facts{flex-direction:column}.event-footer-note{font-size:11px;align-items:flex-start}.month-day{padding:3px;min-height:72px}.month-weekdays>span{padding:9px 6px;font-size:10px}.month-day-number{font-size:10px;width:21px;height:21px;margin-bottom:3px}.month-event{padding:4px 2px;border-left-width:2px}.month-event time{font-size:8px}.month-event>span{font-size:8px;line-height:1.3}.month-legend{justify-content:flex-start;gap:12px;flex-wrap:wrap;font-size:9px}.event-empty{padding:40px 20px}.event-empty h3{font-size:21px}}
}

@layer header-update {
  .search-field:focus-within { border-color: #a9b0b3; }
  .search-field input:focus-visible { outline: none; }
  .search-toggle:focus-visible { outline: 1px solid #a9b0b3; outline-offset: 2px; }
}

@layer components {
  .plans-info { display: flex; align-items: center; gap: 13px; margin-top: 27px; padding: 18px 21px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
  .plans-info > .icon { color: var(--blue); width: 22px; height: 22px; }
  .plans-info p { font-size: 13px; margin: 0; }
}

@layer gallery-update {
  .gallery-year-filters { margin-bottom: 0; gap: 9px; }
  .gallery-year-filters #more-gallery-years { border-style: dashed; color: var(--muted); background: transparent; }
  .gallery-card .post-body { display: flex; flex-direction: column; }
  .gallery-card h2 { margin: 0 0 5px; }
  .gallery-card .post-body > p { margin: 0; font-size: 13px; color: var(--muted); }
  .gallery-card .post-body > .text-link { margin-top: 27px; align-self: flex-start; }
  #galleries { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .photo-item button:hover:after { display: none; }
  .photo-download { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; }
  .photo-download:hover { background: var(--soft); }
  .photo-download .icon { width: 19px; height: 19px; }
  .photo-caption { align-items: center; padding-top: 10px; padding-bottom: 10px; }
  @media(max-width:820px){ #galleries { grid-template-columns: repeat(2,minmax(0,1fr)); } }
  @media(max-width:540px){ #galleries { grid-template-columns: 1fr; } .gallery-year-filters button { padding:8px 14px; } }
}

@layer calendar {
  .events-topline { align-items: center; flex-wrap: wrap; }
  .event-filters { margin-left:auto; padding:0; border:0; background:transparent; gap:10px; }
  .event-filters label { font-size:0; gap:0; min-width:190px; }
  .event-filters select { background:var(--surface); min-height:43px; }
  .event-filters .filter-reset { margin:0; padding:10px 14px; border:1px solid var(--line); border-radius:7px; background:var(--surface); min-height:43px; }
  @media(max-width:760px){ .event-filters { margin-left:0; flex:1; } .event-filters label { min-width:150px; flex:1; } }
  @media(max-width:540px){ .events-topline { flex-direction:column; align-items:flex-start; } .event-filters { width:100%; } .event-filters label { flex-basis:calc(50% - 10px); min-width:0; } .event-filters select { font-size:11px; padding:9px 5px; } }
}
@layer components {
  .directory-map-top { padding:0; }
  .directory-map-top .map-demo { border-radius:0 0 18px 18px; height:360px; }
  .directory-map-top .map-art { width:100%; height:360px; }
  .directory-map-top .map-label { left:max(24px,calc((100% - 1200px)/2)); top:25px; }
  .directory-map-top .map-demo > small { left:max(24px,calc((100% - 1200px)/2)); }
  .directory-map-top .map-marker { left:45%; top:60%; }
}

@layer map-outline {
  .map-demo.mkk-map { display:flex; align-items:center; justify-content:center; background:var(--soft); border-color:var(--line); padding:24px; }
  .mkk-map .map-art { width:100%; height:100%; max-width:800px; max-height:440px; overflow:visible; }
  .directory-map-top { padding:30px max(18px,calc((100% - 1200px)/2)) 0; }
  .directory-map-top .map-demo { height:440px; border-radius:16px; }
  .directory-map-top .map-art { height:100%; width:100%; }
  @media(max-width:540px){ .directory-map-top .map-demo { height:280px; padding:18px; } }
}

@layer ranks {
  .rank-overview { margin-top:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); overflow:hidden; box-shadow:var(--shadow); }
  .rank-summary { display:flex; align-items:center; gap:32px; padding:32px; cursor:pointer; list-style:none; }
  .rank-summary::-webkit-details-marker { display:none; }
  .rank-preview { width:160px; min-width:160px; display:flex; flex-direction:column; align-items:center; gap:9px; padding:10px; }
  .rank-preview img { width:100px; height:auto; max-height:52px; object-fit:contain; }
  .rank-summary-copy { flex:1; }
  .rank-summary-copy h2 { font-size:29px; margin-bottom:12px; }
  .rank-summary-copy p { font-size:14px; color:var(--muted); max-width:630px; }
  .rank-summary-copy .eyebrow { margin-bottom:10px; }
  .rank-action { display:block; font-size:12px; font-weight:600; margin-top:20px; color:var(--red); }
  .rank-hide { display:none; }
  .rank-summary-arrow { width:38px; height:38px; flex-shrink:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; }
  .rank-summary-arrow .icon { width:19px; height:19px; transition:transform .2s; }
  .rank-overview[open] .rank-summary-arrow .icon { transform:rotate(180deg); }
  .rank-overview[open] .rank-show { display:none; }
  .rank-overview[open] .rank-hide { display:inline; }
  .rank-summary:hover { background:color-mix(in srgb,var(--soft) 30%,var(--surface)); }
  .rank-content { border-top:1px solid var(--line); }
  .rank-introduction { padding:28px 30px 24px; }
  .rank-introduction h3 { font-size:22px; margin-bottom:10px; }
  .rank-introduction p { font-size:13px; color:var(--muted); max-width:850px; }
  .rank-table { width:100%; border-collapse:collapse; text-align:left; }
  .rank-table thead { background:var(--soft); }
  .rank-table th,.rank-table td { padding:20px; border-bottom:1px solid var(--line); vertical-align:middle; }
  .rank-table thead th { font-size:10px; text-transform:uppercase; letter-spacing:.06em; padding-block:16px; }
  .rank-table thead small { display:block; text-transform:none; letter-spacing:0; font-weight:400; font-size:10px; margin-top:4px; color:var(--muted); }
  .rank-table thead th:first-child { width:150px; }
  .rank-table thead th:nth-child(2) { width:230px; }
  .rank-table thead th:nth-child(3) { width:155px; }
  .rank-table thead th:last-child { width:145px; }
  .rank-badge-cell img { width:110px; height:auto; object-fit:contain; }
  .rank-table .rank-name { font-size:13px; font-weight:600; line-height:1.6; }
  .rank-name>span { display:block; }
  .rank-years,.rank-special { font-size:22px; font-weight:600; letter-spacing:-.03em; }
  .rank-courses { font-size:12px; line-height:1.65; }
  .rank-courses>span { display:block; }
  .rank-course-unit { display:block; font-size:10px; color:var(--muted); }
  .rank-footnote-ref { color:var(--red); font-size:10px; vertical-align:super; padding-left:4px; }
  .rank-group th { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--blue); background:color-mix(in srgb,var(--soft) 40%,var(--surface)); padding-block:12px; }
  .rank-notes { padding:28px 30px; background:color-mix(in srgb,var(--soft) 40%,var(--surface)); }
  .rank-notes h3 { font-size:20px; margin-bottom:20px; }
  .rank-notes dl { display:grid; grid-template-columns:1fr 1fr; gap:20px 30px; margin:0; }
  .rank-notes dt { font-size:12px; font-weight:600; margin-bottom:5px; }
  .rank-notes dd { font-size:12px; color:var(--muted); margin:0; }
  .rank-source { font-size:10px; color:var(--muted); margin-top:25px; padding-top:18px; border-top:1px solid var(--line); }
  @media(max-width:1000px){.rank-summary{gap:22px;padding:25px}.rank-preview{width:120px;min-width:120px}.rank-table th,.rank-table td{padding:15px}.rank-table thead th:first-child{width:125px}.rank-badge-cell img{width:95px}.rank-table thead th:nth-child(2){width:190px}.rank-table thead th:nth-child(3){width:125px}.rank-table thead th:last-child{width:110px}}
  @media(max-width:760px){
    .rank-summary{flex-wrap:wrap;gap:18px;padding:23px}.rank-preview{width:auto;min-width:0;flex-direction:row;gap:10px;padding:0;order:0}.rank-preview img{width:65px;max-height:45px}.rank-summary-copy{order:2;flex-basis:100%}.rank-summary-arrow{margin-left:auto;order:1}.rank-summary-copy h2{font-size:26px}.rank-summary-copy p{font-size:13px}.rank-introduction{padding:24px}.rank-table thead{display:none}.rank-table,.rank-table tbody{display:block}.rank-group{display:block}.rank-group th{display:block;border:0}.rank-entry{display:grid;grid-template-columns:100px minmax(0,1fr);padding:23px;gap:14px 18px;border-bottom:1px solid var(--line)}.rank-table .rank-entry th,.rank-table .rank-entry td{border:0;padding:0}.rank-badge-cell{align-self:center}.rank-badge-cell img{width:95px}.rank-table .rank-name{font-size:13px}.rank-entry td[data-label]{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.rank-entry td[data-label]:before{content:attr(data-label);font-size:11px;color:var(--muted);min-width:135px;flex-shrink:0}.rank-entry .rank-courses{display:block!important;padding-left:143px!important;position:relative;min-height:20px}.rank-entry .rank-courses:before{position:absolute;left:0;top:1px}.rank-years,.rank-special{font-size:18px}.rank-course-unit{display:inline;font-size:11px}.rank-notes{padding:24px}.rank-notes dl{grid-template-columns:1fr}.rank-summary-copy .eyebrow{font-size:9px}}
  @media(prefers-reduced-motion:reduce){.rank-summary-arrow .icon{transition:none}}
}

@layer ranks {
  .rank-course-choice { display:block; color:var(--red); font-size:10px; margin-top:7px; font-weight:600; }
  .rank-course-choice:hover { text-decoration:underline; }
  .rank-special-section,.rank-functions { padding:30px; border-bottom:1px solid var(--line); }
  .rank-special-section>h3,.rank-functions>h3 { font-size:25px; margin-bottom:13px; }
  .rank-special-section>p,.rank-functions>p { font-size:13px; color:var(--muted); max-width:850px; margin-bottom:23px; }
  .special-course-group { border:1px solid var(--line); border-radius:9px; margin-top:12px; overflow:hidden; scroll-margin-top:25px; }
  .special-course-group>summary { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 20px; cursor:pointer; list-style:none; }
  .special-course-group>summary::-webkit-details-marker { display:none; }
  .special-course-group summary strong { display:block; font-size:13px; }
  .special-course-group summary small { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
  .special-course-group summary .icon { width:17px; height:17px; }
  .special-course-group[open] summary .icon { transform:rotate(180deg); }
  .special-course-group ul { display:grid; grid-template-columns:1fr 1fr; gap:9px 30px; padding:22px 35px 25px; margin:0; border-top:1px solid var(--line); background:var(--bg); font-size:12px; }
  .special-course-group li::marker { color:var(--red); }
  .rank-special-section .rank-special-note,.rank-functions .rank-special-note { font-size:11px; margin-top:20px; margin-bottom:0; }
  .rank-functions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .rank-function-card { border:1px solid var(--line); border-radius:10px; padding:24px; background:var(--bg); }
  .rank-function-image { height:105px; display:flex; align-items:center; margin-bottom:22px; }
  .rank-function-image img { width:125px; height:auto; max-height:100px; object-fit:contain; }
  .rank-function-card h4 { margin:0 0 22px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
  .rank-function-card h4 span { display:block; }
  .rank-function-card dl { margin:0; }
  .rank-function-card dl>div+div { margin-top:14px; }
  .rank-function-card dt { font-size:10px; font-weight:600; margin-bottom:3px; }
  .rank-function-card dd { margin:0; color:var(--muted); font-size:11px; }
  @media(max-width:760px){.rank-special-section,.rank-functions{padding:24px}.special-course-group ul{grid-template-columns:1fr}.rank-functions-grid{grid-template-columns:1fr}.rank-function-image{height:auto;margin-bottom:18px}.rank-function-image img{width:110px}.rank-course-choice{margin-top:0;margin-left:5px}.rank-function-card{padding:22px}}
}

@layer ranks {
  .rank-table .rank-unspecified { font-size:11px; color:var(--muted); }
  .rank-function-context td { font-size:11px; color:var(--muted); background:var(--bg); }
  .special-course-group .special-combined-list { gap:8px 30px; padding-top:0; }
  .special-combined-list .special-course-divider { grid-column:1/-1; list-style:none; border-top:1px solid var(--line); padding-top:22px; margin:18px -15px 10px; padding-left:0; scroll-margin-top:25px; }
  .special-combined-list .special-course-divider:first-child { border-top:0; margin-top:0; }
  .special-course-divider h4 { font-size:13px; margin:0 0 6px; color:var(--ink); }
  .special-course-divider p { margin:0; font-size:11px; color:var(--muted); }
  @media(max-width:760px){.rank-function-context,.rank-function-context td{display:block}.rank-function-context td{padding:20px 24px}.rank-entry .rank-unspecified{font-size:11px}}
}

@layer ranks {
  .rank-table thead th { vertical-align:middle; }
  .rank-special-cell { position:relative; }
  .rank-table .rank-special-cell .rank-course-choice { position:absolute; left:20px; top:calc(50% + 15px); margin:0; white-space:nowrap; }
  .rank-special { line-height:1.5; }
  .rank-table .rank-function-entry .rank-unspecified { color:var(--ink); font-size:18px; }
  .course-matrix { width:100%; border-collapse:collapse; text-align:left; table-layout:fixed; }
  .course-matrix th,.course-matrix td { border-bottom:1px solid var(--line); padding:14px 18px; }
  .course-matrix thead th { background:var(--soft); font-size:11px; font-weight:600; vertical-align:middle; }
  .course-matrix thead th:first-child { width:49%; }
  .course-matrix thead th:not(:first-child) { width:17%; text-align:center; }
  .course-matrix tbody th { font-size:12px; font-weight:400; }
  .course-matrix td { text-align:center; }
  .course-matrix tr:last-child>* { border-bottom:0; }
  .course-matrix tbody tr:hover { background:var(--bg); }
  .course-eligibility { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; font-size:15px; }
  .course-eligibility.counts { color:#246552; background:#e6f1eb; font-weight:700; }
  .course-eligibility.not-counts { color:#a0a9aa; }
  .course-column-short { display:none; }
  .course-matrix-legend { margin:0; padding:16px 18px; border-top:1px solid var(--line); font-size:11px; color:var(--muted); background:var(--bg); }
  .course-mobile-legend { display:none; }
  @media(max-width:760px){
    .rank-table .rank-special-cell .rank-course-choice { position:static; margin:0 0 0 8px; }
    .course-column-full { display:none; }.course-column-short { display:inline; text-decoration:none; }
    .course-matrix th,.course-matrix td { padding:12px 7px; }.course-matrix tbody th { font-size:11px; overflow-wrap:anywhere; }
    .course-matrix thead th:first-child { width:61%; }.course-matrix thead th:not(:first-child){width:13%;}
    .course-eligibility{width:22px;height:22px;font-size:13px;}.course-mobile-legend{display:inline;}.course-matrix-legend{font-size:10px;}
  }
}

@layer ranks {
  .resource-preview svg { display:block; width:140px; height:155px; }
  .resource-content { padding:30px; }
  .resource-content h3 { font-size:24px; margin-bottom:14px; }
  .resource-content p { font-size:13px; color:var(--muted); max-width:820px; }
  .resource-content .button { margin-top:25px; }
  .regulation-topics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:24px; }
  .regulation-topics>div { padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
  .regulation-topics strong { display:block; font-size:13px; }
  .regulation-topics span { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
  .resource-learning-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:40px; }
  .resource-preparation { border-left:1px solid var(--line); padding-left:30px; }
  .resource-preparation h3 { font-size:22px; }
  .resource-preparation ul { margin:0; padding-left:17px; color:var(--muted); font-size:13px; }
  .resource-preparation li+li { margin-top:7px; }
  .resource-preparation li::marker { color:var(--red); }
  @media(max-width:760px){.resource-preview svg{width:100px;height:110px}.resource-content{padding:24px}.regulation-topics{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-learning-grid{grid-template-columns:1fr;gap:28px}.resource-preparation{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}.resource-content .button{font-size:12px;gap:14px}}
}

@layer resource-downloads {
  .regulation-download { display:block; position:relative; padding:16px 43px 16px 16px; border:1px solid var(--line); border-radius:8px; background:var(--bg); transition:border-color .18s; }
  .regulation-download:hover,.regulation-download:focus-visible { border-color:var(--red); }
  .regulation-download-icon { position:absolute; top:16px; right:13px; color:var(--red)!important; margin:0!important; }
  .regulation-download-icon .icon { width:18px; height:18px; }
  .regulation-source { margin-top:20px; font-size:11px!important; }
  .regulation-source a { text-decoration:underline; text-underline-offset:3px; }
  .regulation-source a:hover { color:var(--red); }
  .resource-content .button { transition:transform .18s,border-color .18s,box-shadow .18s; }
  .resource-content .button:hover,.resource-content .button:focus-visible { transform:translateY(-3px); border-color:var(--red); box-shadow:0 5px 15px #20302a09; }
  .resource-preparation h3 { font-size:24px; }
  .resource-preparation .eyebrow { margin-top:0; margin-bottom:15px; }
  @media(prefers-reduced-motion:reduce){.resource-content .button,.regulation-download{transition:none}.resource-content .button:hover,.resource-content .button:focus-visible{transform:none}}
}

@layer interactive-fields {
  .panel.feature:has(a),.rank-overview,.special-course-group { transition:border-color .18s,background-color .18s; }
  .panel.feature:has(a):hover,.panel.feature:has(a):focus-within { border-color:var(--red); background:color-mix(in srgb,var(--soft) 30%,var(--surface)); }
  .rank-overview:has(>summary:hover),.rank-overview:has(>summary:focus-visible),.special-course-group:has(>summary:hover),.special-course-group:has(>summary:focus-visible) { border-color:var(--red); }
  .special-course-group>summary:hover { background:color-mix(in srgb,var(--soft) 30%,var(--surface)); }
  @media(prefers-reduced-motion:reduce){.panel.feature:has(a),.rank-overview,.special-course-group{transition:none}}
}

@layer layout { .footer { border-radius:0; } }
@layer components { .feature h2 a:hover { color:var(--red); } }

@layer article-update {
  .news-grid .post { transition:background-color .18s; }
  .news-grid .post:hover,.news-grid .post:focus-within { background:color-mix(in srgb,var(--soft) 45%,var(--surface)); border-color:var(--line); }
  .news-grid .post>a:hover .post-image { transform:none; }
  .article.article-full { max-width:none; width:100%; }
  .article.article-full>.article-cover { width:100%; height:auto; max-height:none; object-fit:contain; border-radius:14px; }
  .article-text { width:min(820px,100%); margin-inline:auto; }
  .article-text>.article-lead { font-size:21px; color:var(--ink); line-height:1.65; margin-top:26px; margin-bottom:24px; }
  .article-text>p { font-size:16px; line-height:1.8; }
  .article-text h2 { margin-top:32px; font-size:27px; }
  .article-back { margin-top:35px; }
  .article-table-wrap { overflow-x:auto; margin:24px 0; }
  .article-table-wrap table { width:100%; border-collapse:collapse; background:var(--surface); font-size:14px; }
  .article-table-wrap td { border-bottom:1px solid var(--line); padding:10px 14px; }
  .article-table-wrap tr:first-child { font-weight:600; background:var(--soft); }
  .panel.feature:has(a):hover,.panel.feature:has(a):focus-within { border-color:var(--line); }
  .rank-overview:has(>summary:hover),.rank-overview:has(>summary:focus-visible),.special-course-group:has(>summary:hover),.special-course-group:has(>summary:focus-visible) { border-color:var(--line); }
  .resource-content .regulation-download:hover,.resource-content .regulation-download:focus-visible { border-color:var(--line); background:color-mix(in srgb,var(--soft) 55%,var(--surface)); }
  .resource-content .button:hover,.resource-content .button:focus-visible { border-color:var(--line); background:var(--soft); }
  @media(max-width:540px){.article-text>.article-lead{font-size:18px}.article-text>p{font-size:14px}.article-text h2{font-size:24px}}
  @media(prefers-reduced-motion:reduce){.news-grid .post{transition:none}}
}

@layer article-update {
  .page-intro h1 { overflow-wrap:anywhere; }
}

@layer article-update {
  .article-text > .article-lead {
    font-family:inherit;
    font-size:26px;
    font-weight:700;
    letter-spacing:-.035em;
    line-height:1.3;
    color:var(--ink);
  }
  @media(max-width:540px){.article-text > .article-lead{font-size:23px;}}
}

@layer article-update {
.regulation-download-icon{top:auto;bottom:13px;right:13px}
.regulation-download{padding-bottom:38px}
.municipality summary .chevron{margin-left:auto}
.municipality-direct{display:flex;align-items:center;gap:16px;padding:22px;font-weight:700}
.municipality-direct>.icon:first-child{color:var(--red)}
.municipality-direct .chevron{width:17px;height:17px;margin-left:auto;color:var(--muted);transform:rotate(-90deg)}
.municipality-direct:hover,.municipality summary:hover{background:var(--soft)}
.municipality-direct[hidden]{display:none}
}
@layer article-update {
 .municipality summary>.icon:last-child {margin-left:auto;width:17px;height:17px;color:var(--muted)}
 .municipality[open] summary>.icon:last-child {transform:rotate(180deg)}
 .municipality-direct>.icon:last-child {margin-left:auto;width:17px;height:17px;color:var(--muted);transform:rotate(-90deg)}
}

@layer article-update {
.station-building{margin-top:8px}.building-preview{min-height:180px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,var(--soft),var(--surface));display:flex;align-items:center;gap:24px;padding:32px}.building-preview>.icon{width:64px;height:64px;color:var(--muted)}.building-preview h2{font-size:26px;margin-bottom:8px}.building-preview p{color:var(--muted);font-size:14px}.building-preview>.pill{margin-left:auto}
.station-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.station-main{min-width:0}.station-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px}.station-facts>div{background:var(--bg);padding:18px;border:1px solid var(--line);border-radius:8px}.station-facts strong{display:block;font-size:28px}.station-facts span{font-size:12px;color:var(--muted)}.fleet-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:24px}.fleet-heading h2{margin:0}.vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.vehicle-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}.vehicle-photo{background:var(--bg);padding:12px}.vehicle-photo svg{width:100%;display:block}.vehicle-copy{padding:18px}.vehicle-copy h3{font-size:20px;margin-bottom:16px}.vehicle-copy dl{margin:0;font-size:12px}.vehicle-copy dl>div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:7px 0}.vehicle-copy dt{color:var(--muted)}.vehicle-copy dd{margin:0;font-variant-numeric:tabular-nums}.leadership-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.leadership-card{border:1px solid var(--line);padding:22px;border-radius:10px}.leadership-card h3{font-size:18px;margin:15px 0 8px}.leadership-card p{font-size:12px}.contact-monogram{display:grid;place-items:center;width:42px;height:42px;background:var(--soft);border-radius:50%;color:var(--muted)}.station-email{margin-top:20px;padding:20px 0 0;border-top:1px solid var(--line);display:flex;gap:14px;align-items:center}.station-email strong{font-size:14px}.station-email p{font-size:12px}.station-sidebar h2{font-size:23px}.station-overview{margin:24px 0}.station-overview>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.station-overview dt{color:var(--muted)}.station-overview dd{margin:0;font-weight:700}.station-sidebar .button{width:100%;gap:12px;font-size:12px}.station-back{margin-top:22px}
@media(max-width:1000px){.station-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.vehicle-grid{grid-template-columns:1fr}.leadership-grid{grid-template-columns:1fr}}
@media(max-width:760px){.station-layout{grid-template-columns:1fr}.station-sidebar{grid-row:1}.vehicle-grid,.leadership-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.building-preview{flex-wrap:wrap;padding:24px}.building-preview>.pill{margin-left:0}}
@media(max-width:540px){.vehicle-grid,.leadership-grid{grid-template-columns:1fr}.station-facts{gap:10px}.station-facts>div{padding:12px}.fleet-heading{flex-wrap:wrap}.building-preview>.icon{width:42px;height:42px}.building-preview h2{font-size:22px}.station-main .panel{padding:24px}}
}

@layer article-update {
 .station-layout{padding-top:36px}
 .station-building{margin:0 0 30px}
 .station-building .building-preview{padding:28px;gap:18px;flex-wrap:wrap}
 .station-building .building-preview>.pill{margin-left:0}
 .station-members{margin-top:26px;display:flex;flex-direction:column;gap:3px}
 .station-members strong{font-size:40px;line-height:1.2;letter-spacing:-.035em}
 .station-members span{font-size:13px;color:var(--muted)}
 .station-overview{margin-bottom:0}
 .station-overview dd{text-align:right;overflow-wrap:anywhere;min-width:0}
 .station-updated{font-size:12px;color:var(--muted);margin-top:22px}
 @media(max-width:760px){.station-sidebar{grid-row:auto}.station-layout{padding-top:28px}.station-building{margin-bottom:24px}}
}
