
:root {
  --ink: #17324d;
  --muted: #71849a;
  --paper: #eef5fb;
  --surface: #ffffff;
  --line: #dce8f2;
  --coral: #2878b9;
  --coral-dark: #15517f;
  --sage: #e7f1f9;
  --yellow: #d7eafa;
  --shadow: 0 12px 35px rgba(30, 71, 105, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Arial, sans-serif; line-height: 1.5; }
body::before { display: none; }
.map-page { overflow: hidden; }
.map-page main { height: calc(100vh - 82px); }
.map-page .map-home { height: 100%; padding-bottom: 0; }
.map-page .map-layout { height: 100%; min-height: 0; }
.map-page .site-footer { display: none; }
a { color: inherit; }
.site-header, main, .site-footer { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; gap: 34px; margin-top: 18px; padding: 14px 22px; border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 18px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); }
.site-header { width: 100%; justify-content: flex-start; margin-top: 0; padding-inline: 43px; border-right: 0; border-left: 0; border-radius: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--surface); background: var(--coral-dark); font-family: Arial, sans-serif; font-size: 1.15rem; }
.top-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.top-nav a:hover, .top-nav-active { color: var(--coral-dark) !important; }
.nav-toggle { display: none; }
.brand-name { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.brand-location { color: var(--muted); font-size: .7rem; font-weight: 400; letter-spacing: .06em; }
.brand-crest { display: block; width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
.nav-toggle:focus-visible, .top-nav a:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.header-note, .eyebrow, .entry-count { color: var(--muted); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; min-height: 430px; padding: 58px 26px 70px; }
.eyebrow { margin: 0 0 18px; color: var(--coral-dark); }
h1, h2 { margin: 0; font-family: Arial, sans-serif; font-weight: 400; line-height: 1.2; }
h1 { max-width: 680px; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.025em; }
h1 em { color: var(--coral); font-style: normal; }
.intro { max-width: 500px; margin: 28px 0 24px; color: var(--muted); font-size: 1.08rem; }
.text-link { display: inline-flex; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 4px; }
.text-link span { color: var(--coral); transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(3px); }
.hero-stamp { display: grid; width: min(340px, 80%); aspect-ratio: 1; place-content: center; justify-items: center; margin-inline: auto; border: 1px solid #c9e0f2; border-radius: 50%; color: var(--ink); transform: rotate(7deg); background: #e4f1fb; box-shadow: 14px 18px 0 var(--coral); }
.hero-stamp strong { margin: 8px 0; font-family: Arial, sans-serif; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.85; }
.hero-stamp span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.page-intro { padding: 42px 26px 32px; }
.page-intro h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 130px; }
.stat-card { display: flex; min-height: 136px; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card--accent { border-color: var(--coral); background: var(--coral); color: var(--surface); }
.stat-value { font-family: Arial, sans-serif; font-size: 3.2rem; line-height: 1; }
.stat-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.stats-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -88px 0 130px; }
.highlight-card { display: flex; min-height: 125px; flex-direction: column; justify-content: space-between; padding: 19px 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.highlight-label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.highlight-card strong { overflow: hidden; color: var(--coral-dark); font-family: Arial, sans-serif; font-size: 1.65rem; text-overflow: ellipsis; white-space: nowrap; }
.highlight-card > span:last-child { color: var(--muted); font-size: 0.8rem; }
.insights, .map-section { padding-bottom: 130px; }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.insight-panel-wide { grid-column: 1 / -1; }
.insight-panel { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.insight-panel h3 { margin: 0 0 25px; font-family: Arial, sans-serif; font-size: 1.1rem; font-weight: 400; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr 24px; gap: 10px; align-items: center; font-size: 0.8rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; overflow: hidden; background: var(--sage); }
.bar-fill { display: block; height: 100%; background: var(--coral); }
.bar-row strong { text-align: right; }
.chronicle { padding-bottom: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
.filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.filters input, .filters select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font: inherit; box-shadow: 0 5px 18px rgba(48, 38, 56, 0.04); }
.filters input:focus, .filters select:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.meeting-list { display: grid; gap: 12px; }
.meeting { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; padding: 23px 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); animation: rise 500ms both; }
.meeting-date { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.meeting-info h3 { margin: 0 0 4px; font-family: Arial, sans-serif; font-size: 1.1rem; font-weight: 400; }
.meeting-meta { color: var(--muted); font-size: 0.9rem; }
.meeting-map-link { display: inline-block; margin-top: 8px; color: var(--coral-dark); font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.meeting-map-link:hover { text-decoration: underline; }
.meeting-tag { padding: 7px 11px; color: var(--ink); background: var(--sage); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.empty-state { padding: 30px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.meeting-map { min-height: 540px; overflow: hidden; border: 8px solid var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.map-note { width: min(1240px, calc(100% - 48px)); margin: 12px auto 0; color: var(--muted); font-size: 0.8rem; }
.map-home { width: 100vw; margin-left: calc(50% - 50vw); padding: 10px 0 54px; }
.map-layout { position: relative; min-height: calc(100vh - 145px); overflow: hidden; border-radius: 0; background: #e4e3e6; box-shadow: var(--shadow); }
.map-layout .meeting-map { position: absolute; inset: 0; z-index: 1; min-height: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.map-layout .leaflet-top.leaflet-left { top: 18px; right: 18px; left: auto; }
.map-layout .leaflet-control-zoom { margin: 0; border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 18px rgba(48, 38, 56, 0.16); }
.map-layout .leaflet-control-zoom a { width: 34px; height: 34px; color: var(--ink); border: 0; background: rgba(255, 255, 255, 0.94); line-height: 34px; }
.map-layout .leaflet-control-zoom a + a { border-top: 1px solid var(--line); }
.map-sidebar { position: absolute; top: 20px; bottom: 20px; left: 20px; z-index: 500; display: flex; width: min(365px, calc(100% - 40px)); flex-direction: column; padding: 23px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 35px rgba(48, 38, 56, 0.13); }
.map-sidebar-heading { padding-bottom: 18px; }
.map-sidebar-heading .eyebrow { margin-bottom: 12px; }
.map-sidebar-heading h1 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; }
.map-search input { width: 100%; min-height: 44px; padding: 0 14px 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #faf9fb; font: inherit; }
.map-search input:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.map-result-list { display: grid; gap: 3px; margin-top: 16px; overflow: auto; }
.map-result { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.map-result:hover, .map-result:focus-visible { background: var(--sage); outline: 0; }
.map-result:last-child { border-bottom: 0; }
.map-result-pin { justify-self: center; width: 12px; height: 12px; margin-top: 5px; border: 3px solid #d8eafa; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.map-result h2 { margin: 0 0 2px; font-family: Arial, sans-serif; font-size: 0.98rem; font-weight: 400; letter-spacing: 0; }
.map-result p { margin: 0 0 5px; color: var(--muted); font-size: 0.78rem; }
.map-result span:not(.map-result-pin) { color: var(--coral-dark); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.map-result-link { display: block; width: fit-content; margin-top: 5px; color: var(--coral-dark); font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.map-result-link:hover { text-decoration: underline; }
.map-sidebar-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; color: var(--coral-dark); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.map-sidebar-link span { font-size: 1.1rem; }
.map-sidebar-link .map-sidebar-link-label, .map-sidebar-link [data-meeting-total] { font-size: inherit; }
.leaflet-marker-icon.stammtisch-marker { border: 0; }
.stammtisch-marker span { display: block; width: 16px; height: 16px; border: 4px solid rgba(255, 255, 255, 0.9); border-radius: 50%; background: var(--coral); box-shadow: 0 2px 8px rgba(106, 62, 102, 0.28); }
.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; }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 520px); }
  .site-header { width: 100%; padding-inline: 29px; border-radius: 0; }
  .site-header { gap: 12px; }
  .site-header { flex-wrap: wrap; }
  .top-nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; margin: 0; gap: 12px 18px; }
  .top-nav a { font-size: .76rem; }
  .map-page main { height: calc(100dvh - 74px); }
  body .site-header.nav-ready { position: relative; z-index: 1100; flex-wrap: nowrap; min-height: 74px; padding-inline: 16px; }
  .nav-ready .header-note { margin-left: auto; font-size: .6rem; letter-spacing: .07em; }
  .nav-ready .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex-shrink: 0; order: 4; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.nav-ready .top-nav { display: none; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; width: auto; margin: 0; padding: 8px; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .site-header.nav-open .top-nav { display: flex; flex-direction: column; align-items: stretch; }
  .site-header.nav-ready .top-nav a { padding: 14px 16px; border-radius: 8px; font-size: .9rem; }
  .site-header.nav-ready .top-nav a:hover, .site-header.nav-ready .top-nav-active { background: var(--sage); }
  .header-note { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 52px; padding: 52px 0 74px; }
  .page-intro { padding: 30px 0 24px; }
  h1 { font-size: clamp(1.75rem, 6vw, 2rem); }
  .hero-stamp { width: min(270px, 72vw); margin-right: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 90px; }
  .stats-highlights { grid-template-columns: 1fr; margin: -55px 0 90px; }
  .insights, .map-section { padding-bottom: 90px; }
  .insight-grid, .filters { grid-template-columns: 1fr; }
  .insight-panel-wide { grid-column: auto; }
  .stat-card { min-height: 112px; }
  .stat-value { font-size: 2.5rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .meeting { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 19px; overflow-wrap: anywhere; }
  .meeting-date { grid-column: 1 / -1; }
  .meeting-tag { grid-column: 1; grid-row: auto; justify-self: start; }
  .meeting-map { min-height: 360px; }
  .map-home { padding-top: 4px; }
  .map-layout { min-height: calc(100vh - 105px); }
  .map-note { width: calc(100% - 32px); }
  .map-sidebar { top: 12px; right: 12px; bottom: auto; left: 12px; width: auto; max-height: 310px; padding: 17px; }
  .map-sidebar-heading { padding-bottom: 10px; }
  .map-sidebar-heading h1 { font-size: 1.65rem; }
  .map-layout .leaflet-top.leaflet-left { top: 334px; right: 16px; }
  .site-footer { gap: 12px; flex-direction: column; }
}
@media (max-width: 400px) { .nav-ready .header-note { display: none; } .nav-ready .nav-toggle { margin-left: auto; } }
