/*
 * Landingpage-Vorlage (Glasfaser-Ausbau) — dein-stadtwerk CI.
 * Basis-Tokens/Chrome kommen aus site.css; hier nur landingpage-spezifisch.
 */

.lp-main { background: #fff; }

/* Ladezustand / Fehler */
.lp-state {
  width: min(900px, calc(100% - 48px));
  margin: 80px auto;
  text-align: center;
  color: var(--muted, #667085);
}
.lp-state h2 { color: var(--navy, #061b3a); margin: 0 0 8px; }
.lp-skeleton {
  height: 320px;
  border-radius: var(--radius, 18px);
  margin: 24px 0;
  background: linear-gradient(100deg, #f0f4f7 30%, #e6edf2 50%, #f0f4f7 70%);
  background-size: 200% 100%;
  animation: lp-shimmer 1.2s ease-in-out infinite;
}
@keyframes lp-shimmer { to { background-position: -200% 0; } }

/* Hero */
.lp-hero {
  position: relative;
  background: linear-gradient(135deg, #06243f, #094a37);
  color: #fff;
  overflow: hidden;
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(50,209,154,.20), transparent 62%);
  pointer-events: none;
}
.lp-hero-inner { position: relative; padding: clamp(48px, 7vw, 88px) 0; }
.lp-breadcrumb {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.7); margin-bottom: 16px;
}
.lp-breadcrumb a { color: rgba(255,255,255,.7); }
.lp-breadcrumb a:hover { color: #fff; }
.lp-hero h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.lp-hero-sub {
  margin: 14px 0 0;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 620px;
}
.lp-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800; font-size: 14px;
}
.lp-status-dot { width: 10px; height: 10px; border-radius: 50%; background: #32d19a; }

/* Allgemeine Sektion */
.lp-section { padding: clamp(40px, 6vw, 72px) 0; }
.lp-section + .lp-section { border-top: 1px solid var(--line, #e8eef3); }
.lp-section-label {
  font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green, #008b63); margin: 0 0 10px;
}
.lp-section h2 { margin: 0 0 18px; color: var(--navy, #061b3a); letter-spacing: -.02em; }

/* Rich-Text (sanitisiert) */
.lp-rich { color: #2c3a52; line-height: 1.7; font-size: 1.02rem; max-width: 760px; }
.lp-rich p { margin: 0 0 14px; }
.lp-rich ul, .lp-rich ol { margin: 0 0 14px; padding-left: 20px; }
.lp-rich li { margin: 4px 0; }

/* Karte */
.lp-map {
  height: clamp(320px, 52vh, 520px);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  border: 1px solid var(--line, #e8eef3);
  box-shadow: var(--shadow, 0 18px 45px rgba(15,35,66,.14));
  background: #eef3f1;
}
.leaflet-container { font: inherit; }

/* Bauabschnitte */
.lp-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.lp-project {
  border: 1px solid var(--line, #e8eef3);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.lp-project:hover { box-shadow: 0 14px 34px rgba(15,35,66,.10); border-color: #d4e3da; }
.lp-project.is-active { border-color: var(--green, #008b63); box-shadow: 0 0 0 3px rgba(0,139,99,.12); }

.lp-project-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lp-project-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--navy, #061b3a);
  background: var(--soft, #f6faf8); border: 1px solid var(--line, #e8eef3);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.lp-project-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green, #008b63); }
.lp-project h3 { margin: 0; font-size: 1.2rem; color: var(--navy, #061b3a); line-height: 1.25; }

/* Fortschritt */
.lp-progress { margin: 6px 0 14px; }
.lp-progress-bar {
  position: relative;
  height: 12px; border-radius: 999px;
  background: #eef2f5; overflow: hidden;
}
.lp-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #00b67f, #32d19a);
  width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.lp-progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; font-size: 13px; color: var(--muted, #667085); font-weight: 600;
}
.lp-progress-meta strong { color: var(--navy, #061b3a); font-size: 15px; }
.lp-progress-goal.reached { color: var(--green, #008b63); font-weight: 800; }

.lp-teaser { color: #4a586d; font-size: .95rem; line-height: 1.55; margin: 0 0 14px; }
.lp-teaser strong { color: var(--navy, #061b3a); }

/* Straßenliste (aufklappbar) */
.lp-streets { margin: 0 0 16px; border-top: 1px solid var(--line, #e8eef3); }
.lp-streets > summary {
  list-style: none; cursor: pointer; padding-top: 12px;
  font-weight: 800; font-size: 14px; color: var(--green, #008b63);
  display: flex; align-items: center; gap: 6px;
}
.lp-streets > summary::-webkit-details-marker { display: none; }
.lp-streets > summary::after { content: "⌄"; transition: transform .15s ease; }
.lp-streets[open] > summary::after { transform: rotate(180deg); }
.lp-streets .lp-rich { padding-top: 10px; font-size: .92rem; }

.lp-project .lp-cta { margin-top: auto; }
.lp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px;
  background: var(--navy, #061b3a); color: #fff;
  font-weight: 800; padding: 13px 20px; cursor: pointer; text-decoration: none;
  transition: background .15s ease;
}
.lp-cta:hover { background: #0a2750; }
.lp-cta.is-green { background: var(--green, #008b63); }
.lp-cta.is-green:hover { background: var(--green-dark, #006b56); }

/* Termine */
.lp-events { display: grid; gap: 12px; }
.lp-event {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--line, #e8eef3); border-radius: 14px; padding: 18px;
}
.lp-event-date {
  text-align: center; min-width: 64px;
  background: var(--soft, #f6faf8); border-radius: 10px; padding: 10px 8px;
}
.lp-event-day { display: block; font-size: 22px; font-weight: 900; color: var(--navy, #061b3a); line-height: 1; }
.lp-event-month { display: block; font-size: 12px; font-weight: 800; color: var(--green, #008b63); text-transform: uppercase; margin-top: 4px; }
.lp-event h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy, #061b3a); }
.lp-event-loc { font-size: 13px; color: var(--muted, #667085); font-weight: 600; }
.lp-empty { color: var(--muted, #667085); font-weight: 600; }

/* FAQ */
.lp-faq { max-width: 820px; }
.lp-faq-item { border-bottom: 1px solid var(--line, #e8eef3); }
.lp-faq-item > summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 800; color: var(--navy, #061b3a); font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.lp-faq-item > summary::-webkit-details-marker { display: none; }
.lp-faq-item > summary::after { content: "+"; font-size: 22px; color: var(--green, #008b63); transition: transform .15s ease; }
.lp-faq-item[open] > summary::after { content: "–"; }
.lp-faq-answer { padding: 0 0 18px; }

@media (max-width: 760px) {
  .lp-event { grid-template-columns: 1fr; }
}
