/* stadt2030.de - Stylesheet
   Klassisch-behoerdliches Layout: Cream-Rahmen, weisser Content,
   2-Spalten mit Sidebar rechts, Bordeaux-Akzent, Fraunces+Inter lokal. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-Latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-LatinExt.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-LatinExt.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-page: #F5F2EC;          /* warmer Cream-Rahmen */
  --bg-paper: #FFFFFF;         /* Inhalt-Weiss */
  --bg-aside: #FAFAF7;         /* Sidebar etwas waermer */
  --ink: #1A1F2E;
  --ink-soft: #3A4150;
  --muted: #5C6273;
  --border: #D8D4C8;
  --border-soft: #E8E4D8;
  --accent: #8B2C26;
  --accent-dark: #6B1E1A;
  --accent-soft: #F4EAE8;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
  --maxw-prose: 38em;
  --sidebar-w: 320px;
  --gap: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "ss01";
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Skiplink */
.skiplink {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: .6em 1em; z-index: 100;
}
.skiplink:focus { left: 0; }

/* Topbar (Service-Streifen) */
.topbar {
  background: var(--ink);
  color: #CFD2D8;
  font-size: 13px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #CFD2D8; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Header */
.site-header {
  background: var(--bg-paper);
  border-bottom: 4px solid var(--accent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-top: 28px; padding-bottom: 24px;
}
.brand {
  display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 56px; height: 56px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: 28px;
  display: flex; align-items: baseline; justify-content: center;
  padding-top: 12px; background: var(--bg-paper);
  letter-spacing: -.04em; flex-shrink: 0;
}
.brand-mark sub { font-size: 13px; vertical-align: super; line-height: 1; margin-left: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.brand-sub  { font-size: 12.5px; font-variant: all-small-caps; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }

/* Hauptnavigation */
.site-nav {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap { padding-left: 0; padding-right: 0; }
.site-nav ul {
  display: flex; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0 32px;
}
.site-nav a {
  display: block;
  padding: 14px 22px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.site-nav a:hover { color: var(--accent); background: var(--bg-aside); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  background: var(--bg-aside);
}

/* Brotkrumen */
.breadcrumb {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb .wrap {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; gap: .55em; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }

/* Main + Layout */
main {
  background: var(--bg-paper);
  padding: 40px 0 60px;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.layout-single { display: block; }

/* Content-Spalte */
.eyebrow {
  font-size: 13px; font-variant: all-small-caps; letter-spacing: .12em;
  color: var(--accent); font-weight: 600;
  display: inline-block; margin-bottom: 6px;
}
article h1, main h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 10px; color: var(--ink);
}
article .lead, main .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 10px 0 28px;
  max-width: var(--maxw-prose);
}

article h2, .prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
}
article h3, .prose h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 19px; margin: 28px 0 10px;
}
article p, .prose p { margin: 0 0 14px; max-width: var(--maxw-prose); }
article ul, article ol, .prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 14px; max-width: var(--maxw-prose); }
article li, .prose li { margin: .3em 0; }

article blockquote, .prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0; padding: .2em 0 .2em 1.2em;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: var(--maxw-prose);
}

/* City-Illustration */
.city-illustration {
  margin: 0 0 28px;
  border: 1px solid var(--border-soft);
  background: var(--bg-aside);
}
.city-illustration img, .city-illustration svg { width: 100%; height: auto; display: block; }
.city-illustration figcaption {
  font-size: 12.5px; color: var(--muted);
  padding: 8px 14px;
  border-top: 1px solid var(--border-soft);
  font-style: italic;
}

/* Data-Grid (Steckbrief im Content) */
.data-grid {
  margin: 12px 0 30px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.data-grid dl {
  display: grid; grid-template-columns: 12em 1fr; gap: 0; margin: 0;
}
.data-grid dt {
  padding: 9px 0;
  font-size: 13px; font-variant: all-small-caps; letter-spacing: .07em;
  color: var(--muted); font-weight: 600;
  border-top: 1px solid var(--border-soft);
}
.data-grid dd {
  padding: 9px 0; margin: 0; color: var(--ink);
  border-top: 1px solid var(--border-soft);
}
.data-grid dt:first-of-type, .data-grid dd:first-of-type { border-top: 0; }

/* Sidebar */
aside.sidebar { position: sticky; top: 24px; font-size: 14px; }
.sidebar-box {
  background: var(--bg-aside);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--accent);
  padding: 16px 18px 18px;
  margin-bottom: 18px;
}
.sidebar-box h2 {
  font-family: var(--sans);
  font-size: 12px; font-variant: all-small-caps; letter-spacing: .14em;
  color: var(--muted); font-weight: 700;
  margin: 0 0 10px; padding-bottom: 8px;
  border: 0; border-bottom: 1px solid var(--border-soft);
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box a { color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.sidebar-box a:hover { color: var(--accent); }
.sidebar-box .meta {
  display: block; font-size: 11.5px; color: var(--muted);
  font-variant: all-small-caps; letter-spacing: .07em; margin-top: 2px;
}
.sidebar-box dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.sidebar-box dl div {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 8px;
  padding: 7px 0; border-bottom: 1px solid var(--border-soft);
}
.sidebar-box dl div:last-child { border-bottom: 0; }
.sidebar-box dt {
  font-size: 11.5px; color: var(--muted);
  font-variant: all-small-caps; letter-spacing: .07em; font-weight: 600;
  align-self: center;
}
.sidebar-box dd { font-size: 13.5px; color: var(--ink); margin: 0; align-self: center; }

/* Intro auf der Startseite */
.intro { padding-bottom: 22px; border-bottom: 1px solid var(--border-soft); margin-bottom: 28px; }
.intro .kicker { font-size: 12.5px; font-variant: all-small-caps; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin: 0 0 8px; display: inline-block; }

/* Section */
.section { margin: 36px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
.section-head h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.section-head .lede { color: var(--muted); font-size: 14px; max-width: 30em; }

/* Card-Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,31,46,.06); }
.card-img { display: block; aspect-ratio: 2/1; overflow: hidden; background: var(--bg-aside); border-bottom: 1px solid var(--border-soft); }
.card-img img, .card-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: block; padding: 12px 14px 14px; }
.card .city { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; line-height: 1.2; margin-bottom: 4px; color: var(--ink); }
.card .subtitle { font-size: 13px; color: var(--muted); display: block; line-height: 1.4; }
.card .meta {
  display: block; font-size: 11.5px; color: var(--muted);
  font-variant: all-small-caps; letter-spacing: .07em;
  margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border-soft);
}
.card.is-placeholder { opacity: .6; cursor: default; }
.card.is-placeholder:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* Topic-List (kompakt auf Hub) */
.topic-list { display: grid; grid-template-columns: 1fr; gap: 4px; list-style: none; padding: 0; margin: 0; }
.topic-list li { border-bottom: 1px solid var(--border-soft); }
.topic-list a { display: block; text-decoration: none; color: var(--ink); padding: 10px 0; }
.topic-list a:hover { color: var(--accent); }
.topic-list .topic-num { font-family: var(--serif); font-size: 12px; color: var(--accent); display: inline-block; margin-right: 12px; min-width: 4em; font-variant: all-small-caps; letter-spacing: .08em; font-weight: 600; }

/* Topic-List-Full (Themen-Index) */
.topic-list-full { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
.topic-list-full .topic-item {
  display: grid; grid-template-columns: 70px 1fr;
  column-gap: 1.4rem; row-gap: .25rem;
  padding: 16px 18px; background: var(--bg-paper);
  border: 1px solid var(--border); border-top: 3px solid var(--accent);
  text-decoration: none; color: var(--ink);
}
.topic-list-full .topic-item:hover { border-color: var(--accent); }
.topic-list-full .topic-num {
  grid-row: 1 / span 3;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--accent); line-height: 1; align-self: start;
}
.topic-list-full .topic-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.topic-list-full .topic-kicker { font-size: .8rem; font-variant: all-small-caps; letter-spacing: .08em; color: var(--muted); grid-column: 2; }
.topic-list-full .topic-lead { grid-column: 2; font-size: .95rem; color: var(--ink-soft); }

/* Status-Hinweis */
.status-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.status-note strong { color: var(--accent-dark); }

/* Sources & Footnote (Perplexity-Konversion) */
.sources, .sources-list {
  background: var(--bg-aside);
  border: 1px solid var(--border-soft); border-top: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 14px;
}
.sources h3, .sources-list h2 {
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--sans); font-size: 12px;
  font-variant: all-small-caps; letter-spacing: .14em;
  color: var(--muted); font-weight: 700;
}
.sources ul { margin: 0; padding-left: 1.2em; }
.sources li { margin: .35em 0; line-height: 1.5; }
.sources-list ol { margin: 0; padding-left: 1.6em; list-style: decimal; }
.sources-list li { margin: .4em 0; line-height: 1.5; }
.sources-list a { color: var(--accent); word-break: break-word; }

/* Inline-Fußnoten */
.prose sup, sup.footnote-ref, .footnote-ref { font-size: .68em; vertical-align: super; line-height: 0; }
.prose sup a, sup.footnote-ref a {
  display: inline-block; padding: 0 .15em;
  color: var(--accent); text-decoration: none; font-weight: 600;
}
.prose sup a:hover { text-decoration: underline; }
.prose sup + sup { margin-left: 1px; }

/* Related-list */
.related-list { list-style: none; padding: 0; }
.related-list li { padding: .6em 0; border-bottom: 1px solid var(--border-soft); }
.related-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.related-list a:hover { color: var(--accent); }
.related-list .muted { color: var(--muted); font-weight: 400; font-size: .92rem; }

/* Cross-Link */
.cross-link {
  margin: 28px 0;
  padding: 14px 18px;
  background: var(--bg-aside);
  border-left: 3px solid var(--accent);
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* Legal */
.legal-content h2 { margin-top: 1.8em; }
.legal-content h3 { margin-top: 1.5em; }
.legal-content strong { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #BFC4CC;
  padding: 36px 0 22px;
  margin-top: 40px;
  font-size: 13.5px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 {
  font-family: var(--sans);
  font-size: 12px; font-variant: all-small-caps; letter-spacing: .12em;
  color: #fff; margin: 0 0 8px; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #BFC4CC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand strong {
  font-family: var(--serif); color: #fff; font-size: 17px;
  display: block; margin-bottom: 4px;
}
.foot-brand p { margin: 0; color: #9CA2AC; line-height: 1.55; font-size: 13px; }
.foot-meta {
  grid-column: 1 / -1;
  border-top: 1px solid #2A3144;
  margin-top: 16px; padding-top: 14px;
  font-size: 12px; color: #8088A0; line-height: 1.6;
}

/* Focus visible (A11y) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Druck-Styles */
@media print {
  .site-nav, .site-footer, .breadcrumb, .cross-link, .topbar, aside.sidebar { display: none; }
  body, main { background: #fff; color: #000; }
  .layout-grid { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: underline; }
}

/* Responsive */
@media (max-width: 980px) {
  .layout-grid { grid-template-columns: 1fr; gap: 32px; }
  aside.sidebar { position: static; }
  .site-header .wrap { gap: 18px; }
  .brand-sub { display: none; }
  .data-grid dl { grid-template-columns: 1fr; }
  .data-grid dt { padding-bottom: 0; border-top: 1px solid var(--border-soft); }
  .data-grid dt + dd { border-top: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  main { padding: 24px 0 40px; }
  .topbar { font-size: 12px; }
  .site-nav ul { padding: 0 8px; }
  .site-nav a { padding: 12px 14px; font-size: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
