/* café futsch – Repair-Stories Grid */

.rs-wrap {
	--rs-yellow: #FFED00;
	--rs-pink: #E72782;
	--rs-teal: #00A19B;
	--rs-blue: #004B84;
	--rs-hellblau: #C2E8E7;
	--rs-black: #111111;
	--rs-img: #DCD8D2;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 300;
	letter-spacing: -0.1px;
	color: var(--rs-black);
}
.rs-wrap.alignfull { max-width: none; }
.rs-wrap *, .rs-wrap *::before, .rs-wrap *::after { box-sizing: border-box; }
.rs-wrap [hidden] { display: none !important; }

.rs-inner {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 30px;
}

/* ---------- Header ---------- */

.rs-hero { background: var(--rs-yellow); }
.rs-hero .rs-inner {
	padding-top: 96px;
	padding-bottom: 80px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}
.rs-wrap .rs-hero-title {
	margin: 0;
	flex: 1 1 600px;
	font-family: inherit;
	font-weight: 800;
	font-size: 120px;
	line-height: 0.92;
	letter-spacing: -4px;
	color: var(--rs-black);
}
.rs-hero-title .rs-pink { color: var(--rs-pink); }
.rs-hero-sub {
	display: block;
	margin-top: 24px;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1px;
}
.rs-hero-side {
	flex: 0 1 340px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-bottom: 8px;
}
.rs-hero-side p {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 400;
}

/* ---------- Buttons ---------- */

.rs-wrap .rs-btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 48px;
	padding: 0 36px;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 300;
	text-decoration: none;
	cursor: pointer;
}
.rs-wrap .rs-btn--dark,
.rs-wrap .rs-btn--dark:hover { background: var(--rs-black); color: #FFFFFF; }
.rs-wrap .rs-btn--light { background: #FFFFFF; color: var(--rs-black); font-weight: 400; }
.rs-wrap .rs-btn--outline { background: transparent; color: var(--rs-black); border: 1px solid var(--rs-black); }

/* ---------- Stories-Bereich ---------- */

.rs-stories .rs-inner {
	padding-top: 72px;
	padding-bottom: 96px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.rs-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.rs-kicker {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.rs-wrap .rs-head h2 {
	margin: 10px 0 0;
	font-family: inherit;
	font-size: 42px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.5px;
}
.rs-empty { margin: 0; font-size: 18px; }

/* ---------- Filter ---------- */

.rs-filters {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 8px;
}
.rs-filter-list {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}
.rs-wrap .rs-filter-btn {
	font: 300 15px Manrope, system-ui, sans-serif;
	white-space: nowrap;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border-radius: 9999px;
	border: 1px solid var(--rs-black);
	background: transparent;
	color: var(--rs-black);
	cursor: pointer;
}
.rs-wrap .rs-filter-btn[aria-pressed="true"] { background: var(--rs-black); color: #FFFFFF; }
.rs-wrap .rs-filter-toggle {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 9999px;
	border: 1px solid var(--rs-black);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.rs-filter-toggle svg { transition: transform .25s ease; }
.rs-filters-collapsible .rs-filter-list { max-height: 44px; overflow: hidden; }
.rs-filters-collapsible.rs-filters-open .rs-filter-list { max-height: none; }
.rs-filters-open .rs-filter-toggle svg { transform: rotate(180deg); }

/* ---------- Grid und Kacheln ---------- */

.rs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 260px;
	grid-auto-flow: dense;
	gap: 16px;
}
.rs-wrap .rs-tile {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
}
.rs-img {
	position: relative;
	flex: 1;
	min-height: 0;
	min-width: 0;
	background: var(--rs-img);
	overflow: hidden;
}
.rs-wrap .rs-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	display: block;
}
.rs-cap {
	padding: 14px 18px 16px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
}
.rs-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.rs-wrap .rs-title {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.2px;
	color: inherit;
}
.rs-tile:hover .rs-title,
.rs-tile:focus-visible .rs-title {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}
.rs-teaser {
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}

/* Größen */
.rs-size-gross { grid-column: span 2; grid-row: span 2; }
.rs-size-gross .rs-cap { padding: 22px 26px 26px; gap: 10px; }
.rs-size-gross .rs-label { font-size: 14px; }
.rs-wrap .rs-size-gross .rs-title { font-size: 40px; line-height: 1.05; letter-spacing: -1px; }
.rs-size-gross .rs-teaser { font-size: 17px; }

.rs-size-hoch { grid-row: span 2; }
.rs-size-hoch .rs-cap { padding: 18px 20px 20px; gap: 8px; }
.rs-wrap .rs-size-hoch .rs-title { font-size: 22px; line-height: 1.15; }

.rs-wrap .rs-size-breit { grid-column: span 2; flex-direction: row; }
.rs-wrap .rs-size-breit.rs-flip { flex-direction: row-reverse; }
.rs-size-breit .rs-img { flex: 1.2; }
.rs-size-breit .rs-cap { flex: 1; min-width: 0; padding: 24px; gap: 8px; }
.rs-wrap .rs-size-breit .rs-title { font-size: 26px; line-height: 1.1; letter-spacing: -0.5px; }

/* Farben */
.rs-wrap .rs-color-gelb,    .rs-wrap .rs-color-gelb:hover    { background: var(--rs-yellow); color: var(--rs-black); }
.rs-wrap .rs-color-pink,    .rs-wrap .rs-color-pink:hover    { background: var(--rs-pink);   color: #FFFFFF; }
.rs-wrap .rs-color-tuerkis, .rs-wrap .rs-color-tuerkis:hover { background: var(--rs-teal);   color: #FFFFFF; }
.rs-wrap .rs-color-blau,    .rs-wrap .rs-color-blau:hover    { background: var(--rs-blue);   color: #FFFFFF; }
.rs-wrap .rs-color-schwarz, .rs-wrap .rs-color-schwarz:hover { background: var(--rs-black);  color: #FFFFFF; }
.rs-wrap .rs-color-hellblau, .rs-wrap .rs-color-hellblau:hover { background: var(--rs-hellblau); color: var(--rs-black); }

/* Bildstil in der Übersicht */
.rs-wrap .rs-color-gelb    { --rs-tint: var(--rs-yellow); }
.rs-wrap .rs-color-pink    { --rs-tint: var(--rs-pink); }
.rs-wrap .rs-color-tuerkis { --rs-tint: var(--rs-teal); }
.rs-wrap .rs-color-blau    { --rs-tint: var(--rs-blue); }
.rs-wrap .rs-color-hellblau { --rs-tint: var(--rs-hellblau); }
.rs-wrap .rs-color-schwarz { --rs-tint: transparent; }
.rs-wrap.rs-tint-gelb .rs-tile    { --rs-tint: var(--rs-yellow); }
.rs-wrap.rs-tint-pink .rs-tile    { --rs-tint: var(--rs-pink); }
.rs-wrap.rs-tint-tuerkis .rs-tile { --rs-tint: var(--rs-teal); }
.rs-wrap.rs-tint-blau .rs-tile    { --rs-tint: var(--rs-blue); }
.rs-wrap.rs-tint-hellblau .rs-tile { --rs-tint: var(--rs-hellblau); }


.rs-bild-sw .rs-img img,
.rs-bild-farbe .rs-img img {
	filter: grayscale(1) contrast(1.08);
	transition: filter .35s ease;
}
/* Bei Farbüberlagerung: Bild vorher aufhellen, damit es nicht zu dunkel wird */
.rs-bild-farbe .rs-img img {
	filter: grayscale(1) brightness(var(--rs-aufhellen, 1.25)) contrast(0.9);
}
.rs-bild-farbe .rs-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rs-tint, transparent);
	/* „color“ färbt das Bild ein, ohne es abzudunkeln (anders als „multiply“) */
	mix-blend-mode: color;
	pointer-events: none;
	transition: opacity .35s ease;
}
/* Beim Darüberfahren erscheint das Originalbild */
.rs-tile:hover .rs-img img,
.rs-tile:focus-visible .rs-img img { filter: none; }
.rs-tile:hover .rs-img::after,
.rs-tile:focus-visible .rs-img::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.rs-wrap .rs-img img, .rs-wrap .rs-img::after { transition: none; }
}

/* „Mach mit“-Kachel */
.rs-wrap .rs-cta,
.rs-wrap .rs-cta:hover {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	padding: 30px 32px;
	background: var(--rs-black);
	color: #FFFFFF;
	text-decoration: none;
}
.rs-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}
.rs-cta-title {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -1.5px;
}

.rs-more-wrap { display: flex; justify-content: center; }

/* Platzhalter-Kacheln: füllen Lücken im Grid mit Sprüchen */
.rs-filler {
	display: flex;
	align-items: flex-end;
	min-width: 0;
	padding: 20px 22px;
	overflow: hidden;
}
.rs-filler-text {
	font-size: 30px;
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -1px;
	white-space: pre-line;
}
.rs-filler--wide .rs-filler-text { font-size: 40px; letter-spacing: -1.5px; }
.rs-filler--tall .rs-filler-text { font-size: 34px; }

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.rs-inner { padding: 0 24px; }

	.rs-hero .rs-inner {
		padding-top: 72px;
		padding-bottom: 64px;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}
	.rs-wrap .rs-hero-title { flex: none; font-size: 88px; letter-spacing: -3px; }
	.rs-hero-sub { margin-top: 20px; font-size: 34px; letter-spacing: -0.8px; }
	.rs-hero-side {
		flex: none;
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 32px;
	}
	.rs-hero-side p { max-width: 420px; font-size: 20px; }
	.rs-wrap .rs-hero-side .rs-btn { flex-shrink: 0; padding: 0 32px; }

	.rs-stories .rs-inner { padding-top: 56px; padding-bottom: 80px; gap: 28px; }
	.rs-head { flex-direction: column; align-items: stretch; }
	.rs-wrap .rs-head h2 { font-size: 36px; }
	.rs-filters { flex: none; justify-content: flex-start; }
	.rs-filter-list { flex: 1; justify-content: flex-start; }

	.rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
	.rs-wrap .rs-size-gross .rs-title { font-size: 36px; }
	.rs-size-breit .rs-img { flex: 1.1; }
	.rs-wrap .rs-size-breit .rs-title { font-size: 24px; }
	.rs-cta-title { font-size: 42px; letter-spacing: -1.2px; }
	.rs-filler-text { font-size: 26px; }
	.rs-filler--wide .rs-filler-text { font-size: 34px; }
}

/* ---------- Handy ---------- */

@media (max-width: 600px) {
	.rs-inner { padding: 0 16px; }

	.rs-hero .rs-inner { padding-top: 48px; padding-bottom: 44px; gap: 24px; }
	.rs-wrap .rs-hero-title { font-size: 56px; letter-spacing: -2px; }
	.rs-hero-sub { margin-top: 16px; font-size: 24px; letter-spacing: -0.5px; }
	.rs-hero-side { flex-direction: column; align-items: flex-start; gap: 24px; }
	.rs-hero-side p { font-size: 18px; }

	.rs-stories .rs-inner { padding-top: 40px; padding-bottom: 56px; gap: 22px; }
	.rs-kicker { font-size: 13px; }
	.rs-wrap .rs-head h2 { font-size: 30px; }
	.rs-wrap .rs-filter-btn { padding: 0 16px; }

	.rs-grid { grid-auto-rows: 180px; gap: 10px; }
	.rs-cap { padding: 10px 12px 12px; }
	.rs-label { font-size: 11px; letter-spacing: 0.8px; }
	.rs-wrap .rs-title { font-size: 15px; line-height: 1.12; }

	.rs-size-gross .rs-cap { padding: 16px 18px 18px; gap: 4px; }
	.rs-size-gross .rs-label { font-size: 11px; }
	.rs-wrap .rs-size-gross .rs-title { font-size: 28px; }
	.rs-size-gross .rs-teaser { font-size: 14px; }

	.rs-size-hoch .rs-cap { padding: 12px 14px 14px; }
	.rs-wrap .rs-size-hoch .rs-title { font-size: 18px; }

	/* Breite Kacheln: Bild- und Textanteil wechseln */
	.rs-size-breit .rs-img { flex: 1.5; }
	.rs-size-breit .rs-cap { flex: 1; padding: 16px; }
	.rs-size-breit.rs-flip .rs-img { flex: 1; }
	.rs-size-breit.rs-flip .rs-cap { flex: 1.4; }
	.rs-wrap .rs-size-breit .rs-title { font-size: 19px; }
	.rs-size-breit .rs-teaser { display: none; }

	.rs-wrap .rs-cta { padding: 18px 20px; }
	.rs-cta-row { flex-wrap: nowrap; gap: 12px; }
	.rs-cta-title { font-size: 30px; letter-spacing: -0.8px; }
	.rs-wrap .rs-cta .rs-btn { flex-shrink: 0; min-height: 44px; padding: 0 20px; font-size: 15px; }
	.rs-filler { padding: 12px 14px; }
	.rs-filler-text { font-size: 20px; letter-spacing: -0.5px; }
	.rs-filler--wide .rs-filler-text { font-size: 26px; letter-spacing: -0.8px; }
	.rs-filler--tall .rs-filler-text { font-size: 24px; }
}
