/* =========================================
   IMPRESSUM-DATENSCHUTZ.CSS
   Seitenspezifische Styles – baut auf style.css auf.
   Aslan Filmwerkstatt – impressum-datenschutz.html

   DESIGNPRINZIP: Rechtstexte, sauber und lesbar.
   Gleiche Struktur wie AGB – cinematisches #1b1919.
   Zwei visuell getrennte Bereiche (Impressum / Datenschutz)
   mit Parallax-Divider als cinematischer Sektionswechsel.

   Erstellt mit Unterstützung von Claude (Anthropic).
   ========================================= */


/* =========================================
   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 (identisch)
   ========================================= */
.hero-sub {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;   /* override #hero { min-height: 100svh } */
  display: block !important;  /* override #hero { display: flex }      */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
  line-height: 0;
}

.hero-bg {
  position: relative;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.55) contrast(1.1);
}
.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);    }
}


/* =========================================
   LEGAL WRAPPER – Hauptbereich
   (gemeinsam für Impressum + Datenschutz)
   ========================================= */
.legal-wrapper {
  max-width: 52rem;
  margin-inline: auto;
  padding: 0 1.25rem;
}


/* =========================================
   SEKTIONS-HEADER (Impressum / Datenschutz)
   Visueller Anker am Beginn jeder Sektion
   ========================================= */
.legal-section-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section-header__title {
  font-family: var(--ff-head);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin: 0;
}

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


/* =========================================
   LEGAL-ARTICLE – Einzelne Absätze
   (identische Struktur wie AGB-Artikel)
   ========================================= */
.legal-article {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* Scroll-Reveal */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.legal-article.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* Überschrift */
.legal-article__heading {
  font-family: var(--ff-head);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  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;
}

/* Nummer/Label über der Überschrift */
.legal-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;
}


/* =========================================
   LEGAL-TEXT – Fließtext in Artikeln
   ========================================= */
.legal-text {
  color: rgba(254, 249, 250, 0.72);
  font-size: 0.93rem;
  line-height: 1.78;
}

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

.legal-text a {
  color: var(--accent);
  word-break: break-all;
}
.legal-text a:hover,
.legal-text a:focus {
  color: var(--accent-2);
}

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

/* Unter-Überschriften im Text */
.legal-text h4 {
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}


/* =========================================
   IMPRESSUM: KONTAKTDATEN-BLOCK
   Hervorgehobener Adress-/Kontaktbereich
   ========================================= */
.legal-contact {
  padding: 1.5rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-contact p {
  color: rgba(254, 249, 250, 0.78);
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 0.3rem 0;
}

.legal-contact strong {
  color: var(--text);
}


/* =========================================
   PARALLAX-DIVIDER
   Cinematischer Sektionswechsel zwischen
   Impressum und Datenschutz.
   Verwendet Datenschutz_Banner.png als
   fixierten Hintergrund.
   ========================================= */
.legal-divider {
  position: relative;
  min-height: clamp(12rem, 28vw, 22rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Fixiertes Hintergrundbild */
.legal-divider__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/Datenschutz_Banner.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

/* Gradient-Overlay für Lesbarkeit */
.legal-divider__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 25, 25, 0.92) 0%,
    rgba(27, 25, 25, 0.55) 40%,
    rgba(27, 25, 25, 0.55) 60%,
    rgba(27, 25, 25, 0.92) 100%
  );
}

/* Inhalt im Divider */
.legal-divider__inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
}

.legal-divider__title {
  font-family: var(--ff-head);
  font-size: clamp(1.4rem, 7vw, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: clamp(0.08em, 1.5vw, 0.35em);
  color: var(--text);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.legal-divider__sub {
  font-family: var(--ff-base);
  font-weight: 100;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(254, 249, 250, 0.55);
  margin: 0;
}

/* Fallback für iOS (background-attachment: fixed
   wird auf mobilen Geräten nicht unterstützt) */
@supports (-webkit-touch-callout: none) {
  .legal-divider__bg {
    background-attachment: scroll;
  }
}


/* =========================================
   DATENSCHUTZ: META-ZEILE + DOWNLOAD
   (analog zur AGB-Meta)
   ========================================= */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-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 (identisch zu AGB) */
.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 (Datenschutz)
   ========================================= */
.legal-toc {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-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;
}

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

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

.legal-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: rgba(254, 249, 250, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.legal-toc__list a:hover,
.legal-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;
}


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

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


/* =========================================
   HINWEIS-BOX (z.B. Streitbeilegung)
   ========================================= */
.legal-notice {
  padding: 1.5rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-notice p {
  color: rgba(254, 249, 250, 0.68);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.4rem 0;
}


/* =========================================
   BACK-TO-TOP FAB
   ========================================= */
.legal-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;
}
.legal-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.legal-fab:hover,
.legal-fab:focus-visible {
  background: var(--accent);
  color: var(--bg-deep);
}


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

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

  .legal-article {
    padding: 3rem 0;
  }
}


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

  .legal-section-header {
    padding: 3rem 0 2rem;
  }

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

  .legal-divider {
    min-height: 20rem;
  }
}


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


/* =========================================
   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;
  }
  .legal-article {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

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

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