:root {
  --bg: #0b0c10;
  --card: #11131a;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(980px, 92%);
  margin: 0 auto;
}

.header {
  padding: 56px 0 14px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  margin: 60px 0 12px;
  font-size: 44px;
  line-height: 1.1;
}

.lede {
  margin: 0 0 10px;
  font-size: 20px;
}

.lede-muted {
  color: var(--muted);
}

.sublede {
  margin: 0 0 18px;
  color: var(--muted);
}

.header-spacer {
  height: 48px;
}

.cta {
  display: inline-block;
  margin: 10px 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav {
  margin: 12px 0 18px;
  font-size: 14px;
}

.header .cta {
  margin: 0 0 24px;
}

.header .cta + h1 {
  margin-top: 0;
}

.header .nav {
  margin: 60px 0 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-row .cta {
  margin: 0;
  border: 0;
}

.header-row .nav {
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle-en {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.toggle-en:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

.nav a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav span {
  margin: 0 6px;
  color: var(--muted);
}

.category-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.category-list a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

.category-list a:hover {
  text-decoration: underline;
}

.note {
  color: var(--muted);
}

.main {
  padding: 40px 0 40px;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.section a {
  color: var(--text);
}

.section-centered {
  margin-bottom: 0;
}

.section-compact {
  padding: 12px;
}

.section-compact .phrases {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.section-compact h2 {
  margin-bottom: 4px;
}

.section-compact .meta {
  margin-bottom: 8px;
}

.section-compact .phrase {
  padding: 4px 0;
  font-size: 1rem;
  line-height: 1.25;
}

.section-compact .phrase + .phrase {
  border-top: 0;
  box-shadow: none;
}

.section-compact .phrase.no-divider {
  box-shadow: none;
}

.section-compact .phrase {
  padding: 0;
}

.section-compact .section-row {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
}

.section-compact .section-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 760px) {
  .section-compact .phrases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    position: relative;
  }

  .section-compact .phrase + .phrase {
    border-top: 0;
    box-shadow: none;
  }

  .section-compact .phrase.no-divider {
    box-shadow: none;
  }
}

h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.meta {
  margin: 0 0 12px;
  color: var(--muted);
}

.phrases {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  list-style: none;
}

.page-section .phrases {
  padding-top: 0;
}

.phrases .cta {
  margin: 8px 0 0;
}

.phrase {
  padding: 10px 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.phrase + .phrase {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phrase-break + .phrase {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-section .phrase + .phrase {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-section .phrase:hover {
  background: rgba(255, 255, 255, 0.04);
}

.page-section .phrase:hover {
  position: relative;
}

.page-section .phrase:hover::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}

.phrase-de {
  display: block;
  font-weight: 400;
}

.phrase-en {
  display: block;
  color: var(--muted);
  font-size: 0.9em;
}

.page-section .phrase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.page-section .phrase-de {
  margin-right: 0;
}

.page-section .phrase-en {
  text-align: left;
}

.phrase-break {
  height: 10px;
}

.footer {
  padding: 160px 0 72px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 0;
  font-size: 13px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  margin: 0 6px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
