/* ==========================================================================
   MASSIV AI · beispiel.css: „So sieht Ihre neue Website aus“
   Startseite (#beispiel) und /website-fuer-handwerker (kompakt, .e-bsp--kompakt).
   Zeigt die erfundene Muster Haustechnik AG aus der studio-kit-Vorlage
   in einem Browser- und einem Handy-Rahmen. Rahmen nur per CSS.
   Nutzt die Token aus main.css. Präfix e-bsp-.
   Unter 760 px nur das Handy (der Browser-Screenshot wäre dort unlesbar klein).
   ========================================================================== */

.e-bsp {
  /* Gehäuse der Rahmen */
  --bsp-gehaeuse: #262C27;
  --bsp-gehaeuse-hell: #3A423B;
  --bsp-kante: rgba(245, 246, 242, .06);   /* aufgehellte Oberkante */
  --bsp-ring: rgba(245, 246, 242, .1);
  --bsp-schatten: rgba(0, 0, 0, .8);
  scroll-margin-top: calc(var(--hd-h) + 16px);
}
.e-bsp__kopf { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.e-bsp__kopf .e-h2 { margin-bottom: 0; }
.e-bsp__kopf .e-lede { margin-bottom: 0; }
.e-bsp__gross { display: none; }
@media (min-width: 760px) {
  .e-bsp__gross { display: inline; }
  .e-bsp__klein { display: none; }
}

/* Ehrlichkeits-Label: immer sichtbar, nicht als Kleingedrucktes */
.e-bsp .e-bsp__label {
  justify-self: start; max-width: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font: 500 var(--fs-label-c)/1.2 var(--f-display); letter-spacing: .01em; color: var(--white);
}
.e-bsp__label svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Bühne ------------------------------------------------------------------------ */
.e-bsp__buehne { margin: 0; }
.e-bsp__geraete { position: relative; }

.e-bsp__browser {
  display: none;                 /* erst ab 760 px */
  border-radius: 14px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--bsp-kante), 0 50px 90px -50px var(--bsp-schatten);
}
.e-bsp__leiste {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3);
  height: 40px; padding-inline: 14px;
  border-bottom: 1px solid var(--border);
}
.e-bsp__punktreihe { display: flex; gap: 6px; }
.e-bsp__punktreihe i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.e-bsp__url {
  justify-self: center; max-width: 100%;
  padding: 4px 14px; border-radius: 999px; background: var(--surface-deep);
  font: 400 0.75rem/1.3 var(--f-body); color: var(--gray);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.e-bsp__leiste::after { content: ""; width: 39px; } /* hält die Adresse mittig */
.e-bsp__browser img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 846; background: var(--surface-deep); }

/* Handy: unter 760 px allein und zentriert */
.e-bsp__handy {
  position: relative;
  width: 70%; max-width: 300px; margin-inline: auto;
  padding: 22px 8px 14px; border-radius: 40px;
  background: var(--bsp-gehaeuse);
  box-shadow: inset 0 1px 0 var(--bsp-kante), inset 0 0 0 1px var(--bsp-ring), 0 40px 70px -30px var(--bsp-schatten);
}
.e-bsp__handy::before {          /* Lautsprecher */
  content: ""; position: absolute; top: 8px; left: 50%;
  width: 22%; height: 6px; border-radius: 999px; background: var(--bsp-gehaeuse-hell);
  transform: translateX(-50%);
}
.e-bsp__handy img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 26px; background: var(--surface-deep); }

.e-bsp__cap { margin-top: var(--s5); max-width: 62ch; font-size: var(--fs-small); line-height: 1.5; color: var(--gray); }

@media (max-width: 759px) {
  .e-bsp__cap { text-align: center; margin-inline: auto; }
}

/* Ab 760 px: Browser links, Handy überlappt rechts unten.
   Das Handy hängt unten am Gerätekasten (padding-bottom), die Bildunterschrift
   hält ihren Abstand deshalb zur Unterkante des Handys, nicht des Browsers. */
@media (min-width: 760px) {
  .e-bsp__browser { display: block; }
  .e-bsp__geraete { padding-right: 14%; padding-bottom: 8%; }
  .e-bsp__handy {
    position: absolute; right: 0; bottom: 0; margin: 0;
    width: 23%; max-width: 270px;
    padding: 24px 9px 16px;
  }
  .e-bsp__handy::before { height: 7px; }
  .e-bsp__cap { margin-top: clamp(40px, 3.5vw, 56px); }
}
@media (min-width: 1000px) {
  .e-bsp:not(.e-bsp--kompakt) .e-bsp__kopf { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s6); align-items: end; }
  .e-bsp:not(.e-bsp--kompakt) .e-bsp__kopf .e-lede, .e-bsp:not(.e-bsp--kompakt) .e-bsp__kopf .e-bsp__label { grid-column: 2; }
  .e-bsp:not(.e-bsp--kompakt) .e-bsp__kopf .e-h2 { grid-row: 1 / span 2; align-self: end; }
}

/* Was jede Website hat: Legende 1 bis 4, Fliesstext mit Vorlauf ---------------- */
.e-bsp__fuss { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--border-soft); }
.e-bsp__fuss .kicker { margin-bottom: var(--s5); }
.e-bsp__legende { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.e-bsp__legende li { display: grid; grid-template-columns: 1.75em 1fr; column-gap: var(--s3); align-items: baseline; }
.e-bsp__n {
  font: 500 var(--fs-body)/1 var(--f-display); font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.e-bsp__legende p { font-size: var(--e-text, 1.0625rem); line-height: 1.5; color: var(--gray); max-width: 44ch; text-wrap: pretty; }
.e-bsp__legende b { color: var(--white); font-weight: 500; }
@media (min-width: 860px) {
  .e-bsp__fuss { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--s6); }
  .e-bsp__fuss .kicker { align-self: start; margin: 6px 0 0; }
  .e-bsp__legende { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); row-gap: var(--s5); }
}

.e-bsp__weiter { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.e-bsp__weiter .price-note { color: var(--gray); }
@media (min-width: 860px) {
  .e-bsp__weiter { margin-left: calc((100% - var(--s6)) * 3 / 11 + var(--s6)); }
}

/* Kompakt auf /website-fuer-handwerker: nur Bühne und Hinweis, die Punkte
   stehen dort schon in „Was zur Website gehört“. */
.e-bsp--kompakt .e-bsp__kopf { margin-bottom: var(--s5); gap: var(--s3); }
.e-bsp--kompakt .e-bsp__kopf h2 { margin-bottom: 0; }
@media (min-width: 760px) {
  .e-bsp--kompakt .e-bsp__cap { margin-top: var(--s6); }
}

/* Bewegung: Die Startseite blendet [data-rise] per GSAP ein (main.js, gestaffelt:
   erst der Browser, dann das Handy). Ohne Bewegung (motion-off) oder ohne
   Skript (js-fail) steht alles sofort da; das regelt main.css. Hier keine
   zweite Animation. */
