/* Smartmacherei — Zusatz fuer /ratgeber/loxone-oder-home-assistant: zwei Handy-Mocks im Hero
   (Loxone-artige Raumansicht als Nachbau, Home-Assistant-Dashboard), Entscheidungs-SVGs,
   Vergleichs- und Einstell-Karten. Mobile zuerst, zwei Spalten ab 720 px. */

/* Hero: zwei Handys nebeneinander, am Handy leicht ueberlappend */
.lh-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.lh-phone { background: #111; border-radius: 30px; padding: 9px; box-shadow: 0 24px 50px rgba(4,40,70,.35); }
.lh-phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.lh-app { border-radius: 22px; padding: 12px 11px 14px; font-family: var(--font-body); font-size: 11px; line-height: 1.3; min-height: 300px; }
.lh-app .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lh-app .top b { font-size: 14px; font-weight: 600; }
.lh-app .top small { font-size: 10px; opacity: .7; }
.lh-app .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lh-app .chips span { border-radius: 100px; padding: 4px 9px; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.lh-app .tile { border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; }
.lh-app .tile h5 { margin: 0 0 6px; font-size: 11px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.lh-app .tile h5 span { font-weight: 500; opacity: .75; }
.lh-app .track { height: 6px; border-radius: 3px; position: relative; overflow: hidden; }
.lh-app .track i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.lh-app .row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.lh-app .row + .row { border-top: 1px solid rgba(128,128,128,.18); }
.lh-app .row b { font-weight: 500; }
.lh-app .sw { width: 30px; height: 16px; border-radius: 8px; position: relative; flex: none; }
.lh-app .sw::after { content: ""; position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.lh-app .sw.on::after { right: 2px; }
.lh-app .sw.off::after { left: 2px; }
.lh-app .temp { display: flex; align-items: center; justify-content: space-between; }
.lh-app .temp b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lh-app .temp b small { font-size: 11px; font-weight: 500; opacity: .7; margin-left: 3px; }
.lh-app .temp .pm { display: flex; gap: 6px; }
.lh-app .temp .pm span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
/* Loxone-artiger Nachbau: helle Oberflaeche, gruener Akzent, kein Logo */
.lh-app.lox { background: #f3f6f4; color: #1d2b2b; }
.lh-app.lox .chips span { background: #fff; border: 1px solid rgba(29,43,43,.12); color: #1d2b2b; }
.lh-app.lox .chips span.on { background: #4f9e3c; border-color: #4f9e3c; color: #fff; }
.lh-app.lox .tile { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lh-app.lox .track { background: #e3e9e5; }
.lh-app.lox .track i { background: #4f9e3c; }
.lh-app.lox .sw.on { background: #4f9e3c; }
.lh-app.lox .sw.off { background: #cfd8d2; }
.lh-app.lox .temp .pm span { background: #eef2ef; }
/* Home-Assistant-Dashboard: dunkles Theme, Originalfarben von Home Assistant */
.lh-app.hass { background: #1c1c1c; color: #e1e1e1; }
.lh-app.hass .chips span { background: #2b2b2b; color: #cfcfcf; }
.lh-app.hass .chips span.on { background: #03a9f4; color: #fff; }
.lh-app.hass .tile { background: #262626; }
.lh-app.hass .sw.on { background: #03a9f4; }
.lh-app.hass .sw.off { background: #555; }
.lh-app.hass .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.lh-app.hass .bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 44px; align-items: end; }
.lh-app.hass .bars i { display: block; border-radius: 2px 2px 0 0; background: #ff9800; }
.lh-app.hass .bars i.g { background: #488fc2; }
.lh-app.hass .leg { display: flex; gap: 10px; font-size: 10px; color: #bdbdbd; margin-top: 5px; }
.lh-app.hass .leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lp-hero .visual .lh-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,.75); margin-top: 10px; }
.lp-hero .visual .lh-cap span { flex: 1; text-align: center; }

/* Entscheidungsleitern und Skizzen */
.lh-svg { padding: 4px; }
.lh-svg .q { font: 600 13px var(--font-body); fill: #0a2a3d; }
.lh-svg .h { font: 700 13px var(--font-display); fill: #0a2a3d; }
.lh-svg .t { font: 500 11.5px var(--font-body); fill: #0a2a3d; }
.lh-svg .s { font: 500 11px var(--font-body); fill: #5b7180; }
.rg-legend i.lox { background: rgba(10,111,190,.3); box-shadow: inset 0 0 0 2px #0a6fbe; }
.rg-legend i.hass { background: rgba(19,135,92,.3); box-shadow: inset 0 0 0 2px #13875c; }
.rg-legend i.both { background: rgba(10,111,190,.3); box-shadow: inset 0 0 0 2px #13875c; }
.lh-combo .lh-svg { max-width: 460px; margin: 0 auto; }
.rg-duo .card .lh-svg { margin: 6px 0 10px; }
.rg-duo .card .lh-svg + p { font-size: 14px; }

/* Vergleich als Kartenraster */
.lh-grid { display: grid; gap: 12px; margin: 14px 0 22px; }
.lh-grid .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.lh-grid h3 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.lh-grid h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lh-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: start; }
.lh-grid dt { font: 600 11px var(--font-body); letter-spacing: .04em; text-transform: uppercase; border-radius: 100px; padding: 4px 9px; white-space: nowrap; margin-top: 1px; }
.lh-grid dt.lox { color: #0a4f8a; background: rgba(10,111,190,.12); }
.lh-grid dt.hass { color: #0f6a49; background: rgba(19,135,92,.13); }
.lh-grid dd { margin: 0; font-size: 14.5px; color: var(--text); font-family: var(--font-body); line-height: 1.5; }

/* Was du selbst einstellst: Icon-Karten */
.article .lh-self { display: grid; gap: 10px; margin: 14px 0 22px; padding: 0; list-style: none; }
.lh-self li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.lh-self .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--card-soft); display: grid; place-items: center; }
.lh-self .ic svg { width: 30px; height: 30px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lh-self h3 { margin: 0 0 3px; font-size: 17px; }
.lh-self p { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.lh-self .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lh-self .tags span { font: 600 11px var(--font-body); letter-spacing: .03em; border-radius: 100px; padding: 3px 9px; }
.lh-self .tags .lox { color: #0a4f8a; background: rgba(10,111,190,.12); }
.lh-self .tags .hass { color: #0f6a49; background: rgba(19,135,92,.13); }

/* Kosten- und Nachteil-Karten: Ueberschrift mit System-Pill */
.rg-duo .card .sys { display: inline-block; font: 600 11px var(--font-body); letter-spacing: .04em; text-transform: uppercase; border-radius: 100px; padding: 4px 9px; margin-bottom: 8px; }
.rg-duo .card .sys.lox { color: #0a4f8a; background: rgba(10,111,190,.12); }
.rg-duo .card .sys.hass { color: #0f6a49; background: rgba(19,135,92,.13); }
.rg-duo .card .big { font-size: 28px; }
.rg-duo .card .big + p { margin-bottom: 10px; }

@media (max-width: 560px) {
  .lh-phones { gap: 10px; }
  .lh-phone { padding: 6px; border-radius: 22px; }
  .lh-phone img { border-radius: 16px; }
  .lp-hero .visual .lh-cap { gap: 10px; font-size: 11px; }
}
@media (min-width: 720px) {
  .lh-grid { grid-template-columns: 1fr 1fr; }
  .lh-self { grid-template-columns: 1fr 1fr; }
}
