/* ============================================================================
   OTIT Cookie-Hinweis + Barrierefreiheit
   ============================================================================ */

/* ---- Cookie-Banner ----------------------------------------------------- */
.otit-cc {
  position: fixed;
  inset: auto 0 0 0;
  background: #111827;
  color: #f3f4f6;
  border-top: 3px solid #0d9488;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
  padding: 1rem 1.25rem;
  z-index: 10000;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  animation: otit-cc-slide-up .3s ease-out;
}
.otit-cc.is-visible { display: block; }

.otit-cc__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.otit-cc__text { flex: 1; min-width: 280px; }
.otit-cc__text strong { color: #fff; }
.otit-cc__text a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.otit-cc__text a:hover,
.otit-cc__text a:focus-visible { color: #99f6e4; }

.otit-cc__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.otit-cc__btn {
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .55rem 1.1rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.otit-cc__btn:hover { background: #0b7f74; }
.otit-cc__btn--secondary {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #4b5563;
}
.otit-cc__btn--secondary:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

@keyframes otit-cc-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
  .otit-cc { padding: .85rem 1rem; font-size: 13px; }
  .otit-cc__actions { width: 100%; justify-content: stretch; }
  .otit-cc__btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .otit-cc { animation: none; }
}

/* ---- Universelle Barrierefreiheits-Verbesserungen --------------------- */

/* Sichtbare Skip-Links beim Tab-Fokus (waren oft visuell versteckt) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0d9488;
  color: #fff;
  padding: .65rem 1.2rem;
  z-index: 10001;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Konsistente sichtbare Fokus-Ringe ueberall */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.faq-question:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* Bewegungs-Reduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
