:root {
  --ink: #14203c;
  --muted: #475572;
  --green: #203c9c;
  --accent: #a5381c;
  --sand: #f4f6ff;
  --white: #fff;
  --line: #d8deef;
  --radius: 14px;
  font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #287d74; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { font: 800 clamp(2.4rem, 5.4vw, 5.3rem)/1.02 system-ui, "Segoe UI", sans-serif; letter-spacing: -.063em; }
h2 { font-size: clamp(2.15rem, 4.3vw, 4rem); }
h3 { font-size: clamp(1.16rem, 1.9vw, 1.52rem); line-height: 1.2; letter-spacing: -.04em; }
.wrap { width: min(100% - 96px, 1264px); margin-inline: auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 760; font-size: 1.13rem; letter-spacing: -.035em; line-height: 1.15; }
.brand b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: white; background: var(--green); font: 850 1.05rem system-ui, sans-serif; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 34px); font-size: .92rem; }
.nav nav a { text-decoration: none; font-weight: 650; }
.nav nav a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.menu, .nav .mobile-join { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 10px 19px; background: var(--green); color: white; text-decoration: none; font-weight: 700; text-align: center; }
.button:hover { background: #152979; color: white; }
.button-subtle { background: transparent; border-color: var(--line); color: var(--green); }
.button-subtle:hover { background: var(--green); color: white; }
.text-action { font-weight: 730; }
.tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 760; }
.tag::before { content: ""; width: 17px; height: 2px; background: var(--accent); }
.gradient { color: var(--accent); }
.hero-shell { position: relative; isolation: isolate; overflow: hidden; background: #213cb5; color: white; }
.hero-shell::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 54%; background: #3754d2; clip-path: polygon(28% 0,100% 0,100% 100%,0 100%); }
.hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: stretch; gap: clamp(20px, 3.5vw, 52px); padding-block: 44px; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(15px, 4vw, 58px) 0; }
.hero h1 { font-size: clamp(3.15rem, 5.4vw, 5.55rem); }
.hero .tag, .hero p { color: #eef2ff; }
.hero .tag::before { background: #ffd16d; }
.hero .gradient { color: #ffd16d; }
.hero .button { background: #ffd16d; color: #18234b; }
.hero .button:hover { background: #ffe0a1; }
.hero .text-action:hover { color: #ffd16d; }
.hero p, .lead { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 65ch; }
.hero p { color: #eef2ff; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; margin-top: 25px; }
.hero-picture { position: relative; min-width: 0; min-height: 407px; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--green); }
.hero-picture img { position: absolute; inset: 0; height: 100%; object-position: 50% 23%; }
.hero-picture::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #101c3ae8); }
.hero-picture figcaption { position: absolute; z-index: 1; bottom: 24px; left: 25px; right: 25px; display: grid; gap: 2px; color: white; }
.hero-picture figcaption strong { font-size: 1.25rem; font-weight: 700; }
.hero-picture figcaption span { color: #e5ebff; font-size: .84rem; }
.district-strip { background: #131f43; color: white; }
.district-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px clamp(13px, 3vw, 44px); padding-block: 13px; font-size: .86rem; font-weight: 720; }
.district-strip a { display: inline-block; padding-block: 4px; text-decoration: none; }
.district-strip a:hover, .district-strip b { color: #ffd16d; }
.section { padding-block: 47px; }
.district-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 25px; }
.district-card, .topic-card, .detail-card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.district-card { display: flex; flex-direction: column; overflow: hidden; }
.district-photo { position: relative; background: #e3e8df; }
.district-photo img { aspect-ratio: 1.62; }
.district-photo span { position: absolute; bottom: 0; left: 0; padding: 6px 14px; border-radius: 0 9px 0 0; background: #cddaff; color: var(--ink); font-size: .72rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.district-card:nth-child(2) .district-photo span { background: #ffda8a; }
.district-card:nth-child(3) .district-photo span { background: #ffd6c7; }
.district-copy { display: flex; flex: 1; flex-direction: column; padding: 21px; gap: 10px; }
.district-copy p, .topic-card p, .detail-card p, .overview-copy p { color: var(--muted); }
.place-list { list-style: none; margin: 2px 0 7px; padding: 0; }
.place-list li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: .86rem; font-weight: 650; }
.place-list li span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; background: #f3e9e0; color: var(--accent); }
.outline-icon { display: block; width: 21px; height: 21px; flex: none; }
.place-list .outline-icon { width: 16px; height: 16px; }
.district-copy .button { margin-top: auto; align-self: start; }
.topics-section { border-bottom: 1px solid var(--line); }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 23px; }
.topic-card { display: grid; gap: 12px; padding: 22px; background: #e5ecff; border-color: transparent; }
.topic-card:nth-child(2) { background: #fff1cd; }
.topic-card:nth-child(3) { background: #ffe8e0; }
.topic-card > svg { color: var(--ink); width: 27px; height: 27px; }
.topic-card a, .source a { color: var(--green); font-weight: 730; }
.home-contact { padding-bottom: 36px; }
.topic-grid > .contact-band { grid-column: 1/-1; }
.item-number { display: block; font-size: .83rem; font-weight: 800; color: var(--accent); }
.contact-band, .overview-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: clamp(20px, 3.4vw, 36px); background: #213cb5; color: white; border-radius: var(--radius); }
.contact-band > .outline-icon { display: none; }
.contact-band h2, .overview-contact h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.contact-band p, .overview-contact p { color: #eef2ff; }
.contact-band .button, .overview-contact .button { justify-self: start; background: #ffd16d; color: #18234b; }
.contact-band .button:hover, .overview-contact .button:hover { background: #ffe0a1; }
.overview-contact .gradient { color: #ffd16d; }
.district-overview { padding-bottom: 43px; }
.overview-hero { padding: 52px 0 35px; max-width: 680px; }
.overview-row { display: grid; grid-template-columns: 1.12fr 1fr; margin-bottom: 19px; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius); background: #e5ecff; }
.overview-row:nth-of-type(even) { grid-template-columns: 1fr 1.12fr; background: #fff1cd; }
.overview-row:nth-of-type(3) { background: #ffe8e0; }
.overview-row:nth-of-type(even) .overview-photo { order: 1; }
.overview-photo { position: relative; min-height: 275px; background: #e3e8df; }
.overview-photo img { position: absolute; inset: 0; height: 100%; }
.overview-copy { display: grid; gap: 11px; align-content: center; padding: clamp(21px, 4.4vw, 48px); }
.overview-copy .tag { margin-bottom: 0; }
.overview-copy h2 { font-size: clamp(1.85rem, 3.2vw, 3.25rem); }
.overview-copy ul { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 1px 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.overview-copy li::before { content: "·"; margin-right: 6px; font-weight: 850; color: var(--accent); }
.overview-copy .button { justify-self: start; margin-top: 4px; }
.subhero { margin-block: 28px 0; padding: clamp(25px, 4.4vw, 60px); background: #e5ecff; border-radius: var(--radius); }
.subhero.has-image { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(23px, 5vw, 58px); }
.subhero img { aspect-ratio: 1.62; border-radius: var(--radius); object-position: center 28%; }
.inner-page > .section { padding-top: 28px; }
.layout-district-detail .subhero { margin-bottom: 24px; }
.layout-velbert-langenberg .subhero, .layout-termine .subhero { background: #fff1cd; }
.layout-velbert-neviges .subhero, .layout-kontakt .subhero { background: #ffe8e0; }
.layout-impressum .subhero, .layout-datenschutz .subhero { background: transparent; padding-inline: 0; }
.layout-ueber-mich .subhero img { aspect-ratio: 1.29; }
.block-list { display: grid; gap: 13px; margin-block: 0 22px; }
.detail-card { display: flex; align-items: start; gap: 17px; padding: clamp(17px, 3vw, 29px); }
.detail-card > div { min-width: 0; }
.detail-card h2 { font: 740 clamp(1.2rem, 2vw, 1.6rem)/1.2 system-ui, sans-serif; letter-spacing: -.035em; margin-bottom: 8px; }
.detail-card .item-number { min-width: 2ch; padding-top: 3px; }
.district-article { display: grid; grid-template-columns: 215px minmax(0,1fr); align-items: start; gap: 0 25px; }
.district-article .source { grid-column: 2; }
.section-index { display: grid; gap: 8px; position: sticky; top: 18px; padding: 16px 0; }
.section-index a { font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.layout-themen .block-list, .layout-ueber-mich .block-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: start; gap: 20px; }
.entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.listing { flex-direction: column; padding: 0; overflow: hidden; }
.listing img { aspect-ratio: 1.75; }
.listing > div { padding: 20px; }
.source { margin-bottom: 23px; }
.layout-impressum .block-list, .layout-datenschutz .block-list { max-width: 820px; }
.layout-impressum .detail-card, .layout-datenschutz .detail-card { border-radius: 0; background: transparent; border-width: 0 0 1px; padding-inline: 0; }
.credits { padding-left: 1.3rem; }
.credits li { margin-bottom: .5rem; }
.footer { margin-top: 18px; background: #131f43; color: white; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 30px; }
.footer p { color: #d5dffc; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; font-size: .88rem; }
.footer a:hover { color: #ffd16d; }
.panel { padding: 22px; max-width: 760px; }
.form { display: grid; gap: 13px; }
.form h2, .panel h2 { font-size: 1.65rem; }
.form label { font-weight: 680; display: grid; gap: 5px; }
.form label.check { display: flex; align-items: flex-start; font-weight: 500; gap: 9px; }
.form :is(input:not([type=checkbox]),textarea,select) { min-width: 0; width: 100%; border: 1px solid #aebeb8; border-radius: 7px; background: white; color: var(--ink); padding: 9px 10px; }
.form input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.form button { justify-self: start; }
.notice { padding: 12px; border-radius: 8px; background: #e2f5e9; color: #214d34; }
.notice.error { background: #fde8e8; color: #8b0010; }
.admin-nav, .admin-actions { display: flex; flex-wrap: wrap; gap: 9px 13px; margin-bottom: 18px; }
.admin-nav .button { width: auto; }
.admin-layout { display: grid; grid-template-columns: minmax(180px,1fr) 4fr; gap: 18px; align-items: start; }
.admin-layout aside { display: grid; gap: 6px; }
.admin-actions form { margin: 0; }
.admin-list { display: grid; gap: 12px; margin-bottom: 16px; }
.editor-blocks { display: grid; gap: 10px; }
.editor-blocks details { padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.editor-blocks summary { cursor: pointer; font-weight: 700; }
.editor-image { width: min(100%,230px); border-radius: 8px; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 5; padding: 12px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .hero-picture { min-height: 330px; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
  .district-copy, .topic-card { padding: 15px; }
  .contact-band, .overview-contact { grid-template-columns: minmax(0,1fr) auto; }
  .contact-band p, .overview-contact p { grid-column: 1; grid-row: 2; }
  .contact-band .button, .overview-contact .button { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 66px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: .99rem; gap: 7px; }
  .brand b { width: 33px; height: 33px; border-radius: 9px; font-size: 1rem; }
  .nav .mobile-join { display: inline-flex; min-height: 42px; padding: 7px 10px; margin-left: auto; font-size: .76rem; }
  .menu { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
  .menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav nav { width: 100%; display: flex; flex-wrap: wrap; gap: 0 15px; padding-bottom: 8px; }
  .nav nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav nav a.button { display: none; }
  .enhanced .nav nav:not(.is-open) { display: none; }
  .hero, .subhero.has-image { grid-template-columns: 1fr; gap: 17px; }
  .hero { padding-block: 21px 23px; }
  .hero-copy { padding: 8px 0 3px; }
  .hero h1 { font-size: clamp(2.55rem, 8.2vw, 3.9rem); }
  .hero-picture { min-height: 0; aspect-ratio: 1.48; border-radius: 15px; }
  .hero-picture figcaption { left: 15px; bottom: 13px; }
  .hero-picture figcaption strong { font-size: 1rem; }
  .section, .subhero, .overview-hero { padding-block: 28px; }
  .subhero { margin-top: 16px; }
  .district-grid, .topic-grid, .district-article, .layout-themen .block-list, .layout-ueber-mich .block-list, .contact-layout, .entry-grid, .admin-layout { grid-template-columns: 1fr; }
  .district-article .source { grid-column: auto; }
  .district-grid, .topic-grid { gap: 13px; margin-top: 17px; }
  .district-photo img { aspect-ratio: 1.85; }
  .contact-band, .overview-contact { grid-template-columns: 1fr; }
  .contact-band p, .overview-contact p, .contact-band .button, .overview-contact .button { grid-column: auto; grid-row: auto; }
  .overview-row, .overview-row:nth-of-type(even) { grid-template-columns: 1fr; }
  .overview-row:nth-of-type(even) .overview-photo { order: 0; }
  .overview-photo { min-height: 0; aspect-ratio: 1.85; }
  .section-index { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 0; margin-bottom: 14px; }
  .section-index strong { grid-column: 1/-1; }
  .admin-layout aside { display: flex; flex-wrap: wrap; }
}

