/* WEB Adresse – statische Seite
   Masterlayout: FireShot-PDFs (Desktop 1920 px)
   Fließtext: Desktop 15 px / Mobil 17 px */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00427f;
  --text: #333333;
  --bg-grey: #edebec;
  --footer: #8b8b8b;
  --container: 988px;
  --fs-body: 15px;
  --lh-body: 1.5;
  --font: Arial, Helvetica, "Liberation Sans", sans-serif;
  --font-head: "Roboto", Arial, Helvetica, sans-serif;
  /* Zwischenüberschriften im Datenschutz: im PDF normal (400). Für bessere Lesbarkeit auf 700 setzen. */
  --ds-strong: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
p { margin: 0 0 .9em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 10;
  background: #fff;
  height: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.logo { display: block; width: 200px; flex: 0 0 auto; }
.logo img { width: 200px; height: auto; }

.search { display: flex; width: 484px; max-width: 100%; height: 42px; }
.search input {
  flex: 1 1 auto; min-width: 0;
  height: 42px; padding: 0 15px;
  font: 15px var(--font); color: var(--text);
  border: 1px solid #e3e3e3; border-right: 0; border-radius: 0;
  background: #fff; outline: none;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #7a7a7a; }
.search input:focus { border-color: var(--blue); }
.search button {
  flex: 0 0 44px; height: 42px; width: 44px;
  border: 0; border-radius: 0; background: var(--blue); color: #fff;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.search button:hover { background: #003466; }
.search svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Branchen-Raster ---------- */
.branchen { background: var(--bg-grey); padding: 79px 0 26px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 17px;
  row-gap: 54px;
}
.card {
  background: #fff;
  padding: 18px 17px 18px;
  border-bottom: 2px solid transparent;
  transition: box-shadow .25s, background-color .25s, border-color .25s;
}
.card:hover {
  background: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, .22);
  border-bottom-color: #7b9cc2;
}
.card-media { position: relative; overflow: hidden; height: 190px; padding-bottom: 40px; }
.card-media img { width: 100%; height: 150px; object-fit: cover; transition: transform 1.5s; }
.card:hover .card-media img { transform: scale(1.2); }
.card-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0;
  background: var(--blue); color: #fff;
  font: 400 20px/40px var(--font-head);
  text-align: center;
  height: 40px;
}
.entries {
  list-style: none; margin: 18px 0 0; padding: 0 3px 0 9px;
  font-size: var(--fs-body); line-height: 1.5;
}
.entries li { display: flex; align-items: center; }
.entries li.is-hidden { display: none; }
.entries svg {
  flex: 0 0 15px; width: 15px; height: 15px; margin-right: 14px;
  fill: var(--blue);
}
.entries a { color: var(--text); }
.entries a:hover, .entries a:focus-visible { color: var(--blue); text-decoration: none; }

.search-info {
  display: none; margin: -40px 0 30px; text-align: center;
}
.search-info.is-visible { display: block; }
.search-info button {
  font: inherit; color: var(--blue); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline;
}
.card.is-hidden { display: none; }

/* ---------- Textbereich Startseite ---------- */
.intro { padding: 68px 0 66px; text-align: center; }
.intro h1 {
  font: 400 34px/1.2 var(--font); color: var(--blue);
  margin: 0 0 18px;
}
.intro h2 {
  font: 400 27px/1.2 var(--font); color: var(--blue);
  margin: 6px 0 16px;
}

/* ---------- Unterseiten ---------- */
.page-banner {
  background: var(--blue); color: #fff;
  height: 141px; display: flex; align-items: center; justify-content: center;
  margin-top: 0;
}
.page-banner h2 { margin: 0; font: 400 50px/1.2 var(--font-head); }

.legal { padding: 68px 0 22px; }
.legal h1 { font: 400 34px/1.2 var(--font); color: var(--blue); margin: 0 0 22px; }
.legal h3 { font: 400 24px/1.2 var(--font); color: var(--text); margin: 0 0 18px; }
.legal p { margin: 0 0 12px; }
strong { font-weight: var(--ds-strong); }
.legal ul { margin: 0 0 0; padding-left: 20px; }
.legal ul + p { margin-top: 0; }
.legal .membership a { display: inline-block; }
.legal .membership img { width: 127px; height: auto; }
.legal .break { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer); color: #fff; font-size: 15px;
  flex-shrink: 0;
}
.site-footer .container {
  max-width: 1010px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 50px; gap: 10px 20px; flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.footer-nav a {
  display: block; color: #fff; padding: 13px 18px 12px; position: relative;
}
.footer-nav a:hover { text-decoration: none; }
.footer-nav a[aria-current="page"]::after,
.footer-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: #466683;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .site-footer .container { padding: 0 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; column-gap: 20px; }
  .search { width: 50%; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  :root { --fs-body: 17px; }
  .site-header { height: auto; }
  .site-header .container { flex-direction: column; align-items: stretch; padding-top: 15px; padding-bottom: 15px; gap: 12px; }
  .logo { margin: 0 auto; }
  .search { width: 100%; }
  .search input { font-size: 17px; } /* verhindert Auto-Zoom auf iOS */
  .branchen { padding: 30px 0 10px; }
  .grid { grid-template-columns: 1fr; row-gap: 20px; }
  .card-media { height: auto; }
  .card-media img { height: auto; aspect-ratio: 282 / 150; }
  .entries li { align-items: flex-start; }
  .entries svg { margin-top: calc((var(--fs-body) * 1.5 - 15px) / 2); }
  .intro h1 { font-size: 28px; }
  .intro h2 { font-size: 23px; }
  .intro { text-align: left; }
  .intro h1, .intro h2 { text-align: center; }
  .page-banner { height: 100px; }
  .page-banner h2 { font-size: 36px; }
  .legal { padding-top: 35px; }
  .legal h1 { font-size: 28px; }
  .legal h3 { font-size: 22px; }
  .site-footer { font-size: 15px; }
  .site-footer .container { flex-direction: column; justify-content: center; padding-top: 12px; text-align: center; }
  .footer-nav a { padding: 8px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
}
