/* PWA Google-Bewertungen – Kasten für die Footer-Spalte „Meinungen“ (passt auch in breitere Spalten) */

.pwa-bew {
    --pwa-bew-gruen: #1e5712;
    --pwa-bew-hell: #a0ce4e;
    --pwa-bew-zart: #eff4f2;
    --pwa-bew-text: #4a4a4a;
    --pwa-bew-gold: #f2a900;
    max-width: 420px;
    color: var(--pwa-bew-text);
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Kopf: Note, Sterne, Anzahl ---------------------------------------- */

.pwa-bew .pwa-bew-kopf {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}

.pwa-bew .pwa-bew-kopf:focus-visible {
    outline: 2px solid var(--pwa-bew-gruen);
    outline-offset: 4px;
}

.pwa-bew-note {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 500;
    line-height: 1;
    color: var(--pwa-bew-gruen);
    letter-spacing: -0.01em;
}

.pwa-bew-rechts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-bew-sterne,
.pwa-bew-sterne-voll {
    display: block;
    height: 20px;
    background-repeat: repeat-x;
    background-size: 21px 20px;
}

.pwa-bew-sterne {
    position: relative;
    width: 105px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 20'%3E%3Cpath fill='%23d9dfdb' d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6L10 14.7l-5.4 3 1.2-6L1.3 7.5l6.1-.7z'/%3E%3C/svg%3E");
}

.pwa-bew-sterne-voll {
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 20'%3E%3Cpath fill='%23f2a900' d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6L10 14.7l-5.4 3 1.2-6L1.3 7.5l6.1-.7z'/%3E%3C/svg%3E");
}

.pwa-bew-anzahl {
    font-size: 15px;
    line-height: 1.3;
    transition: color .2s ease;
}

.pwa-bew-kopf:hover .pwa-bew-anzahl {
    color: var(--pwa-bew-gruen);
}

/* ---- Zitate: alle in derselben Rasterzelle → Höhe = längstes Zitat, nichts springt ---- */

.pwa-bew-zitate {
    display: grid;
    margin-top: 22px;
}

.pwa-bew-zitat {
    grid-area: 1 / 1;
    margin: 0;
    padding: 0 0 0 30px;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}

.pwa-bew-zitat.ist-aktiv {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s ease, transform .6s ease, visibility 0s;
}

/* großes Anführungszeichen als Akzent statt Linie */
.pwa-bew-zitat::before {
    content: "“";
    position: absolute;
    left: -2px;
    top: -6px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: var(--pwa-bew-hell);
}

.pwa-bew-zitat blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    quotes: none;
    font-style: normal;
}

.pwa-bew-zitat blockquote::before,
.pwa-bew-zitat blockquote::after {
    content: none;
}

.pwa-bew-zitat blockquote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pwa-bew-text);
}

.pwa-bew-zitat figcaption {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.pwa-bew-mini {
    color: var(--pwa-bew-gold);
    letter-spacing: 1px;
    margin-right: 4px;
}

/* ---- Punkte zum Weiterschalten (erscheinen erst, wenn das Skript läuft) ---- */

.pwa-bew-punkte {
    display: flex;
    gap: 2px;
    margin: 10px 0 0 22px;
}

.pwa-bew-punkte[hidden] {
    display: none;
}

.pwa-bew-punkte button {
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    box-shadow: none;
}

.pwa-bew-punkte button::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #cdd8d2;
    transition: background .3s ease, transform .3s ease;
}

.pwa-bew-punkte button:hover::after {
    background: var(--pwa-bew-hell);
}

.pwa-bew-punkte button[aria-current="true"]::after {
    background: var(--pwa-bew-gruen);
    transform: scale(1.15);
}

.pwa-bew-punkte button:focus-visible {
    outline: 2px solid var(--pwa-bew-gruen);
    outline-offset: -2px;
    border-radius: 50%;
}

/* ---- Links ---------------------------------------------------------------- */

.pwa-bew .pwa-bew-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.pwa-bew .pwa-bew-links a {
    color: var(--pwa-bew-gruen);
    text-decoration: underline;
    text-decoration-color: var(--pwa-bew-hell);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color .2s ease;
}

.pwa-bew .pwa-bew-links a::after {
    content: "→";
    display: inline-block;
    margin-left: .35em;
    transition: transform .2s ease;
}

.pwa-bew .pwa-bew-links a:hover {
    text-decoration-color: var(--pwa-bew-gruen);
}

.pwa-bew .pwa-bew-links a:hover::after {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .pwa-bew-zitat,
    .pwa-bew-zitat.ist-aktiv {
        transition: none;
        transform: none;
    }
}
