/*
 * Eigene Styles der Website (ergänzt Bootstrap aus vendor/bootstrap).
 */

/* ---------- Schriften (lokal ausgeliefert, Lizenz: SIL OFL, siehe fonts/) ---------- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-v37-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/raleway-v37-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bs-border-radius: .25rem;       /* Rundung wie in Bootstrap 4 */
  --color-page: #f9ab9e;
  --color-text: #212529;
  --color-link: #5a1a0e;          /* Kontrast auf Textfläche 5,8 : 1 */
  --color-link-hover: #2e0d07;
  --color-accent: #e6a756;        /* Akzentfarbe der Navigation (Original) */
  --overlay-dark: rgba(0, 0, 0, .25);   /* Navigation und Footer (Original, #00000040) */
  --overlay-light: rgba(0, 0, 0, .1);   /* Textflächen */
}

/* ---------- Basis ---------- */
body {
  font-family: Lora, serif;
  background-color: var(--color-page);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Raleway, sans-serif;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Feste Überschriftengrößen wie bisher (Bootstrap 5 skaliert sie sonst auf kleinen Bildschirmen) */
h1 {
  font-size: 2.5rem;
}

.h3 {
  font-size: 1.75rem;
}

p {
  line-height: 1.75;
}

.bg-faded {
  background-color: var(--overlay-light);
}

/* Links in Textflächen */
.bg-faded a {
  color: var(--color-link);
  text-decoration: underline;
}

.bg-faded a:hover {
  color: var(--color-link-hover);
}

/* Sichtbarer Tastaturfokus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

#mainNav a:focus-visible,
#mainNav button:focus-visible,
.footer a:focus-visible,
.skip-link:focus {
  outline-color: #fff;
}

/* Sprunglink für Tastatur- und Screenreader-Nutzer */
.skip-link:focus {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 2000;
  padding: .5rem 1rem;
  background: var(--color-text);
  color: #fff;
}

/* ---------- Bilder ---------- */
.img-250 {
  width: 250px;
}

.img-650 {
  width: 650px;
}

/* ---------- Ankündigung (Startseite und Verwaltung) ---------- */
.ankuendigung {
  margin-bottom: 1.5rem;
}

.ankuendigung-text {
  max-width: 650px;
  white-space: pre-line;
}

.admin-thumb {
  max-height: 300px;
}

/* ---------- Seitenbereiche ---------- */
.head-img {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.page-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.page-section-compact {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.container-narrow {
  max-width: 708px;
}

/* Seitenüberschrift in den Textflächen (optisch wie normaler Text) */
.page-title {
  font-family: Lora, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

/* Große Überschrift (Impressum, Datenschutz) */
.section-heading {
  text-transform: uppercase;
}

.section-heading .section-heading-lower {
  display: block;
  font-weight: 100;
}

@media (min-width: 420px) {
  .section-heading .section-heading-lower {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  .about-heading .about-heading-content {
    margin-top: -5rem;
    position: relative;
    z-index: 1;
  }
}

/* ---------- Navigation ---------- */
#mainNav {
  background-color: var(--overlay-dark);
  font-family: Raleway, sans-serif;
}

#mainNav .navbar-brand {
  color: var(--color-accent);
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
  text-align: center;
}

#mainNav .navbar-nav .nav-item.active .nav-link {
  color: var(--color-accent);
}

@media (min-width: 992px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    font-size: .9rem;
  }

  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: rgba(255, 255, 255, .4);
  }

  #mainNav .navbar-nav .nav-item.active .nav-link:hover {
    color: var(--color-accent);
  }
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--overlay-dark);
  color: rgba(255, 255, 255, .6);
}

.footer a {
  text-decoration: none;
}

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