/* ==========================================================================
 * css/social.css - Instagram + Google-Bewertungen (alle Polsterei-Domains)
 * Akzent je Domain ueber --sw-akzent. Alle Regeln beginnen mit .sw- -
 * das Seitenthema (button, h2, a ...) greift damit nicht hinein.
 * 03.10.2026 - Developed by Toni Sciacca - mail@tonisciacca.com
 * ========================================================================== */

.sw-wand { --sw-akzent: #17171b; --sw-flaeche: #f7f6f3; background: var(--sw-flaeche); color: #1f2937; padding: 64px 16px; font-family: inherit; }
.sw-wand[hidden] { display: none !important; }
.sw-rahmen { max-width: 1180px; margin: 0 auto; }
.sw-wand * { box-sizing: border-box; }
.sw-wand .sw-h2 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0; color: #111827; text-transform: none; letter-spacing: 0; }
.sw-wand p { margin: 0; }
.sw-wand a { text-decoration: none; }
.sw-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sw-unter { color: #6b7280; font-size: 15px; margin-top: 6px !important; }
.sw-pille { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--sw-akzent); color: var(--sw-akzent) !important; font-weight: 600; font-size: 14px; line-height: 1.4; background: transparent; transition: background .2s, color .2s; }
.sw-pille:hover { background: var(--sw-akzent); color: #fff !important; }
.sw-pille svg { width: 16px; height: 16px; }

/* ---------------- Google ---------------- */
.sw-google { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: stretch; margin-bottom: 64px; }
.sw-google > div { min-width: 0; }
.sw-note { background: #fff; border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sw-note-zahl { font-size: 64px; line-height: 1; font-weight: 700; color: #111827; letter-spacing: -.02em; }
.sw-note-text { color: #4b5563; font-size: 15px; }
.sw-google-marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #374151; font-size: 14px; }
.sw-sterne { display: inline-flex; gap: 2px; }
.sw-sterne svg { width: 20px; height: 20px; }
.sw-sterne.klein svg { width: 15px; height: 15px; }
.sw-band { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.sw-band::-webkit-scrollbar { height: 6px; }
.sw-band::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.sw-bew { flex: 0 0 320px; scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sw-bew-text { font-size: 15px; line-height: 1.6; color: #374151; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.sw-bew-fuss { display: flex; align-items: center; gap: 10px; }
.sw-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sw-akzent); color: #fff; font-weight: 700; font-size: 15px; flex: 0 0 36px; }
.sw-bew-name { font-weight: 600; font-size: 14px; color: #111827; }
.sw-bew-wann { font-size: 13px; color: #6b7280; }
.sw-quelle { font-size: 12px; color: #6b7280; margin-top: 10px !important; }
.sw-quelle a { color: #6b7280; text-decoration: underline; }

/* ---------------- Instagram ---------------- */
.sw-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sw-kachel { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; cursor: pointer; background: #e5e7eb; border: 0; padding: 0; display: block; width: 100%; }
.sw-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sw-kachel:hover img, .sw-kachel:focus-visible img { transform: scale(1.06); }
.sw-schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px; padding: 14px; color: #fff; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .25s; }
.sw-kachel:hover .sw-schleier, .sw-kachel:focus-visible .sw-schleier { opacity: 1; }
.sw-zahl { display: inline-flex; align-items: center; gap: 6px; }
.sw-zahl svg { width: 18px; height: 18px; }
.sw-typ { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; }
.sw-typ svg { width: 14px; height: 14px; }
@media (hover: none) { .sw-schleier { opacity: 1; } }

/* ---------------- Grosses Fenster ---------------- */
.sw-fenster { position: fixed; inset: 0; z-index: 100000; background: rgba(17,17,20,.82); display: none; align-items: center; justify-content: center; padding: 24px; }
.sw-fenster.offen { display: flex; }
.sw-fenster-box { background: #fff; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); max-width: 1020px; width: 100%; max-height: 88vh; color: #1f2937; font-family: inherit; }
.sw-fenster-bild { background: #111; display: flex; align-items: center; justify-content: center; }
.sw-fenster-bild img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; display: block; }
.sw-fenster-text { display: flex; flex-direction: column; min-height: 0; }
.sw-fenster-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #f3f4f6; font-weight: 600; }
.sw-zu { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; color: #111827; line-height: 1; }
.sw-zu svg { width: 18px; height: 18px; }
.sw-fenster-inhalt { padding: 16px 18px; overflow-y: auto; flex: 1; font-size: 15px; line-height: 1.6; }
.sw-caption { white-space: pre-line; margin-bottom: 16px !important; }
.sw-kommentar { padding: 10px 0; border-top: 1px solid #f3f4f6; font-size: 14px; }
.sw-kommentar b { margin-right: 6px; }
.sw-fenster-fuss { padding: 14px 18px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sw-fenster-fuss .sw-zahlen { display: flex; gap: 16px; font-weight: 600; color: #111827; }
.sw-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; color: #111; padding: 0; }
.sw-pfeil svg { width: 20px; height: 20px; }
.sw-pfeil.links { left: 16px; } .sw-pfeil.rechts { right: 16px; }

/* ---------------- Ein-Seiter: kompakt in der Kopfspalte ---------------- */
.sw-kompakt { margin-top: 14px; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.sw-kompakt a { color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .sw-google { grid-template-columns: minmax(0, 1fr); } /* 1fr = minmax(auto,1fr): das Band waere breiter als der Bildschirm */
    .sw-raster { grid-template-columns: repeat(3, 1fr); }
    .sw-fenster-box { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
    .sw-fenster-bild img { max-height: 55vh; }
    .sw-pfeil { display: none; }
}
@media (max-width: 600px) {
    .sw-wand { padding: 44px 16px; }
    .sw-wand .sw-h2 { font-size: 24px; }
    .sw-raster { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sw-bew { flex-basis: 85%; }
    .sw-note-zahl { font-size: 52px; }
    .sw-fenster { padding: 0; }
    .sw-fenster-box { border-radius: 0; max-height: 100vh; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sw-kachel img, .sw-schleier, .sw-pille { transition: none; } }
