/* Fallgeschichte Kintschmer mol (05.10.2026), nach seitebereit-fallgeschichte/referenz-fallgeschichte.html.
   Präfix fg-, Farben aus der Marke (--gruen = Espresso, --gold = Kupfer). */
.fg { padding: 96px 0 110px; }
.fg :where(h2, h3, p, figure, blockquote) { margin: 0; }
.fg-kopf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.fg-vorzeile { font-size: 15.5px; font-weight: 600; color: var(--bronze); }
.fg-kopf h2 { margin-top: 12px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -.035em; }
.fg-eckdaten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fg-eckdaten li { padding: 7px 13px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--linie); font-size: 14.5px; font-weight: 600; }
/* Link zur Kundenseite: ganze Pille klickbar, Pfeil nach rechts oben = öffnet eine neue Seite */
.fg-eckdaten li.fg-link { padding: 0; transition: border-color .15s, background-color .15s; }
.fg-eckdaten li.fg-link:hover { border-color: var(--kupfer-hell); background: #FFFBF7; }
.fg-eckdaten a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; color: var(--text); text-decoration: none; }
.fg-eckdaten a svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .15s; }
.fg-eckdaten a:hover svg { translate: 1px -1px; }

/* Vergleich */
.fg-vergleich { position: relative; margin-top: 40px; border-radius: 22px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--linie);
  box-shadow: 0 1px 2px rgba(58, 40, 30, .05), 0 40px 80px -50px rgba(58, 40, 30, .55); }
.fg-leiste { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.fg-leiste i { width: 10px; height: 10px; border-radius: 50%; background: #D8CFC3; }
.fg-leiste span { margin-left: 10px; padding: 4px 14px; border-radius: 7px; background: #FFFFFF; font-size: 13.5px; color: var(--leise); }
.fg-buehne { --x: 50%; position: relative; aspect-ratio: 1344 / 750; user-select: none; touch-action: pan-y; }
.fg-buehne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fg-vorher { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.fg-linie { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(28, 23, 20, .15), 0 0 20px rgba(0, 0, 0, .2); pointer-events: none; }
.fg-griff { position: absolute; top: 50%; left: var(--x); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(58, 40, 30, .4), 0 0 0 4px #FFFFFF; pointer-events: none; }
.fg-griff svg { width: 26px; height: 26px; fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fg-etikett { position: absolute; top: 18px; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 700; pointer-events: none; }
.fg-etikett-vorher { left: 18px; background: rgba(28, 23, 20, .78); color: #FFFFFF; }
.fg-etikett-nachher { right: 18px; background: #FFFFFF; color: var(--gruen); box-shadow: 0 2px 8px rgba(58, 40, 30, .2); }
.fg-regler { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.fg-regler:focus-visible + .fg-griff { box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--gold); }
.fg-tipp { margin-top: 12px; text-align: center; font-size: 14px; color: var(--leise); }

/* Stationen */
.fg-stationen { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.fg-stationen::before { content: ""; position: absolute; left: 20px; right: 20px; top: 20px; border-top: 1.6px dashed var(--gold); opacity: .55; }
.fg-stationen li { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.fg-nr { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--papier); border: 1.6px solid var(--gold); color: var(--gold); font-weight: 700; }
.fg-stationen li:last-child .fg-nr { background: var(--gold); color: #FFFFFF; }
.fg-stationen h3 { margin-top: 18px; font-size: 19px; letter-spacing: -.01em; }
.fg-stationen p { margin-top: 6px; margin-bottom: 12px; font-size: 16px; color: #3E3530; }
.fg-detail { display: inline-block; justify-self: start; margin-top: auto; padding: 4px 10px; border-radius: 8px; background: var(--flaeche); font-size: 13.5px; font-weight: 600; color: var(--gruen); }

/* Zitat */
.fg-zitat { margin-top: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: 44px 48px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--linie); }
.fg-zeichen { font-family: Georgia, serif; font-size: 120px; line-height: .75; color: var(--kupfer-hell); }
.fg-zitat blockquote p { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.fg-zitat figcaption { margin-top: 16px; font-size: 15.5px; color: var(--leise); }
.fg-zitat figcaption b { color: var(--text); }

/* Ihre Seite */
.fg-ihre { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 40px 48px; border-radius: 24px; background: var(--gruen-dunkel); color: #EDE2D7; }
.fg-zitat + .fg-ihre { margin-top: 28px; }
.fg-ihre h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: #FFFFFF; }
.fg-ihre p { margin-top: 10px; font-size: 16.5px; color: #CDBDAE; }
.fg-ihre form { display: flex; gap: 8px; padding: 7px; border-radius: 14px; background: #FFFFFF; }
.fg-ihre input[type="text"] { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 17px; color: var(--text); background: transparent; }
.fg-ihre input[type="text"]:focus { outline: none; }
.fg-ihre form:focus-within { box-shadow: 0 0 0 3px var(--kupfer-hell); }
.fg-ihre .knopf { background: var(--gold); border-color: var(--gold); color: #FFFFFF; min-height: 52px; display: inline-flex; align-items: center; }
.fg-ihre .knopf:hover { background: var(--bronze); border-color: var(--bronze); }
.fg-unter { margin-top: 12px; font-size: 14.5px; color: #BFAE9E; }
.fg-unter a { color: #FFFFFF; font-weight: 600; }

@media (max-width: 1000px) {
  .fg-kopf { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fg-eckdaten { justify-content: flex-start; }
  .fg-stationen { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .fg-stationen::before { display: none; }
  .fg-ihre { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fg { padding: 56px 0 72px; }
  .fg-vergleich { border-radius: 16px; }
  .fg-leiste { height: 32px; }
  .fg-etikett { top: 10px; font-size: 12.5px; padding: 4px 9px; }
  .fg-etikett-vorher { left: 10px; }
  .fg-etikett-nachher { right: 10px; }
  .fg-griff { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .fg-stationen { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 4px; }
  .fg-stationen::before { display: block; left: 24px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 1.6px dashed var(--gold); }
  .fg-stationen li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
  .fg-stationen li > *:not(.fg-nr) { grid-column: 2; }
  .fg-stationen .fg-nr { grid-row: span 3; }
  .fg-stationen h3 { margin-top: 8px; }
  .fg-zitat { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 28px 24px; }
  .fg-zeichen { font-size: 80px; }
  .fg-ihre { padding: 28px 22px; }
  .fg-ihre form { flex-direction: column; }
  .fg-ihre input[type="text"] { min-height: 48px; }
}

/* Musterseiten zum Antippen (werkzeuge/beispiele_bauen.py) */
.bsp { margin-top: 56px; min-width: 0; max-width: 100%; }
.bsp-kopf { max-width: 640px; }
.bsp-kopf h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin: 0 0 8px; }
.bsp-kopf p { color: var(--leise); margin: 0; }
.bsp-raster { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bsp-karte { position: relative; /* hält den unsichtbaren Tab-Hinweis in der Karte, sonst wird die Seite am Handy zu breit */ display: grid; gap: 4px; height: 100%; padding: 10px 10px 16px; border: 1px solid var(--linie); border-radius: 14px; background: var(--karte);
  color: var(--text); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bsp-karte img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; background: var(--flaeche); margin-bottom: 10px; }
.bsp-karte > span, .bsp-karte > b { padding-inline: 6px; }
.bsp-art { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
.bsp-karte b { font-size: 17px; line-height: 1.25; }
.bsp-zeile { font-size: 14.5px; color: var(--leise); }
.bsp-los { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--bronze); }
.bsp-los svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.bsp-karte:hover, .bsp-karte:focus-visible { border-color: var(--kupfer-hell); box-shadow: 0 14px 30px -18px rgba(75, 52, 39, .45); transform: translateY(-3px); }
.bsp-karte:hover .bsp-los svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .bsp-karte, .bsp-los svg { transition: none; } .bsp-karte:hover { transform: none; } }
/* Bleibt eine Karte allein in der letzten Reihe, wird sie breit: Bild links, Text rechts */
@media (min-width: 901px) {
  .bsp-raster li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 24px; align-content: center; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte { grid-template-rows: 1fr auto auto auto auto 1fr; row-gap: 6px; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte img { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte > :not(img) { grid-column: 2; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte > :nth-child(2) { grid-row: 2; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte > :nth-child(3) { grid-row: 3; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte > :nth-child(4) { grid-row: 4; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte > :nth-child(5) { grid-row: 5; }
  .bsp-raster li:last-child:nth-child(3n+1) .bsp-karte b { font-size: 22px; }
}
@media (max-width: 900px) { .bsp-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 900px) { .bsp-raster li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  /* Am Handy eine Reihe zum Wischen statt sechs Karten untereinander */
  .bsp-raster { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; width: calc(100% + 32px); max-width: 100vw; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .bsp-raster::-webkit-scrollbar { display: none; }
  .bsp-raster li { scroll-snap-align: start; }
  .bsp-karte:hover { transform: none; }
}

/* Referenzen: echte Seiten, die online sind */
.ref { margin-bottom: clamp(40px, 6vw, 64px); }
.ref-online { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2E7A4C; box-shadow: 0 0 0 3px rgb(46 122 76 / 18%); vertical-align: middle; }
/* Zweizeilige Beschreibung: Adresse bleibt in jeder Reihe unten auf einer Linie */
.ref-karte { grid-template-rows: auto auto auto 1fr auto; }
.ref-karte .bsp-zeile { align-self: start; }
