/* ============================================================
   Cookie Banner – Frontpage Style
   (Inter font, slate/voran-Farbpalette, Glass-Card-Look)
   ============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  #cookie-banner { padding: 1.5rem; }
}

.cookie-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(30, 41, 90, 0.1), 0 0 20px 0 rgba(30, 41, 90, 0.02);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }
}

.cookie-banner-text { flex-grow: 1; }

.cookie-banner-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text h4 .cookie-icon { color: #f59e0b; flex-shrink: 0; }
.cookie-banner-text h4 .cookie-icon svg { width: 1.25rem; height: 1.25rem; }

.cookie-banner-text p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: #3b62ff;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover { color: #1e295a; }

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) { .cookie-banner-buttons { width: auto; } }

.cookie-banner-btn {
  flex-grow: 1;
  padding: 0.625rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

@media (min-width: 768px) { .cookie-banner-btn { flex-grow: 0; } }

.cookie-banner-btn-accept {
  background: #1e295a;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(30, 41, 90, 0.2);
}

.cookie-banner-btn-accept:hover { background: #3b62ff; }
.cookie-banner-btn-accept:active { transform: scale(0.98); }


/* ============================================================
   Settings Widget – Frontpage Style
   ============================================================ */

.settings-wrapper {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.settings-menu {
  display: none;
  width: 288px;
  transform-origin: bottom left;
}

.settings-menu.is-open {
  display: block;
  animation: fpSettingsSlideUp 0.3s ease-out forwards;
}

@keyframes fpSettingsSlideUp {
  0%   { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.settings-menu-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -10px rgba(30, 41, 90, 0.1), 0 0 20px 0 rgba(30, 41, 90, 0.02);
  overflow: hidden;
}

.settings-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background: rgba(248, 250, 252, 0.8);
}

.settings-menu-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-menu-title svg { width: 1rem; height: 1rem; color: #64748b; }

.settings-menu-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.settings-menu-close:hover { color: #475569; }

.settings-menu-body { padding: 1rem; }

.settings-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.settings-cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.settings-cookie-row.is-disabled { opacity: 0.55; cursor: not-allowed; }

.settings-cookie-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.settings-toggle {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
  transition: background 0.2s;
  flex-shrink: 0;
}

.settings-toggle.is-on { background: #3b62ff; }

.settings-toggle-dot {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.settings-toggle.is-on .settings-toggle-dot { transform: translateX(1.25rem); }

.settings-cookie-info {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 300 !important;
  color: #64748b !important;
  padding: 0.5rem 0 !important;
  line-height: 1.4 !important;
}

/* Language switcher row */
.settings-lang-row {
  display: flex;
  gap: 0.5rem;
}

.settings-lang-btn {
  flex: 1;
  padding: 0.375rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.settings-lang-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.settings-lang-btn.is-active {
  background: #1e295a;
  color: #fff;
  border-color: #1e295a;
}

.settings-menu-footer {
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(241, 245, 249, 0.8);
}

.settings-save-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  background: #1e295a;
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px -1px rgba(30, 41, 90, 0.2);
}

.settings-save-btn:hover { background: #3b62ff; }
.settings-save-btn:active { transform: scale(0.98); }

.settings-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #1e295a;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(30, 41, 90, 0.2), 0 4px 6px -2px rgba(30, 41, 90, 0.1);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-trigger:hover {
  background: #3b62ff;
  transform: scale(1.05);
}

.settings-trigger.is-open {
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  box-shadow: 0 4px 6px -1px rgba(30, 41, 90, 0.1);
}

.settings-trigger svg { width: 1.25rem; height: 1.25rem; }

.settings-trigger .icon-close { display: none; }
.settings-trigger.is-open .icon-settings { display: none; }
.settings-trigger.is-open .icon-close { display: block; }
