/* Smartmacherei — Landingpages (WLAN, Nachrüsten, Home Assistant, Loxone, Energie).
   Helles Web-CI wie /downloads: Outfit fuer Ueberschriften, Inter fuer Fliesstext. */

:root {
  --ink:       #0a2a3d;
  --ink-soft:  #5b7180;
  --text:      #3f5866;
  --card:      #ffffff;
  --card-soft: #f4f8fb;
  --page:      #eef4f8;
  --deep:      #0a6fbe;
  --accent:    #03A9F4;
  --brand:     #11b1d6;
  --line:      rgba(10, 42, 61, 0.10);
  --good:      #36c98e;
  --mid:       #ffb83d;
  --weak:      #ff6b57;
  --hero-grad: radial-gradient(135% 130% at 88% 12%, #34C8FF 0%, #07A4EF 38%, #0286D4 70%, #0a6fbe 100%);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* Welt-Farben wie auf der Startseite: Loxone-Seite gruen (body[data-world="lox"] in index.html). */
body.world-lox {
  --deep: #357f24; --accent: #5AB13C; --brand: #5fc23f;
  --hero-em: #d9f7c4;
  --hero-grad: radial-gradient(125% 120% at 50% 40%, #7CD157 0%, #5FB840 42%, #469330 74%, #34791e 100%);
}
:root { --hero-em: #bfeaff; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); font-family: var(--font-display); -webkit-font-smoothing: antialiased; }
a { color: var(--deep); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
p, li, td, th, dd, summary { font-family: var(--font-body); color: var(--text); line-height: 1.6; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; margin: 0 0 12px; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────── */
.sm-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sm-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.sm-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.sm-logo:hover { color: var(--ink); }
.sm-logo .lk { font-size: 20px; font-weight: 700; }
.sm-logo svg { color: var(--brand); }
.hdr-right { display: flex; align-items: center; gap: 6px; }
.hdr-right .back, .hdr-right .tel { font-family: var(--font-body); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 100px; white-space: nowrap; }
.hdr-right .back:hover, .hdr-right .tel:hover { background: var(--card-soft); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 100px; padding: 11px 20px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn.primary { background: var(--deep); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--deep) 30%, transparent); }
.btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px color-mix(in srgb, var(--deep) 38%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card-soft); color: var(--ink); }
.btn.light { background: #fff; color: var(--deep); }
.btn.light:hover { color: var(--deep); transform: translateY(-1px); }
.btn .ar { transition: transform .15s; }
.btn:hover .ar { transform: translateX(3px); }

/* ── Hero ───────────────────────────────────────────────────── */
.lp-hero { background: var(--hero-grad); color: #fff; padding: 64px 0 56px; }
.lp-hero .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); margin: 0 0 14px; }
.lp-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.05; max-width: 15ch; margin-bottom: 18px; }
.lp-hero h1 em { font-style: normal; color: var(--hero-em); }
.lp-hero .lead { color: rgba(255,255,255,.92); font-size: 18px; max-width: 62ch; margin: 0 0 22px; }
.lp-hero .lead strong { color: #fff; }
.lp-hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 26px; padding: 0; list-style: none; }
.lp-hero .facts li { color: rgba(255,255,255,.92); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lp-hero .facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-em); }
.lp-hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero .wrap.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.lp-hero .visual { margin: 0; }
.lp-hero .visual img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 30px 60px rgba(4,40,70,.35); }
.lp-hero .visual.phone { max-width: 300px; margin: 0 auto; }
.lp-hero .visual.phone img { border-radius: 34px; }
.lp-hero .visual figcaption { font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,.7); margin-top: 10px; text-align: center; }

/* ── Bildbausteine ──────────────────────────────────────────── */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); }
.figure figcaption { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 28px; }
.compare .figure { position: relative; }
.compare .figure::before { content: attr(data-label); position: absolute; top: 12px; left: 12px; z-index: 1; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(10,42,61,.72); border-radius: 100px; padding: 5px 11px; }
.compare .figure.after::before { background: var(--deep); }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 24px 0 0; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.brand-row span { font: 500 12px var(--font-body); color: var(--ink-soft); margin-right: 6px; }
.brand-row img { height: 28px; width: auto; opacity: .85; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.devices figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.devices img { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 auto 8px; }
.devices figcaption { font: 600 13px var(--font-display); color: var(--ink); }
.devices figcaption small { display: block; font: 400 12px var(--font-body); color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 900px) {
  .lp-hero .wrap.split { grid-template-columns: 1fr; gap: 26px; }
  .lp-hero .visual.phone { max-width: 220px; }
}
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }

/* ── Sektionen ──────────────────────────────────────────────── */
.lp-section { padding: 56px 0; }
.lp-section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section .intro { max-width: 68ch; font-size: 17px; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.lp-section.alt .card { background: var(--card-soft); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; }
.card .tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); background: color-mix(in srgb, var(--deep) 8%, transparent); border-radius: 100px; padding: 4px 10px; margin-bottom: 12px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 22px 66px; position: relative; font-size: 15px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--deep); background: color-mix(in srgb, var(--deep) 8%, transparent); border-radius: 10px; padding: 6px 8px; }
.steps li strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.lp-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.lp-table th, .lp-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-table th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--card-soft); }
.lp-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.note { font-size: 14px; color: var(--ink-soft); }

/* ── Preis ──────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.price.featured { border-color: color-mix(in srgb, var(--deep) 45%, transparent); box-shadow: 0 18px 40px color-mix(in srgb, var(--deep) 12%, transparent); }
.price .amount { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1; margin: 6px 0 4px; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.price .sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.price ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.price li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.price li.no::before { content: "–"; color: var(--ink-soft); }
.price .btn { margin-top: auto; align-self: flex-start; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--deep); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 15px; }

/* ── Anfrage ────────────────────────────────────────────────── */
.lp-cta { background: var(--ink); color: #fff; border-radius: 24px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lp-cta h2, .lp-cta p { color: #fff; }
.lp-cta p { color: rgba(255,255,255,.8); }
.lp-cta .contact a { color: var(--hero-em); font-family: var(--font-body); font-size: 17px; font-weight: 600; text-decoration: none; display: block; margin-top: 6px; }
.lp-form { display: grid; gap: 12px; }
.lp-form label { display: grid; gap: 6px; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.8); }
.lp-form input, .lp-form textarea { font: 15px var(--font-body); color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%; }
.lp-form textarea { min-height: 110px; resize: vertical; }
.lp-form input:focus, .lp-form textarea:focus { outline: 2px solid var(--accent); }
.lp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-form .fine { font-size: 12px; color: rgba(255,255,255,.62); margin: 0; }
.lp-form .fine a { color: var(--hero-em); }
.lp-form-status { border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: 14px; }
.lp-form-status.ok { background: rgba(54,201,142,.18); color: #bff5dd; }
.lp-form-status.err { background: rgba(255,107,87,.18); color: #ffd1c9; }

/* ── Footer ─────────────────────────────────────────────────── */
.lp-footer { padding: 36px 0 44px; font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }
.lp-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.lp-footer h4 { font-family: var(--font-display); font-size: 13px; color: var(--ink); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lp-footer a { color: var(--ink-soft); text-decoration: none; }
.lp-footer a:hover { color: var(--deep); }
.lp-footer .meta { border-top: 1px solid var(--line); padding-top: 18px; }

/* ── WLAN-Grundriss ─────────────────────────────────────────── */
.wp { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.wp-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.wp-controls button { font: 600 14px var(--font-body); color: var(--ink); background: var(--card-soft); border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; cursor: pointer; }
.wp-controls button.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.wp-svg { width: 100%; height: auto; display: block; background: #f7fafc; border-radius: 12px; }
.wp-plan { opacity: .9; }
.wp-heat { opacity: .78; mix-blend-mode: multiply; }
.wp-heat-img { transition: opacity 1.1s ease; image-rendering: auto; }
.wp-room rect { fill: transparent; stroke: rgba(10,42,61,.55); stroke-width: 3; }
.wp-room.outdoor rect:first-child { stroke-dasharray: 18 14; stroke-width: 3; }
.wp-win { fill: none !important; stroke: none !important; }
.wp-door { fill: none !important; stroke: none !important; }
.wp-label { font: 700 30px var(--font-display); fill: #0a2a3d; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 8; }
.wp-signal { font: 600 24px var(--font-mono); fill: #0a2a3d; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 7; }
.wp-pulse { fill: none; stroke: rgba(10,111,190,.55); stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: wp-pulse 3.3s ease-out infinite; }
.wp-ring.router .wp-pulse { stroke: rgba(255,107,87,.55); }
@keyframes wp-pulse { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(12); opacity: 0; } }
.wp-ap circle { fill: var(--deep); stroke: #fff; stroke-width: 8; }
.wp-ap.router circle { fill: var(--weak); }
.wp-ap.outdoor circle { fill: var(--good); }
.wp-ap-label { font: 600 24px var(--font-body); fill: #0a2a3d; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 8; }
.wp-scale { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.wp-scale .bar { flex: 1; height: 12px; border-radius: 6px; max-width: 420px;
  background: linear-gradient(90deg, #d7263d 0%, #ff7a3d 22%, #ffd23f 40%, #5cc978 62%, #2ec4b6 82%, #2f80ed 100%); }
.wp-summary { font-family: var(--font-body); font-size: 14px; color: var(--ink); margin: 12px 0 0; font-weight: 600; }

/* ── Produktbeispiele (Omada) ───────────────────────────────── */
.prod { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.prod .pic { width: 96px; height: 96px; border-radius: 16px; background: var(--card-soft); display: grid; place-items: center; }
.prod .pic svg { width: 76px; height: 76px; }
.prod h3 { margin-bottom: 2px; }
.prod .model { font-family: var(--font-mono); font-size: 12px; color: var(--deep); margin: 0 0 8px; }
.prod p { margin: 0 0 8px; font-size: 14px; }
.prod .pr { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); margin: 0; }
.prod .pr b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .prod { grid-template-columns: 72px 1fr; } .prod .pic { width: 72px; height: 72px; } .prod .pic svg { width: 56px; height: 56px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-pulse { animation: none; }
  .wp-room rect { transition: none; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .two-col, .lp-cta, .lp-footer .cols { grid-template-columns: 1fr; }
  .lp-hero { padding: 44px 0 40px; }
  .hdr-right .back { display: none; }
}
@media (max-width: 560px) {
  .hdr-right .tel { display: none; }
  .sm-header .wrap { height: 58px; gap: 10px; }
  .sm-logo .lk { font-size: 17px; }
  .sm-header .btn { padding: 9px 13px; font-size: 13px; gap: 6px; }
  .lp-form .row { grid-template-columns: 1fr; }
  .lp-cta { padding: 24px; border-radius: 18px; }
  .wp { padding: 12px; }
}
