/* ============================================================
   INDICATE — SHARED STYLES
   ============================================================ */

/* Self-hosted fonts — no external request, DSGVO-compliant */
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-neue-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-regular-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-regular-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-bold-latin-ext.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-bold-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-italic-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-italic-latin.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red:      #e00000;
  --red-glow: #ff2200;
  --white:    #f0f0f0;
  --grey:     #888;
  --grey-dim: #333;
  --black:    #000;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Space Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.8rem;
}

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  padding: 14px;
  margin: -14px;
  background: none;
  border: none;
  z-index: 300;
  touch-action: manipulation;
}
.nav-burger span {
  display: block;
  height: 1px;
  transition: transform 0.38s cubic-bezier(0.76,0,0.24,1), opacity 0.28s ease, background 0.28s ease, width 0.28s ease;
}
.nav-burger span:nth-child(1) { width: 44px; background: rgba(255,255,255,0.8); }
.nav-burger span:nth-child(2) { width: 32px; background: rgba(255,255,255,0.45); }
.nav-burger span:nth-child(3) { width: 20px; background: rgba(255,255,255,0.22); }

.nav-burger:hover span:nth-child(1) { background: var(--white); }
.nav-burger:hover span:nth-child(2) { background: rgba(255,255,255,0.7); width: 36px; }
.nav-burger:hover span:nth-child(3) { background: rgba(255,255,255,0.45); width: 28px; }

/* X state */
.nav-burger.open span:nth-child(1) {
  width: 30px; transform: translateY(15px) rotate(45deg);
  background: var(--white);
}
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) {
  width: 30px; transform: translateY(-15px) rotate(-45deg);
  background: var(--white);
}

/* ── DROPDOWN MENÜ ── */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  z-index: 250;
  width: 260px;
  padding: 5.8rem 2.6rem 2.4rem 2.8rem;
  background: transparent;
  border-left: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Hauptnavigation */
.nav-overlay-main {
  display: flex;
  flex-direction: column;
}
.nav-overlay-main a {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  line-height: 1;
  padding: 0.6rem 0;
  position: relative;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.nav-overlay-main a:hover { color: var(--white); padding-left: 0.6rem; }
.nav-overlay-main a.current { color: rgba(255,255,255,0.9); }

/* Roter Akzent-Strich links beim Hover */
.nav-overlay-main a::before {
  content: '';
  position: absolute;
  left: -2.6rem; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px;
  background: var(--red);
  box-shadow: 0 0 6px rgba(224,0,0,0.7);
  transition: width 0.18s ease;
}
.nav-overlay-main a:hover::before { width: 1.8rem; }

/* Trennlinie */
.nav-overlay-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.8rem 0;
}

/* Legal-Links */
.nav-overlay-legal {
  display: flex;
  flex-direction: column;
}
.nav-overlay-legal a {
  font-size: 0.48rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.28);
  padding: 0.38rem 0;
  transition: color 0.18s ease;
}
.nav-overlay-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── PAGE TRANSITION OVERLAY ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.in  { clip-path: inset(0 0% 0 0);   pointer-events: all; }
.page-transition.out { clip-path: inset(0 0% 0 100%); }

.page-transition-label {
  font-family: var(--font-head);
  font-size: 10vw;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.08;
  user-select: none;
}

/* ── SECTION BASE ── */
.section {
  padding: 8rem 2.8rem;
  max-width: 1340px;
  margin: 0 auto;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--red); color: #fff; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 600px) {
  .nav { padding: 1rem 1.4rem; }
  .nav-overlay { width: 220px; }
}

/* ── TOUCH TARGETS (mobile accessibility) ── */
@media (pointer: coarse) {
  .legal-bar a { min-height: 44px; display: flex; align-items: center; }
  #pw-submit { touch-action: manipulation; min-height: 50px; }
}

/* ══════════════════════════════════════════════════════════
   PASSWORD OVERLAY
══════════════════════════════════════════════════════════ */

html.pw-lock body { visibility: hidden; }

#pw-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}
/* Subtle red radial glow + faint scanlines */
#pw-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(180,0,0,0.1) 0%, transparent 58%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none; z-index: 0;
  animation: pw-bg-breathe 6s ease-in-out infinite;
}
/* Top red hairline */
#pw-overlay::after {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,0,0,0.8) 25%, rgba(224,0,0,0.8) 75%, transparent);
  z-index: 1;
}
@keyframes pw-bg-breathe {
  0%, 100% { opacity: .7; }
  50%       { opacity: 1; }
}

#pw-overlay.pw-exit { clip-path: inset(0 0 0 100%); }

.pw-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 360px; padding: 0 2rem;
}

/* ── Logo ── */
.pw-logo { margin-bottom: 1.8rem; display: flex; justify-content: center; }
.pw-logo-svg {
  width: clamp(160px, 26vw, 230px); height: auto; display: block;
  animation: pw-logo-breathe 3s ease-in-out infinite;
}
@keyframes pw-logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,255,255,.1))  drop-shadow(0 0 20px rgba(200,0,0,.35)); }
  50%       { filter: drop-shadow(0 0 12px rgba(255,255,255,.3)) drop-shadow(0 0 50px rgba(220,0,0,.75)) drop-shadow(0 0 90px rgba(180,0,0,.4)); }
}

/* ── Brand name block ── */
.pw-brand { text-align: center; margin-bottom: 2rem; }
.pw-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.8rem, 11vw, 6.5rem);
  letter-spacing: 0.06em; line-height: .92;
  color: #f0f0f0; margin: 0 0 .55rem;
}
.pw-brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: .44rem; letter-spacing: .55em;
  color: #e00000; display: block;
}

/* ── Divider ── */
.pw-divider {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; margin-bottom: 2.2rem;
}
.pw-div-line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.pw-div-text {
  font-family: 'Space Mono', monospace;
  font-size: .38rem; letter-spacing: .45em; color: rgba(255,255,255,.22);
  white-space: nowrap;
}

/* ── Form ── */
.pw-form {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.6rem; width: 100%;
}

#pw-input {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem; letter-spacing: .6em;
  text-align: center; text-transform: uppercase;
  padding: .6rem .5rem; width: 100%;
  outline: none; transition: border-color .25s;
  caret-color: #e00000;
}
#pw-input:focus { border-bottom-color: #e00000; }
#pw-input::placeholder { color: rgba(255,255,255,.13); letter-spacing: .45em; }

#pw-submit {
  font-family: 'Space Mono', monospace;
  font-size: .58rem; letter-spacing: .5em;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  padding: .85rem 3rem; cursor: pointer;
  transition: border-color .25s, background .25s, letter-spacing .25s;
  position: relative; overflow: hidden;
}
#pw-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: #e00000;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(0.16,1,.3,1);
  z-index: 0;
}
#pw-submit:hover::before { transform: scaleX(1); }
#pw-submit span, #pw-submit { position: relative; z-index: 1; }
#pw-submit:hover { border-color: #e00000; letter-spacing: .6em; }

/* ── Error + tagline ── */
@keyframes pw-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.pw-shake { animation: pw-shake .38s ease; }

.pw-error {
  font-family: 'Space Mono', monospace;
  font-size: .48rem; letter-spacing: .35em;
  color: #e00000; margin-top: 1.4rem;
  opacity: 0; transition: opacity .2s;
}
.pw-error--visible { opacity: 1; }

.pw-tagline {
  font-family: 'Space Mono', monospace;
  font-size: .38rem; letter-spacing: .4em;
  color: rgba(255,255,255,.12);
  margin-top: 3rem;
}

/* ── Legal ── */
.pw-legal {
  position: absolute; bottom: 1.8rem; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  z-index: 2;
}
.pw-legal a {
  font-family: 'Space Mono', monospace;
  font-size: .38rem; letter-spacing: .38em;
  color: rgba(255,255,255,.18); transition: color .2s;
}
.pw-legal a:hover { color: rgba(255,255,255,.55); }
.pw-legal-sep { width: 1px; height: 7px; background: rgba(255,255,255,.1); }

/* ── LEGAL FOOTER BAR ── */
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.8rem 2.8rem;
}
.legal-bar a {
  font-family: var(--font-body);
  font-size: 0.44rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.legal-bar a:hover { color: rgba(255,255,255,0.55); }
.legal-bar-sep {
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.08);
}

/* ── LEGAL PAGE CONTENT ── */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 10rem 2.8rem 8rem;
}
.legal-page-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.legal-page-sub {
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  color: var(--red);
  display: block;
  margin-bottom: 4rem;
}
.legal-rule {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 4rem;
}
.legal-section {
  margin-bottom: 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
}
.legal-section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.legal-section p,
.legal-section address {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  line-height: 2.2;
  color: rgba(255,255,255,0.55);
  font-style: normal;
}
.legal-section a {
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-section a:hover { border-color: var(--red); }
.legal-section .legal-label {
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.25);
  display: block;
  margin-bottom: 0.3rem;
  margin-top: 1.2rem;
}
.legal-section .legal-label:first-child { margin-top: 0; }
.legal-note {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  line-height: 2;
  color: rgba(255,255,255,0.25);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
