/* ==========================================================================
   gutmannholding.com – main.css
   Ein Stylesheet für alle Seiten. Tokens und Regeln: siehe DESIGN.md.
   Reines CSS, kein Preprocessor, keine externen Ressourcen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (abschliessend, siehe DESIGN.md)
   -------------------------------------------------------------------------- */

:root {
  /* Farben – genau diese zehn */
  --ink:      #0B1B2B;
  --navy-700: #16324F;
  --blue-600: #1E5F8C;
  --blue-500: #2E7FB8;
  --blue-400: #4FA3D1;
  --blue-100: #DCEBF5;
  --paper:    #FFFFFF;
  --text:     #1A2430;
  --muted:    #5B6B7C;
  --rule:     #D8DEE4;

  /* Schrift */
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-text:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Feste Typo-Skala: 13 / 14 / 16 / 19 / 24 / 32 / 48 px */
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-19: 1.1875rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;

  /* Abstände: 8 / 16 / 24 / 32 / 48 / 64 px */
  --s-8:  0.5rem;
  --s-16: 1rem;
  --s-24: 1.5rem;
  --s-32: 2rem;
  --s-48: 3rem;
  --s-64: 4rem;

  /* Layout */
  --container: 68.75rem;   /* 1100px */
  --gutter: var(--s-16);
  --measure: 68ch;         /* Fliesstext */
  --measure-intro: 62ch;   /* Einleitung */

  /* Bewegung: nur Farb- und Randwechsel */
  --t: 120ms ease;
}

@media (min-width: 760px) {
  :root {
    --gutter: var(--s-48);
  }
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-align: left;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dt,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-48);
  line-height: 1.1;
  color: var(--ink);
}

h2 {
  font-size: var(--fs-24);
  color: var(--navy-700);
}

h3 {
  font-size: var(--fs-19);
  color: var(--navy-700);
}

a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--t), background-color var(--t), border-color var(--t);
}

a:hover {
  color: var(--navy-700);
}

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

/* Sichtbarer Focus-State für alle fokussierbaren Elemente */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Skip-Link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-16);
  z-index: 10;
  padding: var(--s-8) var(--s-16);
  background: var(--navy-700);
  color: var(--paper);
}

.skip-link:focus {
  top: var(--s-16);
}

/* --------------------------------------------------------------------------
   4. Farbband und Kopfzeile
   -------------------------------------------------------------------------- */

.band {
  height: 6px;
  background: var(--navy-700);
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  border-bottom: 1px solid var(--rule);
}

.topbar__brand {
  font-family: var(--font-text);
  font-size: var(--fs-13);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy-700);
  text-decoration: none;
}

.topbar__brand:hover {
  text-decoration: underline;
}

.topbar__link {
  font-size: var(--fs-14);
}

/* --------------------------------------------------------------------------
   5. Seitenanfang (Startseite)
   -------------------------------------------------------------------------- */

.intro {
  padding-block: var(--s-64);
}

.intro__text {
  margin-top: var(--s-24);
  max-width: var(--measure-intro);
  font-size: var(--fs-19);
  line-height: 1.55;
}

.intro__link {
  margin-top: var(--s-24);
}

/* Definitionsliste: Label links, Wert rechts, Trennung nur über Linien */
.facts {
  margin-top: var(--s-32);
  max-width: var(--measure-intro);
  display: grid;
  grid-template-columns: 12rem 1fr;
  border-top: 1px solid var(--rule);
}

.facts dt,
.facts dd {
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font-size: var(--fs-14);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Textseiten (Impressum, Datenschutz, 404)
   -------------------------------------------------------------------------- */

.title {
  padding-block: var(--s-48) var(--s-32);
}

.title__text {
  margin-top: var(--s-24);
  max-width: var(--measure-intro);
  font-size: var(--fs-19);
  line-height: 1.55;
}

.prose {
  max-width: var(--measure);
  padding-bottom: var(--s-64);
}

.prose h2 {
  margin-top: var(--s-48);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s-32);
}

.prose p,
.prose ul,
.prose dl {
  margin-top: var(--s-16);
}

.prose ul {
  padding-left: var(--s-24);
}

.prose li + li {
  margin-top: var(--s-8);
}

.prose dt {
  font-size: var(--fs-14);
  color: var(--muted);
  margin-top: var(--s-16);
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--blue-100);
  padding-block: var(--s-48);
  font-size: var(--fs-14);
}

.footer a {
  color: var(--blue-400);
}

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

.footer__nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-24);
}

/* --------------------------------------------------------------------------
   8. Unter 480px: h1 32px, h2 24px, Rest unverändert
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  h1 {
    font-size: var(--fs-32);
  }

  h2 {
    font-size: var(--fs-24);
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .facts dd {
    padding-top: 0;
  }
}

/* --------------------------------------------------------------------------
   9. Bewegung reduzieren
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
