/* ==========================================================================
   oli_website — Stylesheet
   Plain CSS, keine externen Abhaengigkeiten. Mobile-first.
   Aenderungen: siehe README.md
   ========================================================================== */

/* --- Design-Token ------------------------------------------------------- */
:root {
  /* Farben */
  --color-bg: #ffffff;
  --color-surface: #f7f9fb;
  --color-text: #1a242c;
  --color-text-muted: #5a6b78;
  --color-border: #e3e8ed;
  --color-accent: #2c5f7c;
  --color-accent-dark: #1f4459;
  --color-accent-light: #eaf1f5;

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-size-base: 1rem;
  --line-height-base: 1.65;

  /* Layout */
  --container-max: 960px;
  --container-narrow: 640px;
  --space: 1rem;
  --radius: 6px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container.narrow { max-width: var(--container-narrow); }

main { padding-block: 2.5rem 4rem; min-height: 50vh; }

/* --- Header / Navigation ----------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1rem;
}
.site-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.site-brand:hover { text-decoration: none; color: var(--color-accent); }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--color-accent-light); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding-block: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-accent); }

/* --- Komponenten -------------------------------------------------------- */
.lead { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

.hero {
  padding-block: 1rem 2rem;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero .lead { max-width: 40ch; }

.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 0.5rem;
}
.cta:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-block: 1.5rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; color: var(--color-accent-dark); }

.kontakt-liste {
  list-style: none;
  padding: 0;
  margin-block: 1.5rem;
}
.kontakt-liste li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.kontakt-liste li:last-child { border-bottom: 0; }
.kontakt-liste dt {
  font-weight: 600;
  min-width: 8rem;
  color: var(--color-text-muted);
}

.impressum-text dt { font-weight: 600; margin-top: 1rem; }
.impressum-text dd { margin: 0 0 0.5rem; }

/* --- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
