/* ============================================================
   pikat GmbH – gemeinsames Stylesheet
   Minimalistisch, statisch. Kein Framework, kein Build-Tool.
   Schrift: system-ui (lokal vorhanden, keine externe CDN).
   ============================================================ */

/* --- Design-Tokens ---------------------------------------- */
:root {
  --bg:      #ffffff;                    /* Seitenhintergrund (Alt.: #fafafa) */
  --text:    #222222;                    /* Fliesstext / Ueberschriften */
  --muted:   #6b6b6b;                    /* Sekundaertext, Footer */
  --accent:  #d50038;                    /* Krimson – nur sparsam (Hover) */
  --content: 42rem;                      /* Lesebreite der Rechtstexte */
  --gap:     clamp(1.5rem, 5vw, 3rem);   /* aeusserer Abstand / Weissraum */
}

/* --- Reset / Basis ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;                /* Inhalt oben, Footer unten */
  /* geometrische System-Sans, keine externen Fonts */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.7;                      /* grosszuegige Zeilenhoehe */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Links: Akzent nur beim Hover ------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }        /* einzige Akzentfarbe, sparsam */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; height: auto; }

/* --- Kopfbereich der Unterseiten -------------------------- */
.site-header { padding: var(--gap); text-align: center; }
.site-header a { display: inline-block; }
.site-header__logo { width: clamp(96px, 22vw, 132px); }

/* --- Hauptbereich ----------------------------------------- */
main {
  flex: 1;                               /* fuellt Raum bis zum Footer */
  display: flex;
  flex-direction: column;
  padding-inline: var(--gap);
}

/* --- Startseite: alles ruhig in der Mitte ----------------- */
.hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem;
  padding-block: var(--gap);
}
.hero__logo { width: clamp(220px, 55vw, 380px); }
.hero__contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-style: normal;          /* <address> nicht kursiv */
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);         /* Adresse dezent */
}
.hero__contact a {
  color: var(--text);                    /* E-Mail etwas praesenter */
  border-bottom: 1px solid currentColor; /* dezente Unterstreichung */
  padding-bottom: 2px;
}

/* --- Rechtstexte (Impressum / Datenschutz) ---------------- */
.content {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.content h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}
.content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2.25rem 0 .4rem;
}
.content p,
.content address { margin: 0 0 1rem; }
.content address { font-style: normal; }            /* Adresse nicht kursiv */
.content a { border-bottom: 1px solid currentColor; } /* Mail-Links erkennbar */

/* --- Footer ----------------------------------------------- */
.site-footer {
  padding: var(--gap);
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.1rem;
}

/* --- Bewegung reduzieren (Barrierefreiheit) --------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
