/* ---------------------------------------------------------------------------
   Grundlagen: Tokens, Reset, Typografie

   Der Vorgaenger lief auf Unify 1.x / Bootstrap 3 mit dem Farbschema "orange".
   Diese Farbe ist als --color-primary uebernommen, alles andere ist neu und
   auf den Zweck der Seite abgestimmt: Bilder zeigen, Rahmen zurueckhalten.

   Schriften kommen bewusst aus dem System - keine Webfont-Downloads, keine
   fremden Server, nichts, was die Datenschutzerklaerung beruehrt.
   --------------------------------------------------------------------------- */

:root {
  --color-primary:      #c8641e;
  --color-primary-dark: #a44f14;

  --color-text:      #33302c;
  --color-muted:     #6f6a63;
  --color-heading:   #4a443d;
  --color-border:    #e6e0d8;

  --color-bg:        #fdfcfa;
  --color-bg-sanft:  #f5f1ea;

  --color-footer-bg:    #4a443d;
  --color-footer-text:  #ded8cf;
  --color-copyright-bg: #35312c;

  --font:       system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-titel: Georgia, 'Iowan Old Style', 'Times New Roman', serif;

  --font-size-base: 16px;
  --line-height:    1.65;

  --container: 1120px;
  --gutter:    24px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-titel);
  color: var(--color-heading);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.25;
}

h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p {
  margin: 0 0 12px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 20px;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sprungmarke fuer Tastaturnutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 10px 15px;
  border: 2px solid var(--color-primary);
}

.skip-link:focus {
  left: 10px;
}

/* Wer Bewegung reduziert haben moechte, bekommt auch kein weiches Scrollen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
