/* ==========================================================================
   JF-Pieper Promo-Seite
   Gestaltungsidee: Einsatzzentrale bei Nacht. Dunkler Grund, Signalrot,
   Bernstein-LCD wie auf einem Funkmeldeempfaenger. Keine Frameworks.
   ========================================================================== */

:root {
  --nacht: #0d1117;
  --nacht-2: #151b24;
  --nacht-3: #1c2430;
  --linie: #2b3646;
  --signalrot: #e2001a;
  --signalrot-hell: #ff3b4e;
  --lcd: #ffb340;
  --lcd-dunkel: #7a4d10;
  --text: #dbe4ef;
  --text-leise: #8b98a9;
  --gruen: #3ddc84;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--nacht);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--signalrot); color: #fff; }

a { color: var(--lcd); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Statusleiste ganz oben, wie die Kopfzeile eines Melders
   -------------------------------------------------------------------------- */
.statusleiste {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  background: #090c10;
  border-bottom: 1px solid var(--linie);
}

.statusleiste .punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gruen);
  box-shadow: 0 0 8px var(--gruen);
  animation: pulsieren 2.2s infinite;
}

@keyframes pulsieren {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.statusleiste .rechts { margin-left: auto; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1.2rem;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}

.wortmarke {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}

.wortmarke:hover { text-decoration: none; }

.wortmarke .tag { color: var(--signalrot-hell); }

.kopf nav {
  margin-left: auto;
  display: flex;
  gap: 1.6rem;
  font-size: 0.9rem;
}

.kopf nav a { color: var(--text-leise); }
.kopf nav a:hover { color: var(--text); text-decoration: none; }
.kopf nav a.aktiv { color: var(--lcd); }

.kopf nav a.knopf-klein {
  color: #fff;
  background: var(--signalrot);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
}
.kopf nav a.knopf-klein:hover { background: var(--signalrot-hell); }

/* --------------------------------------------------------------------------
   Warnstreifen als Trenner, wie am Heck eines LF
   -------------------------------------------------------------------------- */
.warnstreifen {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--signalrot) 0 22px,
    #ffffff14 22px 24px,
    #b30014 24px 46px,
    #ffffff14 46px 48px
  );
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.held {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
}

.held::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(226, 0, 26, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 85%, rgba(255, 179, 64, 0.07), transparent 70%);
  pointer-events: none;
}

.held .ueberzeile {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signalrot-hell);
  margin-bottom: 1.1rem;
}

.held h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}

.held h1 em {
  font-style: normal;
  color: var(--lcd);
}

.held .untertitel {
  color: var(--text-leise);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.knopf {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.98rem;
}

.knopf.rot {
  background: var(--signalrot);
  color: #fff;
  box-shadow: 0 4px 24px rgba(226, 0, 26, 0.35);
}
.knopf.rot:hover { background: var(--signalrot-hell); text-decoration: none; }

.knopf.rand {
  border: 1px solid var(--linie);
  color: var(--text);
}
.knopf.rand:hover { border-color: var(--lcd); color: var(--lcd); text-decoration: none; }

/* --------------------------------------------------------------------------
   Der Melder im Hero: reines CSS, angelehnt an das gedruckte Pocket Case
   fuer den Heltec T114 (runde Kanten, Oese, Seitentaste, interne Antenne)
   -------------------------------------------------------------------------- */
.melder {
  position: relative;
  justify-self: center;
  width: min(290px, 88%);
  background: linear-gradient(165deg, #2c333f, #171c24 70%);
  border: 1px solid #3a4451;
  border-radius: 26px;
  padding: 1.6rem 1.15rem 2.1rem;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
}

/* Seitentaste rechts im Gehaeuse */
.melder::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 92px;
  width: 5px;
  height: 46px;
  border-radius: 3px;
  background: linear-gradient(90deg, #46515f, #2a313c);
}

/* Trageoese oben links, wie beim gedruckten Gehaeuse */
.melder .oese {
  position: absolute;
  top: 9px;
  left: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0b0e13;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.07);
}

.melder .lcd {
  background: #1a1206;
  border: 2px solid #05070a;
  border-radius: 6px;
  padding: 0.9rem 0.9rem 1rem;
  font-family: var(--mono);
  color: var(--lcd);
  text-shadow: 0 0 6px rgba(255, 179, 64, 0.55);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.melder .lcd .zeile-klein {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--lcd-dunkel);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.melder .lcd .alarmtext {
  font-size: 0.82rem;
  line-height: 1.55;
  min-height: 4.7em;
  white-space: pre-line;
}

.melder .lcd .alarmtext::after {
  content: "\2588";
  animation: blinzeln 0.9s steps(1) infinite;
}

@keyframes blinzeln { 50% { opacity: 0; } }

/* Front unter dem Display: Summer-Grille und Quittungstaste */
.melder .front {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.melder .grille {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  background-image: radial-gradient(circle, #0a0d11 1.7px, transparent 2px);
  background-size: 8px 8px;
  background-position: center;
}

.melder .quittungsknopf {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #ff4d5e, #a80013);
  border: 1px solid #ff6b7a;
  animation: alarmglimmen 1.6s ease-in-out infinite;
}

@keyframes alarmglimmen {
  0%, 100% { box-shadow: 0 0 6px rgba(226, 0, 26, 0.5); }
  50% { box-shadow: 0 0 22px rgba(226, 0, 26, 0.95); }
}

.melder .marke {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  color: #596576;
}

/* USB-C-Oeffnung an der Unterkante */
.melder .usb {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: #0a0d11;
}

/* Funkwellen aus der internen Antenne, oben rechts im Gehaeuse */
.melder .funkwellen {
  position: absolute;
  top: -60px;
  right: 10px;
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.melder .funkwellen span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--lcd);
  border-radius: 50%;
  opacity: 0;
  animation: welle 2.4s ease-out infinite;
}

.melder .funkwellen span:nth-child(2) { animation-delay: 0.8s; }
.melder .funkwellen span:nth-child(3) { animation-delay: 1.6s; }

@keyframes welle {
  0% { transform: scale(0.25); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
section { padding: 4.5rem 1.5rem; }

.innen { max-width: 1120px; margin: 0 auto; }

.funkspruch {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signalrot-hell);
  margin-bottom: 0.8rem;
}

.funkspruch::before { content: ">> "; color: var(--text-leise); }

section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  max-width: 40rem;
}

section .einleitung {
  color: var(--text-leise);
  max-width: 40rem;
  margin-bottom: 2.8rem;
}

.dunkler { background: var(--nacht-2); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

/* Kasten fuer den Hinweis: reines Uebungssystem, keine echte Alarmierung */
.uebungshinweis {
  max-width: 40rem;
  margin: -1.4rem 0 2.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--lcd-dunkel);
  border-left: 4px solid var(--lcd);
  border-radius: 8px;
  background: rgba(255, 179, 64, 0.06);
  color: var(--text-leise);
  font-size: 0.95rem;
}

.uebungshinweis strong { color: var(--lcd); }

/* Kartenraster */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.2rem;
}

.karte {
  background: var(--nacht-3);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.karte:hover {
  transform: translateY(-4px);
  border-color: var(--signalrot);
}

.karte .zeichen {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.9rem;
  display: block;
}

.karte h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }

.karte p { color: var(--text-leise); font-size: 0.94rem; }

/* Ablauf in drei Schritten */
.ablauf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  counter-reset: schritt;
}

.schritt {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px dashed var(--linie);
  border-radius: 10px;
  counter-increment: schritt;
}

.schritt::before {
  content: "0" counter(schritt);
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--signalrot-hell);
  display: block;
  margin-bottom: 0.6rem;
}

.schritt h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.schritt p { color: var(--text-leise); font-size: 0.94rem; }

/* Hardware-Abschnitt */
.hardware {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hardware figure {
  background: var(--nacht-3);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 1rem;
}

.hardware img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hardware figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-leise);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 0.3rem 0.1rem;
}

.hakenliste { list-style: none; margin-top: 1.4rem; }

.hakenliste li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--text-leise);
}

.hakenliste li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gruen);
  font-weight: 700;
}

.hakenliste li strong { color: var(--text); }

/* Technik-Laufband */
.technikband {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

.technikband span {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  color: var(--text-leise);
}

/* Zahlenreihe */
.zahlenreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}

.zahl {
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--nacht-3);
  border: 1px solid var(--linie);
  border-radius: 10px;
}

.zahl b {
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--lcd);
  margin-bottom: 0.2rem;
}

.zahl small { color: var(--text-leise); font-size: 0.85rem; }

/* Abschluss-Aufruf */
.aufruf {
  text-align: center;
  padding: 5rem 1.5rem;
}

.aufruf h2 { margin-left: auto; margin-right: auto; }

.aufruf .einleitung { margin-left: auto; margin-right: auto; }

.aufruf .knopfreihe { justify-content: center; }

/* --------------------------------------------------------------------------
   Kontaktseite
   -------------------------------------------------------------------------- */
.kontakt-buehne {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}

.funkgeraet {
  max-width: 560px;
  width: 100%;
  background: var(--nacht-2);
  border: 1px solid var(--linie);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.funkgeraet .geraetekopf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: #090c10;
  border-bottom: 1px solid var(--linie);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.funkgeraet .geraetekopf .lampe {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lcd);
  box-shadow: 0 0 8px var(--lcd);
  animation: pulsieren 1.4s infinite;
}

.funkgeraet .inhalt { padding: 2.2rem 2rem 2.4rem; }

.funkgeraet h1 { font-size: 1.7rem; margin-bottom: 0.8rem; }

.funkgeraet p { color: var(--text-leise); margin-bottom: 1rem; }

.funkgeraet .protokoll {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: #10141b;
  border: 1px solid var(--linie);
  border-left: 3px solid var(--lcd);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0 2rem;
  color: var(--lcd);
  line-height: 1.9;
}

.funkgeraet .protokoll .leise { color: var(--text-leise); }

.mail-knopf {
  display: block;
  text-align: center;
  background: var(--signalrot);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.4rem;
  border-radius: 7px;
  box-shadow: 0 4px 28px rgba(226, 0, 26, 0.4);
  transition: transform 0.15s ease;
}

.mail-knopf:hover {
  background: var(--signalrot-hell);
  transform: translateY(-2px);
  text-decoration: none;
}

.mail-hinweis {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-leise);
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Fuss
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--linie);
  padding: 2.2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-leise);
}

footer .innen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

footer .mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   Kleine Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .held { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .melder { transform: rotate(0deg); margin-top: 1rem; }
  .hardware { grid-template-columns: 1fr; }
  .kopf { flex-wrap: wrap; gap: 0.8rem; }
  .kopf nav { gap: 1rem; font-size: 0.82rem; flex-wrap: wrap; }
  .statusleiste .versteckbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
