/* nordnung.tel (Website 1) - consent banner styling.
 * Ported 1:1 from the Website-4 (Lotta) cookie tool, but fully namespaced
 * under .nt-consent-root with self-contained design tokens so it never
 * collides with the app's Tailwind layer. Blurry, dimmed backdrop included.
 */
.nt-consent-root {
  --nt-ink: #061625;
  --nt-ink-soft: #2a3656;
  --nt-ink-muted: #4f5f7e;
  --nt-line: #e6e9f2;
  --nt-line-strong: #c9cee0;
  --nt-bg: #fbfaf7;
  --nt-paper: #ffffff;
  --nt-teal-700: #007a91;
  --nt-teal-600: #0099b2;
  --nt-teal-500: #00b8d3;
  --nt-teal-50: #e0f6fa;
  --nt-orange-500: #fe7b13;
  --nt-orange-600: #ee6e0c;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--nt-ink);
  line-height: 1.55;
}
.nt-consent-root *,
.nt-consent-root *::before,
.nt-consent-root *::after {
  box-sizing: border-box;
}
.nt-consent-root[hidden] {
  display: none;
}

@keyframes nt-consent-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nt-consent-pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- Buttons ---------- */
.nt-consent-root .nt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.nt-consent-root .nt-btn-primary {
  background: var(--nt-orange-500);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 22px -6px rgba(254, 123, 19, 0.55);
}
.nt-consent-root .nt-btn-primary:hover {
  background: var(--nt-orange-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(254, 123, 19, 0.65);
}
.nt-consent-root .nt-btn-ghost {
  background: transparent;
  color: var(--nt-ink);
  border-color: var(--nt-line-strong);
}
.nt-consent-root .nt-btn-ghost:hover {
  border-color: var(--nt-ink);
}

/* ---------- Banner (first view) ---------- */
.nt-consent-banner {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 22, 37, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: nt-consent-fade-in 0.25s ease;
}
.nt-consent-banner[hidden] {
  display: none;
}
.nt-consent-banner-card {
  width: min(448px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--nt-line);
  border-radius: 14px;
  background: var(--nt-paper);
  box-shadow: 0 40px 100px -20px rgba(7, 22, 37, 0.45);
  animation: nt-consent-pop-in 0.35s cubic-bezier(0.32, 1.4, 0.55, 1);
}
.nt-consent-banner-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.nt-consent-cookie-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 184, 211, 0.12);
  color: var(--nt-teal-700);
  flex-shrink: 0;
}
.nt-consent-banner h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 750;
  color: var(--nt-ink);
}
.nt-consent-banner p {
  margin: 0 0 16px;
  color: var(--nt-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}
.nt-consent-banner p a,
.nt-consent-card .nt-modal-sub a,
.nt-modal-foot a {
  color: var(--nt-teal-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nt-consent-banner-actions {
  display: flex;
  gap: 10px;
}
.nt-consent-banner-actions .nt-btn,
.nt-consent-action-row .nt-btn {
  flex: 1;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}

/* ---------- Settings dialog ---------- */
.nt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  background: rgba(6, 22, 37, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: nt-consent-fade-in 0.25s ease;
}
.nt-modal-backdrop[hidden] {
  display: none;
}
.nt-modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 100px -20px rgba(7, 22, 37, 0.45);
  animation: nt-consent-pop-in 0.35s cubic-bezier(0.32, 1.4, 0.55, 1);
  position: relative;
}
.nt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nt-bg);
  border: 1px solid var(--nt-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nt-ink-soft);
  transition: all 0.2s;
  cursor: pointer;
}
.nt-modal-close:hover {
  background: var(--nt-ink);
  color: #fff;
  border-color: var(--nt-ink);
}
.nt-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--nt-teal-700);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nt-modal-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.nt-modal-sub {
  color: var(--nt-ink-muted);
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.nt-modal-foot {
  font-size: 12px;
  color: var(--nt-ink-muted);
  text-align: center;
  margin-top: 14px;
}

/* ---------- Categories ---------- */
.nt-consent-category-list {
  display: grid;
  gap: 12px;
  padding-right: 2px;
}
.nt-consent-category-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--nt-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nt-consent-category-card:hover {
  border-color: rgba(0, 184, 211, 0.42);
  box-shadow: 0 14px 30px -24px rgba(6, 22, 37, 0.35);
}
.nt-consent-category-card.is-required {
  cursor: default;
  background: var(--nt-bg);
}
.nt-consent-category-copy {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.nt-consent-category-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--nt-ink);
  font-size: 15px;
  line-height: 1.25;
}
.nt-consent-category-copy small {
  display: block;
  margin-bottom: 6px;
  color: var(--nt-ink-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nt-consent-category-copy em {
  display: block;
  color: var(--nt-ink-muted);
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.48;
}
@media (max-width: 720px) {
  .nt-consent-category-copy em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  .nt-consent-category-copy em.is-expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .nt-consent-category-copy em::after {
    content: " Mehr";
    color: var(--nt-teal-700);
    font-weight: 700;
    font-size: 12px;
  }
  .nt-consent-category-copy em.is-expanded::after {
    content: " Weniger";
  }
}
.nt-consent-category-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--nt-bg);
  color: var(--nt-ink-muted);
}
.nt-consent-switch-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}
.nt-consent-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nt-consent-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d8dde6;
  transition: background 0.2s;
  position: relative;
}
.nt-consent-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(6, 22, 37, 0.16);
  transition: transform 0.2s;
}
.nt-consent-switch-input:checked + .nt-consent-switch {
  background: var(--nt-teal-600);
}
.nt-consent-switch-input:checked + .nt-consent-switch::after {
  transform: translateX(20px);
}
.nt-consent-switch-input:disabled + .nt-consent-switch {
  background: var(--nt-ink-muted);
  opacity: 0.72;
}
.nt-consent-action-row {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--nt-line);
}

@media (max-width: 720px) {
  .nt-consent-banner {
    padding: 16px;
  }
  .nt-modal-backdrop {
    padding: 16px;
  }
  .nt-modal-card {
    padding: 24px;
  }
  .nt-consent-banner-actions,
  .nt-consent-action-row {
    flex-direction: column;
  }
  .nt-consent-category-card {
    gap: 12px;
    padding: 14px;
  }
}
