/*
Theme Name: TERRALUX
Description: Eigenständiges Blocktheme für TERRALUX Sonnenschutz. Grundgerüst der Variante A Dark.
Version: 0.9.5
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
Text Domain: terralux
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #FF7900; outline-offset: 4px; }
.tl-site-footer { border-top: 1px solid rgb(255 255 255 / 12%); }
.tl-main { min-height: 50vh; padding-block: clamp(3rem, 7vw, 6rem); }
.wp-block-post-content { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Header and hero only. Desktop geometry follows the supplied 1440px export. */
:root { --tl-gutter: clamp(20px, 5.555556vw, 80px); }
.wp-site-blocks > header { margin-block-start: 0; }
.tl-header { max-width: 1440px; margin-inline: auto; background: #0F1113; }
.tl-header .tl-header__row {
  min-height: 84px; padding: 0 var(--tl-gutter) 0 0; gap: 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.tl-header__row > * { margin: 0; }
.tl-header__brand {
  flex: 0 0 auto; align-self: stretch; display: flex; align-items: center;
  padding: 0 36px 0 var(--tl-gutter);
}
.tl-header__brand a { display: flex; align-items: center; }
.tl-header__brand img { display: block; width: auto; height: 52px; max-width: 180px; object-fit: contain; }
.tl-header__nav { color: #F3F1EC; font-size: 15px; font-weight: 500; }
.tl-header__nav .wp-block-navigation__container { gap: 40px; }
/* Core repeats its content class (specificity 0,3,0). Scope the actual normal menu item. */
.tl-header__nav .wp-block-navigation-item:not(.tl-nav-request) > .wp-block-navigation-item__content {
  color: #F3F1EC; text-decoration: none; transition: color 225ms ease;
}
.tl-header__nav .wp-block-navigation-item:not(.tl-nav-request) > .wp-block-navigation-item__content:hover,
.tl-header__phone a:hover { color: #FF7900; }
.tl-header__nav .tl-nav-contact, .tl-header__nav .tl-nav-request { display: none; }
.tl-header .tl-header__actions { gap: 32px; margin: 0; }
.tl-header__actions > * { margin: 0; }
.tl-header__phone { font-size: 15px; font-weight: 500; white-space: nowrap; }
.tl-header__phone a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tl-header__phone a::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl-header__request .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 0;
  background: #FF7900; color: #151719; font-size: 15px; font-weight: 600;
  line-height: 1.5; text-decoration: none; white-space: nowrap;
}
.tl-header__request .wp-block-button__link:hover { background: #E86E00; color: #151719; }
.wp-site-blocks .tl-main--home { padding: 0; margin-block: 0; min-height: 0; }
.tl-main--home > .wp-block-post-content { max-width: 1440px; margin: 0 auto; padding: 0; }
.wp-block-group.tl-hero { position: relative; margin: 0; max-width: none !important; color: #151719; background: #1C1F23; }
.tl-hero > *, .tl-hero .tl-hero__panel > * { margin: 0; }
.tl-hero__image { position: relative; height: 720px; overflow: hidden; background: #24282D; }
.tl-hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tl-hero__base { position: relative; height: 256px; background: #1C1F23; }
.tl-hero__note {
  position: absolute; top: 56px; right: var(--tl-gutter); width: 380px;
  margin: 0; color: #B4B8BE; font-size: 16px; line-height: 1.6; text-wrap: pretty;
}
.tl-hero__note::before { content: ""; display: block; width: 40px; height: 2px; background: #FF7900; margin-bottom: 20px; }
.tl-hero__panel {
  position: absolute; left: var(--tl-gutter); bottom: 128px; z-index: 1;
  width: min(800px, calc(100% - 640px)); padding: 56px 56px 48px;
  background: #FFFFFF; box-shadow: 0 32px 80px rgb(0 0 0 / 35%);
}
.tl-hero__eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px !important;
  color: #4A4D52; font-size: 13px; line-height: 1.5; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tl-hero__eyebrow::before { content: ""; flex: 0 0 10px; height: 10px; background: #FF7900; }
.tl-hero .tl-hero__title {
  max-width: 640px; color: #151719; font-family: Figtree, system-ui, sans-serif;
  font-size: 60px; font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; text-wrap: pretty;
}
.tl-hero .tl-hero__intro {
  max-width: 560px; margin-top: 24px; color: #4A4D52;
  font-size: 19px; line-height: 1.55; text-wrap: pretty;
}
.tl-hero .tl-hero__buttons { display: flex; gap: 16px; margin-top: 40px; }
.tl-hero__buttons .wp-block-button { margin: 0; }
.tl-hero__buttons .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 0;
  background: #FF7900; color: #151719; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none;
}
.tl-hero__primary .wp-block-button__link:hover { background: #E86E00; color: #151719; }
.tl-hero__primary .wp-block-button__link::after {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl-hero__buttons .tl-hero__secondary .wp-block-button__link { background: transparent; border: 1px solid #151719; font-weight: 500; }
.tl-hero__buttons .tl-hero__secondary .wp-block-button__link:hover { background: #151719; color: #FFFFFF; }
.tl-hero__buttons .wp-block-button__link:focus-visible { outline: 2px solid #151719; outline-offset: 4px; }

@media (max-width: 1279px) {
  .tl-header .tl-header__row { padding-inline: var(--tl-gutter); gap: 20px; }
  .tl-header__brand { padding: 0; margin-right: auto; order: 1; }
  .tl-header__nav { order: 3; }
  .tl-header__actions { order: 2; }
  .tl-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .tl-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .tl-header__nav .wp-block-navigation__responsive-container-open,
  .tl-header__nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .tl-header__nav .wp-block-navigation__responsive-container.is-menu-open { background: #0F1113; color: #F3F1EC; padding: 24px var(--tl-gutter) 40px; }
  .tl-header__nav .is-menu-open .wp-block-navigation__container { gap: 24px; align-items: flex-start; font-size: 20px; }
  .tl-header__nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 80px; align-items: stretch; }
  .tl-header__nav .tl-nav-contact, .tl-header__nav .tl-nav-request { display: flex; }
  /* Core's open-overlay selector has specificity 0,4,0 and resets padding to zero. */
  .tl-header__nav .wp-block-navigation__responsive-container.is-menu-open .tl-nav-request > .wp-block-navigation-item__content {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    padding: 14px 24px; background: #FF7900; color: #151719; font-weight: 600;
  }
  .tl-hero { display: flex; flex-direction: column; }
  .tl-hero__image { height: clamp(420px, 58vw, 600px); order: 0; }
  .tl-hero__panel { position: relative; left: auto; bottom: auto; width: auto; margin: -120px var(--tl-gutter) 0; padding: 48px; order: 1; }
  .tl-hero__base { height: auto; padding: 48px var(--tl-gutter) 64px; order: 2; }
  .tl-hero__note { position: static; width: auto; max-width: 480px; margin-left: auto; }
  .tl-hero .tl-hero__title { font-size: clamp(42px, 4.9vw, 60px); }
}
@media (max-width: 767px) {
  .tl-header .tl-header__row { gap: 12px; }
  .tl-header .tl-header__actions { gap: 0; }
  .tl-header__phone { display: none; }
  .tl-header__brand img { width: 120px; height: 45px; }
  .tl-header__request .wp-block-button__link { padding: 0 12px; min-height: 44px; font-size: 13px; }
  .tl-hero__image { height: 380px; }
  .tl-hero__panel { margin-top: -64px; padding: 32px 24px; }
  .tl-hero__eyebrow { gap: 10px; font-size: 10px; letter-spacing: 0.1em; margin-bottom: 24px !important; }
  .tl-hero .tl-hero__title { font-size: clamp(36px, 7vw, 48px); line-height: 1.08; }
  .tl-hero .tl-hero__intro { margin-top: 24px; font-size: 17px; }
  .tl-hero .tl-hero__buttons { flex-direction: column; align-items: stretch; margin-top: 28px; gap: 12px; }
  .tl-hero__buttons .wp-block-button, .tl-hero__buttons .wp-block-button__link { width: 100%; }
  .tl-hero__buttons .wp-block-button__link { padding-inline: 16px; }
  .tl-hero__base { padding: 40px var(--tl-gutter) 56px; }
}

/* 01 Leistungen. The 1440px export uses 12 columns, 24px gaps and 3 fixed rows. */
.wp-block-group.tl-services {
  max-width: none !important; margin: 0; padding: 0 var(--tl-gutter) 136px;
  color: #F3F1EC; background: #1C1F23;
}
.tl-services > *, .tl-services__intro > *, .tl-services__heading > * { margin: 0; }
.tl-services .tl-services__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / 14%); margin-bottom: 56px;
}
.tl-services .tl-services__eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  color: #B4B8BE; font-size: 13px; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tl-services__number {
  padding: 3px 6px; background: #FF7900; color: #151719; font-size: 12px;
  font-weight: 700; line-height: 1.2; letter-spacing: 0.06em;
}
.tl-services .tl-services__title {
  max-width: 600px; color: #F3F1EC; font-size: 46px; font-weight: 600;
  line-height: 1.06; letter-spacing: -0.025em; text-wrap: pretty;
}
.tl-services .tl-services__description {
  justify-self: end; max-width: 480px; color: #B4B8BE; font-size: 17px; line-height: 1.6; text-wrap: pretty;
}
.tl-services .tl-services__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 288px 288px 360px; gap: 24px;
}
.tl-services .tl-services__tile {
  position: relative; min-width: 0; width: 100%; height: 100%; margin: 0;
  overflow: hidden; background: #24282D;
}
.tl-services__terrace { grid-column: 1 / 8; grid-row: 1 / 3; }
.tl-services__wintergarden { grid-column: 8 / 13; grid-row: 1; }
.tl-services__louvres { grid-column: 8 / 13; grid-row: 2; }
.tl-services__carport { grid-column: 1 / 5; grid-row: 3; }
.tl-services__awning { grid-column: 5 / 9; grid-row: 3; }
.tl-services__entrance { grid-column: 9 / 13; grid-row: 3; }
.tl-services .tl-services__tile img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.tl-services .tl-services__tile figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 16px;
  max-width: 100%; margin: 0; padding: 16px 22px 16px 18px; background: #FFFFFF; color: #151719;
  font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; text-align: left;
}
.tl-services .tl-services__terrace figcaption { padding: 18px 24px 18px 20px; font-size: 20px; }
/* Original decorative arrow. Tiles have no links, hover actions or tab stops. */
.tl-services__tile figcaption::after {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) and (max-width: 1279px) {
  .wp-block-group.tl-services { padding-bottom: 96px; }
  .tl-services .tl-services__intro { gap: 32px; margin-bottom: 40px; }
  .tl-services .tl-services__title { font-size: clamp(34px, 3.6vw, 46px); }
  .tl-services .tl-services__grid { grid-template-rows: 240px 240px 300px; }
  .tl-services .tl-services__tile figcaption { gap: 12px; padding: 14px 16px; font-size: 16px; }
  .tl-services .tl-services__terrace figcaption { font-size: 18px; }
}
/* At narrower tablet widths, give every smaller product a full half row. */
@media (min-width: 768px) and (max-width: 959px) {
  .tl-services .tl-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 420px repeat(3, 300px); }
  .tl-services__terrace { grid-column: 1 / 3; grid-row: 1; }
  .tl-services__wintergarden { grid-column: 1; grid-row: 2; }
  .tl-services__louvres { grid-column: 2; grid-row: 2; }
  .tl-services__carport { grid-column: 1; grid-row: 3 / 5; }
  .tl-services__awning { grid-column: 2; grid-row: 3; }
  .tl-services__entrance { grid-column: 2; grid-row: 4; }
}
@media (max-width: 767px) {
  .wp-block-group.tl-services { padding-bottom: 72px; }
  .tl-services .tl-services__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 32px; margin-bottom: 32px; }
  .tl-services .tl-services__eyebrow { margin-bottom: 24px; }
  .tl-services .tl-services__title { font-size: clamp(34px, 7vw, 42px); }
  .tl-services .tl-services__description { justify-self: start; font-size: 16px; }
  .tl-services .tl-services__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 20px; }
  .tl-services .tl-services__tile { grid-column: auto; grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
  .tl-services .tl-services__carport, .tl-services .tl-services__entrance { aspect-ratio: 4 / 5; }
  .tl-services .tl-services__tile figcaption { gap: 12px; padding: 14px 16px; font-size: 16px; }
}

/* 03 Über TERRALUX. Original 1440px geometry; native content-only blocks. */
.wp-block-group.tl-about {
  max-width: none !important; margin: 0; padding: 136px var(--tl-gutter);
  background: #0F1113; color: #F3F1EC; overflow-wrap: normal;
}
.tl-about p, .tl-about h2, .tl-about h3, .tl-about .wp-block-group, .tl-about figure { margin: 0; }
.tl-about .tl-about__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: center; }
.tl-about .tl-about__image { position: relative; min-width: 0; height: 720px; overflow: hidden; background: #24282D; }
.tl-about__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Core adds inline height:auto while editing; retain the protected crop in the canvas. */
.editor-styles-wrapper .tl-about__image img { height: 100% !important; }
.tl-about__copy { min-width: 0; }
.tl-about .tl-about__eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  color: #B4B8BE; font-size: 13px; font-weight: 500; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase;
}
.tl-about__number { padding: 3px 6px; background: #FF7900; color: #151719; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; }
.tl-about .tl-about__title { color: #F3F1EC; font-size: 44px; font-weight: 600; line-height: 1.08; letter-spacing: -.025em; text-wrap: pretty; }
.tl-about .tl-about__description { margin-top: 28px; color: #B4B8BE; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.tl-about .tl-about__description--second { margin-top: 18px; }
.tl-about .tl-about__process { margin-top: 48px; border-top: 1px solid rgb(255 255 255 / 14%); }
.tl-about .tl-about__process-label { padding: 20px 0 4px; color: #B4B8BE; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.tl-about .tl-about__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.tl-about .tl-about__step:last-child { border-bottom: 0; }
.tl-about .tl-about__step-number { padding-top: 3px; color: #FF7900; font-size: 13px; font-weight: 600; line-height: 1.5; }
.tl-about .tl-about__step-title { color: #F3F1EC; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: normal; }
.tl-about .tl-about__step-description { margin-top: 4px; color: #B4B8BE; font-size: 15px; line-height: 1.55; }
@media (max-width: 1279px) {
  .wp-block-group.tl-about { padding-block: 96px; }
  .tl-about .tl-about__layout { gap: 48px; }
  .tl-about .tl-about__image { height: 640px; }
  .tl-about .tl-about__title { font-size: clamp(34px, 3.6vw, 44px); }
}
@media (max-width: 959px) {
  .tl-about .tl-about__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tl-about .tl-about__image { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .wp-block-group.tl-about { padding-block: 72px; }
  .tl-about .tl-about__layout { gap: 32px; }
  .tl-about .tl-about__eyebrow { margin-bottom: 24px; }
  .tl-about .tl-about__title { font-size: 34px; overflow-wrap: anywhere; }
  .tl-about .tl-about__description { font-size: 16px; }
  .tl-about .tl-about__process { margin-top: 36px; }
  .tl-about .tl-about__step { grid-template-columns: 32px minmax(0, 1fr); }
  .tl-about .tl-about__step-copy { overflow-wrap: anywhere; }
}

/* 04 Projekte and the references page share the plugin's image-only allowlist. */
.wp-block-group.tl-projects {
  max-width: none !important; margin: 0; padding: 136px var(--tl-gutter);
  background: #FFFFFF; color: #151719; overflow-wrap: normal;
}
.tl-projects p, .tl-projects h2, .tl-projects .wp-block-group { margin: 0; }
.tl-projects .tl-projects__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end;
  padding-bottom: 40px; border-bottom: 1px solid #DAD6CF; margin-bottom: 56px;
}
.tl-projects .tl-projects__eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #4A4D52;
  font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase;
}
.tl-projects__number { padding: 3px 6px; background: #FF7900; color: #151719; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; }
.tl-projects .tl-projects__title { max-width: 600px; color: #151719; font-size: 46px; font-weight: 600; line-height: 1.06; letter-spacing: -.025em; text-wrap: pretty; }
.tl-projects .tl-projects__description { justify-self: end; max-width: 480px; color: #4A4D52; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.tl-reference-images { margin: 0; }
.tl-reference-images__tile { margin: 0; min-width: 0; }
.tl-reference-images__image { height: 100%; overflow: hidden; background: #1C1F23; }
.tl-reference-images__tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tl-reference-images--preview { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 260px 260px; column-gap: 24px; row-gap: 120px; }
.tl-reference-images--preview .tl-reference-images__tile--featured { grid-row: 1 / 3; height: 640px; }
/* Export slot state: winter garden y=16.8213%, balcony y=23.1370% of its frame. */
.tl-reference-images--preview .tl-reference-images__tile--featured img { object-position: 50% 16.28%; }
.tl-reference-images--preview .tl-reference-images__tile:nth-child(3) img { object-position: 50% 35.82%; }
.tl-reference-images--preview .tl-reference-images__empty { grid-column: 1 / -1; }
/* Without public metadata, preserve the previous image-only geometry. */
.tl-projects .tl-projects__more { margin-top: 136px; text-align: right; }
.tl-projects__more a { display: inline-flex; align-items: center; gap: 12px; color: #151719; font-size: 16px; font-weight: 600; text-decoration: none; min-height: 24px; }
.tl-projects__more a:hover { color: #B44E00; }
.tl-projects__more a::after, .tl-references__cta .wp-block-button__link::after {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl-reference-images:has(.tl-reference-images__empty) { display: block; }
.tl-reference-images__empty { padding: 32px 0; font-size: 17px; line-height: 1.6; }
.tl-projects:has(.tl-reference-images__empty) .tl-projects__more { margin-top: 40px; }
.wp-site-blocks .tl-main--references { padding: 0; margin-block: 0; min-height: 0; }
.wp-site-blocks:has(.tl-main--references) .tl-header__nav .wp-block-navigation-item:not(.tl-nav-request) > a[href$="/referenzen/"] { color: #FF7900; }
.tl-main--references > .wp-block-post-content { max-width: 1440px; margin: 0 auto; padding: 0; }
.wp-block-group.tl-references { max-width: none !important; margin: 0; background: #0F1113; color: #F3F1EC; overflow-wrap: normal; }
.tl-references p, .tl-references h1, .tl-references h2, .tl-references .wp-block-group, .tl-references .wp-block-buttons { margin: 0; }
.tl-references .tl-references__intro { padding: clamp(64px, 8vw, 120px) var(--tl-gutter) 0; }
.tl-references .tl-references__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #B4B8BE; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.tl-references__eyebrow::before { content: ""; flex: 0 0 10px; height: 10px; background: #FF7900; }
.tl-references .tl-references__intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 96px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgb(255 255 255 / 14%); margin-bottom: clamp(32px, 4vw, 56px); }
.tl-references .tl-references__title { max-width: 720px; color: #F3F1EC; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.tl-references .tl-references__description { max-width: 480px; color: #B4B8BE; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.tl-references .tl-references__gallery { padding: 0 var(--tl-gutter) clamp(80px, 9vw, 136px); }
.tl-reference-images--gallery { columns: 3 300px; column-gap: 24px; }
.tl-reference-images--gallery .tl-reference-images__tile { break-inside: avoid; margin: 0 0 24px; }
.tl-reference-images--gallery .tl-reference-images__image { aspect-ratio: 4 / 5; height: auto; }
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 3) .tl-reference-images__image,
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 7) .tl-reference-images__image { aspect-ratio: 3 / 4; }
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 4) .tl-reference-images__image,
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 5) .tl-reference-images__image,
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 10) .tl-reference-images__image { aspect-ratio: 1 / 1; }
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 6) .tl-reference-images__image,
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 12) .tl-reference-images__image { aspect-ratio: 5 / 4; }
.tl-reference-images--gallery .tl-reference-images__tile:nth-child(11n + 9) .tl-reference-images__image { aspect-ratio: 16 / 10; }
.tl-reference-images--gallery .tl-reference-images__tile--featured { column-span: all; margin-bottom: 32px; }
.tl-reference-images--gallery .tl-reference-images__tile--featured .tl-reference-images__image { aspect-ratio: auto; height: clamp(260px, 42vw, 600px); }
.tl-references .tl-references__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; padding: clamp(56px, 6vw, 88px) var(--tl-gutter); color: #151719; background: #FFFFFF; }
.tl-references__cta-copy { max-width: 640px; }
.tl-references .tl-references__cta-title { color: #151719; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.tl-references .tl-references__cta-description { margin-top: 16px; color: #4A4D52; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.tl-references__cta .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 0; background: #FF7900; color: #151719; font-size: 16px; font-weight: 600; text-decoration: none; }
.tl-references__cta .wp-block-button__link:hover { background: #E86E00; color: #151719; }
@media (max-width: 1279px) {
  .wp-block-group.tl-projects { padding-block: 96px; }
  .tl-projects .tl-projects__intro { gap: 32px; }
  .tl-projects .tl-projects__title { font-size: clamp(34px, 3.6vw, 46px); }
  .tl-reference-images--preview { grid-template-rows: 220px 220px; row-gap: 72px; }
  .tl-reference-images--preview .tl-reference-images__tile--featured { height: 512px; }
  .tl-projects .tl-projects__more { margin-top: 72px; }
}
@media (max-width: 959px) {
  .tl-reference-images--preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 24px; }
  .tl-reference-images--preview .tl-reference-images__tile--featured { grid-column: 1 / -1; grid-row: auto; height: auto; aspect-ratio: 16 / 10; }
  .tl-reference-images--preview .tl-reference-images__tile:not(.tl-reference-images__tile--featured) { aspect-ratio: 4 / 3; }
  .tl-reference-images--preview .tl-reference-images__tile img { object-position: center; }
  .tl-projects .tl-projects__more { margin-top: 40px; }
}
@media (max-width: 767px) {
  .wp-block-group.tl-projects { padding-block: 72px; }
  .tl-projects .tl-projects__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 32px; margin-bottom: 32px; }
  .tl-projects .tl-projects__eyebrow { margin-bottom: 24px; }
  .tl-projects .tl-projects__title { font-size: 34px; }
  .tl-projects .tl-projects__description { justify-self: start; font-size: 16px; }
  .tl-projects__more a { min-height: 44px; }
  .tl-reference-images--preview { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tl-reference-images--preview .tl-reference-images__tile { height: auto; aspect-ratio: 4 / 3 !important; }
  .tl-references .tl-references__eyebrow { font-size: 11px; letter-spacing: .1em; }
}
@media (max-width: 639px) {
  .tl-reference-images--gallery { columns: 1; }
  .tl-reference-images--gallery .tl-reference-images__tile:not(.tl-reference-images__tile--featured) .tl-reference-images__image { aspect-ratio: auto; }
  .tl-reference-images--gallery .tl-reference-images__tile:not(.tl-reference-images__tile--featured) img { height: auto; }
  .tl-references .tl-references__title { overflow-wrap: anywhere; }
}

/* Optional, explicitly public reference copy. Images keep their original frame/crop. */
.tl-reference-images__caption { padding-top: 20px; overflow-wrap: anywhere; }
.tl-reference-images__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.tl-reference-images__title { font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.tl-reference-images__year { font-size: 13px; font-weight: 500; line-height: 1.5; }
.tl-reference-images--preview .tl-reference-images__caption { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; min-height: 96px; color: #151719; }
.tl-reference-images--preview .tl-reference-images__tile--featured .tl-reference-images__caption { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.tl-projects .tl-reference-images__description { margin: 0; color: #4A4D52; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.tl-reference-images__caption > .tl-reference-images__description:only-child { grid-column: 1 / -1; }
.tl-reference-images--gallery .tl-reference-images__caption { padding-top: 12px; color: #F3F1EC; }
.tl-reference-images--gallery .tl-reference-images__year { color: #B4B8BE; }
.tl-reference-images--preview:has(.tl-reference-images__caption) { grid-template-rows: auto auto; row-gap: 24px; align-items: start; }
.tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__tile { height: auto; aspect-ratio: auto !important; }
.tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__image { height: 260px; }
.tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__tile--featured .tl-reference-images__image { height: 640px; }
.tl-projects:has(.tl-reference-images__caption) .tl-projects__more { margin-top: 40px; }
@media (min-width: 960px) and (max-width: 1279px) {
  .tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__image { height: 220px; }
  .tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__tile--featured .tl-reference-images__image { height: 512px; }
  .tl-reference-images--preview .tl-reference-images__caption,
  .tl-reference-images--preview .tl-reference-images__tile--featured .tl-reference-images__caption { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 959px) {
  .tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__image { height: auto; aspect-ratio: 4 / 3; }
  .tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__tile--featured .tl-reference-images__image { height: auto; aspect-ratio: 16 / 10; }
  .tl-reference-images--preview .tl-reference-images__caption,
  .tl-reference-images--preview .tl-reference-images__tile--featured .tl-reference-images__caption { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
}
@media (max-width: 767px) {
  .tl-reference-images--preview:has(.tl-reference-images__caption) .tl-reference-images__tile--featured .tl-reference-images__image { aspect-ratio: 4 / 3; }
}

/* 05 FAQ, 06 Kontakt and the shared footer: original 1440px geometry. */
.wp-block-group.tl-faq { max-width: none !important; margin: 0; padding: 136px var(--tl-gutter); background: #F3F1EC; color: #151719; border-top: 1px solid #DAD6CF; overflow-wrap: normal; }
.tl-faq p, .tl-faq h2, .tl-faq .wp-block-group, .tl-faq details,
.tl-contact p, .tl-contact h2, .tl-contact .wp-block-group, .tl-contact .wp-block-buttons,
.tl-footer p, .tl-footer .wp-block-group, .tl-footer figure { margin: 0; }
.tl-faq .tl-faq__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.tl-faq .tl-faq__eyebrow, .tl-contact .tl-contact__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.tl-faq__eyebrow { color: #4A4D52; }
.tl-faq__number, .tl-contact__number { background: #FF7900; color: #151719; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; line-height: 1.2; }
.tl-faq .tl-faq__title { color: #151719; font-size: 46px; line-height: 1.06; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.tl-faq .tl-faq__description { margin-top: 24px; max-width: 420px; font-size: 17px; line-height: 1.6; color: #4A4D52; text-wrap: pretty; }
.tl-faq .tl-faq__phone { margin-top: 32px; font-size: 17px; font-weight: 600; }
.tl-faq__phone a { display: inline-flex; align-items: center; gap: 12px; color: #151719; text-decoration: none; }
.tl-faq__phone a:hover { color: #B44E00; }
.tl-faq__phone a::before, .tl-contact__phone .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl-faq .tl-faq__items { border-top: 1px solid #DAD6CF; }
.tl-faq .tl-faq__item { border-bottom: 1px solid #DAD6CF; }
.tl-faq__item summary { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; margin: 0; color: #151719; font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; text-align: left; cursor: pointer; list-style: none; }
.tl-faq__item summary::-webkit-details-marker { display: none; }
.tl-faq__item summary::marker { content: ""; }
.tl-faq__item summary::after { content: ""; flex: 0 0 20px; width: 20px; height: 20px; background: currentColor; transition: transform .2s; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tl-faq__item[open] summary::after { transform: rotate(180deg); }
.tl-faq .tl-faq__item p { padding: 0 64px 28px 0; font-size: 16px; line-height: 1.65; color: #4A4D52; text-wrap: pretty; }
.wp-block-group.tl-contact { max-width: none !important; margin: 0; padding: 120px var(--tl-gutter); background: #0F1113; color: #FFFFFF; overflow-wrap: normal; }
.tl-contact .tl-contact__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: start; }
.tl-contact__eyebrow { color: #B9BCC1; }
.tl-contact .tl-contact__title { max-width: 640px; color: #FFFFFF; font-size: 54px; line-height: 1.04; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.tl-contact .tl-contact__description { margin-top: 24px; max-width: 520px; font-size: 19px; line-height: 1.55; color: #B9BCC1; text-wrap: pretty; }
.tl-contact .tl-contact__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.tl-contact__buttons .wp-block-button { margin: 0; }
.tl-contact__buttons .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 0; background: #FF7900; color: #151719; font-size: 16px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.tl-contact__request .wp-block-button__link::after { content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.tl-contact__request .wp-block-button__link:hover { background: #E86E00; color: #151719; }
.tl-contact__buttons .tl-contact__phone .wp-block-button__link { color: #FFFFFF; font-weight: 500; background: transparent; border: 1px solid rgb(255 255 255 / 40%); }
.tl-contact__phone .wp-block-button__link::before { width: 16px; height: 16px; flex-basis: 16px; }
.tl-contact__buttons .tl-contact__phone .wp-block-button__link:hover { color: #151719; background: #FFFFFF; }
.tl-contact .tl-contact__information { border-top: 1px solid rgb(255 255 255 / 16%); padding-top: 8px; min-width: 0; }
.tl-contact .tl-contact__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid rgb(255 255 255 / 16%); }
.tl-contact .tl-contact__label { padding-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #B9BCC1; }
.tl-contact .tl-contact__value { font-size: 19px; font-weight: 500; line-height: 1.5; color: #FFFFFF; overflow-wrap: anywhere; }
.tl-contact .tl-contact__address { line-height: 1.4; }
.tl-contact__value a { color: #FFFFFF; text-decoration: none; }
.tl-contact__value a:hover { color: #FF7900; }
.wp-site-blocks > footer { margin-block-start: 0; }
.wp-block-group.tl-footer { max-width: 1440px; margin: 0 auto; padding: 72px var(--tl-gutter) 40px; background: #1C1F23; color: #F3F1EC; border-top: 1px solid rgb(255 255 255 / 8%); overflow-wrap: normal; }
.tl-footer .tl-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.tl-footer .tl-footer__brand { display: inline-flex; align-items: center; padding: 14px 18px; background: #1C1F23; width: 160px; height: 78px; }
.tl-footer__brand img { display: block; height: 52px; width: auto; max-width: 144px; object-fit: contain; }
.editor-styles-wrapper .tl-footer__brand img { height: 52px !important; }
.tl-footer .tl-footer__description { margin-top: 24px; max-width: 400px; font-size: 15px; line-height: 1.6; color: #B4B8BE; text-wrap: pretty; }
.tl-footer .tl-footer__label { margin-bottom: 20px; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: #B4B8BE; }
.tl-footer__nav { font-size: 15px; font-weight: 500; }
.tl-footer__nav .wp-block-navigation__container, .tl-footer .tl-legal-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tl-footer a { color: #F3F1EC; text-decoration: none; overflow-wrap: anywhere; }
.tl-footer a:hover { color: #FF7900; }
.tl-footer__nav a, .tl-legal-links a { min-height: 24px; display: inline-flex; align-items: center; }
.tl-footer .tl-footer__contact > p:not(.tl-footer__label) { font-size: 15px; line-height: 1.5; margin-top: 12px; }
.tl-footer .tl-footer__contact .tl-footer__phone_link { margin-top: 0 !important; font-weight: 500; }
.tl-footer__email_link { font-weight: 500; }
.tl-footer__address { color: #B4B8BE; }
.tl-legal-links { font-size: 15px; font-weight: 500; }
.tl-legal-links span { color: #B4B8BE; min-height: 24px; display: inline-flex; align-items: center; }
.tl-footer .tl-footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 13px; line-height: 1.5; color: #8A8E94; }
@media (max-width: 1279px) {
  .wp-block-group.tl-faq, .wp-block-group.tl-contact { padding-block: 96px; }
  .tl-faq .tl-faq__layout, .tl-contact .tl-contact__layout { gap: 48px; }
  .tl-faq .tl-faq__title { font-size: 38px; }
  .tl-contact .tl-contact__title { font-size: 44px; }
  .tl-contact .tl-contact__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tl-footer .tl-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 959px) {
  .tl-faq .tl-faq__layout, .tl-contact .tl-contact__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tl-contact .tl-contact__row { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .wp-block-group.tl-faq, .wp-block-group.tl-contact { padding-block: 72px; }
  .tl-faq .tl-faq__title { font-size: 34px; }
  .tl-faq .tl-faq__description { font-size: 16px; }
  .tl-faq__item summary { font-size: 19px; padding-block: 24px; gap: 16px; }
  .tl-faq .tl-faq__item p { padding-right: 0; }
  .tl-faq__phone a { min-height: 44px; }
  .tl-contact .tl-contact__title { font-size: 38px; overflow-wrap: anywhere; }
  .tl-contact .tl-contact__description { font-size: 17px; }
  .tl-contact .tl-contact__buttons { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
  .tl-contact__buttons .wp-block-button, .tl-contact__buttons .wp-block-button__link { width: 100%; }
  .tl-contact__buttons .wp-block-button__link { padding-inline: 16px; }
  .tl-contact .tl-contact__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tl-contact .tl-contact__value { font-size: 18px; }
  .tl-contact__value a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .wp-block-group.tl-footer { padding-block: 56px 32px; }
  .tl-footer .tl-footer__grid { gap: 40px 24px; }
  .tl-footer__brand-copy { grid-column: 1 / -1; }
  .tl-footer__legal { grid-column: 2; grid-row: 2; }
  .tl-footer__contact { grid-column: 1 / -1; grid-row: 3; }
  .tl-footer__nav .wp-block-navigation__container, .tl-footer .tl-legal-links { gap: 4px; }
  .tl-footer a, .tl-legal-links span { min-height: 44px; display: inline-flex; align-items: center; }
  .tl-footer .tl-footer__contact > p:not(.tl-footer__label) { margin-top: 4px; }
  .tl-footer .tl-footer__bottom { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tl-faq__item summary::after { transition: none; } }

/* Orange on off-white does not reach 3:1 for a keyboard focus indicator. */
.tl-faq :focus-visible { outline-color: #151719; }

/* Full-bleed paint only: frame widths, gutters and Gutenberg content stay unchanged.
   Border-image paint extends outside the frame without creating scrollable overflow.
   Remove the former IONOS Custom CSS full-bleed rules after updating (see update guide).
   Front-end scope deliberately excludes Gutenberg editor canvases. */
/* Neutralize the supplied legacy ::before paint at narrow widths if Additional CSS remains.
   Both implementations use the same pseudo-element, never a second background layer. */
.wp-site-blocks :is(.tl-header, .tl-hero, .tl-services, .tl-configurator, .tl-about, .tl-projects, .tl-faq, .tl-contact, .tl-footer, .tl-references, .tl-references__cta)::before { content: none; }
@media (min-width: 1441px) {
.wp-site-blocks :is(.tl-header, .tl-hero, .tl-services, .tl-configurator, .tl-about, .tl-projects, .tl-faq, .tl-contact, .tl-footer, .tl-references, .tl-references__cta) {
  position: relative; isolation: isolate;
}
/* Keep Core's fixed burger overlay above the following isolated section paint. */
.wp-site-blocks .tl-header { z-index: 3; }
.wp-site-blocks :is(.tl-header, .tl-hero, .tl-services, .tl-configurator, .tl-about, .tl-projects, .tl-faq, .tl-contact, .tl-footer, .tl-references, .tl-references__cta)::before {
  content: ""; position: absolute; inset: 0; width: auto; transform: none; z-index: -1; pointer-events: none;
  background: transparent; border-image: linear-gradient(var(--tl-bleed-color), var(--tl-bleed-color)) fill 0 / 0 / 0 100vmax;
}
.tl-header, .tl-about, .tl-contact, .tl-references { --tl-bleed-color: #0F1113; }
.tl-hero, .tl-services, .tl-footer { --tl-bleed-color: #1C1F23; }
.tl-configurator, .tl-faq { --tl-bleed-color: #F3F1EC; }
.tl-projects, .tl-references__cta { --tl-bleed-color: #FFFFFF; }
/* Extend the existing single 1px border using the same rasterization in and outside the frame.
   Border-image also avoids alpha seams when a preceding section ends on a fractional CSS pixel. */
.wp-site-blocks .tl-faq { border-image: linear-gradient(#DAD6CF, #DAD6CF) 1 / 1px 0 0 / 0 100vmax; }
/* At fractional browser zoom, the 1px top border and the full-bleed fill can
   rasterize into adjacent device pixels. The intervening outer pixel then
   exposes the dark page canvas, while the central FAQ area is already light.
   Paint the 2px transition with the same off-white / separator colors across
   the full bleed. This adds no layout height, scrolling width or click target. */
.wp-site-blocks .tl-faq::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, #F3F1EC 0 50%, #DAD6CF 50% 100%);
  border-image: linear-gradient(to bottom, #F3F1EC 0 50%, #DAD6CF 50% 100%) fill 0 / 0 / 0 100vmax;
}

}
@media (prefers-reduced-motion: reduce) {
  .tl-header__nav .wp-block-navigation-item:not(.tl-nav-request) > .wp-block-navigation-item__content { transition: none; }
}


/* Progressive scroll reveals: default visible, only JS-selected offscreen elements animate. */
@media (prefers-reduced-motion: no-preference) {
  .wp-site-blocks .tl-reveal-pending { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.65,.2,1); }
  .wp-site-blocks .tl-reveal-pending.tl-revealed { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-site-blocks .tl-reveal-pending { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.wp-site-blocks .tl-reviews {
  position: relative; margin: 0; padding: 110px var(--tl-gutter);
  background: #FFFFFF; color: #151719;
}
.wp-site-blocks .tl-reviews__inner { max-width: 1280px; margin: 0 auto; }
.tl-reviews__heading { display: flex; gap: 32px; justify-content: space-between; align-items: end; margin-bottom: 38px; }
.tl-reviews__eyebrow { margin: 0 0 16px; color: #8B4C09; font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.tl-reviews__heading h2 { margin: 0; font-size: clamp(32px, 3.7vw, 46px); letter-spacing: -.03em; line-height: 1.1; }
.tl-reviews__description { margin: 16px 0 0; font-size: 16px; color: #4A4D52; }
.tl-reviews__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.tl-reviews__source { font-size: 15px; font-weight: 600; color: #151719; text-underline-offset: 5px; white-space: nowrap; }
.tl-reviews__source:hover, .tl-reviews__footer a:hover { color: #B44E00; }
.tl-reviews__arrows { display: flex; gap: 8px; }
.tl-reviews__arrow { border: 1px solid #C9C5BE; border-radius: 0; width: 46px; height: 46px; background: transparent; font-size: 24px; line-height: 1; color: #151719; cursor: pointer; }
.tl-reviews__arrow:hover:not(:disabled) { border-color: #FF7900; background: #FF7900; }
.tl-reviews__arrow:disabled { opacity: .35; cursor: default; }
.tl-reviews__track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 12px; }
.tl-reviews__card { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; background: #F3F1EC; border: 1px solid #E2DED7; padding: 32px; display: flex; flex-direction: column; min-height: 285px; }
.tl-reviews__stars { color: #A34E00; font-size: 21px; letter-spacing: .13em; }
.tl-reviews__quote { margin: 22px 0 28px; flex: 1; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.tl-reviews__quote p { margin: 0; }
.tl-reviews__excerpt { color: #555; font-size: 13px; }
.tl-reviews__footer { border-top: 1px solid #DAD6CF; padding-top: 20px; display: flex; gap: 16px; justify-content: space-between; align-items: end; }
.tl-reviews__footer strong { display: block; font-size: 15px; }
.tl-reviews__footer span { display: block; font-size: 13px; color: #4A4D52; }
.tl-reviews__footer a { color: #151719; font-size: 13px; }
@media (max-width: 1023px) { .tl-reviews__card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 719px) {
  .wp-site-blocks .tl-reviews { padding-block: 72px; }
  .tl-reviews__heading { flex-direction: column; align-items: start; gap: 20px; }
  .tl-reviews__actions { width: 100%; justify-content: space-between; }
  .tl-reviews__card { flex-basis: 88%; padding: 24px; min-height: 260px; }
}
/* Full-bleed review background for the site's centered 1440px frame. */
@media (min-width: 1441px) {
  .wp-site-blocks .tl-reviews { isolation: isolate; }
  .wp-site-blocks .tl-reviews::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-image: linear-gradient(#FFFFFF, #FFFFFF) fill 0 / 0 / 0 100vmax;
  }
}

/* Review carousel: scrollbar hidden, scrolling still enabled. */
.wp-site-blocks .tl-reviews__track::-webkit-scrollbar { display: none; }
/* Why TERRALUX section */
.wp-site-blocks .tl-why { margin: 0; padding: 108px var(--tl-gutter); background: #F3F1EC; color: #151719; }
.tl-why__inner { max-width: 1280px; margin: 0 auto; }
.tl-why__intro { max-width: 760px; margin: 0 auto 66px; text-align: center; }
.tl-why__eyebrow { color: #9A4B0A; font-size: 12px; font-weight: 700; letter-spacing: .17em; margin: 0 0 20px; }
.tl-why .tl-why__title { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
.tl-why__subtitle { font-size: 18px; line-height: 1.65; color: #555B61; margin: 22px auto 0; max-width: 650px; }
.tl-why__steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: relative; gap: 26px; }
.tl-why__steps::before { content: ""; position: absolute; left: 9%; right: 9%; top: 32px; height: 1px; background: #C9B7A4; pointer-events: none; }
.tl-why__step { text-align: center; position: relative; }
.tl-why__step-number { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid #AF8563; border-radius: 50%; color: #9A4B0A; background: #F3F1EC; font-size: 19px; font-weight: 600; }
.tl-why__step-title { font-size: 19px; margin: 0 0 12px; }
.tl-why__step-text { color: #555B61; font-size: 15px; line-height: 1.65; max-width: 245px; margin: 0 auto; }
.tl-why__benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; border-top: 1px solid #DAD6CF; border-bottom: 1px solid #DAD6CF; margin: 68px 0 48px; padding: 32px 0; }
.tl-why__benefit-label { font-size: 12px; letter-spacing: .13em; color: #945010; font-weight: 700; margin: 0 0 12px; }
.tl-why__benefit-text { color: #555B61; font-size: 14px; line-height: 1.6; margin: 0; }
.tl-why__outro { display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.tl-why__outro-title { font-size: clamp(25px,3vw,36px); letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.tl-why__button .wp-block-button__link { background: #FF7900; color: #151719; border-radius: 0; padding: 18px 26px; font-weight: 700; text-decoration: none; }
.tl-why__button .wp-block-button__link:hover { background: #E66A00; }
@media (min-width: 1441px) { .wp-site-blocks .tl-why { position: relative; isolation: isolate; } .wp-site-blocks .tl-why::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; border-image: linear-gradient(#F3F1EC,#F3F1EC) fill 0 / 0 / 0 100vmax; } }
@media (max-width: 920px) { .tl-why__steps, .tl-why__benefits { grid-template-columns: repeat(2,minmax(0,1fr)); } .tl-why__steps::before { display: none; } .tl-why__outro { align-items: start; flex-direction: column; } }
@media (max-width: 580px) { .wp-site-blocks .tl-why { padding-block: 70px; } .tl-why__intro { margin-bottom: 44px; } .tl-why__steps, .tl-why__benefits { grid-template-columns: minmax(0,1fr); gap: 30px; } .tl-why__benefits { margin-block: 42px 32px; } .tl-why__step { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; } .tl-why__step-number { width: 48px; height: 48px; grid-row: span 2; margin: 0; } .tl-why__step-text { max-width: none; margin: 0; } }

/* Align custom Gutenberg Group children across WordPress/browser versions.
   No connector line: avoids misalignment at different zoom levels. */
.wp-site-blocks .tl-why__steps,
.wp-site-blocks .tl-why__benefits { align-items: start; }
.wp-site-blocks .tl-why__steps > .tl-why__step,
.wp-site-blocks .tl-why__benefits > .tl-why__benefit {
  margin-block-start: 0 !important;
  margin-block-end: 0;
}
.wp-site-blocks .tl-why__steps::before { content: none; }

/* 0.9.5 – accessible icon treatment for the persisted "Warum TERRALUX" blocks. */
.tl-why__step-number .tl-why__step-icon { width: 27px; height: 27px; display: block; flex: 0 0 auto; }
@media (max-width: 580px) { .tl-why__step-number .tl-why__step-icon { width: 23px; height: 23px; } }

/* 0.9.5 – source labeling for manually curated Google customer reviews. */
.tl-reviews__origin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; font-size: 14px; color: #202328; }
.tl-reviews__origin-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #FF7900; }
.tl-reviews__origin strong { font-weight: 700; }
.tl-reviews__origin-note { font-size: 12px; color: #65686D; }
.tl-reviews__review-origin { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #56585B; margin-bottom: 8px; }
