/**
 * Pax Social – funktioniert mit jedem Theme.
 * Farben/Schriften kommen aus CSS-Variablen des Pax-Themes (--pax-…), sonst gelten Standardwerte.
 */

.paxsoc {
	--paxsoc-text: var(--pax-text, var(--pax-dark, #0B1E45));
	--paxsoc-muted: var(--pax-muted, #4A5878);
	--paxsoc-line: var(--pax-line, #DCE3EF);
	--paxsoc-card: var(--pax-white, #fff);
	--paxsoc-soft: var(--pax-bg, #EEF2F8);
	--paxsoc-primary: var(--pax-blue, #163E8C);
	--paxsoc-star: var(--pax-accent, #F2B630);
	--paxsoc-radius: var(--pax-radius, 14px);
	--paxsoc-gap: 16px;
	color: var(--paxsoc-text);
	margin-block: 0 1.5em;
}
.paxsoc *, .paxsoc *::before, .paxsoc *::after { box-sizing: border-box; }
.paxsoc ul { list-style: none; margin: 0; padding: 0; }
.paxsoc__title { margin: 0 0 .6em; }
.paxsoc-icon { flex: 0 0 auto; vertical-align: middle; }

/* Knöpfe */
.paxsoc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 42px; padding: 9px 20px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--pax-font-body, inherit); font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.paxsoc-btn--primary { background: var(--paxsoc-primary); color: #fff; }
.paxsoc-btn--primary:hover, .paxsoc-btn--primary:focus-visible { background: var(--pax-dark, #0B1E45); color: #fff; }
.paxsoc-btn--ghost { border-color: currentColor; color: var(--paxsoc-primary); background: transparent; }
.paxsoc-btn--ghost:hover, .paxsoc-btn--ghost:focus-visible { background: var(--paxsoc-primary); border-color: var(--paxsoc-primary); color: #fff; }

/* Sterne */
.paxsoc-stars { display: inline-flex; gap: 1px; color: var(--paxsoc-star); line-height: 1; }

/* Kopfzeilen */
.paxsoc-google__head, .paxsoc-social__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin-bottom: 18px;
}
.paxsoc-google__score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.paxsoc-google__value { font-family: var(--pax-font-display, inherit); font-size: 40px; font-weight: 800; line-height: 1; }
.paxsoc-google__count { color: var(--paxsoc-muted); font-size: 15px; flex-basis: 100%; }
@media (min-width: 600px) { .paxsoc-google__count { flex-basis: auto; } }
.paxsoc-google__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.paxsoc-social__who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.paxsoc-social__who a { color: inherit; text-decoration: none; }
.paxsoc-social__who a:hover { text-decoration: underline; }

/* Raster / Liste / Slider */
.paxsoc--grid .paxsoc-google__list,
.paxsoc--grid .paxsoc-fb__list { display: grid; gap: var(--paxsoc-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.paxsoc--list .paxsoc-google__list,
.paxsoc--list .paxsoc-fb__list { display: grid; gap: var(--paxsoc-gap); }
.paxsoc-slider { position: relative; }
.paxsoc-slider__track {
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
	margin-inline: -4px; padding: 4px;
}
.paxsoc-slider__track::-webkit-scrollbar { display: none; }
.paxsoc-slider__track:focus-visible { outline: 2px solid var(--paxsoc-primary); outline-offset: 2px; }
.paxsoc-slider__track > ul { display: flex; gap: var(--paxsoc-gap); }
.paxsoc-slider__track > ul > li { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
.paxsoc-insta.paxsoc--slider .paxsoc-slider__track > ul > li { flex-basis: min(70%, 260px); }
.paxsoc-slider__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.paxsoc-slider__btn {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--paxsoc-line);
	background: var(--paxsoc-card); color: var(--paxsoc-text);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
	transition: background-color .15s, color .15s, border-color .15s;
}
.paxsoc-slider__btn:hover:not(:disabled), .paxsoc-slider__btn:focus-visible { background: var(--paxsoc-primary); border-color: var(--paxsoc-primary); color: #fff; }
.paxsoc-slider__btn[hidden] { display: none; }
.paxsoc-slider__btn:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .paxsoc-slider__nav { display: none; } }

/* Google-Bewertung */
.paxsoc-review {
	display: flex; flex-direction: column; gap: 10px;
	background: var(--paxsoc-card); border: 1px solid var(--paxsoc-line); border-radius: var(--paxsoc-radius);
	padding: 18px 20px;
}
.paxsoc-review__head { display: flex; align-items: center; gap: 12px; }
.paxsoc img.paxsoc-avatar { max-width: none; }
.paxsoc-avatar {
	width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; object-fit: cover;
	display: inline-flex; align-items: center; justify-content: center;
	background: hsl(var(--paxsoc-hue, 220) 45% 88%); color: hsl(var(--paxsoc-hue, 220) 45% 28%);
	font-weight: 800; font-size: 15px;
}
.paxsoc-review__author { font-weight: 700; line-height: 1.25; }
.paxsoc-review__author a { color: inherit; text-decoration: none; }
.paxsoc-review__author a:hover { text-decoration: underline; }
.paxsoc-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--paxsoc-muted); margin-top: 2px; }
.paxsoc-review__text, .paxsoc-review__text p, .paxsoc-post__text, .paxsoc-post__text p { margin: 0; font-size: 15px; line-height: 1.55; }
.paxsoc-review__src { margin-top: auto; font-size: 13px; color: var(--paxsoc-muted); }
.paxsoc-more__btn {
	background: none; border: 0; padding: 4px 0 0; margin: 0; cursor: pointer;
	color: var(--paxsoc-primary); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline;
}
.paxsoc-attrib { margin: 12px 0 0; font-size: 13px; color: var(--paxsoc-muted); text-align: right; }
.paxsoc-attrib__google { font-family: Roboto, Arial, sans-serif; font-weight: 500; color: #5F6368; }

/* Instagram */
.paxsoc-insta.paxsoc--grid .paxsoc-insta__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .paxsoc-insta.paxsoc--grid .paxsoc-insta__grid { grid-template-columns: repeat(min(3, var(--paxsoc-cols, 4)), 1fr); } }
@media (min-width: 960px) { .paxsoc-insta.paxsoc--grid .paxsoc-insta__grid { grid-template-columns: repeat(var(--paxsoc-cols, 4), 1fr); gap: 12px; } }
.paxsoc-insta__item a { display: block; color: inherit; text-decoration: none; }
.paxsoc-insta__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--paxsoc-soft); }
.paxsoc .paxsoc-insta__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .35s ease; }
.paxsoc-insta__item a:hover img, .paxsoc-insta__item a:focus-visible img { transform: scale(1.04); }
.paxsoc-insta__badge { position: absolute; top: 8px; right: 8px; line-height: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.paxsoc-insta__badge--video { top: 50%; right: 50%; transform: translate(50%, -50%); }
.paxsoc-insta__caption { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--paxsoc-muted); }

/* Facebook */
.paxsoc-post {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--paxsoc-card); border: 1px solid var(--paxsoc-line); border-radius: var(--paxsoc-radius);
}
.paxsoc-post__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paxsoc-soft); }
.paxsoc .paxsoc-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.paxsoc-post__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.paxsoc-post__date { font-size: 13px; color: var(--paxsoc-muted); }
.paxsoc-post__link { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--paxsoc-primary); }
@media (min-width: 700px) {
	.paxsoc-fb.paxsoc--list .paxsoc-post.has-media { flex-direction: row; }
	.paxsoc-fb.paxsoc--list .paxsoc-post__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
}

/* Hinweis für Redakteure */
.paxsoc-empty { padding: 14px 16px; border: 2px dashed #c3c4c7; border-radius: 8px; background: #f6f7f7; color: #1d2327; font-size: 14px; line-height: 1.5; }
