/* Platzhalterseite Elisabeth-Stiftung Birkenfeld
   Designbasis: e-s-b.hit-dev.de (Farben, Lato, Quadrat-Motiv, Footer-Balken) */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-v24-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-v24-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-v24-latin-900.woff2") format("woff2"); }

:root {
  --color-default: 227, 6, 19;
  --color-gray-74: 74, 74, 74;
  --color-gray-157: 157, 157, 157;
  --color-gray-208: 208, 208, 208;
  --color-gray-239: 239, 239, 239;
  --color-primary: var(--color-default);
  --width-header: 1600px;
  --width-content: 1230px;
  --width-text: 860px;
  --bar: 34px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* Bereichsfarben (identisch zur Entwicklungsseite) */
.stiftung         { --color-primary: 227, 6, 19; }
.krankenhaus      { --color-primary: 182, 31, 41; }
.bfw              { --color-primary: 0, 105, 180; }
.bildungsinstitut { --color-primary: 82, 174, 50; }
.jugendwerk       { --color-primary: 239, 125, 0; }
.seniorenzentrum  { --color-primary: 54, 169, 225; }

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

html { font-size: 20px; -webkit-text-size-adjust: 100%; }
@media (max-width: 767px) { html { font-size: 17px; } }

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: rgb(var(--color-gray-74));
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: rgb(var(--color-default)); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid rgb(var(--color-default)); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 900; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.8rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 20;
  background: rgb(var(--color-default)); color: #fff; padding: 0.5rem 1rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.i { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { position: relative; background: #fff; }
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: var(--bar); background: rgb(var(--color-gray-239));
}
.squares { position: relative; display: flex; gap: 12px; height: var(--bar); }
.squares span { width: var(--bar); height: var(--bar); }
.squares .sq-red   { background: rgb(var(--color-default)); }
.squares .sq-gray  { background: rgb(var(--color-gray-157)); }
.squares .sq-light { background: rgb(var(--color-gray-208)); }

.site-header .inside {
  max-width: var(--width-header); margin: 0 auto;
  padding: 1.1rem var(--gutter) 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 60px; width: auto; }

.header-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  color: rgb(var(--color-gray-74)); text-decoration: none; font-weight: 700; white-space: nowrap;
}
.header-btn .i { width: 1.9rem; height: 1.9rem; color: rgb(var(--color-default)); }
.header-btn:hover .label { text-decoration: underline; text-decoration-color: rgb(var(--color-default)); }

@media (max-width: 767px) {
  .logo img { height: 44px; }
}
@media (max-width: 479px) {
  .logo img { height: 38px; }
  .header-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ---------- Hero (Bild mit rotem Balken wie #pageimages) ---------- */
.hero { display: grid; grid-template-columns: 2rem 1fr; column-gap: 1rem; }
.hero::before { content: ""; background: rgb(var(--color-default)); }
.hero img { width: 100%; height: clamp(190px, 30vw, 460px); object-fit: cover; object-position: 50% 45%; }
@media (max-width: 767px) {
  .hero { grid-template-columns: 0.75rem 1fr; column-gap: 0.5rem; }
}

/* ---------- Intro ---------- */
.intro {
  max-width: calc(var(--width-text) + 2 * var(--gutter));
  margin: 0 auto; padding: 3rem var(--gutter) 0;
}
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.1rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--color-default));
}
.status::before {
  content: ""; width: 0.7rem; height: 0.7rem; background: currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } }

/* ---------- Notfall-Hinweis ---------- */
.notice {
  max-width: calc(var(--width-text) + 2 * var(--gutter));
  margin: 1.5rem auto 0; padding: 0 var(--gutter);
}
.notice .inside {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.4rem; background: rgb(var(--color-gray-239));
  border-left: 0.45rem solid rgb(var(--color-default));
}
.notice .i { width: 2rem; height: 2rem; color: rgb(var(--color-default)); margin-top: 0.1rem; }
.notice p { margin: 0; }
.notice a { color: inherit; font-weight: 900; text-decoration-color: rgb(var(--color-default)); text-decoration-thickness: 2px; }

/* ---------- Kontakte ---------- */
.contacts {
  max-width: calc(var(--width-header) + 2 * var(--gutter));
  margin: 4.5rem auto 0; padding: 0 var(--gutter);
}
.section-head { max-width: var(--width-text); margin: 0 auto 2rem; text-align: center; }
.section-head p { margin: 0; }

.cards { display: grid; gap: 1em; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: rgb(var(--color-gray-239));
  padding: 1.5rem 1.5rem 1.4rem;
}
.card h3 { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; }
.card h3::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1em;
  background: rgb(var(--color-primary));
}
.card address { font-style: normal; margin-bottom: 0.9rem; }
.card-note {
  margin: 0 0 0.9rem; padding-left: 0.75rem; font-size: 0.9rem;
  border-left: 3px solid rgb(var(--color-primary));
}
.contact-list {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1rem;
  margin: auto 0 0; padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--color-gray-74), 0.15);
}
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.card a {
  color: inherit;
  text-decoration-color: rgb(var(--color-primary));
  text-decoration-thickness: 2px;
}
.card a:hover { text-decoration-thickness: 3px; }

.campus-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1.5rem; margin: 2rem auto 0; max-width: var(--width-content); text-align: center;
}
.campus-note p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgb(var(--color-default)); color: #fff;
  padding: 0.45rem 1.1rem; border-radius: 5px;
  font-weight: 700; text-decoration: none;
}
.btn:hover { background: rgb(182, 31, 41); }
.btn .i { width: 1.1em; height: 1.1em; }

/* ---------- Karriere ---------- */
.career {
  position: relative; margin: 5rem 0 0; padding: 3rem var(--gutter) 1rem; text-align: center;
}
.career::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 18rem;
  background: url("../img/bg-dots.svg") top right / 440px repeat-y;
}
.career .inside { max-width: var(--width-text); margin: 0 auto; }
.career .btn { margin-top: 0.25rem; }

/* ---------- Rechtstexte ---------- */
.legal {
  max-width: calc(var(--width-text) + 2 * var(--gutter));
  margin: 0 auto; padding: 3rem var(--gutter) 1rem;
}
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.legal ul { padding-left: 1.2rem; list-style-type: square; }
.legal li::marker { color: rgb(var(--color-default)); }
.legal li { margin-bottom: 0.25rem; }
.back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; font-weight: 700; color: rgb(var(--color-gray-74)); }

/* ---------- Footer (Balken wie Entwicklungsseite) ---------- */
.site-footer { position: relative; margin-top: 4rem; padding-bottom: var(--bar); }
.site-footer::before, .site-footer::after {
  content: ""; position: absolute; bottom: 0; height: var(--bar);
}
.site-footer::before { left: 0; right: 30.6%; background: rgb(var(--color-gray-239)); }
.site-footer::after  { left: 70%; right: 0; background: rgb(var(--color-default)); }

.site-footer .inside { max-width: var(--width-header); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top {
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-top: 2rem; border-top: 1px solid rgba(var(--color-gray-74), 0.15);
}
.footer-top h2 { grid-column: 1 / -1; margin: 0 0 0.25rem; }
.footer-top p { margin: 0; }
.footer-top a { color: rgb(var(--color-gray-74)); font-weight: 700; text-decoration: none; }
.footer-top a:hover { text-decoration: underline; text-decoration-color: rgb(var(--color-default)); }
.icon-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.icon-link .i { width: 1.6rem; height: 1.6rem; color: rgb(var(--color-default)); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem;
  margin: 2.5rem 0; font-size: 0.85rem;
}
.footer-bottom a { color: rgb(var(--color-gray-74)); text-decoration: none; }
.footer-bottom a:hover, .footer-bottom a[aria-current="page"] { color: rgb(var(--color-default)); }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0 0 0 1rem; padding: 0; list-style: none; }
@media (max-width: 767px) {
  .footer-bottom nav { flex-basis: 100%; }
  .footer-bottom nav ul { margin-left: 0; }
}
