/* mdsoft.dev — minimal theme
   Warm paper tones, terracotta accent, serif display type.
   System fonts only: no external font CDNs (LG München I, 3 O 17493/20). */

:root {
  --bg: #FAF9F5;
  --surface: #F0EEE6;
  --border: #E3E0D5;
  --text: #1F1E1D;
  --muted: #6E6B63;
  --accent: #D97757;
  --link: #A5492A;
  --link-hover: #7F3720;

  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1E1D;
    --surface: #262624;
    --border: #3A3835;
    --text: #F0EEE6;
    --muted: #A9A69C;
    --accent: #D97757;
    --link: #E59B7D;
    --link-hover: #EFB49E;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: 60rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.65rem;
  font-size: 0.85rem;
  align-self: center;
}

/* Content */

main {
  padding: 3.5rem 0 4.5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; }

p, ul, ol {
  margin: 0 0 1.1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
}

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

.small {
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Hero */

.hero {
  padding: 2.5rem 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  max-width: 22ch;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.button--primary:hover {
  background: var(--link-hover);
  color: #FFFFFF;
}

.button--secondary {
  border-color: var(--border);
  color: var(--text);
}

.button--secondary:hover {
  background: var(--surface);
  color: var(--text);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* Definition-style lists (support page, impressum) */

.deflist dt {
  font-weight: 600;
  margin-top: 1rem;
}

.deflist dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal pages */

.legal h2 {
  font-size: 1.3rem;
}

.legal address {
  font-style: normal;
}

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
}
