/* ChargeGuide Landingpage — CI v2 (brand-500 #EB6F1D)
   Bewusst leichtgewichtig: keine Frameworks, System-Fonts → schnelle Ladezeit. */

:root {
  /* Brand Orange */
  --brand-50:  #FFF2E5;
  --brand-100: #FFDFC6;
  --brand-200: #FFBE90;
  --brand-400: #F8833C;
  --brand-500: #EB6F1D;
  --brand-600: #D15300;
  --brand-700: #A83903;

  /* Warm neutrals */
  --neutral-0:   #FFFDFB;
  --neutral-50:  #F9F6F2;
  --neutral-100: #F2EEE9;
  --neutral-200: #D9D3CD;
  --neutral-400: #948E89;
  --neutral-600: #514C49;
  --neutral-700: #363230;
  --neutral-800: #1D1A19;

  /* Power tiers (für Map-Mockup-Pins) */
  --power-cheap: #2F904D;
  --power-mid:   #F68C36;
  --power-exp:   #B3363D;

  --success: #2F904D;
  --error:   #C33939;

  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --shadow: 0 10px 40px rgba(29, 26, 25, 0.10);
  --shadow-sm: 0 2px 10px rgba(29, 26, 25, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Sprungziele um die Höhe der sticky Header-Leiste versetzen, damit sie nicht
   darunter verschwinden (Anker #cta, #top). */
:target,
#top,
#cta {
  scroll-margin-top: 6rem;
}

body {
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--neutral-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(235, 111, 29, 0.35);
}
.btn--primary:hover { background: var(--brand-600); }

.btn--ghost {
  background: transparent;
  color: var(--brand-600);
  border: 1.5px solid var(--brand-200);
}
.btn--ghost:hover { background: var(--brand-50); }

.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* ─────────────────────────── Header ─────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(255, 253, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-100);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__logo { width: 36px; height: 36px; border-radius: 9px; }
.brand__name { font-weight: 700; font-size: 1.25rem; color: var(--neutral-800); }

/* ─────────────────────────── Hero ─────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.badge {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.accent { color: var(--brand-500); }
.hero__subline {
  font-size: 1.2rem;
  color: var(--neutral-600);
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero__microcopy {
  font-size: 0.85rem;
  color: var(--neutral-400);
  margin-top: 0.9rem;
}

/* Phone frame + screenshot */
.hero__visual { display: flex; justify-content: center; }
.phone {
  width: 270px;
  background: #0e0c0b;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow);
}
.phone--sm { width: 232px; }

/* Bildschirm. Der Screenshot wird komplett unverändert eingelegt: die Bildhöhe
   bestimmt die Screenhöhe → kein Crop, keine Verzerrung. Die iPhone-13-Notch
   (physisch, daher NICHT im Screenshot enthalten) ergänzt der Rahmen oben. */
.phone__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}
.shot { display: block; }
.shot img {
  width: 100%;
  height: auto;
  /* Reserve the screenshot box height up front (iPhone 1170×2532) so lazy-loaded
     images don't shift the layout. Without this the #cta target moves down while
     the page scrolls toward it, so the first anchor-jump lands in the wrong place
     and a second click is needed. */
  aspect-ratio: 1170 / 2532;
  display: block;
}

/* iPhone-13-Notch: schwarze Aussparung, hängt mittig vom oberen Rahmen herab.
   Liegt über der leeren Mitte der Statusleiste (Uhrzeit links, Akku rechts). */
.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 3.4%;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* ─────────────────────────── Sections ─────────────────────────── */
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 1.5rem;
}

.problem {
  background: var(--neutral-50);
  padding: 4rem 1.5rem;
}
.problem__text {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--neutral-600);
}

.features { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--brand-50);
  color: var(--brand-600);
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--neutral-600); }

/* Galerie */
.gallery { background: var(--neutral-50); padding: 4.5rem 1.5rem; }
.gallery__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4.5rem;
  margin-top: 2.5rem;
}
.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 232px;
}
.gallery__item figcaption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--neutral-600);
  text-align: center;
}

/* CTA */
.cta {
  background: linear-gradient(160deg, var(--brand-500), var(--brand-600));
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.cta__text { font-size: 1.15rem; opacity: 0.95; max-width: 44ch; margin: 0 auto 2rem; }

.signup {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}
.signup__input {
  flex: 1;
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border: none;
  border-radius: var(--radius);
  background: #fff;
  color: var(--neutral-800);
}
.signup__input:focus { outline: 3px solid var(--brand-200); }
.signup__btn { white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.signup__btn:hover { background: var(--brand-700); }

.form-message { font-weight: 600; }
/* Plain hint (e.g. "wird gesendet …") — subtle, on the orange background. */
.form-message.is-hint {
  color: #fff;
  opacity: 0.9;
  margin-top: 0.6rem;
}
/* Success / error are prominent white cards that clearly stand out from orange. */
.form-message.is-success,
.form-message.is-error {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  max-width: 480px;
  margin: 1.25rem auto 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  line-height: 1.45;
}
.form-message.is-success::before,
.form-message.is-error::before {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.form-message.is-success { color: var(--neutral-800); }
.form-message.is-success::before { content: "✓"; background: var(--success); }
.form-message.is-error { color: var(--neutral-800); }
.form-message.is-error::before { content: "!"; background: var(--error); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0.5rem auto 0;
  font-size: 0.82rem;
  text-align: left;
  opacity: 0.95;
}
.consent input { margin-top: 0.25rem; }
.consent a { color: #fff; text-decoration: underline; }
.cta__microcopy { font-size: 0.8rem; opacity: 0.8; margin-top: 1rem; }

/* Outlook */
.outlook { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; text-align: center; }
.outlook__text { max-width: 52ch; margin: 0 auto; font-size: 1.15rem; color: var(--neutral-600); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--neutral-100);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--neutral-400);
  font-size: 0.9rem;
}
.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { color: var(--neutral-600); text-decoration: none; }
.site-footer__nav a:hover { color: var(--brand-600); }

/* ─────────────────────────── Legal pages (Impressum / Datenschutz) ───────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.legal .legal__updated { color: var(--neutral-400); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-100);
}
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.legal p, .legal li { color: var(--neutral-700); margin-bottom: 0.9rem; line-height: 1.7; }
.legal ul { padding-left: 1.3rem; margin-bottom: 0.9rem; }
.legal a { color: var(--brand-600); }
.legal address { font-style: normal; }
/* Editor placeholders to fill in before going live. */
.legal .ph {
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px dashed var(--brand-300);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-weight: 600;
  font-size: 0.95em;
}
.legal .note {
  background: var(--neutral-50);
  border-left: 3px solid var(--brand-400);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--neutral-600);
}

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__subline { max-width: 46ch; }
  .hero__visual { order: -1; margin-bottom: 1rem; }
  .features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header__cta { display: none; }
  .signup { flex-direction: column; }
  .signup__btn { width: 100%; }
  .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
