/* =====================================================================
   shared.css — gemeinsame Stile aller Seiten von buchungslauf.de
   Geladen von:  index.html, impressum.html, datenschutz.html, ...
   Seiten-spezifische Stile gehören in <style>-Blöcke der jeweiligen
   Seite, NICHT hierher. Faustregel: erst ab zwei Verwendungsorten in
   shared.css.
   ===================================================================== */


/* ─── SELF-HOSTED FONTS ────────────────────────────────────────────────
   Lokal abgelegt unter fonts/, ohne Drittanbieter-CDN (DSGVO).
   Aktuell genutzt: Outfit 400 (Sans), JetBrains Mono 400 (Mono).
   Weitere Gewichte bei Bedarf nach Fontsource-Schema ergänzen.
   ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2');
}


/* ─── DESIGN TOKENS ──────────────────────────────────────────────────── */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-border: #e2e2dc;
  --color-accent: #15263F;
  --color-accent-hover: #0d1a2e;
  --color-accent-soft: #e4e7ec;
  --color-highlight: #C66A3D;
  --color-highlight-soft: #f7ebe2;
  --color-code-bg: #f2f2ed;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --content-width: 720px;
}


/* ─── RESET / BASE ───────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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


/* ─── BASE TYPOGRAPHY ────────────────────────────────────────────────── */

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

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-code-bg);
  padding: 1px 6px;
  border-radius: 3px;
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 0;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}


/* ─── BRAND MARK ─────────────────────────────────────────────────────── */
/* Markiert "Buchungslauf" als Produktnamen im Fließtext.
   Bewusst nur eine Schrift, ein Gewicht — kein Logo-Eyecatch. */

.brand {
  font-family: 'Fraunces', Georgia, "Times New Roman", serif;
  font-weight: 600;
}


/* ─── LAYOUT CONTAINER ───────────────────────────────────────────────── */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ─── SITE HEADER / NAVIGATION ───────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  background-color: var(--color-bg-alt);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  height: 4rem;
  width: auto;
  display: block;
}

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

.site-nav a:hover {
  color: var(--color-accent);
}


/* ─── BUTTONS ────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  transition: background-color 0.15s ease;
}

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

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

.button.secondary {
  background-color: transparent;
  color: var(--color-accent);
}

.button.secondary:hover {
  background-color: var(--color-accent-soft);
}


/* ─── GENERIC SECTIONS ───────────────────────────────────────────────── */

section {
  padding: 2.5rem 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

section.alt {
  background-color: var(--color-bg-alt);
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 40em;
  margin-bottom: 1.5rem;
}


/* ─── CONTENT PAGES (Impressum, Datenschutz, ...) ────────────────────── */

.content-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.content-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}

.content-page .back-link:hover {
  color: var(--color-accent);
}

.content-page h1 {
  margin-bottom: 1.75rem;
}

.content-page h2 {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.content-page p {
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.content-page p.note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
}


/* ─── SITE FOOTER ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--color-text-muted);
  margin-left: 0.75rem;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */

@media (max-width: 540px) {
  h1 {
    font-size: 1.75rem;
  }
  .site-nav a {
    margin-left: 0.75rem;
    font-size: 0.85rem;
  }
}
