/*
Theme Name: TECHNIK-RLP
Theme URI: https://technikrlp.de/
Author: S² AI Consulting
Description: Eigenständiges WooCommerce-Theme für die TECHNIK-RLP GmbH. Website und B2B-Anfragekatalog laufen unter einer Domain.
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: technik-rlp
*/

:root {
  --trlp-ink: #101923;
  --trlp-navy: #17263a;
  --trlp-blue: #243d5c;
  --trlp-steel: #687684;
  --trlp-line: #d8dee4;
  --trlp-paper: #f5f7f8;
  --trlp-white: #ffffff;
  --trlp-signal: #f4c400;
  --trlp-signal-dark: #715900;
  --trlp-radius: 3px;
  --trlp-shadow: 0 18px 55px rgba(15, 25, 36, 0.12);
  --trlp-content: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--trlp-ink);
  background: var(--trlp-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; z-index: 100000; top: 10px; left: 10px;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; color: var(--trlp-ink); background: var(--trlp-signal);
}
.trlp-shell { width: min(var(--trlp-content), calc(100% - 48px)); margin-inline: auto; }
.trlp-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: #51606d; font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em; text-transform: uppercase;
}
.trlp-kicker::before { width: 30px; height: 3px; content: ""; background: var(--trlp-signal); }
.trlp-button, .button, button.button, input.button, .woocommerce a.button {
  min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: var(--trlp-radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--trlp-ink); background: var(--trlp-signal); box-shadow: none;
  font-size: 13px; font-weight: 850; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.trlp-button:hover, .trlp-button:focus-visible, .button:hover, .button:focus-visible,
button.button:hover, button.button:focus-visible, .woocommerce a.button:hover, .woocommerce a.button:focus-visible {
  color: var(--trlp-ink); background: #ffd52c; transform: translateY(-1px);
}
.trlp-button--ghost { border-color: #afbac4; background: transparent; }
.trlp-button--dark { color: var(--trlp-white); background: var(--trlp-navy); }
.trlp-button--dark:hover, .trlp-button--dark:focus-visible { color: var(--trlp-white); background: var(--trlp-blue); }
:focus-visible { outline: 3px solid var(--trlp-signal); outline-offset: 3px; }

.site-header {
  position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--trlp-line);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: 82px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.site-branding img { width: 238px; max-height: 60px; object-fit: contain; object-position: left center; }
.site-navigation { justify-self: center; }
.site-navigation ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 27px; list-style: none; }
.site-navigation a { color: #3f4c58; font-size: 12px; font-weight: 800; text-decoration: none; }
.site-navigation a:hover, .site-navigation .current-menu-item > a { color: var(--trlp-ink); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.trlp-partner { color: #4f5c68; font-size: 10px; font-weight: 800; white-space: nowrap; }
.trlp-quote-link { position: relative; }
.trlp-quote-count {
  min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 99px;
  display: grid; place-items: center; color: var(--trlp-white); background: var(--trlp-navy); font-size: 10px;
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--trlp-line); background: var(--trlp-white); }

.trlp-hero { position: relative; overflow: hidden; color: var(--trlp-white); background: #0f1925; }
.trlp-hero__media, .trlp-hero__shade { position: absolute; inset: 0; }
.trlp-hero__media::after {
  position: absolute; inset: -20% -30%; content: ""; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(81, 141, 201, .14) 50%, transparent 65%);
  transform: translateX(-28%); animation: trlp-hero-light 12s ease-in-out infinite alternate;
}
.trlp-hero__media img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  transform: scale(1.02); transform-origin: 62% center; animation: trlp-hero-drift 18s ease-in-out infinite alternate;
}
.trlp-hero__media.is-motion-paused img, .trlp-hero__media.is-motion-paused::after { animation-play-state: paused; }
.trlp-hero__shade { background: linear-gradient(90deg, rgba(8, 15, 24, .97) 0%, rgba(15, 25, 37, .9) 38%, rgba(15, 25, 37, .36) 68%, rgba(15, 25, 37, .08) 100%); }
.trlp-hero__inner { position: relative; z-index: 2; min-height: 650px; display: flex; align-items: center; padding-block: 85px; }
.trlp-hero__content { max-width: 760px; }
.trlp-hero .trlp-kicker { color: #d4dde6; }
.trlp-hero h1 { max-width: 780px; margin: 21px 0; color: var(--trlp-white); font-size: clamp(48px, 6.5vw, 88px); line-height: .94; letter-spacing: -.065em; }
.trlp-hero h1 em { color: var(--trlp-signal); font-style: normal; }
.trlp-hero p { max-width: 660px; margin: 0; color: #d1dae3; font-size: clamp(16px, 1.7vw, 20px); }
.trlp-hero__actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 11px; }
.trlp-hero .trlp-button--ghost { color: var(--trlp-white); border-color: rgba(255, 255, 255, .55); background: rgba(10, 18, 28, .22); }
.trlp-hero .trlp-button--ghost:hover, .trlp-hero .trlp-button--ghost:focus-visible { color: var(--trlp-ink); border-color: var(--trlp-signal); background: var(--trlp-signal); }
.trlp-hero__motion-toggle {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; min-height: 36px; padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--trlp-radius); color: var(--trlp-white);
  background: rgba(8, 15, 24, .7); backdrop-filter: blur(10px); font-size: 11px; font-weight: 800; cursor: pointer;
}
.trlp-hero__motion-toggle:hover, .trlp-hero__motion-toggle:focus-visible { background: rgba(23, 38, 58, .96); }

@keyframes trlp-hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-1.2%, -.7%, 0); }
}
@keyframes trlp-hero-light {
  from { transform: translateX(-28%); opacity: .35; }
  to { transform: translateX(28%); opacity: .75; }
}

.trlp-trust { border-block: 1px solid var(--trlp-line); background: var(--trlp-white); }
.trlp-trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trlp-trust article { min-height: 112px; padding: 25px; border-left: 1px solid var(--trlp-line); display: flex; align-items: center; gap: 13px; }
.trlp-trust article:last-child { border-right: 1px solid var(--trlp-line); }
.trlp-trust strong { display: block; font-size: 13px; }
.trlp-trust span { color: #687582; font-size: 11px; }
.trlp-trust .trlp-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--trlp-ink); background: var(--trlp-signal); font-weight: 900; }

.trlp-section { padding-block: 92px; }
.trlp-section--muted { background: var(--trlp-paper); }
.trlp-section--dark { color: var(--trlp-white); background: var(--trlp-navy); }
.trlp-section__heading { margin-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.trlp-section__heading h2 { max-width: 760px; margin: 11px 0 0; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; }
.trlp-section__heading p { max-width: 470px; margin: 0; color: #687582; }
.trlp-section--dark .trlp-section__heading p, .trlp-section--dark .trlp-kicker { color: #bac4ce; }
.trlp-categories { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #405167; }
.trlp-category { min-height: 260px; padding: 27px; border-right: 1px solid #405167; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.trlp-category:last-child { border-right: 0; }
.trlp-category:hover { background: #20344d; }
.trlp-category span { color: var(--trlp-signal); font: 800 10px ui-monospace, monospace; }
.trlp-category h3 { margin: 0; font-size: 26px; }
.trlp-category p { margin: 10px 0 0; color: #aeb9c4; font-size: 12px; }
.trlp-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trlp-line); border: 1px solid var(--trlp-line); }
.trlp-process article { min-height: 220px; padding: 30px; background: var(--trlp-white); }
.trlp-process b { color: var(--trlp-signal-dark); font: 900 12px ui-monospace, monospace; }
.trlp-process h3 { margin: 44px 0 8px; font-size: 22px; }
.trlp-process p { margin: 0; color: #687582; font-size: 13px; }
.trlp-cta { padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--trlp-white); background: var(--trlp-blue); }
.trlp-cta .trlp-kicker { color: var(--trlp-signal); }
.trlp-cta h2 { margin: 6px 0; font-size: clamp(30px, 4vw, 50px); line-height: 1; }
.trlp-cta p { margin: 0; color: #c9d2db; }

.trlp-content { padding-block: 65px 90px; }
.trlp-page-header { padding: 54px 0 34px; border-bottom: 1px solid var(--trlp-line); background: var(--trlp-paper); }
.trlp-page-header h1 { margin: 12px 0 0; font-size: clamp(39px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.trlp-page-header p { max-width: 680px; color: #60707d; }
.entry-content { max-width: 900px; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2, .entry-content h3 { line-height: 1.15; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 22px; color: #6d7882; font-size: 11px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; border: 1px solid var(--trlp-line); padding: 8px 36px 8px 10px; background: var(--trlp-white); }
.woocommerce ul.products { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; padding: 0 0 20px; border: 1px solid var(--trlp-line);
  float: none !important; display: flex; flex-direction: column; background: var(--trlp-white); transition: transform .18s ease, box-shadow .18s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--trlp-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 3; margin: 0; object-fit: cover; background: #e9edf0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 72px; padding: 21px 20px 4px; color: var(--trlp-ink); font-size: 21px; line-height: 1.12; }
.woocommerce ul.products li.product .price { padding-inline: 20px; color: #66727d; font-size: 12px; }
.woocommerce ul.products li.product .trlp-quote-form, .woocommerce ul.products li.product > .button { margin: auto 20px 0; }
.woocommerce ul.products li.product .trlp-quote-form .button { width: 100%; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 55px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-size: clamp(35px, 5vw, 59px); line-height: 1; letter-spacing: -.045em; }
.woocommerce div.product .price { color: #596672; font-size: 14px; }
.woocommerce-product-details__short-description { color: #53616e; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce table.shop_attributes th { width: 190px; }
.woocommerce span.onsale { display: none; }
.trlp-product-placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 25px; text-align: center; background: #e9edf0; }
.trlp-product-placeholder img { width: 125px !important; height: 125px !important; margin: 0 auto 14px !important; object-fit: contain !important; opacity: .72; }
.trlp-product-placeholder strong { display: block; font-size: 14px; }
.trlp-product-placeholder small { color: #687582; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 5px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; min-height: 42px; display: grid; place-items: center; background: var(--trlp-paper); }
.woocommerce nav.woocommerce-pagination ul li span.current { color: var(--trlp-ink); background: var(--trlp-signal); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--trlp-signal); background: var(--trlp-paper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--trlp-signal-dark); }

.site-footer { padding: 52px 0 32px; color: #d7dee5; background: #0f1925; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.site-footer img { width: 220px; filter: brightness(0) invert(1); }
.site-footer h2 { margin: 0 0 12px; color: var(--trlp-white); font-size: 13px; }
.site-footer p, .site-footer li, .site-footer a { color: #aeb9c4; font-size: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: var(--trlp-white); }
.site-footer__bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid #2d3b4c; display: flex; justify-content: space-between; gap: 20px; color: #8895a2; font-size: 10px; }

@media (max-width: 1050px) {
  .site-header__inner { grid-template-columns: 220px 1fr auto; gap: 14px; }
  .site-navigation ul { gap: 16px; }
  .trlp-partner { display: none; }
  .trlp-trust__inner, .trlp-categories { grid-template-columns: repeat(2, 1fr); }
  .trlp-category:nth-child(2) { border-right: 0; }
  .trlp-category:nth-child(-n+2) { border-bottom: 1px solid #405167; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .trlp-shell { width: min(100% - 32px, var(--trlp-content)); }
  .site-header__inner { min-height: 72px; grid-template-columns: 1fr auto auto; }
  .site-branding img { width: 195px; }
  .menu-toggle { display: grid; place-items: center; }
  .site-navigation { position: absolute; inset: 72px 0 auto; display: none; padding: 20px 16px; background: var(--trlp-white); border-bottom: 1px solid var(--trlp-line); }
  .site-navigation.is-open { display: block; }
  .site-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-navigation a { display: block; padding: 11px 5px; font-size: 14px; }
  .trlp-quote-link .trlp-button__label { display: none; }
  .trlp-hero__media img { object-position: 68% center; }
  .trlp-hero__shade { background: linear-gradient(90deg, rgba(8, 15, 24, .96) 0%, rgba(15, 25, 37, .88) 60%, rgba(15, 25, 37, .42) 100%); }
  .trlp-hero__inner { min-height: 600px; padding-block: 64px 96px; }
  .trlp-hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .trlp-hero__motion-toggle { right: 12px; bottom: 12px; }
  .trlp-trust__inner, .trlp-categories, .trlp-process { grid-template-columns: 1fr; }
  .trlp-trust article, .trlp-trust article:last-child { border-right: 1px solid var(--trlp-line); border-bottom: 1px solid var(--trlp-line); }
  .trlp-category { border-right: 0; border-bottom: 1px solid #405167 !important; }
  .trlp-category:last-child { border-bottom: 0 !important; }
  .trlp-section { padding-block: 68px; }
  .trlp-section__heading, .trlp-cta { align-items: flex-start; flex-direction: column; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
