/* ---------- Schrift (lokal eingebunden, keine externen Anfragen) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000;
  background: #8f7f6d url("../images/hintergrundbild.png") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vh, 140px);
  padding: 6vh 20px 4vh;
}

.title {
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-size: clamp(40px, 3.75vw, 96px);
  line-height: 1.1;
  text-align: center;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;
}

.card {
  width: clamp(100px, 10.5vw, 200px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-logo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-label {
  /** background: #fff; **/
  /** min-height: 117px; **/
  padding: 0px;
  /** padding: 10px 10px 15px 10px; **/
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card-name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  line-height: 1.2;
}
.card-link {
  font-weight: 700;
  font-size: clamp(12px, 0.75vw, 14px);
  color: #888;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.card-link:hover,
.card-link:focus-visible { color: #000; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  flex: 0 0 auto;
  padding: 0 20px clamp(20px, 4vh, 48px);
  text-align: center;
}
.footer nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }

.footer-link,
.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 2px;
  font: inherit;
  cursor: pointer;
}
.footer-link {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.footer-link:hover { text-decoration: underline; }
.linklike { color: inherit; text-decoration: underline; padding: 0; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.card-label :focus-visible, .lb-dialog :focus-visible, .cc-banner :focus-visible { outline-color: #1a1a1a; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
}
.btn:hover { background: #f0f0f0; }
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #000; }

/* ---------- Lightbox ---------- */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.lb-dialog {
  position: relative;
  background: #fff;
  color: #1a1a1a;
  width: min(760px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lb-dialog:focus { outline: none; }
.lb-close {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 1;
  appearance: none;
  background: none;
  border: 0;
  font-size: 36px;
  line-height: 1;
  color: #1a1a1a;
  cursor: pointer;
  padding: 4px 8px;
}
.lb-body {
  overflow-y: auto;
  padding: 36px 40px 40px;
  font-size: 15px;
  line-height: 1.6;
}
.lb-body h2 { margin: 0 0 16px; font-size: 26px; padding-right: 36px; }
.lb-body h3 { margin: 24px 0 6px; font-size: 16px; }
.lb-body p  { margin: 0 0 12px; }
.lb-body a  { color: #1a1a1a; }

/* ---------- Cookie-Einstellungen in der Lightbox ---------- */
.cc-group { margin: 16px 0; border-top: 1px solid #ddd; }
.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}
.cc-row small { color: #666; }
.cc-row input { width: 20px; height: 20px; accent-color: #1a1a1a; flex: none; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-table th, .cc-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid #ddd; vertical-align: top; }

/* ---------- Cookie-Banner ---------- */
.cc-banner[hidden] { display: none; }
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cc-banner-text { margin: 0; font-size: 14px; line-height: 1.5; max-width: 720px; }
.cc-banner-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .page { justify-content: flex-start; padding-top: 48px; }
  .cards { flex-direction: column; align-items: center; gap: 28px; }
  .card { width: min(240px, 70vw); }
  .cc-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cc-banner-buttons { justify-content: stretch; }
  .cc-banner-buttons .btn { flex: 1 1 auto; }
  .lb-body { padding: 30px 22px 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .lb-dialog { animation: lb-in .18s ease-out; }
  @keyframes lb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
