/* RaveBike — Foerde bei Nacht, Neon, Speichen.
   Ein einziges Stylesheet, keine Framework-Abhaengigkeit. */

:root {
  /* Foerde bei Nacht */
  --grund:      #071320;
  --grund-tief: #040c15;
  --flaeche:    #0f2437;
  --flaeche-hoch:#16324a;
  --kante:      #1f4463;

  /* Neon */
  --cyan:    #35e6e0;   /* Wasser, Leuchtfeuer */
  --magenta: #ff3d9a;   /* Rave */
  --gelb:    #ffd23f;   /* Fahrradlicht, Kieler Woche */

  --text:     #e8f1f6;
  --text-leise:#93afc2;

  --radius: 14px;
  --breite: 46rem;

  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --schrift-technisch: ui-monospace, SFMono-Regular, "SF Mono", Menlo,
             Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  /* Zwei weiche Lichtkegel — das Rave-Licht, ohne dass etwas blinkt. */
  background-image:
    radial-gradient(60rem 30rem at 15% -10%, rgba(255, 61, 154, .18), transparent 60%),
    radial-gradient(50rem 28rem at 95% 5%,  rgba(53, 230, 224, .16), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
}

.sprungmarke {
  position: absolute;
  left: -9999px;
  background: var(--gelb);
  color: #000;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 100;
}
.sprungmarke:focus { left: 0; top: 0; }

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 16px;
  max-width: var(--breite);
  width: 100%;
  margin: 0 auto;
}

.marke {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
}

.marke-rad {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--cyan);
  /* Dreht sich langsam — Fahrrad, nicht Diskokugel. */
  animation: rollen 9s linear infinite;
}
@keyframes rollen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .marke-rad { animation: none; }
}

.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-text strong {
  font-size: 1.32rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}
.marke-text small { color: var(--text-leise); font-size: .78rem; letter-spacing: .04em; }

.navi { display: flex; gap: .4rem; }
.navi a {
  color: var(--text-leise);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.navi a:hover, .navi a:focus-visible {
  color: var(--text);
  border-color: var(--kante);
  background: rgba(255,255,255,.04);
}

/* ---------- Inhalt ---------- */

.inhalt {
  flex: 1;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 16px 3rem;
}
.inhalt.schmal { max-width: 34rem; }

h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: .6rem 0 .5rem;
  font-weight: 800;
}
h2 {
  font-size: 1.22rem;
  margin: 2rem 0 .6rem;
  letter-spacing: .02em;
}
h3 { font-size: 1.02rem; margin: 1.4rem 0 .4rem; }

p { margin: 0 0 1rem; }
a { color: var(--cyan); }
a:hover { color: var(--gelb); }

.vorspann {
  color: var(--text-leise);
  font-size: 1.06rem;
  max-width: 34rem;
}

.leise { color: var(--text-leise); }
.klein { font-size: .86rem; }

/* Neonstreifen als Ueberschriften-Unterlage */
.streifen {
  height: 4px;
  width: 92px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan) 60%, var(--gelb));
  margin: 0 0 1.2rem;
}

/* ---------- Karten / Flaechen ---------- */

.karte-flaeche {
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}

/* ---------- Signal-Block ---------- */

.signal {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Der QR-Code erscheint erst, wenn der Bildschirm gross genug ist — am
   Handy scannt man den eigenen Bildschirm nicht, da ist der Knopf richtig. */
.qr-block { display: none; }

@media (min-width: 720px) and (pointer: fine) {
  .signal { grid-template-columns: 1fr auto; }
  .qr-block { display: block; text-align: center; }
}

.qr-rahmen {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  line-height: 0;
  box-shadow: 0 0 0 1px var(--kante), 0 10px 30px rgba(0,0,0,.45);
}
.qr-rahmen svg { width: 168px; height: 168px; display: block; }
.qr-hinweis {
  margin: .6rem 0 0;
  font-size: .78rem;
  color: var(--text-leise);
  line-height: 1.4;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--magenta), #c92a8f);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.04rem;
  padding: .85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 61, 154, .28);
}
.knopf:hover, .knopf:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 26px rgba(255, 61, 154, .4);
}
.knopf.still {
  background: transparent;
  border: 1px solid var(--kante);
  color: var(--text);
  box-shadow: none;
}
.knopf.still:hover { background: rgba(255,255,255,.05); }

/* ---------- Formulare ---------- */

label { display: block; font-weight: 600; margin: 1rem 0 .35rem; font-size: .92rem; }

input[type=text], input[type=password], input[type=url], input[type=number], select {
  width: 100%;
  padding: .7rem .85rem;
  background: var(--grund-tief);
  border: 1px solid var(--kante);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;   /* unter 16px zoomt iOS beim Antippen hinein */
}
input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.feld-notiz { color: var(--text-leise); font-size: .84rem; margin: .3rem 0 0; }

.meldung {
  padding: .8rem 1rem;
  border-radius: 10px;
  margin: 0 0 1rem;
  border: 1px solid;
  font-size: .95rem;
}
.meldung.fehler  { background: rgba(255,61,154,.1); border-color: rgba(255,61,154,.45); }
.meldung.gut     { background: rgba(53,230,224,.08); border-color: rgba(53,230,224,.4); }
.meldung.hinweis { background: rgba(255,210,63,.09); border-color: rgba(255,210,63,.4); }

code, .technisch {
  font-family: var(--schrift-technisch);
  font-size: .88em;
  background: var(--grund-tief);
  padding: .15em .45em;
  border-radius: 6px;
  border: 1px solid var(--kante);
  word-break: break-all;
}

/* ---------- Standortkarte ---------- */

body.vollbild .inhalt { max-width: none; padding: 0; display: flex; flex-direction: column; }

#leaflet-karte {
  flex: 1;
  min-height: 60vh;
  background: var(--grund-tief);
}

.standort-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  align-items: center;
  padding: .8rem 16px;
  background: var(--flaeche);
  border-top: 1px solid var(--kante);
  font-size: .92rem;
}

.ampel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}
.ampel::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--text-leise);
  box-shadow: 0 0 0 4px rgba(147,175,194,.18);
}
.ampel.live::before  { background: var(--cyan);    box-shadow: 0 0 0 4px rgba(53,230,224,.22);  animation: pulsen 2s ease-in-out infinite; }
.ampel.alt::before   { background: var(--gelb);    box-shadow: 0 0 0 4px rgba(255,210,63,.2); }
.ampel.aus::before   { background: var(--text-leise); }
@keyframes pulsen { 50% { box-shadow: 0 0 0 9px rgba(53,230,224,0); } }
@media (prefers-reduced-motion: reduce) { .ampel.live::before { animation: none; } }

/* Leaflet an die dunkle Umgebung angleichen */
.leaflet-container { background: var(--grund-tief) !important; font: inherit !important; }
.leaflet-control-attribution {
  background: rgba(7,19,32,.82) !important;
  color: var(--text-leise) !important;
  font-size: 11px !important;
}
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-bar a {
  background: var(--flaeche) !important;
  color: var(--text) !important;
  border-color: var(--kante) !important;
}
.leaflet-bar a:hover { background: var(--flaeche-hoch) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--flaeche) !important;
  color: var(--text) !important;
}

/* ---------- Fuss ---------- */

.fuss {
  margin-top: auto;
  color: var(--text-leise);
  text-align: center;
  font-size: .88rem;
}
.welle { display: block; width: 100%; height: 40px; color: var(--flaeche); }
.fuss-navi {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding: 1.1rem 16px .2rem;
  background: var(--flaeche);
}
.fuss-navi a { color: var(--text-leise); text-decoration: none; }
.fuss-navi a:hover { color: var(--cyan); }
.fuss-notiz { background: var(--flaeche); margin: 0; padding: .4rem 16px 1.4rem; font-size: .82rem; }

/* ---------- Rechtstexte ---------- */

.rechtstext { max-width: 38rem; }
.rechtstext h2 { font-size: 1.08rem; margin-top: 1.8rem; }
.rechtstext p, .rechtstext li { font-size: .95rem; color: #cfe0ea; }
.rechtstext address { font-style: normal; line-height: 1.7; }

/* Überschrift nur für Screenreader — die Seite braucht optisch keine,
   aber ein Abschnitt ohne Überschrift ist beim Vorlesen eine Sackgasse. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Die englische Zeile steht gleichberechtigt daneben, tritt aber
   optisch einen Schritt zurück. */
.fremdsprache { opacity: .75; font-size: .98rem; }
