/* STiNO Referenzen – Bausteine für Elementor (Loop Grid / Single-Template) */
:root {
	--stino-blue: #2d68aa;
	--stino-blue-dark: #1d4f86;
	--stino-tag-bg: #f1efe8;
	--stino-tag-ink: #1d1d1b;
	--stino-tag-red: #d0312d;
}

/* Kennzahl als E-Paper-Preisschild */
.stino-esl {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	background: var(--stino-tag-bg);
	color: var(--stino-tag-ink);
	border: 1px solid #c9c6bd;
	border-radius: 4px;
	overflow: hidden;
	font: 600 12px/1.25 "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
.stino-esl i { width: 5px; flex: none; background: var(--stino-tag-red); }
.stino-esl span { padding: 6px 9px; }

/* Europa-Etikett (im Loop-Item absolut oben rechts über dem Bild platzieren) */
.stino-eu {
	display: inline-block;
	background: var(--stino-blue);
	color: #fff;
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 4px;
}

/* Land · Branche */
.stino-ref-meta { font-size: 13px; opacity: .75; }

/* Logo-Schild */
.stino-plate {
	display: inline-grid;
	place-items: center;
	background: #fff;
	border-radius: 6px;
	padding: 6px 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	max-width: 160px;
}
.stino-plate img { display: block; max-height: 34px; width: auto; max-width: 100%; object-fit: contain; }

/* Galerie im Single-Template */
.stino-ref-galerie { display: grid; gap: 8px; }
.stino-ref-galerie.has-thumbs { grid-template-columns: repeat(2, 1fr); }
.stino-ref-galerie .main { grid-column: 1 / -1; }
.stino-ref-galerie a { display: block; border-radius: 8px; overflow: hidden; background: #0d141c; }
.stino-ref-galerie img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .3s; }
.stino-ref-galerie .main img { aspect-ratio: 16 / 10; }
.stino-ref-galerie a:hover img { transform: scale(1.03); }

/* Anfrage-Button */
.stino-ref-btn {
	display: inline-block;
	background: var(--stino-blue);
	color: #fff !important;
	border-radius: 999px;
	padding: 12px 20px;
	font-weight: 700;
	text-decoration: none;
}
.stino-ref-btn:hover { background: var(--stino-blue-dark); }

/* Laufendes Logo-Band */
.stino-logoband {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	padding: 12px 0;
}
.stino-logoband .track { display: flex; width: max-content; }
.stino-logoband .set { display: flex; gap: 14px; padding-right: 14px; }
.stino-logoband .track { animation: stino-marquee 90s linear infinite; }
.stino-logoband:hover .track { animation-play-state: paused; }
.stino-logoband a {
	display: grid;
	place-items: center;
	height: 48px;
	padding: 6px 10px;
	background: #fff;
	border-radius: 6px;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s, opacity .2s;
}
.stino-logoband a:hover, .stino-logoband a:focus-visible { filter: none; opacity: 1; }
.stino-logoband img { max-height: 34px; width: auto; max-width: 120px; object-fit: contain; }
@keyframes stino-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.stino-logoband { overflow-x: auto; }
	.stino-logoband .track { animation: none; }
	.stino-logoband .dup { display: none; }
}

/* Karten-Effekt: dem Loop-Item-Container die CSS-Klasse „stino-card“ geben */
.stino-card { transition: transform .2s, box-shadow .2s; }
.stino-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16, 40, 70, .14); }

/* =========================================================================
 * Übersicht und Detailseite ohne Elementor Pro ([referenzen_seite], [referenzen_raster])
 * ====================================================================== */
.sr-page, .sr-app, .sr-single {
	--sr-ink: #14212f; --sr-muted: #5b6878; --sr-line: #dde3ea; --sr-bg: #f4f6f9;
	--sr-brand: #2d68aa; --sr-soft: #e3ecf6;
	color: var(--sr-ink);
}
.sr-page { background: var(--sr-bg); padding-bottom: 8px; }
.sr-wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.sr-page *, .sr-app *, .sr-single * { box-sizing: border-box; }
.sr-page [hidden], .sr-app [hidden] { display: none !important; }

/* Einstieg */
.sr-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 40px 0 28px; }
.sr-crumb { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-muted); margin: 0 0 12px; }
.sr-crumb b { color: var(--sr-brand); }
.sr-hero h1, .sr-hero .sr-h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; margin: 0 0 14px; color: var(--sr-ink); letter-spacing: -.01em; text-wrap: balance; }
.sr-hero h1 em, .sr-hero .sr-h1 em { font-style: normal; color: var(--sr-brand); }
.sr-lede { margin: 0; max-width: 60ch; color: var(--sr-muted); font-size: 17px; line-height: 1.6; }
.sr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sr-line); border: 1px solid var(--sr-line); border-radius: 10px; overflow: hidden; }
.sr-stat { background: #fff; padding: 16px 14px; }
.sr-stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; font-weight: 800; color: var(--sr-brand); font-variant-numeric: tabular-nums; }
.sr-stat span { font-size: 13px; color: var(--sr-muted); }
.sr-page .stino-logoband { background: #fff; border-top: 1px solid var(--sr-line); border-bottom: 1px solid var(--sr-line); }

/* Filter */
.sr-filters { position: sticky; top: var(--sr-sticky-top, 0px); z-index: 5; background: var(--sr-bg); padding: 16px 0 12px; border-bottom: 1px solid var(--sr-line); }
.admin-bar .sr-filters { --sr-sticky-top: 32px; }
.sr-frow { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sr-frow + .sr-frow { margin-top: 8px; }
.sr-flabel { flex: none; min-width: 68px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-muted); }
.sr-app .sr-chip { flex: none; border: 1px solid var(--sr-line); background: #fff; color: var(--sr-ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; line-height: 1.3; font-weight: 400; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.sr-app .sr-chip:hover, .sr-app .sr-chip:focus { border-color: var(--sr-brand); background: #fff; color: var(--sr-ink); }
.sr-app .sr-chip[aria-pressed="true"] { background: var(--sr-brand); border-color: var(--sr-brand); color: #fff; }
.sr-chip small { opacity: .7; margin-left: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.sr-search { flex: none; margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--sr-line); background: #fff; border-radius: 999px; padding: 4px 12px; }
.sr-app .sr-search input { border: 0; background: none; outline: none; font: inherit; font-size: 13px; width: 170px; padding: 2px 0; color: var(--sr-ink); box-shadow: none; }
.sr-count { font-size: 13px; color: var(--sr-muted); padding-top: 14px; }

/* Karten */
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; padding: 14px 0 40px; }
.sr-card { background: #fff; border: 1px solid var(--sr-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--sr-ink) !important; transition: transform .2s, box-shadow .2s; }
.sr-card[hidden] { display: none; }
.sr-card:hover, .sr-card:focus-visible { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20, 33, 47, .06), 0 8px 24px rgba(20, 33, 47, .1); }
.sr-media { position: relative; aspect-ratio: 4 / 3; background: var(--sr-soft); overflow: hidden; }
.sr-media img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.sr-card:hover .sr-media img.photo { transform: scale(1.05); }
.sr-media .plate { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 6px; padding: 6px 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); display: grid; place-items: center; max-width: 55%; }
.sr-media .plate img { max-height: 28px; width: auto; max-width: 100%; display: block; }
.sr-media .solo { position: absolute; inset: 0; display: grid; place-items: center; }
.sr-media .solo img { max-width: 60%; max-height: 40%; width: auto; }
.sr-media .eu { position: absolute; top: 10px; right: 10px; background: var(--sr-brand); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.sr-body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.sr-body h3 { font-size: 18px; line-height: 1.2; margin: 0; color: var(--sr-ink); }
.sr-meta { font-size: 13px; color: var(--sr-muted); }
.sr-body .stino-esl { justify-self: start; }
.sr-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--sr-brand); }
.sr-empty { padding: 40px 0; color: var(--sr-muted); }
.sr-app .sr-btn, .sr-single .sr-btn { display: inline-block; margin-top: 8px; border: 1px solid var(--sr-line); background: #fff; color: var(--sr-ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sr-single .sr-btn:hover { border-color: var(--sr-brand); }

/* Abschluss */
.sr-cta { background: var(--sr-brand); color: #fff; border-radius: 14px; padding: 28px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.sr-cta h2 { color: #fff; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.sr-cta p { margin: 0; opacity: .9; }
.sr-cta a { background: #fff; color: #1d4f86 !important; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 700; text-decoration: none; }
.sr-foot { font-size: 12px; color: var(--sr-muted); margin: 0 0 24px; }

/* Detailseite */
.sr-single { padding: 8px 0 32px; }
.sr-back { margin: 0 0 16px; font-size: 14px; }
.sr-back a { color: var(--sr-brand); text-decoration: none; }
.sr-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.sr-gal { position: sticky; top: 100px; display: grid; gap: 8px; }
.sr-gal-main { background: #0d141c; border-radius: 10px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.sr-gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sr-thumbs { display: flex; gap: 8px; }
.sr-single .sr-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; width: 88px; height: 64px; background: none; opacity: .65; }
.sr-single .sr-thumbs button[aria-pressed="true"] { border-color: var(--sr-brand); opacity: 1; }
.sr-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sr-logo { justify-self: start; background: #fff; border: 1px solid var(--sr-line); border-radius: 6px; padding: 8px 12px; }
.sr-logo img { max-height: 44px; width: auto; display: block; }
.sr-single h1.sr-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-tags span { background: var(--sr-soft); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.sr-info .stino-esl { justify-self: start; }
.sr-text h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-muted); margin: 14px 0 6px; }
.sr-text p, .sr-text ul { margin: 0 0 8px; }
.sr-text ul { padding-left: 18px; }
.sr-text small { color: var(--sr-muted); }
.sr-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--sr-line); margin-top: 32px; padding-top: 16px; }

@media (max-width: 860px) {
	.sr-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
	.sr-detail { grid-template-columns: 1fr; gap: 20px; }
	.sr-gal { position: static; }
	.sr-search { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sr-card, .sr-media img.photo { transition: none; }
}

/* Platz für den über dem Inhalt liegenden Website-Header */
.sr-page { padding-top: 8px; }
.sr-single { padding-top: 28px; max-width: 1240px; margin: 0 auto; }
@media (min-width: 861px) {
	.sr-frow { flex-wrap: wrap; overflow: visible; }
}
.stino-ref-btn, .stino-ref-btn:hover { text-decoration: none !important; }

/* Titelbild wie auf den übrigen Unterseiten */
.sr-banner { padding: 180px 20px 64px; background: #0b1530 url(https://stino.biz/wp-content/uploads/2026/11/references-header-1920x550-1.jpg) center / cover no-repeat; text-align: center; }
.sr-banner h1, .sr-banner .sr-banner-title { margin: 0; color: #fff; font-family: "Circular std", sans-serif; font-size: 38px; font-weight: 500; line-height: 1.15; }
