/*
 * Tagespflege St. Franziskus – eigenes Design auf Basis von Bootstrap 5.3
 *
 * Grundsätze:
 *  - Hintergründe und Bildbanner nutzen die volle Bildschirmbreite,
 *    Fließtext bleibt in einer gut lesbaren Spaltenbreite (.container).
 *  - Barrierefreiheit nach WCAG 2.2 AA: Kontrast mind. 4,5:1, sichtbarer
 *    Tastaturfokus, keine winzigen Schriftgrößen, kein Blocksatz,
 *    reduzierte Animationen wenn gewünscht.
 */

/* ---------- Farben ---------- */
:root {
  --sf-blue: #002D72;        /* Markenblau */
  --sf-blue-light: #CED6E0;  /* Flächen hellblau */
  --sf-orange: #FFAC70;      /* Akzent */
  --sf-orange-light: #FFCAA3;
  --sf-text: #2b2b2b;        /* 14:1 auf Weiß, 10:1 auf Hellblau */
  --sf-link: #00468f;        /* 9:1 auf Weiß, 6,5:1 auf Hellblau */
}

/* ---------- Schriften (nur moderne Formate woff2/woff) ---------- */
@font-face {
  font-family: 'RotisSES-Regular';
  src: url("../fonts/RotisSES-Regular.woff2") format("woff2"),
       url("../fonts/RotisSES-Regular.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'RotisSES-Bold';
  src: url("../fonts/RotisSES-Bold.woff2") format("woff2"),
       url("../fonts/RotisSES-Bold.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ---------- Grundlayout ---------- */
.container, .container-fluid, .row { --bs-gutter-x: 2rem; }

body {
  font-family: "RotisSES-Regular", Arial, sans-serif;
  font-size: 1.125rem;        /* 18px – gut lesbar, auch für ältere Menschen */
  line-height: 1.6;
  color: var(--sf-text);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; }
p, ul, address { margin: 0 0 1rem; }
ul { padding-left: 1.5rem; }
li + li { margin-top: .25rem; }

a { color: var(--sf-link); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--sf-blue); text-decoration-thickness: 2px; }

/* Deutlich sichtbarer Tastaturfokus */
:focus-visible {
  outline: 3px solid var(--sf-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer :focus-visible, .header :focus-visible { outline-color: var(--sf-orange); }
main:focus { outline: none; }

/* Link "Zum Inhalt springen" (nur bei Tastaturfokus sichtbar) */
.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 2000;
  padding: .75rem 1.25rem;
  background: #fff; color: var(--sf-blue);
  font-family: "RotisSES-Bold", Arial, sans-serif;
}

/* ---------- Button ---------- */
.btn-brand {
  --bs-btn-color: var(--sf-blue);           /* 7,4:1 auf Orange */
  --bs-btn-bg: var(--sf-orange);
  --bs-btn-border-color: var(--sf-orange);
  --bs-btn-hover-color: var(--sf-blue);
  --bs-btn-hover-bg: var(--sf-orange-light);
  --bs-btn-hover-border-color: var(--sf-orange-light);
  --bs-btn-active-color: var(--sf-blue);
  --bs-btn-active-bg: var(--sf-orange-light);
  --bs-btn-active-border-color: var(--sf-orange-light);
  --bs-btn-focus-shadow-rgb: 0, 45, 114;
  --bs-btn-font-family: "RotisSES-Bold", Arial, sans-serif;
  --bs-btn-font-size: 1.125rem;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .5rem;
  text-decoration: none;
}

/* ---------- Kopfbereich ---------- */
.header { background: var(--sf-blue); }
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 6.25rem;
  gap: 1rem;
}
.header__logo { display: inline-block; line-height: 0; }
.logo__sozialstation, .logo__ses { max-height: 5.9375rem; width: auto; }
.logo__ses { max-width: 16.875rem; }

/* ---------- Navigation ---------- */
.navigation { background: var(--sf-blue-light); }
.navigation .navbar { padding: 0; }
.navigation .navbar-nav { flex-wrap: wrap; }
.navigation .nav-link {
  color: var(--sf-blue);
  font-size: 1.0625rem;
  padding: .875rem .875rem;
  text-decoration: none;
}
.navigation .nav-item:first-child .nav-link { padding-left: 0; }
.navigation .nav-link:hover,
.navigation .nav-link:focus-visible { color: var(--sf-blue); text-decoration: underline; }

.sticky {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1030;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* Menü-Schaltfläche (mobil) mit sichtbarer Beschriftung */
.navbar-toggler {
  display: inline-flex; align-items: center; gap: .625rem;
  margin: .5rem 0 .5rem auto;
  padding: .5rem .75rem;
  border: 2px solid var(--sf-blue);
  border-radius: .25rem;
  color: var(--sf-blue);
  font-family: "RotisSES-Bold", Arial, sans-serif;
  font-size: 1.0625rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler__bars { display: inline-block; transition: transform .3s linear; }
.icon-bar {
  display: block; width: 1.375rem; height: 2px;
  border-radius: 1px; background-color: var(--sf-blue);
  transition: transform .2s linear, background-color .2s linear;
}
.icon-bar + .icon-bar { margin-top: 5px; }
.navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(2) { background-color: transparent; }
.navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

@media (max-width: 991.98px) {
  .navigation .navbar-nav { padding-bottom: .5rem; }
  .navigation .nav-link { padding: .625rem 0; }
}

/* Sprungziele nicht unter der fixierten Navigation verstecken */
section[id], #ses, #kathsoz { scroll-margin-top: 4.5rem; }

/* ---------- Einleitung ---------- */
.about { padding: 2.5rem 0 3rem; text-align: center; }
.about .container > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.about__title { margin: 0 auto 2rem; }
.about__h1 { display: block; font-size: 1.5rem; text-transform: uppercase; margin-bottom: .5rem; }
.about__h2 { display: block; font-size: clamp(2rem, 6vw, 3.125rem); text-transform: uppercase; }
.about__p { font-size: 1.125rem; }
.about__contact { margin-top: 1.5rem; }
.about__phone {
  font-family: 'RotisSES-Bold', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--sf-text);
  white-space: nowrap;
}

/* ---------- Inhaltsabschnitte ---------- */
.content-section { background: #fff; }
.content-section--tinted { background: var(--sf-blue-light); }

/* Bildbanner in Inhaltsbreite (wie im Original), Fläche dahinter volle Breite */
.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 21.875rem;              /* 350px wie im Original */
  margin: 3.4375rem 0 3.125rem;       /* 55px oben, 50px unten */
  padding: 0 2.5rem;                  /* Überschrift 40px vom linken Rand */
  background-size: cover;
  background-position: center center;
}
@media (max-width: 575.98px) {
  .banner { min-height: 15rem; margin-top: 2rem; margin-bottom: 2rem; padding: 0 1.25rem; }
}
/* Abdunklung unten, damit die weiße Überschrift immer gut lesbar ist */
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%);
}
.banner__title { position: relative; }
.banner--gemeinschaft { background-image: url("../img/gemeinschaft.jpg"); }
.banner--zeit         { background-image: url("../img/zeit.jpg"); }
.banner--leistungen   { background-image: url("../img/leistungen.jpg"); background-position: center 20%; }

.banner__title {
  margin: 0 0 2.5rem;
  font-family: "RotisSES-Bold", Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.content-section__text { padding: 0 0 3.4375rem; }
.content-section__subtitle {
  font-family: "RotisSES-Bold", Arial, sans-serif;
  font-size: 1.25rem;
  margin: 1.5rem 0 .5rem;
}
@media (min-width: 992px) {
  .content-section__text--columns { column-count: 2; column-gap: 4rem; }
  .content-section__text--columns > * { break-inside: avoid; }
  .content-section__text--columns .content-section__subtitle { margin-top: 0; }
}

/* ---------- Fußbereich ---------- */
.footer { background-color: var(--sf-blue); color: #fff; }
.footer__h1 {
  margin: 0;
  padding: 3rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.footer__text-left, .footer__text-right { padding-top: 2rem; padding-bottom: 3rem; }
.footer__img {
  display: block;
  margin: 0 0 1.5rem auto;
  height: 4.375rem; width: auto; max-width: 13.75rem;
}
.footer a { color: #fff; }
.footer a:hover { color: var(--sf-orange-light); }

@media (min-width: 992px) {
  .footer__text-left  { flex: 0 0 auto; width: 41.666667%; }
  .footer__text-right { flex: 0 0 auto; width: 41.666667%; margin-left: 16.666667%; }
}

.footer__links { background: var(--sf-blue-light); padding: .5rem 0; }
.footer__nav .nav-link { color: var(--sf-blue); text-decoration: underline; padding: .625rem 1rem; }
.footer__nav .nav-link:hover { color: var(--sf-blue); text-decoration-thickness: 2px; }
.footer__links :focus-visible { outline-color: var(--sf-blue); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 575.98px) {
  body { font-size: 1.0625rem; }
  .header__inner { min-height: 5rem; }
  .logo__sozialstation, .logo__ses { max-height: 4rem; }
  .logo__ses { max-width: 45vw; }
  .footer__img { margin-left: 0; }
}

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
