/* Wartungsseite BERGISCHE KRANKENKASSE
   Farben, Schrift und Logo aus dem Theme ns_theme_bkk uebernommen.
   Rein statisch: kein PHP, keine Datenbank, keine Cookies, kein Tracking. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('roboto-v47-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('roboto-v47-latin-700.woff2') format('woff2');
}

:root {
  /* Hausfarben, identisch zum Theme */
  --gruen-hell: #3e8526;
  --gruen-hell-auf-f5: #387e20;
  --gruen-dunkel: #1a4922;
  --schwarz: #000;
  --weiss: #fff;
  --weiss-f5: #f5f5f5;
  --grau-linie: #e3e3e3;
  --text-leise: #595959;          /* 7,0:1 auf Weiss */
  --breite: 1140px;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.62;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;           /* iOS: Adressleiste einrechnen */
}

/* ---- Sprunglink ---------------------------------------------------- */

.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--gruen-hell);
  color: var(--weiss);
  text-decoration: none;
}

.sprunglink:focus {
  left: 0;
}

/* ---- Grundbausteine ------------------------------------------------ */

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--gruen-hell);
}

h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 40px; }
h3 { font-size: clamp(20px, 2.6vw, 24px); margin-top: 36px; }

p { margin: 0 0 18px; }

a {
  color: var(--gruen-hell);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--gruen-dunkel); }

/* Fokusrahmen nur bei Tastaturbedienung, nicht beim Mausklick */
a:focus-visible,
.knopf:focus-visible {
  outline: 3px solid var(--gruen-dunkel);
  outline-offset: 3px;
}

a:focus:not(:focus-visible) { outline: none; }

/* ---- Kopf ---------------------------------------------------------- */

.kopf {
  padding: 22px 0;
  border-bottom: 1px solid var(--grau-linie);
  background: var(--weiss);
}

.kopf__logo { display: inline-block; line-height: 0; }

.kopf__logo img {
  width: 295px;
  height: auto;
  max-width: 62vw;
}

/* ---- Hauptteil ----------------------------------------------------- */

.inhalt {
  flex: 1 0 auto;
  padding: 44px 0 56px;
}

.inhalt--start {
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(62, 133, 38, .10), transparent 62%),
    radial-gradient(640px 360px at -6% 108%, rgba(62, 133, 38, .07), transparent 60%);
}

.karte {
  max-width: 760px;
  margin: 0 auto;
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-top: 5px solid var(--gruen-hell);
  border-radius: var(--radius);
  padding: clamp(26px, 4.4vw, 48px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .07);
}

.vorzeile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: var(--weiss-f5);
  color: var(--gruen-hell-auf-f5);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vorzeile__punkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gruen-hell-auf-f5);
}

.anriss {
  font-size: clamp(20px, 2.4vw, 23px);
  margin-bottom: 32px;
}

/* ---- Kontaktblock -------------------------------------------------- */

.kontakt {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--grau-linie);
}

.kontakt__titel {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.kontakt__liste {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kontakt__liste a {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.kontakt__liste a:hover,
.kontakt__liste a:focus-visible { text-decoration: underline; }

.zeiten {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 24px;
  font-size: 17px;
}

.zeiten dt { color: var(--text-leise); }
.zeiten dd { margin: 0; font-weight: 700; }

/* ---- Textseiten ---------------------------------------------------- */

.textseite { max-width: 820px; }

.textseite h1 { margin-bottom: 32px; }

.textseite p + h3 { margin-top: 32px; }

.hinweis {
  margin: 0 0 32px;
  padding: 18px 22px;
  border-left: 4px solid var(--gruen-hell);
  background: var(--weiss-f5);
  font-size: 17px;
}

.hinweis p:last-child { margin-bottom: 0; }

.zurueck {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
  text-decoration: none;
}

.zurueck:hover,
.zurueck:focus-visible { text-decoration: underline; }

.zurueck::before { content: '\2190\00a0'; }

/* ---- Fuss ---------------------------------------------------------- */

.fuss {
  flex-shrink: 0;
  padding: 26px 0;
  border-top: 1px solid var(--grau-linie);
  background: var(--weiss-f5);
  font-size: 16px;
  color: var(--text-leise);
}

.fuss__reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a { color: var(--gruen-hell-auf-f5); }

@media (max-width: 600px) {
  body { font-size: 18px; }
  .inhalt { padding: 36px 0 48px; }
  .fuss__reihe { flex-direction: column; align-items: flex-start; }

  /* Servicezeiten: Uhrzeit unter den Tag, nicht daneben */
  .zeiten { display: block; }
  .zeiten dt { margin-top: 12px; }
  .zeiten dt:first-child { margin-top: 0; }
  .zeiten dd { margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Flache Fenster (Laptops, Querformat): alles ohne Scrollen sichtbar halten */
@media (min-width: 601px) and (max-height: 850px) {
  .inhalt--start { padding: 28px 0 34px; }
  .inhalt--start .karte { padding: 32px 38px; }
  .inhalt--start h1 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
  .inhalt--start .vorzeile { margin-bottom: 14px; }
  .inhalt--start .anriss { font-size: 20px; margin-bottom: 22px; }
  .inhalt--start .kontakt { margin-top: 22px; padding-top: 20px; }
  .inhalt--start .kontakt__liste { margin-bottom: 20px; gap: 6px; }
  .inhalt--start .kontakt__liste a { font-size: 23px; }
}
