/*
 * tidløs Layout: eine gemeinsame Inhaltsbreite für alle Seiten (Jan, 03.12.2026).
 * Höchstbreite 1920 px, Rand links/rechts 4vw (wie der Header), ab 1920 px fest 76,8 px.
 * Gilt ab 768 px; Handy und kleine Tablets behalten ihre bisherigen Ränder.
 * Quelle: relaunch-technik/mu-plugins/tidlos-produkte/layout.css, geladen von tidlos-layout.php (nach allen anderen Styles).
 *
 * Zwei Arten:
 *  1. Abschnitte (Inhalt direkt auf dem Seitengrund): max. 1920 px, Innenrand = Rand.
 *  2. Kästen mit eigener Fläche und runden Ecken: so breit wie der Inhalt der Abschnitte, d. h. bündig mit dessen Kanten.
 */
:root{--tdl-max:1920px;--tdl-rand:min(4vw,76.8px)}

@media (min-width:768px){
	/* Header */
	html body .site-header .header-inner{max-width:var(--tdl-max)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--tdl-rand)!important;padding-right:var(--tdl-rand)!important;box-sizing:border-box!important}

	/* 1. Abschnitte */
	html body :is(
		.home-v2-content:not(.v2-rental,.v2-buyback,.newsletter-banner,.s-newsletter-banner,.s-page-form-section),
		.s-v2-about,
		.tdl-kv,
		.tdloc .breadcrumb,
		.tdloc .ort-section,
		.tdloc .visit-info,
		.tdl-katalog,
		.tdl-404,
		.tdl-produkt .tdl-brotkrumen,
		.tdl-produkt .tdl-produkt-hinweise,
		.tdl-produkt .tdl-produkt-oben,
		.tdl-produkt .tdl-produkt-details,
		.tdl-produkt .tdl-produkt-mehr
	){width:100%!important;max-width:var(--tdl-max)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--tdl-rand)!important;padding-right:var(--tdl-rand)!important;box-sizing:border-box!important}

	/* 2. Kästen: bündig mit den Inhaltskanten (eigener Innenabstand bleibt) */
	html body :is(
		.home-v2-content.v2-rental,
		.home-v2-content.v2-buyback,
		.newsletter-banner,
		.s-newsletter-banner,
		.s-page-form-section,
		.tdloc .location-hero,
		.tdloc .ort-v2-buyback,
		.tdl-produkt .tdl-produkt-geschichte
	){width:calc(100% - 2 * var(--tdl-rand))!important;max-width:calc(var(--tdl-max) - 2 * var(--tdl-rand))!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}

	/* Footer: Rand kommt schon vom äußeren .tdl-footer (4vw), innen nur die Höchstbreite */
	html body .tdl-footer :is(.tdl-footer-main,.tdl-footer-legal){max-width:calc(var(--tdl-max) - 2 * var(--tdl-rand))!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}
}

/* Cookie-Banner (Complianz): altes Grün #527541 durch das neue Moosgrün ersetzen (Jan, 03.12.2026).
   Complianz schreibt die Farben als Variablen in :root; diese Datei lädt danach und gewinnt. */
:root{--cmplz_button_accept_background_color:#2d4f22;--cmplz_button_accept_border_color:#2d4f22;--cmplz_button_deny_background_color:#2d4f22;--cmplz_button_deny_border_color:#2d4f22;--cmplz_button_settings_border_color:#2d4f22;--cmplz_button_settings_text_color:#2d4f22;--cmplz_slider_active_color:#2d4f22}

/* Große Bild-Heroes (Startseite, Das ist tidløs, Vermietung, Ankauf, Stadtseiten): einheitlich wie die Startseite (Jan, 03.12.2026).
   Kein Eyebrow über der H1, auf dem Handy 72 % Bildschirmhöhe statt voller Höhe. */
html body section.tdl-home.home-hero :is(.eyebrow,.s-eyebrow){display:none!important}
@media (max-width:767px){html body section.tdl-home.home-hero{height:72svh!important;min-height:540px!important}}

/* Karten als Link (Standortkacheln u. a.): Oxygen färbt global a:hover in die Linkfarbe; Überschriften und Linktext
   in der Karte erben das und werden grün. Karte behält beim Hover ihre Schriftfarbe (Jan, 03.12.2026). */
html body a.oxy-container-link:hover{color:inherit}
html body :is(a.s-v2-tile:not(.s-v2-tile-plain),a.v2-tile:not(.v2-tile-plain)):hover{color:#fff}

/* ===== Unterseiten an die Startseite angleichen (Jan, 03.12.2026) ===== */

/* Newsletter „5 %“ (Stadtseiten .newsletter-banner, Das ist tidløs/Outlet .s-newsletter-banner):
   wie der Ankauf-Kasten der Startseite. Helle Box mit Rahmen, links Kicker und Überschrift, rechts Text und Outline-Pill, kein Foto. */
html body section:is(.newsletter-banner,.s-newsletter-banner){display:block!important;background:rgba(255,255,255,.45)!important;border:1px solid #e1e4d8!important;border-radius:24px!important;padding:52px 64px!important;overflow:visible!important;min-height:0!important;margin-top:20px!important;margin-bottom:90px!important}
html body section:is(.newsletter-banner,.s-newsletter-banner)>:is(.newsletter-banner-media,.s-newsletter-banner-media){display:none!important}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:90px;row-gap:0;align-items:start;background:transparent!important;padding:0!important;max-width:none!important;width:100%!important}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>:is(.eyebrow,.s-eyebrow){grid-column:1;grid-row:1;margin:0 0 24px!important;font-size:12px!important;letter-spacing:.09em;text-transform:uppercase;color:#30372c!important}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>h2{grid-column:1;grid-row:2/span 3;align-self:start;margin:0!important;font-size:42px!important;font-weight:400!important;line-height:1.08!important;letter-spacing:-.04em!important;color:#263221!important}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>:is(.newsletter-text,.s-newsletter-text){grid-column:2;grid-row:1/span 2;margin:0 0 22px!important;font-size:16px!important;line-height:1.7!important;color:#55604d!important;max-width:440px}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>:is(section,.tdl-newsletter-form){grid-column:2;grid-row:3;margin:0!important;padding:0!important}
html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>:is(.newsletter-fineprint,.s-newsletter-fineprint){grid-column:2;grid-row:4;margin:14px 0 0!important;font-size:12px!important;color:#68705f!important;max-width:440px}

/* Buttons wie die Pills der Startseite: Outline statt dunkelgrüner Vollfläche */
html body :is(a.tdl-newsletter-knopf.button,.tdloc a.ort-button){display:inline-flex!important;align-items:center;gap:10px;width:fit-content;min-height:0!important;padding:13px 22px!important;font-size:14px!important;line-height:1.3!important;border:1px solid #c3cdb8!important;border-radius:999px!important;background:rgba(255,255,255,.55)!important;color:#30372c!important;box-shadow:none!important;transform:none!important;transition:background .25s,border-color .25s,color .25s}
html body :is(a.tdl-newsletter-knopf.button,.tdloc a.ort-button):hover{background:#fff!important;border-color:#2d4f22!important;color:#2d4f22!important}

/* Alte Vertrauensleiste unter dem Hero der Stadtseiten (auf der Startseite steht sie als Zeile im Hero) */
html body section.city-page.values-strip{display:none!important}

/* Produktraster ohne grünliche Fläche, wie „Unsere Lieblinge“ auf der Startseite */
html body .tdl-home.v2-selection{background:#fcfbf8!important}

@media (max-width:760px){
	html body section:is(.newsletter-banner,.s-newsletter-banner){padding:32px 22px!important;border-radius:20px!important;margin-bottom:50px!important}
	html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy){grid-template-columns:minmax(0,1fr)}
	html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>*{grid-column:1!important;grid-row:auto!important}
	html body :is(.newsletter-banner-copy,.s-newsletter-banner-copy)>h2{font-size:32px!important;margin-bottom:18px!important}
	html body :is(a.tdl-newsletter-knopf.button,.tdloc a.ort-button){font-size:13px!important;padding:12px 18px!important}
}

/* Grundton etwas weißer: #faf9f5 → #fcfbf8 (Jan, 03.12.2026). Body-Hintergrund kommt aus Oxygen, daher hier überschrieben. */
html body{background-color:#fcfbf8!important}
