/*
Theme Name: Treue Facility
Theme URI: https://www.treue-facility.ch/
Author: Primedion
Description: Leichtgewichtiges, dynamisches WordPress-Theme für Treue Facility Services GmbH.
Version: 1.0.1
Text Domain: treue
*/

:root {
  --navy: #102c3b;
  --navy-deep: #071c27;
  --green: #69a949;
  --green-dark: #4e8733;
  --cream: #f4f3ed;
  --white: #fff;
  --ink: #18252c;
  --muted: #607078;
  --line: #dfe5e2;
  --shadow: 0 24px 60px rgba(7, 28, 39, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.25rem; }
.lead { max-width: 670px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--white); font-weight: 800; transition: .2s ease; }
.button:hover { border-color: var(--green-dark); background: var(--green-dark); transform: translateY(-2px); }
.button--ghost { border-color: rgba(255,255,255,.45); background: transparent; }
.button--ghost:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(16,44,59,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; }
.brand img { width: 168px; max-height: 72px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 700; }
.nav a:hover { color: var(--green-dark); }
.nav-toggle { display: none; padding: 8px 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; min-height: 720px; color: var(--white); background: var(--navy-deep); }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7,28,39,.94) 0%, rgba(7,28,39,.76) 39%, rgba(7,28,39,.10) 72%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; display: flex; min-height: 720px; align-items: center; padding-block: 100px; }
.hero-copy { max-width: 690px; }
.hero h1, .hero .eyebrow { color: var(--white); }
.hero .eyebrow { color: #b9e2a7; }
.hero .lead { color: rgba(255,255,255,.84); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-strip { position: relative; z-index: 3; margin-top: -44px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust-item { padding: 27px 30px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.08rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.section { padding-block: 110px; }
.section--soft { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head > div { max-width: 760px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 35px rgba(7,28,39,.06); }
.card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #dbe4df; }
.card-body { padding: 26px; }
.card p { color: var(--muted); }
.text-link { color: var(--green-dark); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(45px, 8vw, 100px); }
.split-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; font-weight: 700; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--green-dark); }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.process article { position: relative; padding-top: 66px; counter-increment: step; }
.process article::before { position: absolute; top: 0; left: 0; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); content: counter(step, decimal-leading-zero); font-weight: 900; }
.cta { padding-block: 80px; background: var(--navy); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 720px; margin-bottom: 12px; color: var(--white); }
.cta p { color: rgba(255,255,255,.75); }

.site-footer { padding-block: 64px 28px; background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 48px; }
.site-footer h3 { color: var(--white); font-family: inherit; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.page-hero { padding-block: 100px 70px; background: var(--cream); }
.content { padding-block: 80px; }
.content :where(h2,h3) { margin-top: 2em; }
.screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 82px; right: 0; left: 0; display: none; padding: 24px 20px; background: var(--white); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; gap: 20px; }
  .hero, .hero-inner { min-height: 650px; }
  .hero::after { background: linear-gradient(90deg, rgba(7,28,39,.92), rgba(7,28,39,.56)); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand img { width: 138px; max-height: 64px; }
  .hero, .hero-inner { min-height: 620px; }
  .hero-inner { padding-block: 80px; }
  .hero::after { background: rgba(7,28,39,.72); }
  .trust-strip { margin-top: 0; background: var(--cream); }
  .trust-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding-block: 76px; }
  .section-head, .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .service-grid, .process, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { display: flex; }
}
