/* style.css — Barrierefreie Farbpalette mit Open Color + #771100 */

:root {
  /* Open Color Grautöne */
  --gray-1:  #f8f9fa;
  --gray-3:  #dee2e6;
  --gray-6:  #6c757d;
  --gray-8:  #343a40;

  /* Akzentfarbe */
  --accent:  #771100;
  --accent-hover: #5a0a00; /* Dunkler im Hover */

  /* Typografie */
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --line-height: 1.7;
  --font-size-normal: 100%; /* 16px default */
  --font-size-large: 1.125rem; /* 18px */
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("<!-- @path AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("<!-- @path AtkinsonHyperlegibleNext-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("<!-- @path AtkinsonHyperlegibleNext-Bold.woff2 -->") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("<!-- @path AtkinsonHyperlegibleNext-SemiBold.woff2 -->") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-normal);
  line-height: var(--line-height);
  color: var(--gray-8);
  background-color: var(--gray-1);
  padding: 1rem;
}

/* Header + Navigation */
.header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  border-bottom: 1px solid var(--gray-3);
  margin-bottom: 2rem;
  border-radius: 8px;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.header img {
  width: 50px;
  height: 50px;
  margin-right: 1em;
}

.header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header nav li {
  margin-right: 1em;
}

.header nav a {
  text-decoration: none;
  color: #333;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--accent);
}

.header h1 a {
  text-decoration: none;
  color: inherit;
}

.header nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 2rem;
}

.header nav a {
  color: var(--gray-6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header nav a:hover,
.header nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* Hauptinhalt */
.content {
  max-width: 60ch;           /* Kernregel: max. 60 Zeichen pro Zeile */
  margin-left: auto;
  margin-right: auto;         /* Zentriert den Block auf der Seite */
  padding: 2rem 1rem;         /* Gute Atemluft an den Seiten */
  line-height: 1.7;
  hyphens: auto;              /* Optional: Worttrennung für bessere Füllung */
  text-align: left;           /* Links, nicht zentriert – besser lesbar */
  font-size: 1.125rem;        /* Optional: leicht vergrößerte Schrift für Atkinson */
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  color: var(--gray-8);        /* Textfarbe: dunkles Grau */
  background-color: var(--gray-1); /* Hintergrundfarbe: helles Grau */
  border-radius: 8px;         /* Ecken abrunden */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Schatten für Tiefe */
}

/* Abstände zwischen Absätzen und Überschriften */
.content p {
  margin-block: 1em 1.4em;   /* Abstand zwischen Absätzen */
}

.content h2,
.content h3 {
  margin-top: 2em;
  break-after: avoid;        /* Verhindert: Überschrift am Seitenende allein */
  color: var(--accent);       /* Überschriftenfarbe: Akzentfarbe (#771100) */
  font-weight: 600;           /* Fetter als normaler Text */
}

/* Links im Text */
.content a {
  text-decoration: none;
  color: var(--accent);       /* Linkfarbe: Akzentfarbe (#771100) */
  font-weight: 500;           /* Fett wie normaler Text, aber hervorgehoben */
  transition: color 0.2s ease; /* Farbwechsel bei Hover */
}

.content a:hover,
.content a:focus {
  color: var(--accent-hover); /* Hover-Farbe: dunklere Akzentfarbe */
}

/* Bildunterschriften und -beschreibungen */
.content figure {
  margin: 1em 0;
}

.content figcaption {
  font-size: 0.9rem;
  color: var(--gray-6);        /* Unterschriftfarbe: mittleres Grau */
  margin-top: 0.5em;
}

/* Für kleine Bildschirme: Anpassen der Breite und Schriftgröße */
@media (max-width: 600px) {
  .content {
    padding: 1rem;
    font-size: 1rem;
  }
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content th,
.content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-3);
}

.content th {
  background-color: var(--gray-1);
  font-weight: 600;
}

/* Primäre Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.8em 1.4em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin: 0.5rem 0;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  color: white;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  color: var(--gray-6);
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Barrierefreiheit: Fokus-Indikatoren */
a:focus, button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.header .logo {
  height: 40px;        /* Höhe anpassen – Beispiel: 40px */
  width: auto;         /* Breite automatisch, um Proportionen zu bewahren */
  max-height: 50px;    /* Optional: Maximale Größe festlegen */
}

form {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 10px;
}

input, textarea {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  background-color: #771100;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #3e8e41;
}

/* Auf kleinen Bildschirmen anpassen */
@media (max-width: 768px) {
  .header .logo {
    height: 36px;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 1rem;
    font-size: 1rem;
  }
}
/* Optional: Druckfreundlich */
@media print {
  body {
    background: white;
    color: black;
  }
  .header, .footer {
    box-shadow: none;
    border: none;
  }
}