/* ==========================================================================
   base.css — Reset, Grundtypografie, Links
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
::selection { background: var(--sand); color: #101820; }

.serif, h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(3rem, 6vw, 6.1rem); line-height: .96; letter-spacing: -.045em; margin: 0 0 22px; }
h2 { font-size: clamp(2.1rem, 3.9vw, 4.1rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; }
h3 { font-size: 1.45rem; line-height: 1.16; margin: 0 0 10px; }
p  { margin: 0 0 16px; color: var(--text-muted); }

/* --- Links -----------------------------------------------------------------
   Inhaltslinks werden klar hervorgehoben (Farbe + Unterstrich).
   Navigations-, Button- und Strukturlinks setzen die Dekoration bewusst
   wieder zurück (eigene Klassen weiter unten in components/layout).      */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 55%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Chrome-Links (Logo, Navigation, Buttons, Footer, Kontaktzeilen) ohne Unterstrich */
.logo, .nav a, .btn, .lang, .footer a, .footer-links a,
.contact-row a, .theme-toggle, [data-open-cookies], .skip, .backlink {
  text-decoration: none;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; z-index: 999; }
