/* ===========================================================================
   FLYER-ABSCHNITT (neu in site v12, 11.11.2026)

   Inhalt 1:1 aus dem gedruckten A5-Flyer (Vorder- und Rueckseite).
   Steht direkt unter der Aktionsleiste mit "Preis berechnen".

   Aufbau:
     .flyer-kopf      Handwerker-Bild + "Scannen. Dokumentieren. Ueberzeugen."
     .flyer-phasen    Vor dem Ausbau / Waehrend der Bauphase / Nach Fertigstellung
     .flyer-band      orange Schraegband "Aus 360° Rundgang & 3D-Scan ..."
     .flyer-service   Rueckseite: Laserscan Service, zwei Fotos, sechs Vorteile

   Alle Klassen beginnen mit "flyer-", damit nichts mit dem Rest kollidiert.
   Farben kommen aus grundlagen.css (--orange, --dunkel, --text ...).
   Die Flyer-Ueberschriftenschrift (Zuume Rough) ist nur eine Demo-Lizenz
   und darf nicht ins Web - deshalb Roboto in Fett und Grossbuchstaben.
   =========================================================================== */

.flyer {
  max-width: 1104px;
  margin: 60px auto 0;
  padding: 0 20px;
}

/* --- 1. Kopf: Text links, Handwerker rechts ----------------------------- */
.flyer-kopf {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 30px;
  position: relative;
}
.flyer-kopf__titel {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: clamp(40px, 6vw, 76px);
  color: #fff;
}
.flyer-kopf__titel span { display: block; }
.flyer-kopf__titel .flyer-akzent { color: var(--orange); }

/* kurzer orange Pinselstrich unter der Ueberschrift */
.flyer-strich {
  display: block;
  width: 70px; height: 4px;
  margin: 26px 0 22px;
  background: var(--orange);
  border-radius: 2px;
}
.flyer-kopf__zielgruppe {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
}
.flyer-kopf__bild {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  height: auto;
  /* Foto ist rechteckig (Flyer Front Bild Final) - die schraege linke
     Kante wie im Flyer entsteht hier per clip-path */
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 38%);
  border-radius: 2px;
}

/* --- 2. Drei Bauphasen --------------------------------------------------- */
.flyer-phasen {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.flyer-phasen li {
  text-align: center;
  padding: 8px 10px;
}
.flyer-phasen li + li { border-left: 1px solid var(--rahmen); }
.flyer-phasen img { height: 80px; width: auto; display: block; margin: 0 auto 14px; }
.flyer-phasen strong {
  display: block;
  font-size: 18px;
  color: #fff;
}
.flyer-phasen strong::after {           /* kleiner Strich wie im Flyer */
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 10px auto 0;
  background: var(--orange);
  border-radius: 2px;
}

/* --- 3. Merksatz (frueher oranges Schraegband, am 11.11.2026 dezenter) --
   Kein Balken mehr: heller Text, Schluesselwoerter orange, links und
   rechts je eine feine Linie, die nach aussen ausblendet. */
.flyer-band {
  margin: 48px auto 0;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.flyer-band::before,
.flyer-band::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
.flyer-band::after { background: linear-gradient(90deg, var(--orange), transparent); }
.flyer-band p {
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
}
.flyer-band .flyer-akzent { color: inherit; font-weight: 500; }  /* bewusst weiss */

/* --- 4. Rueckseite: Laserscan Service ------------------------------------ */
.flyer-service {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.flyer-service__titel {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(36px, 5vw, 60px);
  color: #fff;
}
.flyer-service__titel span { display: block; color: var(--orange); }
.flyer-service__text {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}
.flyer-geraete {
  display: inline-block;
  padding: 8px 18px;
  background: var(--orange-tief);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transform: skewX(-12deg);
}
.flyer-geraete span { display: inline-block; transform: skewX(12deg); }
.flyer-service__vr {
  width: 100%; max-width: 460px; height: auto;
  justify-self: center;
  border-radius: 6px;
}

/* zwei Fotos mit Beschriftung */
.flyer-fotos {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.flyer-fotos figure { margin: 0; position: relative; }
.flyer-fotos img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border: 2px solid var(--orange);
  border-radius: 4px;
}
.flyer-fotos figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 7px 16px;
  background: var(--orange-tief);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transform: skewX(-12deg);
}
.flyer-fotos figcaption span { display: inline-block; transform: skewX(12deg); }

/* sechs Vorteile, zwei Spalten */
.flyer-vorteile {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.flyer-vorteile li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rahmen);
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
}
.flyer-vorteile img { width: 38px; height: 38px; flex: none; }

/* --- Smartphone ---------------------------------------------------------- */
@media (max-width: 760px) {
  .flyer { margin-top: 40px; padding: 0 16px; }
  /* Handy: die drei Bauphasen stehen senkrecht LINKS neben dem Foto.
     Dafuer wird .flyer zum Raster und .flyer-kopf per display:contents
     "aufgeloest", damit Text, Phasen und Foto im selben Raster liegen:
       Zeile 1: Ueberschrift + Zielgruppe (volle Breite)
       Zeile 2: Phasen | Foto
       danach:  alles Weitere ueber die volle Breite */
  .flyer { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .flyer > * { grid-column: 1 / -1; }
  .flyer-kopf { display: contents; }
  .flyer-kopf > div { grid-column: 1 / -1; margin-bottom: 18px; }
  .flyer-kopf__bild { grid-column: 2; grid-row: 2; max-width: none; height: 100%; object-fit: cover; }
  .flyer-phasen {
    grid-column: 1; grid-row: 2;
    margin: 0;
    grid-template-columns: 1fr;
    align-content: space-between;   /* oberstes Symbol oben buendig, unterstes unten buendig mit dem Foto */
  }
  .flyer-phasen li { padding: 14px 0; }
  /* oberstes Symbol buendig mit Fotooberkante, unterster Strich mit Fotounterkante */
  .flyer-phasen li:first-child { padding-top: 0; }
  .flyer-phasen li:last-child  { padding-bottom: 0; }
  .flyer-phasen li + li { border-left: 0; border-top: 1px solid var(--rahmen); }
  .flyer-phasen img { height: 66px; margin-bottom: 6px; }
  .flyer-phasen strong { font-size: 14px; line-height: 1.3; }
  .flyer-phasen strong::after { width: 44px; margin-top: 6px; }
  .flyer-band { gap: 12px; }
  .flyer-service { grid-template-columns: 1fr; margin-top: 56px; }
  /* Handy: Fotos und Vorteile bleiben zweispaltig (Wunsch Betreiber) */
  .flyer-fotos { gap: 10px; }
  /* Handy: Beschriftung UNTER dem Foto statt darauf (verdeckte sonst zu viel) */
  .flyer-fotos figcaption {
    position: static;
    margin: 6px 0 0;
    padding: 7px 6px;
    transform: none;              /* Handy: gerader Balken, keine Schraege */
    border-radius: 3px;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
  }
  .flyer-fotos figcaption span { transform: none; }
  .flyer-fotos img { height: auto; }   /* sonst streckt sich das Foto ueber die Beschriftung */
  .flyer-vorteile { column-gap: 14px; }
  .flyer-vorteile li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; padding: 12px 0; }
  .flyer-vorteile img { width: 30px; height: 30px; }
}

/* --- 5. Grossansicht der zwei Fotos (js/flyer-bilder.js) ------------------
   Baut auf .fenster aus leistungen-fenster.css auf; hier nur das, was beim
   reinen Bildfenster anders ist: breiter, ganzes Foto statt Streifen. */
.flyer-fotos img,
.flyer-fotos figcaption { cursor: zoom-in; }
.flyer-fotos img:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.flyer-bildfenster { width: min(1000px, 94vw); max-height: 92vh; }
.flyer-bildfenster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 60px);
  object-fit: contain;
  cursor: zoom-out;
}
.flyer-bildfenster__titel {
  margin: 0;
  padding: 14px 18px;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  color: #fff;
  background: var(--orange-tief);
}
