/* Amorazza – Vision-Seite (V101) ---------------------------------------
   Layout für /vision.php — Hero, PLZ-Berechnung, Deutschlandkarte mit
   pulsierenden Herzen (Hybrid: Ziel-Herzen + Live-Herzen).
------------------------------------------------------------------------ */

body.page-vision {
  background: #faf7f4;
}

/* === Container ======================================================== */
.vis-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  color: #2c2c2a;
}

.vis-container h1 {
  font-size: 32px;
  color: #d4537e;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.2;
}

.vis-container h2 {
  font-size: 22px;
  color: #2c2c2a;
  font-weight: 600;
  margin: 0 0 14px;
}

.vis-container p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: #2c2c2a;
}

.vis-container strong { color: #2c2c2a; font-weight: 600; }

/* === Hero-Kaestchen (unauffaellig, ohne Hervorhebung) ================= */
.vis-hero-card {
  background: #fff;
  border: 1px solid #ebe4dd;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: center;
}
.vis-hero-card h1 {
  margin: 0 0 12px;
}
.vis-hero-card .vis-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  color: #4a4945;
  line-height: 1.55;
}

/* === Rechnungs-Sektion ================================================ */
.vis-math {
  background: #fff;
  border: 1px solid #ebe4dd;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

/* === PLZ-Karte ======================================================== */
.vis-plz-card {
  background: linear-gradient(180deg, #fbeaf0 0%, #f7dbe5 100%);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 32px;
  text-align: center;
}

.vis-plz-card h2 {
  color: #d4537e;
  margin-bottom: 8px;
}

.vis-plz-form {
  display: flex;
  gap: 10px;
  max-width: 360px;
  margin: 18px auto 8px;
  align-items: stretch;
}

.vis-plz-form input[type="text"] {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid #d4b5c0;
  border-radius: 8px;
  background: #fff;
  color: #2c2c2a;
  font-size: 17px;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.vis-plz-form input[type="text"]:focus {
  border-color: #d4537e;
  box-shadow: 0 0 0 3px rgba(212, 83, 126, 0.15);
}

.vis-plz-form button {
  padding: 13px 22px;
  border: none;
  border-radius: 8px;
  background: #d4537e;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.vis-plz-form button:hover { background: #b8456b; transform: translateY(-1px); }
.vis-plz-form button:active { transform: translateY(0); }

.vis-plz-error {
  color: #b8456b;
  margin-top: 14px !important;
  font-weight: 500;
}

.vis-plz-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(212, 83, 126, 0.3);
}
.vis-plz-result-line {
  font-size: 15px;
  color: #5f5e5a;
  margin-bottom: 4px !important;
}
.vis-plz-result-big {
  font-size: 19px;
  color: #2c2c2a;
  margin: 6px 0 !important;
  line-height: 1.4;
}
.vis-plz-number {
  display: inline-block;
  font-size: 36px;
  font-weight: 600;
  color: #d4537e;
  letter-spacing: -1px;
  margin: 0 6px;
  vertical-align: -4px;
}
.vis-plz-result-detail {
  font-size: 13px;
  color: #888 !important;
  margin-top: 8px !important;
  font-style: italic;
}

/* === Karte ============================================================ */
.vis-map-section {
  margin-bottom: 32px;
}
.vis-map-caption {
  text-align: center;
  color: #5f5e5a;
  font-size: 15px;
  margin-bottom: 18px;
}
.vis-map-caption-live {
  display: inline-block;
  margin-left: 6px;
  color: #d4537e;
  font-weight: 500;
}

.vis-map-wrap {
  background: #fff;
  border: 1px solid #ebe4dd;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.vis-map {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.vis-outline-group .vis-outline {
  fill: #faf0f3;
  stroke: #d4a8b8;
  stroke-width: 0.8;
  stroke-linejoin: round;
}
/* Auf Hover-States verzichten - die Karte ist nicht interaktiv */

/* 50-km-Wirkungs-Kreis um die eingegebene PLZ (dezent gestrichelt) */
.vis-radius-zone {
  fill: rgba(212, 83, 126, 0.06);
  stroke: rgba(212, 83, 126, 0.45);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

/* === Herzen ============================================================ */
.vis-heart {
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: vis-heart-pulse 1.6s ease-in-out infinite;
}

@keyframes vis-heart-pulse {
  0%, 50%, 100% { transform: scale(1); }
  10%           { transform: scale(1.18); }
  25%           { transform: scale(1); }
  35%           { transform: scale(1.12); }
}

/* Ziel-Herzen (gedeckte Akzentfarbe, je nach Stadtgröße verschieden groß) */
.vis-heart-target {
  fill: #d4537e;
  fill-opacity: 0.42;
}
.vis-heart-xxl { font-size: 32px; }
.vis-heart-xl  { font-size: 22px; }
.vis-heart-l   { font-size: 16px; }
.vis-heart-m   { font-size: 12px; }
.vis-heart-s   { font-size: 9px;  }
.vis-heart-xs  { font-size: 6px;  fill-opacity: 0.38; }
.vis-heart-xxs { font-size: 4px;  fill-opacity: 0.32; }

/* Live-Herzen (leuchtend, satte Farbe) */
.vis-heart-live {
  fill: #d4537e;
  font-size: 11px;
}

/* "Hier"-Herz (eingegebene PLZ) — dunkles Burgundy, mit Ring drumherum */
.vis-heart-here {
  fill: #7a2440;
  fill-opacity: 1;
  font-size: 22px;
  animation-duration: 1.2s; /* schneller pulsen */
}
.vis-heart-here-ring {
  fill: none;
  stroke: #7a2440;
  stroke-width: 2;
  stroke-opacity: 0.55;
  animation: vis-here-ring 1.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes vis-here-ring {
  0%   { transform: scale(0.55); stroke-opacity: 0.9; }
  100% { transform: scale(1.5);  stroke-opacity: 0;   }
}

/* === Legende ========================================================== */
.vis-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 13px;
  color: #5f5e5a;
}
.vis-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vis-legend-dot {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}
.vis-legend-target { color: #d4537e; opacity: 0.42; }
.vis-legend-live   { color: #d4537e; }
.vis-legend-here   { color: #7a2440; }

/* === CTA ============================================================== */
.vis-cta {
  text-align: center;
  margin: 36px 0 24px;
}
.vis-cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #d4537e;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.15s;
}
.vis-cta-button:hover,
.vis-cta-button:focus {
  background: #b8456b;
  transform: translateY(-1px);
  text-decoration: none;
}

/* === Quellen ========================================================== */
.vis-sources {
  margin-top: 32px;
  padding: 16px 18px;
  background: #f5efe9;
  border-radius: 8px;
  font-size: 12px;
  color: #5f5e5a;
}
.vis-sources p { font-size: 12px; line-height: 1.55; margin: 0; }
.vis-sources a { color: #d4537e; text-decoration: none; }
.vis-sources a:hover { text-decoration: underline; }

/* Datenquellen-Link am Seiten-Ende (zentriert, deutlich Abstand) */
.vis-bottom-link {
  text-align: center;
  margin: 64px 0 24px;
  font-size: 13px;
}
.vis-bottom-link a {
  color: #8a7b6f;
  text-decoration: none;
  border-bottom: 1px dotted #c8bdb1;
  padding-bottom: 1px;
}
.vis-bottom-link a:hover {
  color: #d4537e;
  border-bottom-color: #d4537e;
}

/* === Mobile =========================================================== */
@media (max-width: 600px) {
  .vis-container { padding: 16px 14px 40px; }
  .vis-container h1 { font-size: 26px; }
  .vis-container h2 { font-size: 19px; }
  .vis-math, .vis-plz-card, .vis-map-wrap { padding: 18px; }
  .vis-plz-card { padding: 22px 18px 18px; }
  .vis-plz-number { font-size: 30px; }
  .vis-plz-result-big { font-size: 17px; }
  .vis-plz-form { flex-direction: column; }
  .vis-map-legend { flex-direction: column; gap: 6px; }
}

/* === Reduzierte Animation ============================================= */
@media (prefers-reduced-motion: reduce) {
  .vis-heart, .vis-heart-here-ring { animation: none; }
}
