/* ═══════════════════════════════════════════
   FOOTER + COOKIE-HINWEIS
   Gleiche Sprache wie die Seite: Schwarz, Serif-Marke, feine Linien.
═══════════════════════════════════════════ */

/* ── Footer ───────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 2rem;
  background: var(--black);
  border-top: 0.0625rem solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-person { display: flex; flex-direction: column; gap: 0.125rem; line-height: 1.4; color: var(--white); }
.footer-person span { font-size: 0.8125rem; color: var(--faint); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.footer-logo {
  font-family: var(--font-header);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
}
.footer-claim {
  max-width: 20rem;
  font-family: var(--font-header);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--gray-300);
}
.footer-claim em { font-style: italic; color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.footer-label::before { content: ""; width: 1.25rem; height: 0.0625rem; background: var(--gray-500); }
.footer-col a,
.footer-col button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease;
}
.footer-col a:hover,
.footer-col button:hover,
.footer-col a:focus-visible,
.footer-col button:focus-visible { color: var(--white); }
.footer-col address { font-style: normal; line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 5.5rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid var(--line);
  font-size: 0.8125rem;
  color: var(--faint);
}
.footer-bottom a { color: var(--faint); text-decoration: none; transition: color .3s ease; }
.footer-bottom a:hover { color: var(--white); }
.footer-top-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-top-link svg { width: 0.75rem; height: 0.75rem; }

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 809px) {
  .site-footer { padding: 4.5rem 1rem 1.75rem; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .footer-logo { font-size: 2.125rem; }
  .footer-bottom { margin-top: 3.5rem; flex-direction: column; align-items: flex-start; }
}

/* ── Cookie-Hinweis ───────────────────────── */
.cc {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 100;
  width: min(27.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
  padding: 1.5rem;
  border: 0.0625rem solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(10,10,10,0.92);
  -webkit-backdrop-filter: blur(1.125rem);
  backdrop-filter: blur(1.125rem);
  box-shadow: 0 1.875rem 5rem -1.875rem rgba(0,0,0,0.9);
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
.cc.is-in { opacity: 1; transform: none; }
.cc::-webkit-scrollbar { width: 0.375rem; }
.cc::-webkit-scrollbar-track { background: transparent; }
.cc::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 62.4375rem; }
.cc[hidden] { display: none; }
.cc:focus { outline: none; }
.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.cc-eyebrow::before { content: ""; width: 1.25rem; height: 0.0625rem; background: var(--gray-500); }
.cc-title {
  margin-top: 0.875rem;
  font-family: var(--font-header);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--white);
}
.cc-title strong { font-weight: 700; }
.cc-text { margin-top: 0.75rem; }
.cc-text + .cc-text { margin-top: 0.5rem; }
.cc a { color: var(--gray-100); text-decoration: underline; text-underline-offset: 0.1875rem; text-decoration-color: var(--gray-500); }
.cc a:hover { text-decoration-color: var(--white); }

.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 0.0625rem solid var(--white);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--black);
  font: 500 0.9375rem/1.2 var(--font-text);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.cc-btn:hover { background: var(--gray-100); transform: translateY(-0.0625rem); }
.cc-btn:focus-visible { outline: 0.125rem solid var(--white); outline-offset: 0.125rem; }
.cc-btn--wide { grid-column: 1 / -1; }
.cc-btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--white);
}
.cc-btn--ghost:hover { background: rgba(255,255,255,0.06); }

.cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.125rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.cc-links a,
.cc-links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease;
}
.cc-links a:hover,
.cc-links button:hover { color: var(--white); }

/* Einstellungen */
.cc-cats {
  list-style: none;
  margin-top: 1.125rem;
  border-top: 0.0625rem solid var(--line);
}
.cc-cat { padding: 0.875rem 0; border-bottom: 0.0625rem solid var(--line); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat-name { font-weight: 600; color: var(--white); }
.cc-cat-name small { margin-left: 0.375rem; font-weight: 400; font-size: 0.75rem; color: var(--faint); }
.cc-cat-desc { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--muted); }
.cc-cat details { margin-top: 0.5rem; font-size: 0.7813rem; color: var(--faint); }
.cc-cat summary { cursor: pointer; color: var(--gray-300); list-style: none; }
.cc-cat summary::-webkit-details-marker { display: none; }
.cc-cat summary::before { content: "+ "; }
.cc-cat details[open] summary::before { content: "– "; }
.cc-cat dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin-top: 0.5rem; }
.cc-cat dt { color: var(--gray-300); }

/* Schalter */
.cc-switch { position: relative; flex: none; width: 2.5rem; height: 1.5rem; }
.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cc-switch span {
  position: absolute;
  inset: 0;
  border: 0.0625rem solid var(--line-strong);
  border-radius: 62.4375rem;
  background: var(--surface-3);
  pointer-events: none;
  transition: background .3s ease, border-color .3s ease;
}
.cc-switch span::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gray-500);
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s ease;
}
.cc-switch input:checked + span { background: var(--white); border-color: var(--white); }
.cc-switch input:checked + span::after { transform: translateX(1rem); background: var(--black); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + span { opacity: .55; }
.cc-switch input:focus-visible + span { outline: 0.125rem solid var(--white); outline-offset: 0.125rem; }

@media (max-width: 809px) {
  .cc { left: 0.5rem; bottom: 0.5rem; width: calc(100vw - 1rem); padding: 1.25rem; }
  .cc-title { font-size: 1.3125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cc { transition: none; }
}

/* ── Cookie-Leiste (erste Ebene): klein unten ── */
.cc.cc--bar {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: auto;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-radius: 1rem;
}
.cc-bar { display: flex; align-items: center; gap: 1.25rem; }
.cc-bar-text { flex: 1; min-width: 0; margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.cc-bar-text strong { font-weight: 600; color: var(--white); }
.cc-bar-actions { display: flex; flex: none; align-items: center; gap: 0.5rem; }
.cc-bar .cc-btn { min-height: 2.5rem; padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; }
.cc-more {
  padding: 0 0.5rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--gray-300);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  text-decoration-color: var(--gray-500);
  cursor: pointer;
  transition: color .3s ease;
}
.cc-more:hover { color: var(--white); }
.cc-more:focus-visible { outline: 0.125rem solid var(--white); outline-offset: 0.125rem; border-radius: 0.25rem; }

@media (max-width: 809px) {
  .cc.cc--bar { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.875rem; }
  .cc-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .cc-bar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-more { grid-column: 1 / -1; order: 3; justify-self: center; padding: 0.25rem 0.5rem 0; }
}
.cc-nowrap { white-space: nowrap; }
