/* Rechno Landing v2 — Bishop-Referenz, Rechno-Farben */
:root {
  --blau: #185FA5;
  --blau-hell: #4A90D9;
  --dunkel: #042C53;
  --amber: #EF9F27;
  --papier: #F7FAFD;
  --weiss: #FFFFFF;
  --tinte: #1C2B3A;
  --grau: #5A6B7B;
  --linie: #E3EAF2;
  --radius: 20px;
  --radius-gross: 28px;
  --schatten: 0 2px 8px rgba(4, 44, 83, 0.06), 0 12px 32px rgba(4, 44, 83, 0.07);
  --schatten-klein: 0 1px 4px rgba(4, 44, 83, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--weiss);
  color: var(--tinte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .logo {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--dunkel);
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blau);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.main-nav a {
  color: var(--grau);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--dunkel); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.login-link {
  color: var(--dunkel);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.login-link:hover { color: var(--blau); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--blau);
  color: #fff;
}
.btn-primary:hover {
  background: #144E86;
  box-shadow: 0 6px 18px rgba(24, 95, 165, 0.35);
  transform: translateY(-1px);
}
.btn-hell {
  background: #fff;
  color: var(--blau);
}
.btn-hell:hover {
  box-shadow: 0 6px 18px rgba(4, 44, 83, 0.3);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dunkel);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--linie);
  padding: 8px 24px 20px;
}
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: var(--dunkel);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--linie);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 12px; width: 100%; }
body.menu-open .mobile-menu { display: block; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-section {
  padding: 92px 24px 0;
}
.hero-panel {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  border-radius: var(--radius-gross);
  text-align: center;
  padding: 72px 32px 48px;
  color: #fff;
  position: relative;
  overflow: visible;
}
.hero-panel h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto;
}
.hero-panel .untertitel {
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}
.hero-panel .btn {
  margin-top: 32px;
  padding: 14px 34px;
  font-size: 1.05rem;
}
.hero-shot {
  margin: 56px auto 0;
  max-width: 820px;
  position: relative;
  z-index: 2;
}
.hero-spacer { height: 32px; }

/* Flaches Browser-/Laptop-Mockup für den breiten App-Screenshot. */
.browser-mockup {
  overflow: hidden;
  border: 1px solid rgba(4, 44, 83, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 44, 83, 0.3);
  text-align: left;
}
.browser-leiste {
  height: 42px;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  padding: 0 14px;
  background: #F3F6FA;
  border-bottom: 1px solid var(--linie);
}
.browser-punkte {
  display: flex;
  gap: 7px;
}
.browser-punkte i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C6D1DD;
}
.browser-punkte i:first-child { background: #EF9F7A; }
.browser-punkte i:nth-child(2) { background: #F0C36A; }
.browser-punkte i:nth-child(3) { background: #79C69A; }
.browser-adresse {
  justify-self: center;
  min-width: min(340px, 100%);
  padding: 5px 16px;
  border: 1px solid #DCE4EC;
  border-radius: 999px;
  background: #fff;
  color: var(--grau);
  font-size: 0.75rem;
  text-align: center;
}
.browser-inhalt {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F6F7FC;
}
.browser-inhalt img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
}

/* Geräterahmen */
.device {
  background: var(--dunkel);
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(4, 44, 83, 0.35);
}
.device img {
  border-radius: 16px;
  width: 100%;
}
.phone-mockup {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background: #101820;
  box-shadow: 0 18px 44px rgba(4, 44, 83, 0.2);
}
.phone-mockup::before,
.phone-mockup::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #243442;
}
.phone-mockup::before {
  top: 104px;
  height: 54px;
}
.phone-mockup::after {
  top: 174px;
  height: 76px;
}
.phone-mockup img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 32px;
}
.phone-kamera {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #101820;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; }

.section-titel {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dunkel);
  max-width: 26ch;
  margin: 0 auto;
}
.section-intro {
  text-align: center;
  color: var(--grau);
  max-width: 56ch;
  margin: 14px auto 0;
  font-size: 1.08rem;
}

/* Funktionen: 4 Karten */
.karten {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.karten-4 { grid-template-columns: repeat(4, 1fr); }
.karten-3 { grid-template-columns: repeat(3, 1fr); }
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--schatten-klein);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.karte:hover {
  box-shadow: var(--schatten);
  transform: translateY(-2px);
}
.karte .schritt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #EAF2FA;
  color: var(--blau);
  margin-bottom: 16px;
}
.karte .schritt svg { display: block; }
.karte h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dunkel);
  letter-spacing: -0.01em;
}
.karte p {
  margin-top: 8px;
  color: var(--grau);
  font-size: 0.97rem;
}

.funktionen-section { background: var(--papier); }

/* App-Einblick */
.einblick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.einblick figure {
  max-width: 280px;
  margin: 0 auto;
}
.einblick figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--grau);
  font-size: 0.97rem;
}

/* Vorteile */
.vorteile-section { background: var(--papier); }
.karten-6 { grid-template-columns: repeat(3, 1fr); }
.vorteil-haken {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blau);
  color: #fff;
  margin-bottom: 14px;
}

/* FAQ */
.faq-liste {
  max-width: 720px;
  margin: 48px auto 0;
  display: grid;
  gap: 14px;
}
.faq-liste details {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 16px;
  box-shadow: var(--schatten-klein);
  overflow: hidden;
}
.faq-liste summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dunkel);
  position: relative;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blau);
  border-bottom: 2px solid var(--blau);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-liste details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-liste details p {
  padding: 0 24px 22px;
  color: var(--grau);
}

/* Abschluss-CTA */
.cta-panel {
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  border-radius: var(--radius-gross);
  text-align: center;
  padding: 64px 32px;
  color: #fff;
}
.cta-panel h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-panel .btn { margin-top: 28px; padding: 14px 34px; font-size: 1.05rem; }
.cta-panel .oder {
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}
.cta-panel form {
  margin: 16px auto 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
}
.cta-panel input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--tinte);
}
.cta-panel input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
}
.cta-panel .btn-amber {
  background: var(--amber);
  color: var(--dunkel);
}
.cta-panel .btn-amber:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
.cta-panel .btn-amber:disabled { opacity: 0.6; cursor: wait; }
.form-msg {
  margin-top: 14px;
  min-height: 1.4em;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-msg.ok { color: #C9F0C4; }
.form-msg.err { color: #FFE1B3; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--linie);
  padding: 36px 0 44px;
  color: var(--grau);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer a {
  color: var(--grau);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--blau); }

/* ---------- Legal-Seiten ---------- */
.legal {
  padding: 120px 0 72px;
  max-width: 70ch;
}
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dunkel);
  margin-bottom: 24px;
}
.legal h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  margin: 32px 0 8px;
  color: var(--dunkel);
}
.legal p { margin-bottom: 12px; }
.legal .placeholder {
  background: #FFF4E0;
  border: 1px dashed var(--amber);
  border-radius: 12px;
  padding: 12px 16px;
  color: #7A5410;
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blau);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.sichtbar {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .karten-4 { grid-template-columns: repeat(2, 1fr); }
  .karten-6 { grid-template-columns: repeat(2, 1fr); }
  .einblick { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .login-link, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .site-header .wrap { justify-content: space-between; }
  section { padding: 56px 0; }
  .hero-section { padding-top: 84px; }
  .hero-panel { padding: 48px 20px 32px; }
  .hero-shot { margin-bottom: 0; }
  .hero-spacer { height: 24px; }
  .karten-4, .karten-6 { grid-template-columns: 1fr; }
  .cta-panel { padding: 44px 20px; }
  .cta-panel form { flex-direction: column; }
  .legal { padding-top: 100px; }
}
