:root {
  --page-bg: #f3f5f7;
  --surface: #ffffff;
  --text: #202833;
  --muted: #5d6875;
  --accent: #245b8f;
  --accent-dark: #173f65;
  --border: #dce2e8;
  --content-width: 1200px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page-bg); line-height: 1.65; }
a { color: var(--accent); }
a:hover, a:focus-visible { color: var(--accent-dark); }
.site-header { background: #16c3f5; color: #fff; }
.header-inner {
  max-width: var(--content-width); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem; position: relative;
}
.site-title { color: #fff; font-size: 1.8rem; font-weight: 750; text-decoration: none; }
.site-subtitle { margin: 0; color: #dceaf6; }
.page-layout {
  max-width: var(--content-width); margin: 1.5rem auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem;
  align-items: start; min-height: 55vh;
}
.sidebar, .content { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sidebar { padding: 1.25rem; }
.sidebar h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { border-top: 1px solid var(--border); }
.sidebar a { display: block; padding: .7rem .35rem; text-decoration: none; border-radius: 5px; }
.sidebar a[aria-current="page"] { color: var(--accent-dark); background: #eaf2f9; font-weight: 650; }
.content { padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.content h1 { margin-top: 0; line-height: 1.2; }
.content h2 { margin-top: 1.8rem; }
.content img { max-width: 100%; height: auto; }
.post-meta { color: var(--muted); font-size: .92rem; }
.site-footer {
  background: #e6ebf0; border-top: 1px solid var(--border); padding: 1.25rem 1.5rem;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem 2rem;
  color: var(--muted); text-align: center;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.menu-toggle { display: none; }
.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; }

/* Tablet: etwas schmalere Seitenleiste und kompaktere Abstände */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; padding: 0 1rem; }
  .header-inner { padding-inline: 1rem; }
}

/* Smartphone: Navigation klappt oberhalb des Inhalts auf */
@media (max-width: 640px) {
  .header-inner { padding: .9rem 1rem; padding-right: 4.25rem; display: block; }
  .site-title { font-size: 1.5rem; }
  .site-subtitle { font-size: .9rem; }
  .menu-toggle {
    display: block; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    border: 1px solid #aac3d9; border-radius: 6px; background: transparent; color: #fff;
    padding: .45rem .7rem; font-size: 1.2rem; cursor: pointer;
  }
  .page-layout { display: flex; flex-direction: column; margin: 1rem auto; padding: 0 .75rem; }
  .sidebar { width: 100%; display: none; }
  .sidebar.is-open { display: block; }
  .content { width: 100%; padding: 1.2rem; }
  .site-footer { flex-direction: column; gap: .5rem; }
}
