/* BoardMatrix-Produktseiten: Ergaenzungen zum mimag-Look (mimag.css wird vorher geladen). */
:root { --bm-orange: #f08a1c; }

/* Kopf mit Produktname statt mimag-Logo */
.produkt-logo { display: flex; align-items: center; gap: .7rem; font: 500 1.2rem var(--f-head); letter-spacing: -.01em; }
.produkt-logo img { width: 32px; height: 32px; border-radius: 7px; }

/* Knoepfe (produkt-knopf: generische Klasse, die build.py fuer den App-Store-Knopf erzeugt) */
.bm-aktionen { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.bm-knopf, .produkt-knopf { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border: 1.5px solid var(--schwarz); border-radius: 999px; background: var(--schwarz); color: var(--weiss); font: 500 .98rem var(--f-text); cursor: pointer; transition: background .25s, color .25s; }
.bm-knopf:hover, .produkt-knopf:hover { background: var(--weiss); color: var(--schwarz); }
.bm-knopf.zweit { background: transparent; color: var(--schwarz); }
.bm-knopf.zweit:hover { background: var(--schwarz); color: var(--weiss); }
.bm-knopf.bald, .produkt-knopf.bald { background: var(--flaeche); color: var(--text-2); border-color: var(--linie); cursor: default; }
.bm-knopf svg, .produkt-knopf svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.bm-hero { padding: clamp(3rem, 9vh, 6rem) 0 0; }
.bm-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.bm-hero-text { grid-column: 1 / span 7; }
.bm-symbol { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.bm-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; }
.bm-hero-text > p { margin: 1.8rem 0 0; font-size: 1.1rem; color: #2b2b2b; max-width: 36rem; }
.bm-hero-text > p.bm-klein { margin-top: 1rem; font-size: .98rem; color: var(--text-2); }
.bm-hero-bild { grid-column: 9 / -1; justify-self: center; }
.bm-hero-bild img { width: min(320px, 100%); height: auto; border-radius: 36px; border: 8px solid #111; box-shadow: 0 30px 60px rgba(0,0,0,.18); background: #111; }

/* Schritte */
.bm-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: schritt; }
.bm-schritte li { border-top: 1px solid var(--schwarz); padding-top: 1.1rem; counter-increment: schritt; }
.bm-schritte li::before { content: counter(schritt); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bm-orange); color: #111; font: 600 1rem var(--f-head); margin-bottom: .9rem; }
.bm-schritte h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.bm-schritte p { margin: 0 0 .8rem; color: var(--text-2); font-size: .95rem; }
.bm-schritte a { font-size: .95rem; }

/* Funktionen */
.bm-funktionen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.bm-funktionen li { background: var(--weiss); padding: 1.4rem 1.4rem 1.2rem; }
.bm-funktionen h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.bm-funktionen p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* Screenshots: waagerechte Leiste (ueberschreibt die Projekt-Galerie aus mimag.css) */
.galerie.bm-screens { grid-column: auto; display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.galerie.bm-screens img { flex: 0 0 auto; width: clamp(180px, 22vw, 260px); height: auto; aspect-ratio: 552 / 1200; border-radius: 22px; border: 1px solid var(--linie); scroll-snap-align: start; grid-row: auto; }

/* Haeufige Fragen */
.bm-fragen { border-top: 1px solid var(--schwarz); max-width: 60rem; }
.bm-fragen details { border-bottom: 1px solid var(--linie); }
.bm-fragen summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font: 500 1.15rem var(--f-head); position: relative; }
.bm-fragen summary::-webkit-details-marker { display: none; }
.bm-fragen summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; }
.bm-fragen details[open] summary::after { content: "–"; }
.bm-fragen p { margin: 0 0 1.3rem; color: var(--text-2); max-width: 62ch; }

/* Hinweise */
.bm-hinweis p { margin: 0 0 .8rem; max-width: 70ch; font-size: .9rem; color: var(--text-2); }
.bm-tipp { margin: 2rem 0 0; padding: 1.1rem 1.3rem; background: var(--flaeche); font-size: .95rem; max-width: 70ch; }

/* Unterseiten */
.bm-seitenkopf { padding: clamp(3rem, 8vh, 5rem) 0 0; }
.bm-seitenkopf h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.bm-seitenkopf p { max-width: 40rem; font-size: 1.08rem; color: #2b2b2b; margin: 1.4rem 0 0; }
.bm-seitenkopf .bm-zurueck { margin: 0 0 1.2rem; font-size: .9rem; color: var(--text-2); }
.bm-eng { padding-top: clamp(3.5rem, 8vh, 5rem); }
.bm-warnung { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 4px solid var(--bm-orange); background: #fff6ec; }
.bm-warnung h2 { font-size: 1.2rem; letter-spacing: normal; margin-bottom: .4rem; }
.bm-warnung p { margin: 0; }

/* Installer */
.bm-installer { margin-top: clamp(4rem, 9vh, 6rem); }
.bm-installationen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.installation { background: var(--weiss); padding: 1.8rem; }
.installation h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.installation > p { margin: 0 0 1.4rem; color: var(--text-2); font-size: .95rem; }
.installation .firmware-status { margin: .9rem 0 0; font-size: .85rem; color: var(--text-2); }
.installation.gesperrt esp-web-install-button, .installation.ohne-firmware esp-web-install-button { display: none; }
esp-web-install-button [slot="unsupported"], esp-web-install-button [slot="not-allowed"] { display: block; font-size: .92rem; color: var(--text-2); }

/* Datenschutz der App */
.recht strong { font-weight: 600; }

@media (max-width: 1000px) { .bm-funktionen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .bm-hero-grid { grid-template-columns: 1fr; }
  .bm-hero-grid > * { grid-column: 1 / -1 !important; }
  .bm-hero-bild { justify-self: start; margin-top: 1rem; }
  .bm-schritte, .bm-installationen { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .bm-funktionen { grid-template-columns: 1fr; } .produkt-logo span { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .bm-hero-text > * { animation: hoch 1s var(--ease) both; }
  .bm-hero-bild img { animation: auf 1.3s .15s var(--ease) both; }
}
