/* ==========================================================================
   forensik.io — Startseite
   ========================================================================== */

/* -------------------------------------------------------------------- */
/* Beweiskette — Signature-Element: fixe Protokoll-Leiste am linken Rand  */
/* -------------------------------------------------------------------- */
.beweiskette {
  position: fixed;
  left: clamp(0.75rem, 2vw, 2rem);
  top: 0;
  height: 100vh;
  width: 1.6rem;
  z-index: 20;
  display: none;
  pointer-events: none;
}

@media (min-width: 1240px) {
  .beweiskette {
    display: block;
  }
}

.beweiskette__track {
  position: absolute;
  left: 50%;
  top: 8vh;
  bottom: 8vh;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.beweiskette__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--accent), var(--accent-bright));
  transition: height 0.1s linear;
}

.beweiskette__nodes {
  position: absolute;
  inset: 8vh 0;
}

.beweiskette__node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.beweiskette__node.is-active {
  background: var(--accent);
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(201, 154, 78, 0.15);
}

.beweiskette__label {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.beweiskette__node.is-active .beweiskette__label {
  opacity: 1;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                   */
/* -------------------------------------------------------------------- */
.hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at top, rgba(201, 154, 78, 0.09), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(233, 228, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 228, 214, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__grid > * {
  min-width: 0;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 46rem;
}

.hero__inner > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.28s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.4s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__chip {
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ---- Hero-Panel: Dokument-Skizze + Hex-Scan + Tabellenvorschau ---- */
.hero__panel {
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
}

@media (max-width: 960px) {
  .hero__panel {
    max-width: 30rem;
    margin-inline: auto;
  }
}

.doc-sketch {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.doc-sketch__stamp-ring {
  animation: stamp-pulse 3.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes stamp-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hex-strip {
  position: relative;
  margin-top: 0.9rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  word-break: break-all;
}

.hex-strip__label {
  color: var(--text-dim);
  margin-right: 0.4rem;
}

.hex-strip__value {
  color: var(--accent-bright);
  letter-spacing: 0.12em;
}

.hex-strip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 183, 104, 0.35), transparent);
  animation: hex-scan 3.6s linear infinite;
}

@keyframes hex-scan {
  0% { left: -30%; }
  100% { left: 100%; }
}


/* -------------------------------------------------------------------- */
/* Teaser-Figur (Startseite: Newcomer/Lagebild-Log-Optik)                 */
/* -------------------------------------------------------------------- */
.teaser--reverse .teaser__figure {
  order: -1;
}

.teaser__figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teaser__figure-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.teaser__figure-log span {
  display: block;
}

.teaser__figure-log .is-live {
  color: var(--accent-bright);
}

/* -------------------------------------------------------------------- */
/* Newsletter                                                             */
/* -------------------------------------------------------------------- */
.newsletter {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.newsletter__copy {
  max-width: 26rem;
}

.newsletter__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  min-width: 18rem;
  max-width: 26rem;
}

.newsletter-form__row {
  display: flex;
  gap: 0.7rem;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-form input:focus-visible {
  border-color: var(--accent);
}

.newsletter-form small {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.newsletter-form small a {
  color: var(--text-muted);
}

/* -------------------------------------------------------------------- */
/* Über den Initiator                                                     */
/* -------------------------------------------------------------------- */
.ueber {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 700px) {
  .ueber {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---- Profil-Karte: gestaltete Alternative statt Foto ---- */
.profile-card {
  position: relative;
  width: 9.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-elevated-2));
  padding: 1.1rem 1rem 0.9rem;
  overflow: hidden;
}

.profile-card__mark {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--accent-bright);
  position: relative;
}

.profile-card__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--border);
  border-radius: 3px;
}

.profile-card__scan {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: badge-scan 2.8s ease-in-out infinite;
}

@keyframes badge-scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(9.5rem); opacity: 0; }
}

.profile-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 1rem;
  margin-top: 0.75rem;
}

.profile-card__bars span {
  flex: 1;
  background: var(--text-dim);
  opacity: 0.7;
}

/* Balkenhöhen im CSS statt als style-Attribute — hält die Seite
   kompatibel mit einer strikten Content-Security-Policy (style-src 'self') */
.profile-card__bars span:nth-child(1) { height: 40%; }
.profile-card__bars span:nth-child(2) { height: 90%; }
.profile-card__bars span:nth-child(3) { height: 60%; }
.profile-card__bars span:nth-child(4) { height: 100%; }
.profile-card__bars span:nth-child(5) { height: 30%; }
.profile-card__bars span:nth-child(6) { height: 70%; }
.profile-card__bars span:nth-child(7) { height: 50%; }
.profile-card__bars span:nth-child(8) { height: 85%; }
.profile-card__bars span:nth-child(9) { height: 45%; }

.profile-card__caption {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.ueber__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.ueber__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.9rem;
  display: block;
}

.ueber p {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 0.6rem;
}

.ueber a.link-pumax {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------- */
/* "Neu diese Woche" — Aktualitäts-Block unter dem Hero                   */
/* -------------------------------------------------------------------- */
.news-strip-section {
  padding-block: 0;
}

.news-strip {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.1rem 1.4rem;
}

.news-strip__head {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.7rem;
}

.news-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-strip__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-block: 0.3rem;
  line-height: 1.55;
}

.news-strip__list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.news-strip__list a:hover {
  text-decoration-color: var(--accent-bright);
}

.news-strip__date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-right: 0.5rem;
}
