/* einfachnurlernen.de — "Die Seekarte" (Tag-Modus), angewendet auf die
   statischen Ratgeberseiten unter /wissen/. Werte 1:1 aus DESIGN.md /
   frontend/src/styles/_variables.scss + _themes.scss (body.theme-light).
   Bewusst eigenständiges, kleines CSS ohne Build-Schritt — kein SCSS-Import
   aus der SPA, damit diese Seiten ohne Angular auskommen. */

@font-face {
  font-family: 'Vollkorn';
  src: url('/assets/fonts/vollkorn-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --w-bg: #f1e8d5;
  --w-bg-card: #f8f2e2;
  --w-bg-card-strong: #fdfbf5;
  --w-bg-tint: #ece1c8;
  --w-text: #1c3a4a;
  --w-text-secondary: #3d5c6b;
  --w-text-muted: #55707f;
  --w-border: #cabb96;
  --w-border-light: #d8cba8;
  --w-accent: #9c1656;
  --w-accent-hover: #82124a;
  --w-accent-tint: rgba(156, 22, 86, 0.08);
  --w-ocker: #a66a12;
  --w-gold: #c99a3a;
  --w-success: #3f7d5c;
  --w-info: #2f6d8c;
  --w-on-accent: #f8f2e2;
  --w-shadow-sm: 0 1px 2px rgba(20, 16, 11, 0.18);
  --w-shadow-md: 0 4px 14px rgba(20, 16, 11, 0.14);
  --w-radius-sm: 2px;
  --w-radius-md: 3px;
  --w-radius-lg: 4px;
  --w-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --w-font-head: 'Vollkorn', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--w-bg);
  color: var(--w-text);
  font-family: var(--w-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--w-accent);
  color: var(--w-on-accent);
}

a {
  color: var(--w-accent);
}

a:hover {
  color: var(--w-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--w-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

/* ---------- Kopfzeile ---------- */

.w-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--w-border-light);
}

.w-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.w-brand img {
  height: 48px;
  width: auto;
  display: block;
}

.w-brand span {
  font-family: var(--w-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--w-text);
}

.w-nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: var(--w-radius-md);
  padding: 0.5rem 1rem;
  background: var(--w-accent);
  color: var(--w-on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--w-shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.w-nav-cta:hover {
  background: var(--w-accent-hover);
  color: var(--w-on-accent);
  transform: translateY(-1px);
  box-shadow: var(--w-shadow-md);
}

/* ---------- Artikel-Grundgerüst ---------- */

.w-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.w-back {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
}

.w-back a {
  text-decoration: none;
  color: var(--w-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.w-back a:hover {
  color: var(--w-accent);
}

.w-back img {
  width: 0.7rem;
  height: 0.7rem;
}

.w-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.w-title-row h1 {
  margin: 0;
}

.w-back-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--w-border-light);
  color: var(--w-text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.w-back-icon svg {
  width: 16px;
  height: 16px;
}

.w-back-icon:hover,
.w-back-icon:focus-visible {
  border-color: var(--w-accent);
  color: var(--w-accent);
  transform: translateX(-2px);
}

.w-article h1 {
  font-family: var(--w-font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--w-text);
}

.w-lead {
  font-size: 17px;
  color: var(--w-text-secondary);
  margin: 0 0 2rem;
}

.w-article h2 {
  font-family: var(--w-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: var(--w-text);
}

.w-article h3 {
  font-family: var(--w-font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--w-text);
}

.w-article p {
  margin: 0 0 1rem;
}

.w-article ul,
.w-article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.w-article li {
  margin-bottom: 0.4rem;
}

.w-article strong {
  color: var(--w-text);
}

.w-byline {
  font-size: 0.85rem;
  color: var(--w-text-muted);
  margin: -1rem 0 0.5rem;
}

.w-byline a {
  color: var(--w-text-muted);
  text-decoration: underline;
}

.w-updated {
  font-size: 0.8rem;
  color: var(--w-text-muted);
  margin: -0.5rem 0 2rem;
}

/* ---------- Faktenbox ---------- */

.w-factbox {
  background: var(--w-bg-card);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow-sm);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.w-factbox-title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-text-muted);
}

.w-factbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w-factbox li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.w-factbox li:last-child {
  margin-bottom: 0;
}

.w-factbox .w-check {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  -webkit-mask-image: url('/assets/haken.svg');
  mask-image: url('/assets/haken.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: var(--w-success);
}

/* ---------- Tabellen ---------- */

.w-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
}

table.w-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--w-bg-card);
}

table.w-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.78rem;
  color: var(--w-text-muted);
  padding: 0.6rem 0.9rem;
}

table.w-table th,
table.w-table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--w-border-light);
}

table.w-table th {
  background: var(--w-bg-tint);
  font-weight: 700;
  color: var(--w-text);
  white-space: nowrap;
}

table.w-table tr:last-child td {
  border-bottom: none;
}

table.w-table td.w-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Hinweis-Box ---------- */

.w-note {
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  background: var(--w-bg-card-strong);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--w-text-secondary);
}

.w-note strong {
  color: var(--w-ocker);
}

/* ---------- Interne Verlinkung / Ratgeber-Liste ---------- */

.w-list {
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  background: var(--w-bg-card);
  overflow: hidden;
  box-shadow: var(--w-shadow-sm);
}

.w-list a {
  display: block;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  border-bottom: 1px solid var(--w-border-light);
  transition: background-color 0.15s ease;
}

.w-list a:last-child {
  border-bottom: none;
}

.w-list a:hover {
  background: var(--w-bg-tint);
}

.w-list-title {
  display: block;
  font-family: var(--w-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--w-text);
  margin-bottom: 0.3rem;
}

.w-list-teaser {
  display: block;
  font-size: 0.9rem;
  color: var(--w-text-secondary);
}

.w-hint {
  font-size: 0.8rem;
  color: var(--w-text-muted);
  margin: 0.75rem 0 0;
}

/* ---------- CTA ---------- */

.w-cta {
  margin-top: 3rem;
  text-align: center;
  background: var(--w-bg-card);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow-md);
  padding: 2rem 1.75rem;
}

.w-cta h2 {
  margin-top: 0;
}

.w-cta p {
  color: var(--w-text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.w-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--w-radius-md);
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  border: none;
  background: var(--w-accent);
  color: var(--w-on-accent);
  box-shadow: var(--w-shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.w-btn:hover {
  background: var(--w-accent-hover);
  color: var(--w-on-accent);
  transform: translateY(-1px);
  box-shadow: var(--w-shadow-md);
}

.w-cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--w-text-muted);
}

/* ---------- Fußzeile ---------- */

.w-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid var(--w-border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--w-text-muted);
}

.w-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.w-footer a:hover {
  color: var(--w-accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .w-nav {
    padding: 0.85rem 1.1rem;
  }

  .w-brand span {
    display: none;
  }

  .w-article {
    padding: 1.75rem 1.1rem 3rem;
  }

  .w-article h1 {
    font-size: 1.6rem;
  }

  .w-article h2 {
    font-size: 1.3rem;
  }

  .w-cta {
    padding: 1.5rem 1.1rem;
  }
}
