/* Doing-IT — Einwilligungshinweis für die Reichweitenmessung.
   Schmale Leiste am unteren Rand, auf allen Seiten gleich. Der Text und die
   beiden Knöpfe bleiben vollständig sichtbar; ohne JavaScript bleibt der
   Hinweis verborgen, die Seite ist vollständig nutzbar. */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0.9rem max(1.25rem, calc((100% - 1200px) / 2));
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  color: var(--card-foreground);
  box-shadow: 0 -18px 50px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "text actions";
  align-items: center;
  gap: 0.15rem 1.5rem;
}
.consent[hidden] { display: none }
.consent-title {
  grid-area: title;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}
.consent-text {
  grid-area: text;
  margin: 0;
  max-width: 95ch;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.consent-text strong { color: var(--foreground); font-weight: 600 }
.consent-text a { color: var(--foreground); text-decoration: underline; text-underline-offset: 0.2em }
.consent-actions { grid-area: actions; display: flex; gap: 0.5rem }
.consent-actions .btn { min-height: 2.5rem; white-space: nowrap }

/* „Cookie-Einstellungen“ im Fußbereich: sieht aus wie ein Link, ist ein Knopf. */
button.linklike {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
button.linklike:hover { text-decoration: underline; color: var(--foreground) }

@media (max-width: 760px) {
  .consent {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "text" "actions";
    gap: 0.4rem;
    padding: 0.85rem 1.1rem 1rem;
  }
  .consent-actions { width: 100% }
  .consent-actions .btn { flex: 1 1 0; justify-content: center }
}
