/*
Theme Name: API Schmidt-Bretten
Theme URI: https://apischmidtdev.wpenginepowered.com/
Author: API Heat Transfer
Description: Custom theme for API Schmidt-Bretten — a Contao→WordPress migration with ACF-editable content sections matching the apischmidt-bretten.de design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: api-schmidt-bretten
*/

/* ============================================
   API Schmidt-Bretten - Main Theme Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Open Sans', 'Roboto', Arial, sans-serif; font-size: 18px; color: #2d3748; line-height: 1.65; background:#fff; overflow-x: clip; }
a { color: #0090d4; text-decoration: none; }
a:hover { color: #006fa0; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

:root {
  --blue: #0090d4;
  --blue-dark: #006fa0;
  --blue-light: #e8f4fb;
  --blue-nav: #1d8cc5;
  --red-accent: #c0392b;
  --teal-accent: #2980b9;
  --heading-dark: #1a2e44;
  --text-muted: #6c757d;
  --bg-light: #f4f8fb;
  --border: #dee2e6;
  --white: #ffffff;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

/* Header — logo full-height left, right column = top-bar above blue nav */
header.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: stretch; justify-content: flex-start; padding: 0; gap: 0; }
.logo { padding: 16px 40px 16px 0; flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 140px; width: auto; display: block; }
.header-right { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }

/* Top Bar — sits on white above the blue nav, right side only */
.top-bar { background: transparent; border: none; padding: 18px 0 14px; font-size: 14px; }
.top-bar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding-right: 24px; }
.top-bar a { color: #555; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.top-bar a:hover { color: var(--blue); }
.top-bar .search-trigger { background: none; border: none; cursor: pointer; color: #555; padding: 0; display: inline-flex; align-items: center; }
.top-bar .search-trigger:hover { color: var(--blue); }
.top-bar .search-trigger svg { width: 18px; height: 18px; }
.top-bar .lang-switch { display: flex; gap: 6px; align-items: center; border-left: 1px solid #ccc; padding-left: 22px; }
.top-bar .lang-switch a { font-weight: 600; color: #555; padding: 3px 9px; border-radius: 3px; line-height: 1; text-decoration: none; }
.top-bar .lang-switch a:hover { color: var(--blue); }
.top-bar .lang-switch a.active { background: var(--blue); color: #fff; }
.top-bar .lang-switch a.active:hover { color: #fff; }

/* Inline search box — slides in to the right of the spyglass, same row as Service/lang */
.header-search { display: none; margin: 0; }
.header-search.open { display: inline-flex; align-items: center; }
.header-search form { margin: 0; }
.header-search input { width: 260px; padding: 7px 16px; border: 1px solid #ccc; border-radius: 30px; font-size: 13px; outline: none; }
.header-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,144,212,0.15); }

/* Navigation — blue bar attached to bottom of header-right; extends to viewport right edge via negative margin trick */
.nav-wrapper { background: var(--blue-nav); position: relative; }
.nav-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--blue-nav); }
nav.main-nav { display:block; }
nav.main-nav > ul, nav.main-nav .menu { display: flex; justify-content: flex-end; padding: 0; margin: 0; }
nav.main-nav > ul > li, nav.main-nav .menu > li { position: relative; list-style:none; }
nav.main-nav > ul > li > a, nav.main-nav .menu > li > a { display: block; padding: 22px 24px; font-size: 16px; font-weight: 600; color: #fff; text-transform: none; transition: background 0.2s; }
nav.main-nav > ul > li > a:hover, nav.main-nav .menu > li > a:hover,
nav.main-nav > ul > li.active > a, nav.main-nav .menu > li.current-menu-item > a, nav.main-nav .menu > li.current-menu-parent > a,
nav.main-nav .menu > li.has-current-child > a, nav.main-nav .menu > li > a.is-current { background: rgba(0,0,0,0.15); }
/* Submenu current page — accent border + brand-blue text. Works for both the
   custom fallback (`a.is-current`) and the WP-managed menu (`li.current-menu-item > a`). */
.sub-menu a.is-current, .dropdown a.is-current,
.sub-menu li.current-menu-item > a, .dropdown li.current-menu-item > a { background: var(--blue-light); color: var(--blue); font-weight: 700; border-left: 3px solid var(--blue); padding-left: 17px; }

nav.main-nav > ul > li:hover .sub-menu, nav.main-nav > ul > li:hover .dropdown,
nav.main-nav .menu > li:hover .sub-menu { display: block; }
.sub-menu, .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.15); z-index: 100; border-top: 3px solid var(--blue); padding:0; list-style:none; }
.sub-menu li, .dropdown li { list-style:none; }
.sub-menu a, .dropdown a { display: block; padding: 12px 20px; color: #333; font-size: 14px; border-bottom: 1px solid #f0f0f0; transition: background 0.2s, color 0.2s; }
.sub-menu a:hover, .dropdown a:hover { background: var(--blue-light); color: var(--blue); }

/* Breadcrumb */
.breadcrumb { padding: 10px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* Hero — flush against the nav, larger, image fades into blue gradient on the right */
.hero { position: relative; min-height: 680px; background-size: cover; background-position: center; overflow: hidden; display: flex; align-items: center; margin-top: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,30,60,0) 0%, rgba(0,30,60,0) 35%, rgba(0,90,150,0.45) 55%, rgba(0,100,160,0.85) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; margin-left: auto; margin-right: 0; padding: 80px 60px 80px 40px; color: #fff; }
.hero-content .hero-tag { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 22px; opacity: 1; }
.hero-content h1 { font-size: 72px; font-weight: 900; line-height: 1.02; text-transform: uppercase; margin-bottom: 32px; letter-spacing: -1px; }
.hero-content p { font-size: 20px; margin-bottom: 40px; line-height: 1.5; max-width: 480px; }
.hero-product { position: relative; min-height: 380px; background: #f0f0f0; background-size: contain; background-position: right center; background-repeat: no-repeat; display: flex; align-items: center; }
.hero-product .hero-title-block { padding: 60px 40px; }
.hero-product h1 { font-size: 42px; font-weight: 900; text-transform: uppercase; color: var(--blue); line-height: 1.15; }

/* Buttons — pill-shaped to match live site */
.btn { display: inline-block; padding: 14px 34px; border-radius: 30px; font-size: 15px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s; border: none; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 12px 32px; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); padding: 14px 38px; }
.btn-white:hover { background: #e0f0fb; }

.divider-icon { text-align: center; margin: 12px 0 24px; }
.divider-icon img { width: 28px; }

.aspiration { text-align: center; padding: 48px 20px 60px; max-width: 860px; margin: 0 auto; }
.aspiration .section-tag { margin-bottom: 18px; }
.aspiration .aspiration-body { color:#444; margin-top: 24px; font-size: 19px; line-height: 1.8; }
p.section-tag, .section-tag { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); margin-bottom: 12px; }
.content-section p.section-tag, .content-section .section-tag { color: var(--blue); }
.section-title { font-size: 46px; font-weight: 800; color: var(--heading-dark); line-height: 1.18; margin-bottom: 18px; }
.section-title.large { font-size: 54px; }

/* Stats */
.stats-section { background: var(--blue-light); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-icon { font-size: 48px; color: var(--blue); margin-bottom: 12px; }
.stat-item .stat-icon img { width: 55px; height: 55px; }
.stat-number { font-size: 52px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: #555; line-height: 1.5; max-width: 220px; margin: 0 auto; }

/* Industries */
.industry-section { padding: 70px 0; text-align: center; }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.industry-item { text-align: center; padding: 20px; }
.industry-item img { width: 80px; height: 80px; margin-bottom: 16px; }
.industry-item a { font-size: 15px; font-weight: 700; color: var(--blue); }
.industry-item a:hover { color: var(--blue-dark); }

/* Products grid — no boxes; the whole card lifts and gets a blue glow on hover */
.products-section { padding: 80px 0; text-align: center; background: #f4f4f4; }
.products-intro { max-width: 820px; margin: 0 auto 50px; color:#555; font-size:18px; line-height:1.7; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 10px; }
.product-card { background: transparent; border: none; text-align: center; transition: transform 0.25s ease, filter 0.25s ease; padding: 12px; }
.product-card:hover { transform: translateY(-8px); filter: drop-shadow(0 12px 24px rgba(0, 144, 212, 0.35)); }
.product-card a.product-card-link { display:block; color: inherit; text-decoration: none; }
.product-card img { width: 100%; height: 220px; object-fit: contain; background: transparent; padding: 16px 12px; transition: transform 0.25s ease; }
.product-card h3 { font-size: 17px; font-weight: 800; color: var(--blue); margin-top: 18px; line-height: 1.3; }
.product-card .product-link { display:inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--blue); }
.product-card .product-link::after { content: ' \203A'; }

/* Teasers — larger tiles with gap, whole tile is a clickable link */
.teasers-section { padding: 20px; background: #fff; }
.teasers-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.teaser-card.span-rows-2 { grid-row: span 2; }
a.teaser-card, .teaser-card { position: relative; min-height: 420px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: inherit; text-decoration: none; }
a.teaser-card:hover { color: inherit; text-decoration: none; }
.teaser-card-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,30,60,0.7) 100%); transition: background 0.3s; }
.teaser-card:hover .teaser-card-overlay { background: rgba(0, 110, 170, 0.7); }
.teaser-card-body { position: relative; z-index: 2; padding: 36px; color: #fff; width: 100%; }
.teaser-card-body h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.teaser-card-body .teaser-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 16px; font-weight: 600; }
.teaser-card-body .teaser-link::after { content: ' \203A'; }
.teaser-card.light { background: var(--blue-light); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 420px; transition: background 0.3s; }
.teaser-card.light:hover { background: #d4ebf7; }
.teaser-card.light .teaser-card-overlay { display: none; }
.teaser-card.light .teaser-card-body { color: var(--blue); text-align: center; }
.teaser-card.light h3 { color: var(--blue); }
.teaser-card.light .teaser-icon { margin-bottom: 18px; }
.teaser-card.light .teaser-icon img { width: 110px; height: 110px; }
.teaser-card.light .teaser-link { color: var(--blue); }

/* CTA */
.cta-section { background: var(--blue); color: #fff; text-align: center; padding: 80px 20px; }
.cta-section .cta-icon { margin-bottom: 26px; opacity: 0.95; }
.cta-section .cta-icon img { width: 130px; height: 130px; filter: brightness(0) invert(1); }
.cta-section h2 { font-size: 42px; font-weight: 800; margin-bottom: 22px; }
.cta-section a { color: #fff; font-size: 18px; text-decoration: underline; font-weight: 600; }

/* Page Header (legacy strip) — only used by pages that set hero_bg */
.page-header { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 38px; font-weight: 800; color: var(--heading-dark); }
.page-header p { font-size: 18px; color: #555; max-width: 700px; margin: 16px auto 0; }

/* Plain page intro title + intro paragraph (used when there's no hero image) */
.page-intro-tag { text-align: center; margin-bottom: 14px; }
.page-intro-title { text-align: center; margin-bottom: 8px; }
.page-intro-text { text-align: center; max-width: 820px; margin: 0 auto 24px; font-size: 19px; line-height: 1.75; color: #444; }

/* Products overview — clean 2-up grid: image panel + blue title band
   NOTE: cards use spans (not divs) inside the <a> so wpautop doesn't mangle them */
.products-overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px 0 50px; }
.products-overview-card { display: block; background: #fff; text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease; overflow: hidden; }
.products-overview-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0, 144, 212, 0.28); }
.products-overview-card .card-image { display: flex; width: 100%; aspect-ratio: 16 / 9; background: #f0f0f0; align-items: center; justify-content: center; padding: 30px; box-sizing: border-box; }
.products-overview-card .card-image img { max-width: 90%; max-height: 100%; object-fit: contain; display: block; }
.products-overview-card .card-title { display: block; background: var(--blue); color: #fff; padding: 22px 28px; font-size: 20px; font-weight: 700; line-height: 1.3; }
@media (max-width: 768px) { .products-overview-grid { grid-template-columns: 1fr; } }

/* Services row below the product grid (Spare parts + Maintenance) */
.products-services-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; background: var(--blue-light); padding: 40px; margin: 40px 0; }
.products-services-row h3 { font-size: 20px; font-weight: 800; color: var(--heading-dark); margin-bottom: 10px; }
.products-services-row p { font-size: 16px; color: #555; margin-bottom: 16px; line-height: 1.65; }
@media (max-width: 768px) { .products-services-row { grid-template-columns: 1fr; padding: 28px; } }

/* Content */
.content-section { padding: 60px 0; }
.content-section p { color: #444; line-height: 1.8; margin-bottom: 16px; }
.content-section h2 { font-size: 28px; font-weight: 700; color: var(--heading-dark); margin-bottom: 20px; margin-top: 36px; }
.content-section h3 { font-size: 20px; font-weight: 700; color: var(--heading-dark); margin-bottom: 12px; margin-top: 28px; }
.content-section h4 { font-size: 17px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.content-section ul { padding-left: 20px; list-style: disc; }
.content-section ul li { margin-bottom: 6px; color: #444; line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

/* Sidebar */
.sidebar-contact { background: var(--blue); color: #fff; padding: 20px; border-radius: 4px; }
.sidebar-contact h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sidebar-contact a { color: #fff; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sidebar-contact .address { font-size: 13px; line-height: 1.7; margin: 12px 0; }
.sidebar-icon { font-size: 20px; }

/* Product Detail */
.product-hero { background: #f0f0f0; padding: 0; }
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.product-hero-text { padding: 60px 40px; display: flex; align-items: center; }
.product-hero-image { background-size: contain; background-position: center; background-repeat: no-repeat; min-height: 300px; }
.product-hero-image img { width: 100%; height: 100%; object-fit: contain; padding: 40px; }

/* Product banner — large blue all-caps title on left, big composite product image on right.
   Source banner is 767×288 px; CSS aggressively upscales it to match the live site's look. */
/* Product banner — matches the live Contao approach: full-width element with the product
   image as background, title text overlaid on the left. No empty grey space because the
   background-image fills the entire banner via background-size: cover. */
.product-banner {
    background-color: #eaeaea;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    height: 700px;
    display: flex;
    align-items: center;
}
.product-banner .container { position: relative; z-index: 2; width: 100%; }
.product-banner-title {
    color: var(--blue);
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -1px;
    max-width: 45%;
}
@media (max-width: 1200px) {
    .product-banner { height: 560px; background-position: 75% center; }
    .product-banner-title { font-size: 50px; max-width: 50%; }
}
@media (max-width: 900px) {
    .product-banner { height: 460px; background-position: center; }
    .product-banner-title { font-size: 40px; max-width: 100%; }
}
@media (max-width: 900px) {
    .product-banner-inner { grid-template-columns: 1fr; min-height: 0; }
    .product-banner-text { padding-right: 0; }
    .product-banner-title { font-size: 40px; }
    .product-banner-image img { width: 100%; left: 0; max-height: 320px; object-fit: contain; }
}

/* Product page body — 2-col layout: main text + contact sidebar (reuses .industry-contact-box) */
.product-body-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; margin-top: 12px; }
.product-body-main { min-width: 0; }
.product-body-main h2 { font-size: 30px; font-weight: 800; color: var(--heading-dark); margin: 16px 0 18px; line-height: 1.25; }
.product-body-main h3 { font-size: 22px; font-weight: 700; color: var(--heading-dark); margin: 30px 0 12px; }
.product-body-main p { font-size: 17px; line-height: 1.75; color: #444; margin-bottom: 18px; }
.product-body-main ul { list-style: none; padding-left: 0; margin: 12px 0 18px; }
.product-body-main ul li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.55; color: #444; font-size: 16px; }
.product-body-main ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1; }
@media (max-width: 1024px) { .product-body-layout { grid-template-columns: 1fr; } }

/* Product tabs */
.product-tabs { margin: 50px 0; }
.product-tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.product-tabs-nav .tab-trigger { background: #f0f0f0; color: #333; border: none; padding: 14px 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.18s, color 0.18s; }
.product-tabs-nav .tab-trigger:hover { background: #e0e0e0; }
.product-tabs-nav .tab-trigger.active { background: var(--blue); color: #fff; }
.product-tabs-content { border: 1px solid #e3e3e3; padding: 30px 36px; margin-top: 0; background: #fff; }
.product-tabs-content .tab-panel { display: none; }
.product-tabs-content .tab-panel.active { display: block; }
.product-tabs-content .tab-panel h4 { font-size: 17px; font-weight: 700; color: var(--heading-dark); margin: 18px 0 8px; }
.product-tabs-content .tab-panel ul { list-style: none; padding-left: 0; margin: 8px 0 14px; }
.product-tabs-content .tab-panel ul li { position: relative; padding-left: 26px; margin-bottom: 6px; line-height: 1.55; color: #444; font-size: 15px; }
.product-tabs-content .tab-panel ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1; }
/* Two-up image cards used in product Technology tabs */
.product-tabs-content .tab-panel .tech-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.product-tabs-content .tab-panel .tech-feature-card img { width: 100%; height: auto; display: block; background: #f5f5f5; }
.product-tabs-content .tab-panel .tech-feature-card h4 { font-size: 16px; font-weight: 800; color: var(--heading-dark); margin: 14px 0 8px; }
.product-tabs-content .tab-panel .tech-feature-card p { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 0; }
@media (max-width: 768px) { .product-tabs-content .tab-panel .tech-feature-grid { grid-template-columns: 1fr; } }

.product-tabs-content .tab-panel table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.product-tabs-content .tab-panel table tr:nth-child(odd) { background: #f7f7f7; }
.product-tabs-content .tab-panel table td { padding: 14px 20px; font-size: 15px; color: #444; vertical-align: top; }
.product-tabs-content .tab-panel table td:first-child { font-weight: 700; color: var(--heading-dark); width: 30%; }
.product-tabs-content .tab-panel table tr.section-row td,
.product-tabs-content .tab-panel table td[colspan="2"] { background: var(--blue) !important; color: #fff; font-weight: 800; font-size: 16px; padding: 12px 20px; width: auto; text-transform: uppercase; letter-spacing: 0.5px; }

/* Product accordion — uses <details>/<summary> for native open/close */
.product-accordion-heading { font-size: 22px; font-weight: 800; color: var(--heading-dark); margin: 50px 0 16px; }
.product-accordion { margin: 0 0 40px; }
.product-accordion details { margin-bottom: 6px; border: none; }
.product-accordion details summary { cursor: pointer; background: var(--blue); color: #fff; padding: 18px 24px; font-size: 17px; font-weight: 700; list-style: none; position: relative; transition: background 0.18s; }
.product-accordion details summary::-webkit-details-marker { display: none; }
.product-accordion details summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; }
.product-accordion details[open] summary::after { content: '\2212'; }
.product-accordion details summary:hover { background: var(--blue-dark); }
.product-accordion details .accordion-content { padding: 22px 28px; background: #fff; border: 1px solid #e3e3e3; border-top: none; }
.product-accordion details .accordion-content p { font-size: 15px; line-height: 1.6; color: #444; margin-bottom: 12px; }
.product-accordion details .accordion-content ul { list-style: none; padding-left: 0; margin: 8px 0; }
.product-accordion details .accordion-content ul li { position: relative; padding-left: 26px; margin-bottom: 6px; line-height: 1.55; color: #444; font-size: 15px; }
.product-accordion details .accordion-content ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1; }

/* Timeline */
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; background:var(--blue-light); }
.timeline-item { display:flex; justify-content:flex-end; padding-right:calc(50% + 30px); margin-bottom:30px; position:relative; }
.timeline-item:nth-child(even) { justify-content:flex-start; padding-right:0; padding-left:calc(50% + 30px); }
.timeline-content { background:#fff; border:1px solid var(--border); padding:18px 22px; border-radius:4px; max-width:380px; }
.timeline-year { font-size:14px; font-weight:700; color:var(--blue); margin-bottom:4px; }
.timeline-text { font-size:14px; color:#555; line-height:1.5; }

/* Process Tabs */
.process-tabs { display:flex; gap:0; border-bottom:2px solid var(--blue); margin-bottom:40px; flex-wrap:wrap; }
.process-tab { padding:14px 24px; cursor:pointer; font-size:14px; font-weight:600; color:#555; background:#fff; border:none; border-bottom:3px solid transparent; margin-bottom:-2px; transition:all 0.2s; }
.process-tab:hover, .process-tab.active { color:var(--blue); border-bottom-color:var(--blue); background:var(--blue-light); }
.process-content { display:none; }
.process-content.active { display:block; }

/* Industry products row — same hover-lift styling as the homepage products grid */
.industry-products-heading { font-size: 22px; font-weight: 800; color: var(--heading-dark); margin: 48px 0 8px; }
.industry-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0 8px; }
.industry-products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.industry-products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.industry-products-grid.cols-1 { grid-template-columns: 1fr; max-width: 320px; }
.industry-products-grid .product-card { background: transparent; border: none; text-align: center; transition: transform 0.25s ease, filter 0.25s ease; padding: 8px; }
.industry-products-grid .product-card:hover { transform: translateY(-8px); filter: drop-shadow(0 12px 24px rgba(0, 144, 212, 0.35)); }
.industry-products-grid .product-card-link { display:block; color: inherit; text-decoration: none; }
.industry-products-grid .product-card img { width: 100%; height: 180px; object-fit: contain; padding: 12px; background: transparent; display: block; }
.industry-products-grid .product-card .product-card-h3 { display: block; font-size: 16px; font-weight: 800; color: var(--blue); margin-top: 12px; line-height: 1.3; }
.industry-products-grid .product-card .product-link { display:block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.industry-products-grid .product-card .product-link::after { content: ' \203A'; }
@media (max-width: 768px) { .industry-products-grid, .industry-products-grid.cols-4 { grid-template-columns: 1fr 1fr; } .industry-products-grid.cols-1 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .industry-products-grid, .industry-products-grid.cols-4 { grid-template-columns: 1fr; } }

/* Industry DETAIL page — main content + sticky contact box on the right */
.industry-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; margin-top: 10px; }
.industry-detail-main { min-width: 0; }
.industry-detail-title { font-size: 44px; font-weight: 800; color: var(--heading-dark); line-height: 1.15; margin-bottom: 24px; }
.industry-detail-main p { font-size: 17px; line-height: 1.75; color: #444; margin-bottom: 18px; }
.industry-detail-main h2 { font-size: 26px; font-weight: 800; color: var(--heading-dark); margin-top: 32px; margin-bottom: 14px; }
.industry-detail-main h3 { font-size: 20px; font-weight: 700; color: var(--heading-dark); margin-top: 24px; margin-bottom: 10px; }
.industry-detail-main img { margin: 24px 0; border-radius: 2px; }
.industry-detail-main ul { padding-left: 0; list-style: none; margin: 12px 0 24px; }
.industry-detail-main ul li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.55; color: #444; font-size: 16px; }
.industry-detail-main ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1; }

.industry-contact-box { background: #eef3f7; border-radius: 2px; overflow: hidden; position: sticky; top: 220px; }
.industry-contact-header { background: var(--blue); color: #fff; padding: 14px 22px; font-size: 16px; font-weight: 700; }
.industry-contact-body { padding: 10px 22px 18px; }
.industry-contact-body .contact-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.07); color: var(--blue); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.industry-contact-body .contact-row:last-child { border-bottom: none; }
.industry-contact-body .contact-row .contact-icon { flex-shrink: 0; color: var(--blue); width: 26px; display: flex; align-items: center; justify-content: center; padding-top: 1px; }
.industry-contact-body .contact-row.contact-address-row { color: #333; }
.industry-contact-body .contact-row.contact-address-row .contact-text { color: #333; }
.industry-contact-body a.contact-row:hover { color: var(--blue-dark); }
.industry-contact-body a.contact-row:hover .contact-text { text-decoration: underline; }

@media (max-width: 1024px) {
  .industry-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .industry-contact-box { position: static; }
}

/* Emergency-help section — light-blue full-bleed block at the bottom of the
   spare-parts-and-emergency-service page (mirrors live Contao article-316).
   Rendered by template-service-page.php OUTSIDE the 2-col grid so it
   spans full width without overlapping the sticky contact aside. */
.emergency-help-section { background: #e5f4fb; padding: 60px 0; margin-top: 50px; }
.emergency-help-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.emergency-help-heading { font-size: 30px; font-weight: 700; margin: 0 0 18px; color: #1a1a1a; }
.emergency-help-lead { font-size: 16px; line-height: 1.6; color: #1a1a1a; }
.emergency-help-lead p { margin: 0 0 12px; }
.emergency-help-lead ul { list-style: none; padding: 0; margin: 0 0 14px; }
.emergency-help-lead ul li { position: relative; padding-left: 20px; margin: 6px 0; }
.emergency-help-lead ul li::before { content: '›'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.emergency-help-lead a { color: var(--blue); text-decoration: none; }
.emergency-help-lead a:hover { text-decoration: underline; }
.emergency-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 30px; }
.emergency-help-contact p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #1a1a1a; }
.emergency-help-contact strong { font-weight: 700; }
.emergency-help-contact a { color: var(--blue); text-decoration: none; word-break: break-word; }
.emergency-help-contact a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .emergency-help-grid { grid-template-columns: 1fr; gap: 24px; }
  .emergency-help-section { padding: 40px 0; }
}

/* Search + 404 — inline search box, quicklinks, result list. */
.search-form-inline { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.search-form-inline input[type="search"] { flex: 0 1 360px; padding: 12px 16px; font-size: 15px; border: 1px solid #cfd9e2; border-radius: 30px; background: #fff; color: #2d3748; font-family: inherit; }
.search-form-inline input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,144,212,0.15); }

.search-results-section { padding: 30px 0 70px; }
.search-results-list { list-style: none; padding: 0; margin: 0; }
.search-result { padding: 22px 0; border-bottom: 1px solid #e3e8ec; }
.search-result-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.search-result-title a { color: var(--heading-dark); text-decoration: none; }
.search-result-title a:hover { color: var(--blue); }
.search-result-url { font-size: 13px; color: #28a745; margin: 0 0 6px; }
.search-result-excerpt { font-size: 15px; color: #555; margin: 0; line-height: 1.6; }
.search-empty { padding: 30px 0; text-align: center; }
.search-empty h2 { font-size: 22px; font-weight: 800; color: var(--heading-dark); margin: 0 0 10px; }
.search-empty p { font-size: 16px; color: #555; }
.search-quicklinks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-quicklinks li a { display: inline-block; padding: 10px 18px; background: var(--blue-light); color: var(--blue); border-radius: 20px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.18s, color 0.18s; }
.search-quicklinks li a:hover { background: var(--blue); color: #fff; }
.search-pagination { margin-top: 40px; text-align: center; }
.search-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; color: var(--blue); text-decoration: none; border: 1px solid #cfd9e2; border-radius: 4px; }
.search-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-pagination .page-numbers:hover { background: var(--blue-light); }

.error-404-hero { padding-bottom: 20px; }
.error-404-hero .section-tag { color: var(--red-accent); }
.error-404-links { padding: 10px 0 80px; text-align: center; }
.error-404-home { margin-top: 30px; }

/* Download landing — 2 large blue tiles linking to brochures / case studies. */
.download-tiles-section { padding: 20px 0 60px; }
.download-tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 760px; margin: 0 auto; }
.download-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 56px 28px; background: var(--blue); color: #fff; text-align: center; text-decoration: none; border-radius: 6px; transition: background 0.18s, transform 0.18s; }
.download-tile:hover { background: var(--blue-dark); color: #fff; transform: translateY(-3px); }
.download-tile h3 { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0; color: #fff; }
.download-tile-icon { color: #fff; }
@media (max-width: 700px) { .download-tiles-grid { grid-template-columns: 1fr; } }

/* Brochures + Case Studies — accordion of PDF download links. */
.downloads-section { padding: 20px 0 60px; }
.downloads-accordion-item { border-top: 1px solid #e3e8ec; padding: 0; }
.downloads-accordion-item:last-child { border-bottom: 1px solid #e3e8ec; }
.downloads-accordion-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 17px; font-weight: 800; color: var(--heading-dark); display: flex; align-items: center; justify-content: space-between; transition: color 0.15s; }
.downloads-accordion-item summary::-webkit-details-marker { display: none; }
.downloads-accordion-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform 0.2s; }
.downloads-accordion-item[open] summary::after { content: '\2212'; }
.downloads-accordion-item summary:hover { color: var(--blue); }
.downloads-list { list-style: none; margin: 0; padding: 0 22px 18px; }
.downloads-list-flat { padding: 10px 0; }
.downloads-list li { border-top: 1px solid #f1f4f6; }
.downloads-list li:first-child { border-top: none; }
.downloads-link { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; color: var(--blue); text-decoration: none; transition: background 0.12s; line-height: 1.5; }
.downloads-link:hover { color: var(--blue-dark); }
.downloads-link-icon { flex: 0 0 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); }
.downloads-link-label { flex: 1; font-size: 15px; font-weight: 600; color: var(--blue); }
.downloads-link:hover .downloads-link-label { color: var(--blue-dark); text-decoration: underline; }
.downloads-link-size { flex: 0 0 auto; font-size: 13px; color: #6c757d; font-weight: 400; }
.downloads-link .dl-sub { display: block; font-size: 13px; font-weight: 400; color: #555; margin-top: 2px; }

/* Sales page — Germany SVG map + clickable states / international region grid. */
.sales-tabs-section { padding: 30px 0 50px; }
.sales-tabs .product-tabs-content { padding: 30px 0 0; }
.sales-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.sales-map-col { min-width: 0; }
.sales-map-col svg { width: 100%; height: auto; max-height: 640px; display: block; }
.sales-map-col svg path { fill: #d8e6ee; stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill 0.15s; }
.sales-map-col svg path:hover { fill: #7cc1e5; }
.sales-map-col svg path.is-active { fill: var(--blue); }
/* Germany PLZ map labels */
.sales-map-col svg .plz-label { font: 700 9px/1 system-ui, -apple-system, Segoe UI, sans-serif; fill: #1a1a1a; pointer-events: none; user-select: none; }
.sales-map-col svg path.is-active + .plz-label,
.sales-map-col svg path.is-active ~ .plz-label { fill: #fff; }
.sales-card-col { position: sticky; top: 220px; }
.sales-card { background: var(--blue-light); padding: 30px 28px; border-radius: 2px; min-height: 220px; }
.sales-card.sales-card-placeholder { background: #f4f8fb; border: 1px dashed #cfd9e2; color: #6c757d; }
.sales-card h3 { font-size: 20px; font-weight: 800; color: var(--heading-dark); margin: 0 0 14px; }
.sales-card p { font-size: 14px; line-height: 1.5; color: #444; margin: 4px 0; }
.sales-card a { color: var(--blue); }
.sales-card .sales-contact { padding: 12px 0; border-top: 1px solid rgba(0,144,212,0.18); }
.sales-card .sales-contact:first-of-type { border-top: 0; padding-top: 0; }
.sales-card-name { font-size: 15px !important; color: var(--heading-dark) !important; }
.sales-card-role { font-size: 12px; color: #6c757d; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }
.sales-card-desc { font-size: 13px !important; color: #6c757d !important; }

/* Zoom + pan controls overlay for the world map */
.sales-world-map { position: relative; }
.sales-world-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 5; }
.sales-world-zoom .zoom-btn { background: #ffffff; color: var(--blue-dark); border: 1px solid #cfd9e2; width: 32px; height: 32px; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; transition: background 0.12s; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sales-world-zoom .zoom-btn:hover { background: #d8e6ee; }
.sales-world-zoom .zoom-btn:active { background: var(--blue); color: #fff; }
.sales-world-zoom .zoom-reset svg { stroke: var(--blue-dark); }
.sales-world-map svg { cursor: grab; touch-action: none; }
.sales-world-map svg.is-grabbing { cursor: grabbing; }
.sales-world-map svg path.has-contact { fill: #b8d5e3; }
.sales-world-map svg path.has-contact.is-hover { fill: #7cc1e5; }
.sales-world-map svg path.has-contact.is-active { fill: var(--blue); }

/* World map — countries colored uniformly; on hover/click, all countries in the
   same region highlight together (since we map by continent → region). */
.sales-world-map { min-height: 400px; position: relative; }
.sales-world-placeholder { padding: 60px 20px; text-align: center; color: #6c757d; font-size: 14px; }
.sales-world-map svg { width: 100%; height: auto; max-height: 600px; display: block; }
.sales-world-map svg path { fill: #d8e6ee; stroke: #fff; stroke-width: 0.4; cursor: pointer; transition: fill 0.12s; }
.sales-world-map svg path.is-hover { fill: #7cc1e5; }
.sales-world-map svg path.is-active { fill: var(--blue); }

@media (max-width: 900px) {
    .sales-grid { grid-template-columns: 1fr; }
    .sales-card-col { position: static; }
}

/* Contact / Inquiries page — light-blue band with 3 columns, each a heading + icon rows. */
.contact-bands { background: #e5f4fb; padding: 50px 0; margin-top: 20px; }
.contact-bands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.contact-band-heading { font-size: 18px; font-weight: 800; color: var(--heading-dark); margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid #c8dde7; }
.contact-band-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.contact-band-row p { margin: 0; font-size: 15px; line-height: 1.55; color: #444; }
.contact-band-row p a { color: var(--blue); }
.contact-band-icon { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); }
a.contact-band-icon:hover { color: var(--blue-dark); }
@media (max-width: 900px) { .contact-bands-grid { grid-template-columns: 1fr; gap: 28px; } }

/* CF7 form styling tweaks — clean 2-col grid + brand-blue inputs. */
.contact-form-section .wpcf7 { margin: 10px 0 40px; }
.contact-form-section .wpcf7-form > p { margin: 0; }
.contact-form-section .wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-form-section .wpcf7 .form-row.single { grid-template-columns: 1fr; }
.contact-form-section .wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--heading-dark); margin-bottom: 6px; }
.contact-form-section .wpcf7 input[type="text"],
.contact-form-section .wpcf7 input[type="email"],
.contact-form-section .wpcf7 input[type="tel"],
.contact-form-section .wpcf7 select,
.contact-form-section .wpcf7 textarea { width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid #cfd9e2; border-radius: 2px; background: #fff; color: #2d3748; font-family: inherit; }
.contact-form-section .wpcf7 input:focus,
.contact-form-section .wpcf7 select:focus,
.contact-form-section .wpcf7 textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,144,212,0.15); }
.contact-form-section .wpcf7 textarea { min-height: 160px; resize: vertical; }
.contact-form-section .wpcf7 input[type="file"] { padding: 8px 0; border: none; background: transparent; }
.contact-form-section .wpcf7 .wpcf7-list-item { margin: 0; }
.contact-form-section .wpcf7 .privacy-row label { font-size: 14px; font-weight: 400; color: #444; line-height: 1.5; display: inline; margin-left: 6px; }
.contact-form-section .wpcf7 input[type="submit"] { display: inline-block; padding: 14px 34px; border-radius: 30px; font-size: 15px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: background 0.2s; border: none; background: var(--blue); color: #fff; text-transform: none; }
.contact-form-section .wpcf7 input[type="submit"]:hover { background: var(--blue-dark); }
@media (max-width: 700px) { .contact-form-section .wpcf7 .form-row { grid-template-columns: 1fr; } }

/* Careers page — benefit-card grid + diversity banner + apply CTA. Reuses .work-banner,
   .about-stats, .service-hero, .cta-section from other templates. */
.service-hero-cta { margin: 30px 0 0; text-align: center; }
.careers-benefits { padding: 60px 0 30px; }
.careers-benefits-heading { text-align: center; font-size: 30px; font-weight: 800; color: var(--heading-dark); line-height: 1.2; margin: 0 0 40px; }
.careers-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.careers-benefit-card { background: #fff; padding: 32px 28px; text-align: center; }
.careers-benefit-icon { margin-bottom: 18px; display: flex; align-items: center; justify-content: center; min-height: 84px; }
.careers-benefit-icon img { max-width: 90px; max-height: 80px; width: auto; height: auto; }
.careers-benefit-title { font-size: 18px; font-weight: 800; color: var(--blue); margin: 0 0 18px; line-height: 1.3; }
.careers-benefit-card ul { list-style: none; padding-left: 0; margin: 0; text-align: left; }
.careers-benefit-card ul li { position: relative; padding-left: 24px; margin-bottom: 8px; line-height: 1.55; color: #444; font-size: 15px; }
.careers-benefit-card ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 20px; font-weight: 700; line-height: 1; }
@media (max-width: 900px) { .careers-benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .careers-benefits-grid { grid-template-columns: 1fr; } }

.careers-diversity { background-size: cover; background-position: center; background-color: var(--blue); color: #fff; padding: 80px 0; text-align: center; }
.careers-diversity-title { font-size: 32px; font-weight: 800; color: #fff; margin: 0 auto; max-width: 750px; line-height: 1.25; }
.careers-diversity .service-hero-divider img { filter: brightness(0) invert(1); }
.careers-diversity-text { font-size: 16px; line-height: 1.7; color: #fff; max-width: 900px; margin: 14px auto 0; }

/* Work Processes page — full-bleed header banner, hero, 5-tab text+image layout, callout, CTA. */
.work-banner { width: 100%; height: 540px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #1a2e44; }
@media (max-width: 900px) { .work-banner { height: 360px; } }

.section-tag { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; text-align: center; }
.section-tag-sm { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }

.work-tabs-section { padding: 0 0 60px; }
/* Timeline-style tab nav: horizontal line with a dot above each label.
   Overrides the default rectangular pill buttons from .product-tabs-nav. */
.work-tabs .product-tabs-nav { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 0; padding-top: 32px; margin-bottom: 36px; }
.work-tabs .product-tabs-nav::before { content: ''; position: absolute; top: 38px; left: 0; right: 0; height: 2px; background: var(--blue-light); z-index: 0; }
.work-tabs .product-tabs-nav .tab-trigger { position: relative; background: transparent; color: #6c757d; border: none; padding: 24px 6px 0; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; transition: color 0.2s; z-index: 1; }
.work-tabs .product-tabs-nav .tab-trigger::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #c5d3df; border: 3px solid #fff; box-shadow: 0 0 0 1px #c5d3df; transition: background 0.2s, box-shadow 0.2s; }
.work-tabs .product-tabs-nav .tab-trigger:hover { color: var(--blue); background: transparent; }
.work-tabs .product-tabs-nav .tab-trigger:hover::before { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.work-tabs .product-tabs-nav .tab-trigger.active { color: var(--blue); background: transparent; }
.work-tabs .product-tabs-nav .tab-trigger.active::before { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.work-tabs .product-tabs-content { padding: 36px 36px 40px; border: none; background: transparent; }
.work-tabs .work-tab-text .section-tag-sm { color: var(--blue); }
@media (max-width: 768px) {
    .work-tabs .product-tabs-nav { grid-auto-flow: row; grid-auto-columns: auto; padding-top: 0; }
    .work-tabs .product-tabs-nav::before { display: none; }
    .work-tabs .product-tabs-nav .tab-trigger { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e3e3e3; }
    .work-tabs .product-tabs-nav .tab-trigger::before { display: none; }
}
.work-tab-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.work-tab-heading { font-size: 22px; font-weight: 800; color: var(--heading-dark); margin: 0 0 14px; line-height: 1.3; }
.work-tab-text p { font-size: 16px; line-height: 1.7; color: #444; margin-bottom: 14px; }
.work-tab-image img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .work-tab-grid { grid-template-columns: 1fr; gap: 24px; }
    .work-tabs .product-tabs-content { padding: 24px 18px 28px; }
}

.work-callout { background: var(--blue-light); padding: 60px 0; text-align: center; }
.work-callout-heading { font-size: 28px; font-weight: 800; color: var(--heading-dark); margin: 0 0 20px; }
.work-callout-text { font-size: 17px; line-height: 1.7; color: #444; max-width: 900px; margin: 0 auto; }

/* About Us page — slider, stats, full-bleed building image, vertical timeline. */
.about-slider { position: relative; height: 560px; overflow: hidden; background: #1a2e44; }
.about-slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; opacity: 0; transition: opacity 1.2s ease; }
.about-slide.is-active { opacity: 1; z-index: 1; }
.about-slide-title { color: #fff; font-size: 72px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,0.4); }
.about-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); color: #fff; border: none; border-radius: 50%; cursor: pointer; transition: background 0.2s; }
.about-slider-nav:hover { background: var(--blue); }
.about-slider-prev { left: 24px; }
.about-slider-next { right: 24px; }
@media (max-width: 900px) {
    .about-slider { height: 380px; }
    .about-slide-title { font-size: 44px; }
    .about-slider-nav { width: 42px; height: 42px; }
    .about-slider-prev { left: 12px; }
    .about-slider-next { right: 12px; }
}

.about-stats { background: #ddf3ff; padding: 60px 0; }
.about-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.about-stat-icon { margin-bottom: 18px; }
.about-stat-icon img { width: 70px; height: 70px; }
.about-stat-value { font-size: 56px; font-weight: 800; color: var(--heading-dark); line-height: 1; margin-bottom: 14px; }
.about-stat-text { font-size: 16px; line-height: 1.6; color: #444; max-width: 320px; margin: 0 auto; }
@media (max-width: 768px) { .about-stats-grid { grid-template-columns: 1fr; gap: 30px; } }

.about-roots-hero { padding-top: 30px; padding-bottom: 0; }
.about-building { margin: 30px 0 0; }
.about-building img { display: block; width: 100%; height: auto; }

.about-timeline { padding: 60px 0 80px; }
.about-timeline .timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.about-timeline .timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: translateX(-50%); }
.about-timeline .timeline-item { position: relative; display: grid; grid-template-columns: 1fr 60px 1fr; column-gap: 0; padding: 28px 0; align-items: center; }
.about-timeline .timeline-item::before { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 0 0 4px #fff; }
.about-timeline .timeline-text-side { padding: 0 32px; }
.about-timeline .timeline-year { color: var(--blue); font-size: 38px; font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.about-timeline .timeline-text { font-size: 16px; line-height: 1.6; color: #444; margin: 0; }
.about-timeline .timeline-image-side { padding: 0 32px; }
.about-timeline .timeline-image-side img { display: block; width: 100%; height: auto; border-radius: 2px; }
/* Alternation: text-left items put text in col 1 / image in col 3.
   text-right items swap them. The 60px middle column stays for the line + dot. */
.about-timeline .timeline-item-text-left .timeline-text-side { grid-column: 1; text-align: right; }
.about-timeline .timeline-item-text-left .timeline-image-side { grid-column: 3; }
.about-timeline .timeline-item-text-right .timeline-text-side { grid-column: 3; text-align: left; }
.about-timeline .timeline-item-text-right .timeline-image-side { grid-column: 1; }
@media (max-width: 768px) {
    .about-timeline .timeline::before { left: 16px; }
    .about-timeline .timeline-item { grid-template-columns: 32px 1fr; row-gap: 14px; padding: 22px 0; }
    .about-timeline .timeline-item::before { left: 16px; top: 38px; transform: translate(-50%, 0); }
    .about-timeline .timeline-item .timeline-text-side,
    .about-timeline .timeline-item .timeline-image-side { grid-column: 2; padding: 0 0 0 12px; text-align: left; }
}

/* Company landing tiles — 2 large image teasers below the hero, sits inside the
   standard 1140px container (unlike the homepage teasers-grid which is wider). */
.company-tiles-section { padding: 20px 0 50px; }
.company-tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.company-tiles-grid .teaser-card { min-height: 360px; }
.company-tiles-grid .teaser-card-body h3 { font-size: 26px; }
@media (max-width: 768px) { .company-tiles-grid { grid-template-columns: 1fr; } }

/* Service page hero — full-width centered banner with brand arrow divider between
   title and subtitle. Mirrors apischmidt-bretten.de service pages. */
.service-hero { padding: 50px 0 30px; text-align: center; }
.service-hero-title { font-size: 38px; font-weight: 800; color: var(--heading-dark); margin: 0 auto; max-width: 750px; line-height: 1.2; }
.service-hero-divider { margin: 18px 0 14px; }
.service-hero-divider img { display: inline-block; width: 28px; height: 20px; }
.service-hero-subtitle { font-size: 17px; color: #555; margin: 0 auto; max-width: 850px; line-height: 1.6; }
.service-hero-subtitle p { margin-bottom: 18px; }
.service-hero-subtitle p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .service-hero { padding: 30px 0 20px; }
    .service-hero-title { font-size: 28px; }
}

/* Blue help callout — matches the live Contao "Do you need help right now?" box at the bottom of service pages. */
.help-callout { background: var(--blue-light); padding: 36px 40px; margin-top: 40px; border-radius: 2px; }
.help-callout h3 { font-size: 22px; font-weight: 800; color: var(--heading-dark); margin: 0 0 14px; }
.help-callout p { font-size: 16px; line-height: 1.7; color: #444; margin-bottom: 12px; }
.help-callout ul { list-style: none; padding-left: 0; margin: 8px 0 16px; }
.help-callout ul li { position: relative; padding-left: 22px; margin-bottom: 6px; line-height: 1.55; color: #444; font-size: 15px; }
.help-callout ul li::before { content: '\203A'; position: absolute; left: 4px; top: -2px; color: var(--blue); font-size: 20px; font-weight: 700; line-height: 1; }
.help-callout a { color: var(--blue); }
.help-callout .contact-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 18px; }
.help-callout .contact-team-card p { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
@media (max-width: 768px) { .help-callout .contact-team-grid { grid-template-columns: 1fr; } .help-callout { padding: 24px 22px; } }

/* Industries page — 2-column layout: text sidebar + 3-col image-tile grid */
.industry-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin: 40px 0; align-items: start; }
.industry-sidebar h3 { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.industry-sidebar ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e5e5e5; }
.industry-sidebar li { list-style: none; border-bottom: 1px solid #e5e5e5; }
.industry-sidebar li a { display: block; padding: 10px 0; font-size: 14px; color: #555; text-decoration: none; transition: color 0.15s, padding-left 0.15s; }
.industry-sidebar li a:hover { color: var(--blue); padding-left: 6px; }

/* Industries page — image-thumbnail tile grid (3-col within layout) */
.industry-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.industry-tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.industry-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #1a2e44; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.industry-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 144, 212, 0.35); }
.industry-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.25s ease; display: block; }
.industry-tile:hover img { transform: scale(1.05); filter: brightness(0.65); }
.industry-tile .tile-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,30,60,0.7) 100%); transition: background 0.25s ease; }
.industry-tile:hover .tile-overlay { background: linear-gradient(to bottom, rgba(0,100,160,0.35) 0%, rgba(0,80,140,0.75) 100%); }
.industry-tile .tile-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; z-index: 2; }
@media (max-width: 1024px) {
  .industry-layout { grid-template-columns: 1fr; }
  .industry-sidebar { order: 2; }
  .industry-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) { .industry-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industry-tiles { grid-template-columns: 1fr; } }

/* Industry cards */
.industry-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:30px; }
.industry-card { background:#fff; border:1px solid #e5e5e5; padding:28px; border-radius:4px; transition:box-shadow 0.2s; }
.industry-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.industry-card h3 { font-size:16px; font-weight:700; color:var(--heading-dark); margin-bottom:8px; }
.industry-card p { font-size:13px; color:#666; line-height:1.6; }

.industry-finder { background:var(--blue-light); padding:40px; border-radius:4px; margin-top:40px; }
.industry-finder h3 { font-size:18px; font-weight:700; color:var(--heading-dark); margin-bottom:20px; text-transform:uppercase; letter-spacing:1px; }
.industry-list { columns:3; column-gap:30px; }
.industry-list li { break-inside:avoid; margin-bottom:8px; }
.industry-list li a { font-size:14px; color:var(--blue); font-weight:500; }
.industry-list li a:hover { text-decoration:underline; }

/* Download cards */
.download-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:30px; }
.download-card { background:#fff; border:1px solid #e0e0e0; padding:28px; border-radius:4px; text-align:center; }
.download-card .icon { font-size:50px; color:var(--blue); margin-bottom:16px; }
.download-card h3 { font-size:16px; font-weight:700; color:var(--heading-dark); margin-bottom:8px; }
.download-card p { font-size:13px; color:#666; margin-bottom:16px; }

/* Contact */
.contact-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; background:var(--blue-light); padding:50px 0; }
.contact-info-item { text-align:center; padding:0 20px; }
.contact-info-item .icon { font-size:36px; color:var(--blue); margin-bottom:12px; }
.contact-info-item h3 { font-size:16px; font-weight:700; color:var(--heading-dark); margin-bottom:8px; }
.contact-info-item a { display:block; color:var(--blue); font-size:14px; margin-bottom:4px; }
.contact-info-item p { font-size:13px; color:#555; line-height:1.6; }
.contact-form-section { padding: 10px 0 60px; }
.contact-form-section h2 { text-align:center; font-size:28px; margin-bottom:40px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group.full { grid-column:1/-1; }
.form-group label { font-size:14px; font-weight:600; color:#333; }
.form-group label .req { color:var(--red-accent); }
.form-group input, .form-group select, .form-group textarea,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea { padding:12px 14px; border:1px solid #ccc; border-radius:3px; font-size:14px; font-family:inherit; width:100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 2px rgba(0,144,212,0.15); }

/* Footer */
footer.site-footer { background: #1a2e44; color: #ccc; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 36px; align-items: start; }
.footer-brand { text-align: center; }
.footer-brand .footer-logo { filter: brightness(0) invert(1); height: 80px; width: auto; opacity: 0.95; display: block; margin: 0 auto 16px; }
.footer-brand p { font-size: 14px; color: #bdc6d1; line-height: 1.7; max-width: 280px; margin: 0 auto; text-align: left; }
.footer-col h4 { font-size: 14px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #bdc6d1; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact p { font-size: 14px; color: #bdc6d1; margin-bottom: 4px; line-height: 1.6; }
.footer-contact .address { margin-bottom: 8px; }
.footer-contact a { color: #bdc6d1; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { background: #111d2c; border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8a96a3; flex-wrap: wrap; gap: 10px; }
.footer-bottom-inner .footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.footer-bottom-inner .footer-bottom-links ul { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.footer-bottom-inner .footer-bottom-links li { list-style: none; padding: 0 14px; position: relative; }
.footer-bottom-inner .footer-bottom-links li::marker { content: ''; }
.footer-bottom-inner .footer-bottom-links li:first-child { padding-left: 0; }
.footer-bottom-inner .footer-bottom-links li:last-child { padding-right: 0; }
.footer-bottom-inner .footer-bottom-links li + li::before { content: '|'; color: #4a5663; position: absolute; left: -2px; top: 50%; transform: translateY(-50%); }
.footer-bottom-inner .footer-bottom-links a { color: #8a96a3; display: inline-block; }
.footer-bottom-inner .footer-bottom-links a:hover { color: #fff; }

/* Back-to-top button */
.back-to-top { position: fixed; right: 26px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; border: none; box-shadow: 0 6px 18px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .industry-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .industry-list { columns: 2; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .logo { padding: 16px 20px; justify-content: center; }
  .logo img { height: 70px; }
  .top-bar-inner { justify-content: center; padding-right: 0; }
  nav.main-nav > ul { flex-wrap: wrap; }
  nav.main-nav > ul > li > a { padding: 14px 14px; font-size: 13px; }
  .hero { min-height: 420px; }
  .hero-content { padding: 40px 24px; }
  .hero-content h1 { font-size: 36px; }
  .section-title { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .teasers-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-product h1 { font-size: 28px; }
  .industry-cards { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { padding-right: 0; padding-left: 50px; justify-content: flex-start; }
  .download-grid { grid-template-columns: 1fr; }
  .industry-list { columns: 1; }
}
