/* LIVE CITY Website – Markenfarben wie in den Videos (docs/01_STARTPLAN.md) */
:root {
  --nacht: #1B2A4A;
  --nacht-hell: #2A3F6B;
  --gelb: #FFC83D;
  --rot: #FF3B5C;
  --gruen: #3DBE8B;
  --creme: #FFF6E5;
  --grau: #8A94A6;
  --titel: 'Fredoka', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--nacht);
  color: var(--creme);
  font-family: var(--text);
  -webkit-tap-highlight-color: transparent;
}

#karte {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  background: radial-gradient(circle at 50% 40%, var(--nacht-hell) 0%, var(--nacht) 75%);
}
#karte.ziehen { cursor: grabbing; }

.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* Kopfzeile mit Marke und Ortsschild */
.kopf {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.marke {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 26px;
  color: var(--gelb);
  text-shadow: 0 3px 0 var(--nacht);
}
.punkt {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 12px var(--rot);
  animation: puls 1.6s ease-in-out infinite;
}
@keyframes puls { 50% { opacity: .45; } }

/* Ortsschild im Stil eines gelben Stadtschilds */
.ortsschild {
  background: var(--gelb);
  color: var(--nacht);
  border: 4px solid var(--nacht);
  outline: 3px solid var(--gelb);
  border-radius: 10px;
  padding: 6px 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.ortsschild-name { font-family: var(--titel); font-weight: 700; font-size: 20px; line-height: 1.1; }
.ortsschild-zahl { font-weight: 700; font-size: 13px; }

/* Suche */
.suche {
  position: fixed;
  left: 50%;
  bottom: calc(52px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  display: flex;
  align-items: center;
  background: var(--creme);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.at { color: var(--nacht); font-weight: 800; font-size: 18px; }
.suche input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 600 17px var(--text);
  color: var(--nacht);
  padding: 10px 6px;
}
.suche button {
  border: 0;
  border-radius: 999px;
  background: var(--rot);
  color: white;
  font: 700 16px var(--titel);
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.suche button:active { transform: scale(.97); }

/* Info-Karte zu einem Haus */
.karte-info {
  position: fixed;
  left: 50%;
  bottom: calc(120px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  background: var(--nacht);
  border: 3px solid var(--gelb);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  animation: rein .25s ease-out;
  z-index: 5;
}
@keyframes rein { from { opacity: 0; transform: translate(-50%, 16px); } }
.schliessen {
  position: absolute; top: 6px; right: 10px;
  border: 0; background: none; color: var(--creme);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.info-inhalt h2 { margin: 0 0 4px; font: 700 24px var(--titel); color: var(--gelb); word-break: break-all; }
.info-inhalt p { margin: 4px 0; font-size: 15px; line-height: 1.45; }
.info-inhalt .rolle {
  display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--rot); color: white; font: 700 13px var(--titel);
}
.info-inhalt .stempel {
  display: inline-block; margin-top: 8px; padding: 2px 10px; border: 2px solid var(--grau);
  border-radius: 8px; color: var(--grau); font: 700 13px var(--titel); transform: rotate(-3deg);
}
.info-inhalt a.knopf {
  display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--gelb); color: var(--nacht); font: 700 15px var(--titel); text-decoration: none;
}

/* Zoom-Knöpfe */
.steuerung {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steuerung button {
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255,246,229,.92); color: var(--nacht);
  font: 700 22px var(--titel); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Fußzeile */
.fuss {
  position: fixed;
  left: 0; right: 0;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--grau);
}
.fuss a { color: var(--grau); }

@media (min-width: 768px) {
  .marke { font-size: 32px; }
  .ortsschild-name { font-size: 26px; }
  .ortsschild-zahl { font-size: 15px; }
}

/* Unterseiten (Impressum, Datenschutz) */
body.seite { overflow: auto; height: auto; }
.seite main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; line-height: 1.6; }
.seite h1 { font: 700 34px var(--titel); color: var(--gelb); }
.seite h2 { font: 700 22px var(--titel); color: var(--gelb); margin-top: 32px; }
.seite a { color: var(--gelb); }
.seite .offen { background: var(--rot); color: white; padding: 0 6px; border-radius: 4px; }
