/* =========================================
   AGB.CSS
   Seitenspezifische Styles – baut auf style.css auf.
   Aslan Filmwerkstatt – agb.html

   DESIGNPRINZIP: Rechtstexte, sauber und lesbar.
   Hintergrund in cinematischem #1b1919 (wie Videoproduktion).
   Klickbares Inhaltsverzeichnis, elegante Paragraphen-Trenner,
   PDF-Download-CTA.
   ========================================= */


/* =========================================
   GLOBALER OVERFLOW-SCHUTZ
   ========================================= */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
*, *::before, *::after {
  min-width: 0;
}


/* =========================================
   DESIGN-TOKEN OVERRIDE
   ========================================= */
:root {
  --bg:      #1b1919;
  --bg-deep: #1b1919;
  --diag:    clamp(1.5rem, 3.5vw, 4.5rem);
}


/* =========================================
   NAVBAR OVERRIDES – Gleiche Größen wie Startseite
   ========================================= */

header {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

header .brand img {
  width: 68px;
  height: 68px;
}

header .brand {
  position: relative;
  display: inline-block;
  line-height: 0;
}
header .brand::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(48, 48, 48, 0.7) 35%,
    rgba(48, 48, 48, 0.4) 55%,
    transparent 75%
  );
  z-index: -1;
  pointer-events: none;
}

header .nav-toggle {
  width: 38px;
  height: 28px;
}
header .nav-toggle::before { top: 0; }
header .nav-toggle span    { top: 13px; }
header .nav-toggle::after  { bottom: 0; }

header nav {
  padding: 0.9rem 1.25rem;
}


/* =========================================
   HERO – Unterseiten-Variante
   Konsistent mit Fotografie / Gestaltung
   ========================================= */
.hero-sub {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
  line-height: 0;
}

.hero-bg {
  position: relative;
  z-index: 0;
  height: clamp(14.5rem, 52vw, 31rem);
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.58) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 25, 25, 0.05) 0%,
    rgba(27, 25, 25, 0.50) 60%,
    rgba(27, 25, 25, 0.85) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: calc(var(--diag) + 1.5rem);
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  line-height: normal;
  overflow: hidden;
}

.hero-label {
  font-family: var(--ff-base);
  font-weight: 400;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.885em;
  text-transform: uppercase;
  color: rgba(254, 249, 250, 0.65);
  margin: 0 0 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.0rem, 6vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
}
.hero-content h1.fade-in {
  animation: fadeInUp 1.2s ease forwards;
}

.hero-claim {
  font-family: var(--ff-accent);
  font-weight: 400;
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(254, 249, 250, 0.72);
  margin: 0.5rem 0 0;
  overflow: hidden;
}

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


/* =========================================
   AGB WRAPPER – Hauptbereich
   ========================================= */
.agb-wrapper {
  max-width: 52rem;
  margin-inline: auto;
  padding: 0 1.25rem;
}


/* =========================================
   STAND-ZEILE + DOWNLOAD-CTA (Kopfbereich)
   ========================================= */
.agb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agb-meta__date {
  font-family: var(--ff-base);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--tone-4);
  margin: 0;
}

/* Download-Button – spezieller Stil für PDF */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--accent);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-download:hover,
.btn-download:focus {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-download svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}


/* =========================================
   INHALTSVERZEICHNIS
   ========================================= */
.agb-toc {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agb-toc__heading {
  font-family: var(--ff-head);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin: 0 0 1.25rem;
}

.agb-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agb-toc__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.agb-toc__list li:last-child {
  border-bottom: none;
}

.agb-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  text-decoration: none;
  color: rgba(254, 249, 250, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.agb-toc__list a:hover,
.agb-toc__list a:focus {
  color: var(--accent);
  padding-left: 0.5rem;
}

.toc-num {
  font-family: var(--ff-head);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 1.8rem;
}


/* =========================================
   AGB-PARAGRAPHEN
   ========================================= */
.agb-article {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.agb-article.in-view {
  opacity: 1;
  transform: translateY(0);
}

.agb-article:last-of-type {
  border-bottom: none;
}

.agb-article__heading {
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin: 0 0 0.4rem;
  line-height: 1.2;
  scroll-margin-top: 5rem;
}

.agb-article__num {
  display: block;
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}


/* =========================================
   AGB-TEXT – Unterabschnitte
   ========================================= */
.agb-sub {
  margin-top: 1.75rem;
}

.agb-sub__title {
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.agb-text {
  color: rgba(254, 249, 250, 0.72);
  font-size: 0.93rem;
  line-height: 1.78;
}

.agb-text p {
  margin: 0.5rem 0;
}

.agb-text ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.agb-text ol li {
  margin: 0.4rem 0;
  color: rgba(254, 249, 250, 0.72);
  font-size: 0.93rem;
  line-height: 1.7;
}
.agb-text ol li::marker {
  color: var(--accent);
  font-weight: 700;
}


/* =========================================
   CTA-BEREICH (unten)
   ========================================= */
.agb-cta {
  text-align: center;
  padding: 3.5rem 0 4rem;
}

.agb-cta__text {
  font-size: 0.9rem;
  color: rgba(254, 249, 250, 0.55);
  margin: 0 0 1.5rem;
}


/* =========================================
   BACK-TO-TOP FAB
   ========================================= */
.agb-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--ff-base);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease,
              background 0.2s ease, color 0.2s ease;
}
.agb-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.agb-fab:hover,
.agb-fab:focus-visible {
  background: var(--accent);
  color: var(--bg-deep);
}


/* =========================================
   RESPONSIVE – Tablet ≥ 640px
   ========================================= */
@media (min-width: 640px) {
  .agb-wrapper {
    padding: 0 2rem;
  }

  .agb-toc__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .agb-article {
    padding: 3.5rem 0;
  }
}


/* =========================================
   RESPONSIVE – Desktop ≥ 900px
   ========================================= */
@media (min-width: 900px) {
  .agb-wrapper {
    padding: 0 2.5rem;
  }

  .agb-meta {
    padding: 3rem 0 2.5rem;
  }

  .agb-toc {
    padding: 3rem 0;
  }

  .agb-article {
    padding: 4rem 0;
  }
}


/* =========================================
   RESPONSIVE – Kleines Mobil ≤ 420px
   ========================================= */
@media (max-width: 420px) {
  .agb-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------------------------------------------------------
   HERO-LABEL – Mobile / Desktop wie bei den anderen Seiten
   --------------------------------------------------------- */
@media (max-width: 639px) {
  .hero-label {
    letter-spacing: 0.45em;
  }
}

@media (min-width: 911px) {
  .hero-label {
    letter-spacing: 0.54em;
  }
}


/* =========================================
   REDUCED MOTION – Barrierefreiheit
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .hero-content h1 {
    opacity: 1 !important;
  }
  .agb-article {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   HERO-LABEL – gezielte Steuerung je Viewport
   --------------------------------------------------------- */

/* Smartphone */
@media (max-width: 639px) {
  .hero-content .hero-label {
    letter-spacing: 0.63em;
  }
}

/* Tablet / mittlerer Bereich */
@media (min-width: 640px) and (max-width: 910px) {
  .hero-content .hero-label {
    letter-spacing: 0.525em;
  }
}

/* Desktop */
@media (min-width: 911px) {
  .hero-content .hero-label {
    letter-spacing: 0.54em;
  }
}