/**
 * Nutzungsbedingungen page – refined document UI
 * Scoped to .page-nutzungsbedingungen only (content text unchanged)
 */

.page-nutzungsbedingungen {
  --nb-ink: #10284b;
  --nb-ink-soft: #374151;
  --nb-muted: #6b7280;
  --nb-line: #e6ebe8;
  --nb-green: var(--color-green, #67c23a);
  --nb-green-soft: rgba(103, 194, 58, 0.1);
  --nb-surface: #f6faf4;

  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(103, 194, 58, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 30% at 0% 40%, rgba(16, 40, 75, 0.04), transparent 50%),
    #ffffff;
}

.page-nutzungsbedingungen .site-footer {
  background: #ffffff;
}

@keyframes nbFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.nb-hero {
  --nb-hero-bg-pos-x: 78%;
  --nb-hero-bg-pos-y: 42%;

  position: relative;
  width: 100%;
  min-height: clamp(280px, 34vh, 380px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.nb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/home/support-hero.png");
  background-size: cover;
  background-position: var(--nb-hero-bg-pos-x) var(--nb-hero-bg-pos-y);
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.02);
  animation: nbFadeIn 1s ease both;
}

.nb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 32%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.45) 62%,
    rgba(255, 255, 255, 0.12) 74%,
    rgba(255, 255, 255, 0) 86%
  );
  z-index: 1;
  pointer-events: none;
}

.nb-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.nb-hero__content {
  max-width: 560px;
  animation: nbFadeUp 0.7s ease both;
}

.nb-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.nb-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nb-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nb-hero__breadcrumb-link:hover {
  color: var(--color-green-dark, #58a832);
}

.nb-hero__breadcrumb-sep {
  color: #9ca3af;
}

.nb-hero__breadcrumb-current {
  color: var(--nb-ink);
  font-weight: 600;
}

.nb-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-green);
}

.nb-hero__kicker-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nb-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--nb-ink);
}

.nb-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--nb-muted);
}

.nb-hero__meta {
  display: inline-block;
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(103, 194, 58, 0.22);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--nb-ink-soft);
  box-shadow: 0 8px 24px rgba(16, 40, 75, 0.04);
}

/* ==========================================================================
   Document shell
   ========================================================================== */
.nb-doc {
  position: relative;
  z-index: 2;
  padding: 40px 0 96px;
  background: transparent;
}

.nb-doc__panel {
  position: relative;
  margin-top: 0;
  padding: 40px 36px 48px;
  border: 1px solid var(--nb-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(16, 40, 75, 0.06);
  animation: nbFadeUp 0.75s ease 0.12s both;
}

.nb-doc__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--nb-green), rgba(103, 194, 58, 0.15));
}

.nb-doc__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}

/* Intro callout */
.nb-doc__intro {
  position: relative;
  margin: 0 0 40px;
  padding: 22px 22px 22px 26px;
  border-radius: 14px;
  background: var(--nb-surface);
  border: 1px solid rgba(103, 194, 58, 0.18);
}

.nb-doc__intro::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--nb-green);
}

.nb-doc__intro p {
  margin: 0 0 12px;
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--nb-ink-soft);
}

.nb-doc__intro p:last-child {
  margin-bottom: 0;
}

/* Chapter jump – denser for many AGB sections */
.nb-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.nb-chapters a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--nb-line);
  background: #ffffff;
  text-decoration: none;
  color: var(--nb-ink);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nb-chapters a:hover {
  border-color: rgba(103, 194, 58, 0.45);
  background: var(--nb-green-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 40, 75, 0.05);
}

.nb-chapters__letter {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nb-green-soft);
  color: var(--nb-green);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.nb-chapters__label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nb-ink-soft);
}

/* Sections */
.nb-section {
  position: relative;
  margin: 0 0 28px;
  padding: 20px 20px 20px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  scroll-margin-top: 96px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.nb-section:hover {
  border-color: var(--nb-line);
  background: rgba(246, 250, 244, 0.55);
  box-shadow: 0 10px 28px rgba(16, 40, 75, 0.04);
}

.nb-section__title {
  position: relative;
  margin: 0 0 14px;
  padding-left: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nb-ink);
}

.nb-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 3px;
  background: var(--nb-green);
}

.nb-section__subtitle {
  margin: 18px 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nb-ink);
}

.nb-section__subtitle:first-of-type {
  margin-top: 10px;
}

.nb-section p {
  margin: 0 0 12px;
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--nb-ink-soft);
}

.nb-section p:last-child {
  margin-bottom: 0;
}

.nb-section a {
  color: var(--nb-ink);
  text-decoration: underline;
  text-decoration-color: rgba(103, 194, 58, 0.45);
  text-underline-offset: 3px;
  word-break: break-word;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.nb-section a:hover {
  color: var(--nb-green);
  text-decoration-color: var(--nb-green);
}

.nb-list {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--nb-ink-soft);
}

.nb-list li {
  position: relative;
  padding-left: 1.15rem;
}

.nb-list li + li {
  margin-top: 6px;
}

.nb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nb-green);
  box-shadow: 0 0 0 3px var(--nb-green-soft);
}

/* Numbered clauses */
.nb-clauses {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--nb-ink-soft);
}

.nb-clauses > li + li {
  margin-top: 10px;
}

.nb-clauses .nb-list {
  margin-top: 8px;
  margin-bottom: 0;
}

.nb-closing {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--nb-line);
}

.nb-closing p {
  margin: 0 0 12px;
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--nb-ink-soft);
}

.nb-closing p:last-child {
  margin-bottom: 0;
}

.nb-closing a {
  color: var(--nb-ink);
  text-decoration: underline;
  text-decoration-color: rgba(103, 194, 58, 0.45);
  text-underline-offset: 3px;
  word-break: break-word;
}

.nb-closing a:hover {
  color: var(--nb-green);
  text-decoration-color: var(--nb-green);
}

/* Part dividers */
.nb-part {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 22px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--nb-ink);
  scroll-margin-top: 96px;
}

.nb-part::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 194, 58, 0.45), transparent);
}

.nb-updated {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nb-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nb-muted);
}


/* Info cards (Anbieter / Kontakt / Register) */
.nb-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}

.nb-info__card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 16px;
  border: 1px solid var(--nb-line);
  border-radius: 14px;
  background: #ffffff;
}

.nb-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nb-green-soft);
  color: var(--nb-green);
}

.nb-info__icon svg {
  width: 20px;
  height: 20px;
}

.nb-info__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nb-green);
}

.nb-info__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--nb-ink-soft);
}

.nb-info__body a {
  color: var(--nb-ink);
  text-decoration: underline;
  text-decoration-color: rgba(103, 194, 58, 0.45);
  text-underline-offset: 2px;
  word-break: break-word;
}

.nb-info__body a:hover {
  color: var(--nb-green);
}

.nb-notice {
  margin: 28px 0 0;
  padding: 18px 18px 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(16, 40, 75, 0.12);
  background: linear-gradient(135deg, rgba(16, 40, 75, 0.04), rgba(103, 194, 58, 0.06));
  position: relative;
}

.nb-notice::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--nb-ink);
}

.nb-notice__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nb-ink);
}

.nb-notice__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--nb-ink-soft);
}
@media (max-width: 768px) {
  .page-nutzungsbedingungen {
    overflow-x: clip;
  }

  .nb-info {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .nb-notice {
    padding: 16px 14px 16px 18px;
  }


  .nb-hero {
    min-height: 0;
    align-items: flex-start;
  }

  .nb-hero::after {
    opacity: 0.28;
    background-position: 88% 42%;
    background-size: cover;
    transform: none;
  }

  .nb-hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.97) 48%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .nb-hero__container {
    padding: 24px 16px 20px;
  }

  .nb-hero__content {
    max-width: 100%;
  }

  .nb-hero__breadcrumb {
    margin-bottom: 18px;
    gap: 6px;
    font-size: 0.8125rem;
  }

  .nb-hero__kicker {
    margin-bottom: 10px;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .nb-hero__title {
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 7.5vw, 2.15rem);
    line-height: 1.15;
  }

  .nb-hero__lead {
    max-width: 100%;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .nb-hero__meta {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 0.8125rem;
  }

  .nb-doc {
    padding: 24px 0 64px;
  }

  .nb-doc .container {
    padding-inline: 16px;
  }

  .nb-doc__panel {
    margin-top: 0;
    padding: 24px 16px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(16, 40, 75, 0.05);
  }

  .nb-doc__panel::before {
    left: 16px;
    right: 16px;
  }

  .nb-doc__inner {
    max-width: 100%;
  }

  .nb-doc__intro {
    margin-bottom: 28px;
    padding: 16px 16px 16px 20px;
    border-radius: 12px;
  }

  .nb-doc__intro p,
  .nb-section p,
  .nb-list,
  .nb-clauses,
  .nb-closing p {
    font-size: 0.9375rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .nb-chapters {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 32px;
  }

  .nb-chapters a {
    align-items: center;
    min-height: 48px;
    padding: 12px 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .nb-chapters a:hover {
    transform: none;
    box-shadow: none;
  }

  .nb-chapters a:active {
    border-color: rgba(103, 194, 58, 0.45);
    background: var(--nb-green-soft);
  }

  .nb-chapters__label {
    font-size: 0.8125rem;
  }

  .nb-section {
    margin-bottom: 16px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nb-section:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .nb-section__title {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .nb-section__subtitle {
    font-size: 0.875rem;
  }

  .nb-part {
    display: block;
    margin: 32px 0 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    scroll-margin-top: 88px;
  }

  .nb-part::after {
    display: none;
  }

  .nb-updated {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .nb-hero__container {
    padding: 20px 14px 16px;
  }

  .nb-doc {
    padding: 20px 0 56px;
  }

  .nb-doc .container {
    padding-inline: 12px;
  }

  .nb-doc__panel {
    padding: 20px 12px 24px;
    border-radius: 14px;
  }

  .nb-doc__intro {
    padding: 14px 14px 14px 18px;
  }

  .nb-hero__title {
    font-size: clamp(1.6rem, 8vw, 1.9rem);
  }

  .nb-chapters__letter {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-hero::after,
  .nb-hero__content,
  .nb-doc__panel {
    animation: none;
  }

  .nb-chapters a,
  .nb-section {
    transition: none;
  }
}
