/* =========================================================
   AKTE 1202 – Nachlassakte Haumer
   Neon / Cyber styling (matches INTERWEB NEON PROTOCOL)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');

:root {
  --neon-cyan:   #00f0ff;
  --neon-pink:   #ff00cc;
  --neon-red:    #ff3366;
  --bg-dark:     #050508;
  --card-bg:     rgba(10, 10, 18, 0.94);
  --ink:         #e0f0ff;
  --muted:       #7a9bb0;
  --border:      rgba(0, 240, 255, 0.35);
}

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.55;
  color: var(--ink);
  background: #050508;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 2.5rem 1rem 4rem;
  min-height: 100vh;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Cover ---------- */

.cover {
  background: linear-gradient(145deg, #0f101a 0%, #08080f 100%);
  border: 1px solid var(--neon-cyan);
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.25),
    inset 0 0 60px rgba(0, 240, 255, 0.06);
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 2.75rem;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 240, 255, 0.035) 51%
  );
  background-size: 100% 7px;
  pointer-events: none;
  animation: scan 3.5s linear infinite;
}

@keyframes scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 220px; }
}

.cover h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0f0ff;
  text-shadow:
    0 0 8px  #00f0ff,
    0 0 20px #00f0ff,
    0 0 40px #00f0ff;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.cover .number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-top: 1.5rem;
  color: #ff00cc;
  text-shadow:
    0 0 8px  #ff00cc,
    0 0 18px #ff00cc;
  position: relative;
  z-index: 1;
}

.cover .subtitle {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* ---------- Document card ---------- */

.doc {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.18);
  margin-bottom: 2.75rem;
  padding: 2.5rem 2.8rem 2.2rem;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc:hover {
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.32);
  border-color: #ff00cc;
}

.page-label {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.68rem;
  color: rgba(0, 240, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 2px solid var(--neon-cyan);
  padding-bottom: 1rem;
  margin-bottom: 1.7rem;
}

.court-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neon-cyan);
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.court-name small {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-shadow: none;
}

.meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  flex-shrink: 0;
}

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

.meta .hint {
  font-size: 0.72rem;
  display: block;
  margin-top: 3px;
  color: rgba(0, 240, 255, 0.5);
}

/* ---------- Badge ---------- */

.badge {
  display: inline-block;
  background: rgba(255, 0, 204, 0.12);
  color: #ff00cc;
  border: 1px solid rgba(255, 0, 204, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 0, 204, 0.5);
}

/* ---------- Recipient ---------- */

.recipient {
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.recipient .name {
  font-weight: 600;
  color: #e0f0ff;
}

.recipient .address-line {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Subject ---------- */

.subject {
  margin: 0 0 1.3rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e0f0ff;
}

.subject .label {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* ---------- Body ---------- */

.salutation {
  margin-bottom: 1rem;
  color: #c8e0f0;
}

.body p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: #c8e0f0;
}

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

.body strong {
  color: #00f0ff;
  font-weight: 600;
}

/* ---------- Closing / Signature ---------- */

.closing {
  margin-top: 2rem;
}

.closing .regards {
  margin-bottom: 2.2rem;
  color: #c8e0f0;
}

.signature .name {
  font-weight: 600;
  color: #e0f0ff;
}

.signature .role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.electronic-note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  border-left: 2px solid rgba(0, 240, 255, 0.3);
  padding-left: 0.8rem;
}

/* ---------- Footer / Privacy ---------- */

.footer-note {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.court-address {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Envelope ---------- */

.envelope {
  background: rgba(8, 10, 18, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  color: var(--muted);
  position: relative;
}

.envelope .title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  margin-bottom: 1.2rem;
}

.envelope .stamp {
  display: inline-block;
  border: 1px solid rgba(0, 240, 255, 0.5);
  background: rgba(0, 20, 30, 0.6);
  padding: 0.7rem 1.3rem;
  margin: 0.6rem 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  border-radius: 4px;
  color: #a0d0e8;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.envelope .postmark {
  font-weight: 600;
  color: #00f0ff;
  margin: 0.35rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
}

.envelope .note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Redaction bar ---------- */

.redacted {
  display: inline-block;
  background: #111;
  color: transparent;
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 2px;
  padding: 0 0.6em;
  user-select: none;
  min-width: 5.8em;
  height: 1.1em;
  vertical-align: middle;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.25);
}

.redacted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 51, 102, 0.12) 3px,
    rgba(255, 51, 102, 0.12) 6px
  );
}

/* ---------- Section divider label ---------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(0, 240, 255, 0.55);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.section-tag::before {
  content: '';
  width: 18px;
  height: 2px;
  background: linear-gradient(to right, #00f0ff, transparent);
}

/* ---------- Print ---------- */

@media print {
  body {
    background: white;
    color: #111;
    padding: 0;
    font-size: 11pt;
    background-image: none;
  }

  .doc,
  .cover {
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 0;
    margin-bottom: 0;
    page-break-after: always;
    padding: 1.4cm 1.6cm;
    background: white;
  }

  .cover h1,
  .cover .number,
  .court-name,
  .body strong,
  .envelope .title,
  .envelope .postmark {
    text-shadow: none;
    color: #111;
  }

  .page-label {
    display: none;
  }

  .cover {
    min-height: auto;
    padding-top: 6cm;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  body {
    padding: 1.2rem 0.7rem 3rem;
  }

  .doc {
    padding: 1.6rem 1.25rem 1.4rem;
  }

  .doc-header {
    flex-direction: column;
    gap: 0.7rem;
  }

  .meta {
    text-align: left;
  }

  .cover h1 {
    font-size: 2.3rem;
  }

  .cover .number {
    font-size: 1.9rem;
  }

  .cover {
    min-height: 45vh;
    padding: 3.5rem 1.5rem;
  }
}
