/* terrassenpilot.de – Farben und Schriften wie die App (apps/web/src/styles/base.css) */
:root {
  --ground: #EEF0EF; --panel: #FFFFFF; --line: #D9DEE0; --soft: #F3F5F5;
  --ink: #1E2427; --ink-2: #3F4A50; --muted: #5B666C;
  --side: #2B3236; --side-ink: #C9D2D7; --side-muted: #A9B4BA;
  /* Himmelblau wie die App: Knöpfe hell mit dunkler Schrift, farbiger Text dunkler */
  --accent: #6CB8EE; --accent-ink: #0B2A42; --accent-text: #1670B3; --accent-soft: #E6F2FB; --accent-dark: #59ABE6; --accent-light: #8CCAF4;
  --ok-bg: #E3EBDD; --ok-ink: #1F5130; --warn-bg: #FBE7A1; --warn-ink: #5C4300;
  --radius: 12px;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --font-head: 'Archivo', 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-head); font-stretch: 86%; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 780; }
h3 { font-size: 22px; font-weight: 720; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-bottom: 14px; display: block; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 680px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 10px; font-weight: 650; font-size: 17px; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-ink); }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: rgba(238,240,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-stretch: 85%; font-weight: 800; font-size: 23px; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.top nav a:hover { color: var(--accent-text); }
.top .login { color: var(--ink-2); font-size: 15.5px; text-decoration: none; font-weight: 500; }

/* Start */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero h1 span { color: var(--accent-text); }
.hero .lead { margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 15px; padding: 0; list-style: none; }
.hero .facts li::before { content: "✓"; color: var(--accent-text); font-weight: 700; margin-right: 7px; }
.stage { position: relative; margin-top: 56px; }
.stage .screen { border-radius: 14px 14px 0 0; border: 1px solid #C9D0D3; border-bottom: 0; box-shadow: 0 30px 70px -30px rgba(30,36,39,.45); overflow: hidden; background: var(--panel); }
.stage .bar { height: 30px; background: #DDE2E4; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.stage .bar i { width: 10px; height: 10px; border-radius: 50%; background: #BCC4C8; }
.stage .screen img { width: 100%; height: auto; aspect-ratio: 1440 / 640; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 3%; bottom: -1px; width: min(25%, 250px); border: 8px solid var(--side); border-bottom: 0; border-radius: 30px 30px 0 0; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -20px rgba(30,36,39,.55); }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }

/* Abschnitte */
section { padding: 96px 0; }
section.dark { background: var(--side); color: #E8ECEE; }
section.dark .lead, section.dark p { color: var(--side-ink); }
section.dark .kicker { color: var(--accent-light); }
section.white { background: var(--panel); }
.head { max-width: 760px; margin-bottom: 48px; }
.head .lead { margin-top: 16px; }

/* Kennen Sie das? */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }
.pain .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-light); }
.pain h3 { margin: 10px 0 10px; color: #FFFFFF; }
.pain p { font-size: 16px; }

/* Ablauf */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; list-style: none; padding: 0; margin: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 21px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-text) 0 8px, transparent 8px 14px); }
.flow li { position: relative; text-align: center; padding: 0 8px; counter-increment: s; }
.flow li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 600; position: relative; box-shadow: 0 0 0 6px var(--panel); }
.flow b { display: block; font-family: var(--font-head); font-stretch: 88%; font-size: 19px; }
.flow span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 4px; }

/* Funktionen */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); }
.feature .text p { color: var(--ink-2); margin-top: 14px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.feature li { padding-left: 28px; position: relative; color: var(--ink-2); font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent-soft); border: 2px solid var(--accent-text); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 50px -28px rgba(30,36,39,.4); }
.shot img { width: 100%; height: auto; }
.shot.tall { max-width: 460px; justify-self: center; width: 100%; }
.shot.tall img { aspect-ratio: 580 / 760; object-fit: cover; object-position: top; }
.shot.crop img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.duo { display: flex; gap: 18px; justify-content: center; }
.duo .shot { width: min(46%, 270px); border-radius: 26px; border: 7px solid var(--side); }
.duo .shot img { height: auto; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }
.duo .shot:last-child { margin-top: 48px; }
.pair { display: grid; gap: 14px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); margin-top: 18px; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.more div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.more b { font-family: var(--font-head); font-stretch: 88%; font-size: 19px; display: block; margin-bottom: 6px; }
.more p { color: var(--muted); font-size: 15.5px; }
.more .neu { border: 2px solid var(--accent-text); }
.more .tag { margin: 0 0 0 6px; vertical-align: 3px; font-family: var(--font); font-stretch: 100%; background: var(--accent-soft); color: var(--accent-text); }

/* Vergleich */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.col { border-radius: var(--radius); padding: 30px; }
.col.old { border: 1px dashed rgba(255,255,255,.25); }
.col.new { background: var(--accent); color: var(--accent-ink); }
.col h3 { color: #fff; margin-bottom: 16px; }
.col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.col li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 10px; color: var(--side-ink); font-size: 16px; }
.col.new li { color: inherit; border-color: color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.col.new h3, .col.new .sum { color: var(--accent-ink); }
.col li span:last-child { font-family: var(--font-mono); white-space: nowrap; }
.col .sum { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--font-head); font-stretch: 88%; font-size: 24px; color: #fff; font-weight: 750; }
.note { font-size: 14px; color: var(--side-muted) !important; margin-top: 16px; }

/* Preise */
.prices { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.plan { background: var(--panel); border: 2px solid var(--accent-text); border-radius: 16px; padding: 34px; }
.plan .name { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.plan .amount { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; }
.plan .amount b { font-family: var(--font-head); font-stretch: 85%; font-size: 72px; line-height: 1; font-weight: 800; }
.plan .amount span { color: var(--muted); }
.plan .year { color: var(--ink-2); font-size: 15.5px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 8px; columns: 2; }
.plan li { padding-left: 24px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.plan .btn { width: 100%; }
.plan .small { color: var(--muted); font-size: 14px; text-align: center; margin-top: 12px; }
.addons { display: grid; gap: 12px; }
.addon { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.addon b { display: block; font-size: 17px; }
.addon p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.addon .p { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.trial { background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--radius); padding: 18px 22px; font-size: 15.5px; }
.trial b { display: block; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; font-weight: 400; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; font-size: 16.5px; }

/* Schluss */
.final { text-align: center; }
.final h2 { max-width: 820px; margin: 0 auto; }
.final .lead { margin: 18px auto 0; }
.final .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
section.dark .btn:not(.primary) { color: #fff; border-color: rgba(255,255,255,.5); }

/* Links „Mehr erfahren“ und Hinweise */
.mehr { display: inline-block; margin-top: 18px; font-weight: 650; text-decoration: none; }
.mehr::after { content: " →"; }
.mehr:hover { text-decoration: underline; }
.more .mehr { margin-top: 10px; font-size: 15.5px; }
.hinweis { background: var(--accent-soft); border-left: 4px solid var(--accent-text); border-radius: 8px; padding: 14px 18px; margin-top: 20px; color: var(--ink-2); font-size: 15.5px; }

/* Themenseiten */
.topic-hero { padding: 64px 0 64px; }
.topic-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 920px; }
.topic-hero .lead { margin-top: 20px; }
.topic-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.feature h2 { font-size: clamp(26px, 3vw, 34px); }
.feature .text p + p { margin-top: 12px; }
.topic .feature:first-child { border-top: 0; padding-top: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-top: 14px; }
.prose ul { color: var(--ink-2); margin: 14px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.themen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.themen a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); }
.themen a:hover { border-color: var(--accent-text); }
.themen b { display: block; font-family: var(--font-head); font-stretch: 88%; font-size: 19px; margin-bottom: 4px; }
.themen span { color: var(--muted); font-size: 15px; }
.themen a[aria-current="page"] { border: 2px solid var(--accent-text); }

footer { background: #1E2427; color: var(--side-muted); padding: 40px 0; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--side-ink); text-decoration: none; }
footer a:hover { color: #fff; }
footer .tm { flex-basis: 100%; font-size: 13px; color: #8A959B; }

/* Handy */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .login { margin-left: auto; }
  .pains, .more, .compare, .prices { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 8px; }
  .flow::before { display: none; }
  .plan ul { columns: 1; }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .stage .screen img { aspect-ratio: 1440 / 680; } /* Ausschnitt ohne Herstellerhinweise im Bild */
  .phone { width: 34%; right: 2%; }
  .themen { grid-template-columns: 1fr 1fr; }
  .topic-hero { padding: 44px 0 48px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top .btn.small { display: none; }
  .hero .cta .btn, .topic-hero .cta .btn { width: 100%; }
  .themen { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .plan .amount b { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
