/* Flotthaus Landingpage
   Farben: Tinte, Markenblau, Hellblau, Himmel, Tempo-Orange, Papier */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12284a;
  --brand: #17386e;
  --brand-hover: #1d4486;
  --brand-light: #7db3e3;
  --himmel: #deebf6;
  --tempo: #f28a1e;
  --tempo-text: #b85d0a; /* Orange für Schrift auf Hell (Kontrast) */
  --paper: #f8fafc;

  --text: #12284a;
  --muted: #4a5d78;
  --line: #dbe3ee;
  --soft: #f2f6fb;
  --white: #ffffff;
  --success: #15803d;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(18 40 74 / 6%), 0 8px 24px rgb(18 40 74 / 8%);
  --shadow-lg: 0 2px 4px rgb(18 40 74 / 6%), 0 24px 60px rgb(18 40 74 / 16%);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 6px 16px rgb(23 56 110 / 25%); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); }
.btn-accent { background: var(--tempo); color: var(--ink); box-shadow: 0 8px 22px rgb(242 138 30 / 35%); }
.btn-accent:hover { background: #f59a38; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-quiet { font-weight: 600; text-decoration: none; color: var(--brand); }
.link-quiet:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.wordmark { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
.wordmark span { color: var(--tempo-text); font-weight: 500; }

.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 550; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-login-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--soft); color: var(--ink); }
  .nav-login-mobile { display: block; }
  .nav .nav-cta { margin-top: 12px; border: 0; border-radius: 14px; background: var(--brand); color: var(--white); text-align: center; font-weight: 650; }
  .hide-sm { display: none; }
}
/* Schmale Handys: Header-Knopf würde den Schriftzug überdecken → steht im Menü und direkt im Hero */
@media (max-width: 440px) { .header-cta { display: none; } }

/* ---------- Typo-Bausteine ---------- */
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 750; max-width: 760px; }
.section-lead { margin-top: 16px; max-width: 680px; color: var(--muted); font-size: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--himmel) 0%, #f3f8fd 55%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 780; letter-spacing: -0.035em; }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 560px; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: var(--success); }

/* unten Platz für die Protokoll-Karte, damit sie nichts am Handy verdeckt */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 104px; }
/* blaue Fläche mit Tempolinien hinter dem Handy */
.stage { position: absolute; left: -10%; right: -50vw; bottom: 0; height: 52%; background: var(--brand); border-radius: 40px 0 0 40px; overflow: hidden; }
.stage-lines { position: absolute; inset: 14% 0 auto 0; width: 100%; height: 64%; }
.stage-lines line { stroke: rgb(125 179 227 / 40%); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stage-lines .hot { stroke: var(--tempo); opacity: .85; }

.phone { position: relative; width: 290px; border: 10px solid var(--ink); border-radius: 40px; background: var(--paper); box-shadow: var(--shadow-lg); }
.phone-screen { padding: 18px 16px 18px; display: grid; gap: 12px; }
.ps-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ps-top .icon { color: var(--brand); }
.ps-title { font-size: 20px; font-weight: 780; letter-spacing: -0.02em; line-height: 1.15; }
.ps-sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
.ps-card { background: var(--white); border: 1px solid rgb(23 56 110 / 15%); border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgb(18 40 74 / 6%); }
.ps-card-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ps-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ps-card li { display: flex; align-items: center; gap: 8px; }
.ps-card li .icon { color: #c3cfdd; }
.ps-card li.done .icon { color: var(--success); }
.ps-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-tiles span { background: var(--white); border-radius: 12px; padding: 12px 6px; text-align: center; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgb(18 40 74 / 8%); }
.ps-actions { display: flex; gap: 8px; }
.ps-photo { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 12px; background: #e3e9f1; font-weight: 700; font-size: 14px; }
.ps-done { flex: 2; display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: var(--brand); color: var(--white); font-weight: 700; font-size: 15px; }

.toast-card {
  position: absolute; right: 0; bottom: 14px; display: flex; gap: 12px; align-items: center;
  background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); max-width: 250px;
  animation: float 6s ease-in-out infinite;
}
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgb(21 128 61 / 15%); flex-shrink: 0; }
.toast-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.toast-sub { font-size: 12.5px; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
  .stage { left: -20px; right: -20px; border-radius: 32px; }
  .toast-card { right: 50%; transform: translateX(50%); }
}
@media (max-width: 520px) {
  .lead { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .toast-card { position: relative; right: auto; bottom: auto; transform: none; margin-top: 16px; animation: none; }
  .hero-visual { flex-direction: column; align-items: center; padding-bottom: 28px; }
  .phone { width: 100%; max-width: 290px; }
}

/* ---------- Problem-Leiste ---------- */

/* ---------- Sektionen ---------- */
.section { padding: 96px 0; scroll-margin-top: 68px; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--brand); color: var(--white); }
.section-navy h2 { color: var(--white); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.pillars { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; background: var(--himmel); color: var(--brand); }
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h3 { margin-top: 18px; font-size: 21px; font-weight: 700; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.extras { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.extra { display: flex; gap: 14px; background: var(--soft); border-radius: var(--radius-sm); padding: 18px; }
.extra > .icon { color: var(--brand); margin-top: 3px; }
.extra h4 { font-size: 16px; font-weight: 700; }
.extra p { font-size: 15px; color: var(--muted); margin-top: 2px; }
@media (max-width: 960px) { .pillars, .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pillars, .extras { grid-template-columns: 1fr; } }

/* Zeitstrahl: vier Schritte bis zum Protokoll */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; border-top: 2px dashed rgb(125 179 227 / 55%); }
.steps li { position: relative; }
.step-num { position: relative; z-index: 1; display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); border: 2px solid var(--brand-light); font-weight: 750; }
.step-done { background: var(--tempo); border-color: var(--tempo); color: var(--ink); }
.steps h3 { margin-top: 18px; font-size: 20px; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--himmel); opacity: .9; font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed rgb(125 179 227 / 55%); }
  .steps li { padding-left: 64px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 8px; }
}

/* Für Hausverwaltungen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 4px; }
.report { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.report-head { display: flex; justify-content: space-between; align-items: center; font-weight: 750; font-size: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: var(--success); }
.report dl { margin: 16px 0 0; display: grid; gap: 10px; }
.report dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; }
.report dt { color: var(--muted); }
.report dd { margin: 0; font-weight: 600; }
.report-photos { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-photos span { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--himmel), var(--brand-light)); }
.report-photos span:nth-child(2) { background: linear-gradient(135deg, #e8eef5, #b8c7d8); }
.report-photos span:nth-child(3) { background: linear-gradient(135deg, #fde7cf, #f7b878); }
.report-sign { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.report-sign svg { width: 140px; height: 36px; border-bottom: 1px solid var(--line); }
.report-sign path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .report { transform: none; } }

/* ---------- Preise ---------- */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px 26px; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; left: 26px; background: var(--brand); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; font-weight: 750; }
.plan-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.price { margin-top: 20px; display: flex; flex-direction: column; }
.price span { font-size: 42px; font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.price small { margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 9px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan-rows { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15.5px; }
.plan-row p { color: var(--muted); }
.plan-row strong { color: var(--ink); }
.plan-notes { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .plan-notes { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan-featured { order: -1; }
  .plan-rows { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) { .plan-row { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- FAQ ---------- */

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input:not([type="checkbox"]), .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--white); width: 100%;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(125 179 227 / 35%); }
.consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.form-error { color: #b91c1c; font-size: 14.5px; }
.form-success { display: flex; gap: 12px; align-items: flex-start; background: #ecfdf3; border-radius: 14px; padding: 16px; color: var(--ink); }
.form-success .icon { color: var(--success); width: 26px; height: 26px; }
.form-success[hidden], .form-error[hidden] { display: none; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .card { padding: 20px; } }

/* ---------- Schluss-CTA ---------- */
.final { background: var(--ink); color: var(--white); overflow: hidden; }
.final-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.final h2 { color: var(--white); }
.final p { margin: 14px 0 28px; color: var(--himmel); font-size: 18px; }
.van { width: 100%; max-width: 380px; justify-self: end; }
.van-speed line { stroke: var(--brand-light); stroke-width: 5; stroke-linecap: round; opacity: .7; }
.van-body { fill: var(--paper); }
.van-window { fill: var(--brand-light); }
.van-stripe { fill: var(--tempo); }
.van-house { fill: var(--brand); }
.van-check { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.van-roof { fill: none; stroke: var(--tempo); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.van-wheel { fill: var(--brand); stroke: var(--ink); stroke-width: 4; }
.van-hub { fill: var(--brand-light); }
.van-road { stroke: var(--brand-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 14; opacity: .45; }
@media (max-width: 760px) {
  .final-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .van { justify-self: start; max-width: 260px; order: -1; }
  .final .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.site-footer nav a { text-decoration: none; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.copyright { width: 100%; font-size: 13.5px; color: var(--muted); }

/* hidden muss auch gegen display:grid/flex gewinnen */
[hidden] { display: none !important; }
