/* =====================================================================
   DS Leistungen-Kacheln, Startseite unter der Haus-Navigation  16.09.2026
   12-Spalten-Raster mit unterschiedlich grossen Kacheln, Text im Glasfeld.
   CI der Seite: eckig (border-radius 0 wie die BB-Buttons), Mint #63af9e
   mit dunkler Schrift (Weiss auf Mint faellt durch WCAG), Zweitfarbe #1f1f1f.
   Alle Textfarben ausdruecklich gesetzt, weil geklonte Rows text_color
   erben koennen. Markup: mu-plugins/ds-leistungen.php
   ===================================================================== */
.ds-lst {
	width: 100%;
	color: #14201d;
	font-family: Raleway, sans-serif;
	text-align: left;
}
.ds-lst * { box-sizing: border-box; }

.ds-lst__kopf {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 24px 64px;
	align-items: end;
	margin: 0 0 32px;
}
.ds-lst__kick {
	font-size: 12px; line-height: 1.4; letter-spacing: 1.7px; text-transform: uppercase;
	font-weight: 600 !important; color: #235f53 !important; margin: 0 0 12px !important;
}
.ds-lst__h {
	font-family: Montserrat, sans-serif;
	font-size: 34px; line-height: 1.18; font-weight: 600 !important;
	letter-spacing: -.4px; text-transform: none !important;
	color: #14201d !important; margin: 0 !important;
	text-wrap: balance;
}
.ds-lst__lead {
	font-size: 17px; line-height: 1.6; color: #3a4744 !important;
	margin: 0 !important;
}

/* Raster */
.ds-lst__raster {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(260px, auto);
	grid-auto-flow: row dense;
	gap: 16px;
}
.ds-lst__k--xl      { grid-column: span 6; grid-row: span 2; }
.ds-lst__k--hoch    { grid-column: span 3; grid-row: span 2; }
.ds-lst__k--breit   { grid-column: span 8; grid-row: span 2; }
.ds-lst__k--block   { grid-column: span 4; grid-row: span 2; }
.ds-lst__k--drittel { grid-column: span 4; }
.ds-lst__k--halb    { grid-column: span 6; }
.ds-lst__k--viertel { grid-column: span 3; }

.ds-lst__trenner { padding: 56px 0 20px; }
.ds-lst__trenner-h {
	font-family: Montserrat, sans-serif;
	font-size: 24px; line-height: 1.25; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: -.2px;
	color: #14201d !important; margin: 0 !important;
}

/* Kachel */
.ds-lst__k {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
	border-radius: 0;
	overflow: hidden;
	isolation: isolate;
	background: #eef3f1;
	box-shadow: 0 1px 2px rgba(20, 32, 29, .06), 0 10px 30px -12px rgba(20, 32, 29, .18);
	transition: transform .35s ease, box-shadow .35s ease;
}
.ds-lst__k:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(20, 32, 29, .06), 0 22px 44px -18px rgba(20, 32, 29, .32);
}
.ds-lst__flaeche {
	position: absolute; inset: 0; z-index: 1;
	border: 0 !important; outline: 0 !important; box-shadow: none !important;
}

.ds-lst__bild {
	position: absolute; inset: 0; z-index: 0;
	width: 100% !important; height: 100% !important; max-width: none !important;
	object-fit: cover; display: block;
	transition: transform .8s ease;
}
.ds-lst__k:hover .ds-lst__bild { transform: scale(1.045); }

/* Rueckfall, falls ein Anhang fehlt: helle Flaeche mit farbigen Lichtern */
.ds-lst__grund {
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(60% 70% at 88% 12%, rgba(43, 114, 100, .38), transparent 70%),
		radial-gradient(55% 65% at 8% 96%, rgba(240, 201, 106, .42), transparent 70%),
		radial-gradient(40% 50% at 40% 30%, rgba(99, 175, 158, .22), transparent 70%),
		linear-gradient(140deg, #eaf3f0 0%, #f6f1e7 100%);
}
/* Glasfeld */
.ds-lst__glas {
	position: relative; z-index: 2;
	margin: 12px;
	padding: 20px 22px 18px;
	border-radius: 0;
	background: rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .75);
	box-shadow: 0 8px 24px -12px rgba(20, 32, 29, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
	pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ds-lst__glas { background: rgba(255, 255, 255, .92); }
}
.ds-lst__glas .ds-lst__kick { font-size: 11px; letter-spacing: 1.5px; margin: 0 0 6px !important; }
.ds-lst__titel {
	font-family: Montserrat, sans-serif;
	font-size: 20px; line-height: 1.22; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: -.2px;
	margin: 0 32px 6px 0 !important; padding: 0 !important;
	hyphens: manual;
}
.ds-lst__k--xl .ds-lst__titel,
.ds-lst__k--breit .ds-lst__titel { font-size: 30px; line-height: 1.15; }
.ds-lst__link,
.ds-lst__link:hover,
.ds-lst__link:focus {
	color: #14201d !important; text-decoration: none !important;
	border: 0 !important; outline: 0 !important; box-shadow: none !important;
	pointer-events: auto;
}
.ds-lst__text {
	font-size: 15px; line-height: 1.55; color: #33403d !important;
	margin: 0 !important;
}
.ds-lst__k--xl .ds-lst__text,
.ds-lst__k--breit .ds-lst__text { font-size: 16px; max-width: 62ch; }

.ds-lst__pfeil {
	position: absolute; top: 18px; right: 18px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 0;
	background: #63af9e; color: #14201d;
	transition: transform .35s ease, background-color .35s ease;
}
.ds-lst__k:hover .ds-lst__pfeil { transform: translateX(3px); background: #7fc9b7; }

/* Unterseiten als Chips */
.ds-lst__chips {
	display: flex; flex-wrap: wrap; gap: 6px;
	list-style: none !important; margin: 12px 0 0 !important; padding: 0 !important;
	pointer-events: auto;
}
.ds-lst__chips li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ds-lst__chips li::before, .ds-lst__chips li::marker { content: none !important; }
.ds-lst__chip,
.ds-lst__chip:visited {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 0;
	font-size: 13px; line-height: 1.35; font-weight: 600;
	color: #1f5a4e !important; text-decoration: none !important;
	background: rgba(43, 114, 100, .1);
	border: 1px solid rgba(43, 114, 100, .28) !important;
	outline: 0; box-shadow: none !important;
	transition: background-color .25s ease, color .25s ease;
}
.ds-lst__chip:hover,
.ds-lst__chip:focus-visible {
	background: #2b7264; color: #fff !important; border-color: #2b7264 !important;
}

/* Tastatur */
.ds-lst__link:focus-visible,
.ds-lst__chip:focus-visible,
.ds-lst__knopf:focus-visible {
	outline: 2px solid #1f5a4e !important; outline-offset: 3px;
}
.ds-lst__k:focus-within {
	box-shadow: 0 0 0 2px #2b7264, 0 22px 44px -18px rgba(20, 32, 29, .32);
}

/* Abschluss */
.ds-lst__abschluss {
	position: relative;
	margin-top: 16px;
	min-height: 360px;
	display: flex; align-items: center; justify-content: flex-end;
	border-radius: 0;
	overflow: hidden;
	isolation: isolate;
	background: #1f1f1f;
}
.ds-lst__abschluss .ds-lst__bild { object-position: 22% 28%; }
.ds-lst__abschluss .ds-lst__glas { background: rgba(255, 255, 255, .9); }
.ds-lst__glas--abschluss {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px 40px; flex-wrap: wrap;
	width: min(780px, 62%);
	margin: 16px; padding: 28px 32px;
	pointer-events: auto;
}
.ds-lst__abschluss-h {
	font-family: Montserrat, sans-serif;
	font-size: 26px; line-height: 1.2; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: -.2px;
	color: #14201d !important; margin: 0 0 6px !important;
}
.ds-lst__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-lst__knopf,
.ds-lst__knopf:visited {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 30px;
	border-radius: 0;
	font-family: Raleway, sans-serif; font-size: 15.5px; font-weight: 600 !important; line-height: 1.2;
	white-space: nowrap;
	color: #14201d !important; background: #63af9e;
	border: 0 !important;
	text-decoration: none !important; box-shadow: none !important;
	transition: background-color .25s ease, color .25s ease;
}
.ds-lst__knopf:hover { background: #7fc9b7; color: #14201d !important; }
.ds-lst__knopf--zwei,
.ds-lst__knopf--zwei:visited { background: #1f1f1f; color: #ffffff !important; }
.ds-lst__knopf--zwei:hover { background: #2b7264; color: #ffffff !important; }

/* Tablet: zweispaltig, grosse Kacheln ueber die volle Breite */
@media (max-width: 1024px) {
	.ds-lst__kopf { grid-template-columns: 1fr; gap: 14px; }
	.ds-lst__h { font-size: 30px; }
	.ds-lst__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); }
	.ds-lst__raster > .ds-lst__k { grid-column: span 1; grid-row: auto; }
	.ds-lst__raster > .ds-lst__k--xl,
	.ds-lst__raster > .ds-lst__k--breit { grid-column: 1 / -1; min-height: 400px; }
	.ds-lst__raster > .ds-lst__k--hoch,
	.ds-lst__raster > .ds-lst__k--block { min-height: 400px; }
	.ds-lst__k--xl .ds-lst__titel,
	.ds-lst__k--breit .ds-lst__titel { font-size: 26px; }
	/* Abschluss: Foto oben, Glasfeld darunter, sonst verdeckt das Feld das Gesicht */
	.ds-lst__abschluss { display: block; min-height: 0; padding-top: 220px; }
	.ds-lst__abschluss .ds-lst__bild { height: 300px !important; object-position: 30% 22%; }
	.ds-lst__glas--abschluss { width: auto; margin: 12px; }
}

/* Handy: einspaltig, Fotos bleiben sichtbar ueber dem Glasfeld */
@media (max-width: 640px) {
	.ds-lst__h { font-size: 26px; }
	.ds-lst__lead { font-size: 16px; }
	.ds-lst__kopf { margin-bottom: 24px; }
	.ds-lst__raster { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
	.ds-lst__raster > .ds-lst__k,
	.ds-lst__raster > .ds-lst__k--xl,
	.ds-lst__raster > .ds-lst__k--breit,
	.ds-lst__raster > .ds-lst__k--halb,
	.ds-lst__raster > .ds-lst__k--hoch,
	.ds-lst__raster > .ds-lst__k--block { grid-column: 1 / -1; min-height: 0; }
	.ds-lst__k--foto { min-height: 340px !important; }
	.ds-lst__glas { margin: 10px; padding: 16px 16px 14px; }
	.ds-lst__titel,
	.ds-lst__k--xl .ds-lst__titel,
	.ds-lst__k--breit .ds-lst__titel { font-size: 21px; }
	.ds-lst__text,
	.ds-lst__k--xl .ds-lst__text,
	.ds-lst__k--breit .ds-lst__text { font-size: 15px; }
	.ds-lst__trenner { padding: 36px 0 14px; }
	.ds-lst__trenner-h { font-size: 21px; }
	.ds-lst__glas--abschluss { padding: 22px 18px; }
	.ds-lst__abschluss-h { font-size: 22px; }
	.ds-lst__knoepfe, .ds-lst__knopf { width: 100%; }
}

/* Band Luxus Bad Design (16.09.2026): volle Rasterbreite, 400 px hoch, Glasfeld rechts mittig wie im
   Abschlussband. Nach den Tablet- und Handy-Regeln oben, damit die Band-Regeln bei gleicher Spezifitaet gewinnen. */
.ds-lst__raster > .ds-lst__k--band { grid-column: 1 / -1; min-height: 400px; justify-content: center; align-items: flex-end; }
.ds-lst__k--band .ds-lst__bild { object-position: 50% 62%; }
.ds-lst__k--band .ds-lst__glas { width: min(520px, 44%); margin: 16px 16px 16px auto; padding: 24px 26px 22px; }
.ds-lst__k--band .ds-lst__titel { font-size: 30px; line-height: 1.15; }
.ds-lst__k--band .ds-lst__text { font-size: 16px; }
@media (max-width: 1024px) {
	.ds-lst__raster > .ds-lst__k--band { grid-column: 1 / -1; min-height: 400px; }
	.ds-lst__k--band .ds-lst__glas { width: min(480px, 52%); }
	.ds-lst__k--band .ds-lst__bild { object-position: 38% 60%; }
	.ds-lst__k--band .ds-lst__titel { font-size: 26px; }
}
@media (max-width: 640px) {
	/* Handy: Foto oben, Glasfeld darunter (wie das Abschlussband), sonst verdeckt das Feld die Wanne */
	.ds-lst__raster > .ds-lst__k--band { display: block; min-height: 0; padding-top: 250px; }
	.ds-lst__k--band .ds-lst__bild { height: 300px !important; object-position: 28% 50%; }
	.ds-lst__k--band .ds-lst__glas { width: auto; margin: 10px; padding: 16px 16px 14px; }
	.ds-lst__k--band .ds-lst__titel { font-size: 21px; }
	.ds-lst__k--band .ds-lst__text { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.ds-lst__k, .ds-lst__bild, .ds-lst__pfeil { transition: none; }
	.ds-lst__k:hover, .ds-lst__k:hover .ds-lst__bild { transform: none; }
}
