/* ── Fotomar Landing Page ── */

:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-soft: rgba(79, 70, 229, 0.10);
  --ink: #1f2937;
  --ink-mid: #4b5563;
  --ink-soft: #6b7280;
  --line: rgba(0, 0, 0, 0.08);
  --panel: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(800px 600px at 0% 30%, rgba(79, 70, 229, 0.05), transparent 55%),
    #fbfbfd;
  -webkit-font-smoothing: antialiased;
}

/* ── Top brand bar ── */
.brandbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 clamp(18px, 5vw, 48px);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
}

.brand .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-soft);
}

.brandbar nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-mid);
  transition: background 0.15s ease;
}
.nav-link:hover { background: rgba(0, 0, 0, 0.05); }

.nav-link.primary {
  background: var(--indigo);
  color: #fff;
}
.nav-link.primary:hover { background: var(--indigo-dark); }

/* Eingeloggt: E-Mail statt "Anmelden" */
.nav-user {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: default;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 40px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.hero h1 .accent { color: var(--indigo); }

.hero p {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-mid);
}

.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.30);
}
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-2px); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #f3f4f6; transform: translateY(-2px); }

/* Eingeloggt: Status-Knopf "Angemeldet" */
.btn-success {
  background: #16a34a;
  color: #fff;
  cursor: default;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}
.btn-success svg { width: 19px; height: 19px; }

.scroll-hint {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.scroll-hint .chev {
  width: 22px; height: 22px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Journey (the road) ── */
.journey {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.journey-head {
  text-align: center;
  margin-bottom: 8px;
}
.journey-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.8px;
}
.journey-head p {
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.road {
  position: relative;
  margin-top: 24px;
}

.road-svg {
  display: block;
  width: 100%;
  height: auto;
}

.road-svg .asphalt {
  fill: none;
  stroke: #e7e7ee;
  stroke-width: 60;
  stroke-linecap: round;
}
.road-svg .centerline {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 30 34;
  opacity: 0.85;
}
.road-svg .marker {
  fill: #fff;
  stroke: var(--indigo);
  stroke-width: 7;
}

/* Feature stations — absolutely placed along the road on desktop */
.station {
  position: absolute;
  width: 40%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.station.left  { left: 0;  transform: translateY(-50%) translateX(-24px); text-align: right; }
.station.right { right: 0; transform: translateY(-50%) translateX(24px); }
.station.visible { opacity: 1; transform: translateY(-50%) translateX(0); }

.card {
  display: inline-block;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  max-width: 380px;
}

.station.left .card { text-align: left; }

.card .icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-mid);
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge.free {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-mid);
}
.badge.account {
  background: var(--indigo-soft);
  color: var(--indigo);
}

/* ── Final CTA ── */
.outro {
  text-align: center;
  padding: 40px 24px 110px;
}
.outro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.outro p {
  margin: 0 auto 30px;
  max-width: 460px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.outro .btn-primary { padding: 16px 34px; font-size: 16px; }

.footer {
  text-align: center;
  padding: 0 24px 50px;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-sep {
  margin: 0 8px;
  color: var(--ink-soft);
  opacity: 0.6;
}

.footer-link {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--indigo);
}

/* ── Mobile: drop the winding road, stack the cards ── */
@media (max-width: 820px) {
  .road-svg { display: none; }

  .road {
    margin-top: 8px;
    padding-left: 26px;
    border-left: 3px dashed rgba(79, 70, 229, 0.35);
  }

  .station {
    position: static !important;
    width: 100% !important;
    transform: translateY(20px) !important;
    text-align: left !important;
    margin: 26px 0;
  }
  .station.visible { transform: translateY(0) !important; }

  .station::before {
    content: "";
    position: absolute;
    left: -34px;
    width: 16px; height: 16px;
    margin-top: 30px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--indigo);
  }

  .card { max-width: none; width: 100%; }
}
