/* /features/bewertungen/ – Google-Profil im Kopf (gp-), Zeitleiste (bz-), Kartenband (bk-), iPhone mit Aussage (bh-). */
.bw-glogo { width: 18px; height: 18px; flex: 0 0 auto; }

/* Sterne wie bei Google */
.gp-st { display: inline-flex; gap: 1px; vertical-align: middle; }
.gp-s { display: block; width: 15px; height: 15px; }
.gp-s svg { display: block; width: 100%; height: 100%; fill: #dadce0; transition: fill .15s, transform .3s cubic-bezier(.3,1.7,.5,1); }
.gp-s.an svg, .gp-s.on svg { fill: #FBBC04; }
.k-flow .gp-s[data-at] { opacity: 1; }
.k-flow .gp-s[data-at]:not(.on) svg { transform: scale(.7); }

/* ---------- Kopf: Google-Profil */
.sx-stage.sx-bewertungen { padding: 48px 24px 0; }
.gp-flow { display: grid; justify-items: center; }
.gp { width: 100%; max-width: 480px; height: 690px; overflow: hidden; overflow: clip; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(60,64,67,.12), 0 30px 70px -30px rgba(32,33,36,.4); font-family: Roboto, Arial, "Helvetica Neue", sans-serif; color: #202124; text-align: left; }
.gp-such { display: flex; align-items: center; gap: 12px; margin: 18px 18px 0; padding: 11px 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 6px rgba(32,33,36,.2); font-size: 15px; color: #202124; }
.gp-such .bw-glogo { width: 20px; height: 20px; }
.gp-such span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.gp-such > svg:last-child { width: 19px; height: 19px; fill: none; stroke: #4285F4; stroke-width: 2.2; stroke-linecap: round; }
.gp-kopf { padding: 22px 22px 18px; border-bottom: 1px solid #ebedef; }
.gp-name { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.gp-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 14.5px; color: #70757a; }
.gp-zeile > b { font-weight: 400; color: #70757a; }
.gp-zeile .gp-s { width: 16px; height: 16px; }
.gp-link { color: #1a0dab; white-space: nowrap; }
.gp-n { font-variant-numeric: tabular-nums; }
.gp-n .k-sw { transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); }
.gp-art { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; color: #70757a; }
.gp-akt { display: flex; gap: 8px; margin: 16px -22px 0 0; overflow: hidden; }
.gp-akt span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; border-radius: 999px; border: 1px solid #dadce0; font-size: 14px; font-weight: 500; color: #1a73e8; white-space: nowrap; flex: 0 0 auto; }
.gp-akt span.voll { border-color: #1a73e8; background: #1a73e8; color: #fff; }
.gp-akt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gp-rez { padding: 18px 22px 0; }
.gp-h { display: block; font-size: 18px; font-weight: 400; }
.gp-sum { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; margin-top: 12px; padding-bottom: 16px; border-bottom: 1px solid #ebedef; }
.gp-bs { display: grid; gap: 5px; }
.gp-b { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #70757a; line-height: 1; }
.gp-b > span { width: 7px; text-align: center; }
.gp-b > i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: #f1f3f4; overflow: hidden; }
.gp-b u { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: #FBBC04; }
.k-flow .gp-b-neu[data-at] { opacity: 1; width: calc(var(--w) - 2%); transition: width .8s var(--ease); }
.k-flow .gp-b-neu[data-at].on { width: var(--w); }
.gp-avg { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 104px; }
.gp-avg > b { font-size: 50px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.gp-avg small { font-size: 12px; color: #70757a; white-space: nowrap; }
.gp-r { padding: 15px 0 16px; border-bottom: 1px solid #ebedef; }
.gp-r-h { display: flex; align-items: center; gap: 11px; }
.gp-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 17px; font-weight: 400; flex: 0 0 auto; }
.gp-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; line-height: 1.2; }
.gp-who b { font-size: 14.5px; font-weight: 500; }
.gp-who small { font-size: 12.5px; color: #70757a; }
.gp-r-m { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.gp-r-m time { font-size: 13px; color: #70757a; }
.gp-r > p { margin: 7px 0 0; font-size: 14.5px; line-height: 1.45; color: #3c4043; }
.gp-r > p .k-grau { line-height: 1.15; }
/* Die neue Rezension schiebt sich oben in die Liste. */
.gp-neu { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.k-flow .gp-neu[data-at] { opacity: 1; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; background: #fef7e0; transition: max-height .7s var(--ease), padding .7s var(--ease), background-color 1.8s ease .5s; }
.k-flow .gp-neu[data-at].on { max-height: 220px; padding-top: 15px; padding-bottom: 16px; border-bottom-width: 1px; background: #fff; }

/* ---------- Abschnitt 1: Zeitleiste */
.bz { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.bz-s { position: relative; display: grid; grid-template-rows: 168px 34px auto; min-width: 0; padding-right: 16px; }
.k-flow .bz-s[data-at] { opacity: 1; }
.bz-g { display: grid; place-items: center; padding: 14px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--hair); overflow: hidden; }
.bz-g > * { transition: opacity .45s var(--ease), transform .5s var(--ease); }
.bz-s:not(.on) .bz-g > * { opacity: .28; transform: scale(.96); filter: grayscale(1); }
/* Strang mit Punkt */
.bz-p { position: relative; align-self: center; height: 2px; margin-right: -16px; background: var(--hair); }
.bz-s:last-child .bz-p { background: linear-gradient(90deg, var(--hair), transparent); }
.bz-p::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.5s linear; }
.bz-s.on .bz-p::before { transform: none; }
.bz-s:last-child .bz-p::before { display: none; }
.bz-p::after { content: ""; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cfcbbf; transition: box-shadow .3s, background .3s; }
.bz-s.on .bz-p::after { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px rgba(79,70,229,.14); }
.bz-t time { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bz-t p { margin: 4px 0 0; font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--ink); transition: color .4s; }
.bz-s:not(.on) .bz-t p { color: var(--ink-3); }
/* 1 Termin im Kalender */
.bz-kal { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; max-width: 190px; padding: 11px 12px; border-radius: 11px; border-left: 3px solid #4f46e5; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 10px 22px -16px rgba(19,23,34,.35); font-size: 13.5px; text-align: left; color: #131722; }
.bz-kal time { font-weight: 600; font-variant-numeric: tabular-nums; color: #4f46e5; }
.bz-kal span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bz-kal b { font-weight: 600; white-space: nowrap; }
.bz-kal .k-grau { font-size: 11px; }
.bz-ok { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1E7F4F; transform: scale(.4); }
.k-flow .bz-ok.on { transform: none; transition: opacity .2s, transform .35s cubic-bezier(.3,1.7,.5,1); }
.bz-ok svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* 2 Mitteilung */
.bz-mit { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; width: 100%; max-width: 200px; padding: 10px 11px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 12px 26px -16px rgba(19,23,34,.4); text-align: left; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #111; }
.bz-mit .kn-app { width: 30px; height: 30px; border-radius: 7.5px; }
.bz-mit .kn-app svg { width: 19px; height: 19px; }
.bz-mit span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.3; }
.bz-mit b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-mit em { font-style: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.k-flow .bz-mit[data-at] { transform: translateY(-14px); }
.k-flow .bz-mit[data-at].on { transform: none; }
/* 3 Sterne der Rückmeldeseite */
.bz-um { display: flex; gap: 2px; padding: 13px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.1); font-size: 27px; line-height: 1; }
.bw-s { position: relative; color: #d1d5db; }
.k-flow .bw-s[data-at] { opacity: 1; transition: color .12s; }
.k-flow .bw-s[data-at].on { color: #f59e0b; }
/* 4 Bewertungsfeld bei Google */
.bz-g4 { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 13px 16px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e8eaed, 0 10px 22px -16px rgba(32,33,36,.4); font-family: Roboto, Arial, sans-serif; }
.bz-g4 .bw-glogo { width: 20px; height: 20px; }
.bz-g4 .gp-s { width: 22px; height: 22px; }
.bz-g4 .gp-s svg { fill: none; stroke: #9aa0a6; stroke-width: 1.4; stroke-linejoin: round; }
.bz-g4 .gp-s.on svg { fill: #FBBC04; stroke: #FBBC04; }
.k-flow .bz-g4 .gp-s[data-at]:not(.on) svg { transform: none; }
.bz-post { position: relative; padding: 6px 18px; border-radius: 999px; background: #e8eaed; color: #9aa0a6; font-size: 13px; font-weight: 500; }
.k-flow .bz-post[data-at] { opacity: 1; transition: background .2s, color .2s; }
.bz-post.on { background: #1a73e8; color: #fff; }
/* 5 Rezension im Profil */
.bz-rez { display: flex; align-items: flex-start; gap: 9px; width: 100%; max-width: 200px; padding: 11px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e8eaed, 0 10px 22px -16px rgba(32,33,36,.4); font-family: Roboto, Arial, sans-serif; text-align: left; color: #202124; }
.bz-rez .gp-av { width: 30px; height: 30px; font-size: 14px; }
.bz-rez > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.bz-rez b { font-size: 13.5px; font-weight: 500; }
.bz-rez .k-grau { font-size: 10px; max-width: 100%; overflow: hidden; }
.k-flow .bz-rez[data-at] { transform: translateY(10px); }
.k-flow .bz-rez[data-at].on { transform: none; }

/* ---------- Abschnitt 2: Kartenband */
.bk-sec .sec-head p { margin-top: 14px; }
.bk { margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bk::-webkit-scrollbar { display: none; }
.bk-zug { display: flex; gap: 18px; width: max-content; padding: 6px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 34px; }
.bk-k { scroll-snap-align: center; flex: 0 0 auto; width: 340px; padding: 20px 20px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(60,64,67,.13), 0 22px 40px -30px rgba(32,33,36,.45); font-family: Roboto, Arial, "Helvetica Neue", sans-serif; color: #202124; text-align: left; }
.bk-k .bw-glogo { width: 20px; height: 20px; align-self: flex-start; }
.bk-k .gp-s { width: 17px; height: 17px; }
.bk-k > p { margin: 9px 0 0; min-height: 66px; font-size: 15px; line-height: 1.45; color: #3c4043; }
.bk-a { margin-top: 14px; padding: 2px 0 2px 14px; border-left: 2px solid #dadce0; }
.bk-a b { display: block; font-size: 13.5px; font-weight: 500; }
.bk-a p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #5f6368; }
.k-flow .bk-a[data-at] { transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.k-flow .bk-a[data-at].on { transform: none; }

/* ---------- Abschnitt 3: große Aussage über einem iPhone */
.bh { position: relative; display: flex; flex-direction: column; align-items: center; padding: 76px 32px 0; border-radius: 32px; border: 1px solid var(--hair); background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #F6F4EE 55%, #EFECE4 100%); text-align: center; overflow: hidden; overflow: clip; }
.bh h2 { max-width: 15ch; margin: 0; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.034em; font-weight: 500; text-wrap: balance; }
.bh > p { max-width: 520px; margin: 22px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.bh-flow { margin: 48px 0 -240px; text-align: left; }
.bh-flow .kw-chat { justify-content: flex-start; padding-top: 12px; }
.bh-flow .kp { width: 310px; }
.bh-tag { align-self: center; margin-bottom: 4px; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 11px; color: #54656F; }
/* Seite mit den fünf Sternen (api/public_crm.py), fährt über den Chat */
.bw-sv { position: absolute; inset: -46px 0 0; z-index: 4; display: flex; flex-direction: column; padding-top: 46px; background: #f4f5f7; transform: translateY(100%); pointer-events: none; }
.k-flow .bw-sv[data-at] { opacity: 1; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.bw-sv.on { transform: none; }
.bw-sv .kco-bar { background: #e6e7ea; }
.bw-sv-c { margin: 22px 12px 0; padding: 24px 14px 22px; border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); text-align: center; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; }
.bw-sv-c > b { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; }
.bw-sv-c > p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #4b5563; }
.bw-sv-st { display: flex; justify-content: center; gap: 5px; margin-top: 16px; font-size: 36px; line-height: 1; }

@media (hover: hover) and (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .bk-zug { animation: bkZug 46s ease-in-out infinite alternate; }
  .bk:hover .bk-zug { animation-play-state: paused; }
}
@keyframes bkZug { from { transform: none; } to { transform: translateX(calc(100vw - 100%)); } }
@media (max-width: 960px) {
  .bz { grid-template-columns: 1fr; margin-top: 30px; }
  .bz-s { grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 0 0 26px; }
  .bz-s:last-child { padding-bottom: 0; }
  .bz-p { grid-area: 1 / 1 / 3 / 2; align-self: stretch; justify-self: center; width: 2px; height: auto; margin: 6px 0 -32px; }
  .bz-s:last-child .bz-p { margin-bottom: 0; background: linear-gradient(180deg, var(--hair), transparent); }
  .bz-p::before { transform: scaleY(0); transform-origin: top; }
  .bz-p::after { left: -5px; top: 0; }
  .bz-t { grid-area: 1 / 2; }
  .bz-g { grid-area: 2 / 2; margin-top: 12px; min-height: 112px; padding: 16px 14px; }
}
@media (max-width: 720px) {
  .sx-stage.sx-bewertungen { padding: 22px 12px 0; }
  .gp { height: 596px; border-radius: 18px 18px 0 0; }
  .gp-such { margin: 14px 14px 0; padding: 10px 14px; }
  .gp-kopf { padding: 18px 16px 16px; }
  .gp-name { font-size: 23px; }
  .gp-zeile, .gp-art { font-size: 14px; }
  .gp-akt { margin-right: -16px; }
  .gp-rez { padding: 16px 16px 0; }
  .gp-sum { gap: 16px; }
  .gp-avg { min-width: 96px; }
  .gp-avg > b { font-size: 44px; }
  .gp-neu { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .gp-art { display: none; }
  .gp-sum { padding-bottom: 12px; }
  .gp-r { padding-top: 13px; }
  .bk { margin-top: 26px; }
  .bk-zug { gap: 12px; padding: 4px 20px 28px; }
  .bk-k { width: min(304px, 82vw); padding: 18px 16px 16px; }
  .bh { margin: 0 -8px; padding: 44px 18px 0; border-radius: 26px; }
  .bh > p { margin-top: 16px; font-size: 17px; }
  .bh-flow { margin: 34px 0 -215px; }
  .bh-flow .kp { width: 286px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-flow .gp-neu[data-at], .k-flow .gp-b-neu[data-at], .bw-sv, .bz-p::before, .bz-g > * { transition: none; }
}
.sx-stage.sx-bewertungen, .sx-stage.sx-bewertungen * { min-width: 0; }
.sx-stage.sx-bewertungen > *, .sx-stage.sx-bewertungen .gp { max-width: 100%; box-sizing: border-box; }
@media (max-width: 720px) { .sx-stage.sx-bewertungen .gp { max-width: 100%; } .gp-rev p, .gp p { overflow-wrap: anywhere; } }
