/*
Theme Name: Campfactory Next
Theme URI: https://campfactory.de
Author: Campfactory
Description: Maßgeschneidertes, REST-fähiges Campfactory-Theme für Werkstatt, Technik und Komfort.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.2
Text Domain: campfactory-next
*/

:root {
  --cf-orange: #f47a21;
  --cf-orange-dark: #d95e0b;
  --cf-anthracite: #18222d;
  --cf-ink: #27313b;
  --cf-muted: #66717c;
  --cf-sand: #f3f0ea;
  --cf-line: #dce1e5;
  --cf-white: #fff;
  --cf-radius: 16px;
  --cf-shadow: 0 18px 50px rgba(24, 34, 45, .12);
  --cf-content: 1180px;
  --cf-font: "Redonda", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cf-ink); background: var(--cf-white); font-family: var(--cf-font); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.cf-container { width: min(calc(100% - 40px), var(--cf-content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px; background: #fff; z-index: 9999; }

.cf-topbar { padding: 7px 0; background: #101923; color: #dfe5ea; font-size: 13px; }
.cf-topbar__inner { display: flex; justify-content: space-between; gap: 20px; }
.cf-topbar a { text-decoration: none; }
.cf-header { position: relative; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(24,34,45,.08); }
.cf-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.cf-logo img { display: block; width: 190px; max-height: 58px; object-fit: contain; }
.cf-nav { margin-left: auto; }
.cf-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.cf-nav a { font-size: 15px; font-weight: 700; text-decoration: none; }
.cf-nav a:hover, .cf-nav .current-menu-item > a { color: var(--cf-orange); }
.cf-menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 800; }
.cf-header-cta { padding: 12px 18px; border-radius: 8px; background: var(--cf-orange); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }

.cf-hero { position: relative; min-height: 610px; display: grid; align-items: center; overflow: hidden; background: #1a2632; color: #fff; }
.cf-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,20,29,.94) 0%, rgba(12,20,29,.70) 42%, rgba(12,20,29,.16) 72%, rgba(12,20,29,.05) 100%), var(--cf-hero) center/cover no-repeat; }
.cf-hero__content { position: relative; z-index: 1; max-width: 670px; padding: 88px 0 98px; }
.cf-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #ffab6c; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cf-kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--cf-orange); }
.cf-hero h1 { max-width: 640px; margin: 0 0 20px; color: #fff; font-size: clamp(46px, 6.4vw, 82px); line-height: .98; letter-spacing: -.045em; }
.cf-hero p { max-width: 590px; margin: 0 0 34px; color: #e7ebee; font-size: clamp(18px, 2vw, 22px); }
.cf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cf-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 2px solid var(--cf-orange); border-radius: 8px; background: var(--cf-orange); color: #fff; font-weight: 900; text-decoration: none; transition: .2s ease; }
.cf-button:hover { transform: translateY(-2px); background: var(--cf-orange-dark); border-color: var(--cf-orange-dark); }
.cf-button--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.cf-button--ghost:hover { background: #fff; border-color: #fff; color: var(--cf-anthracite); }
.cf-button--dark { background: var(--cf-anthracite); border-color: var(--cf-anthracite); }

.cf-trust-strip { position: relative; z-index: 2; margin-top: -34px; }
.cf-trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--cf-shadow); }
.cf-trust-item { min-height: 92px; display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-right: 1px solid var(--cf-line); }
.cf-trust-item:last-child { border-right: 0; }
.cf-trust-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff2e8; color: var(--cf-orange); font-weight: 900; }
.cf-trust-item strong { display: block; font-size: 14px; line-height: 1.25; }
.cf-trust-item span { color: var(--cf-muted); font-size: 12px; }

.cf-section { padding: 92px 0; }
.cf-section--sand { background: var(--cf-sand); }
.cf-section--dark { background: var(--cf-anthracite); color: #fff; }
.cf-section-head { max-width: 760px; margin-bottom: 38px; }
.cf-section-head--center { margin-inline: auto; text-align: center; }
.cf-section h2 { margin: 0 0 14px; color: var(--cf-anthracite); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.cf-section--dark h2 { color: #fff; }
.cf-lead { margin: 0; color: var(--cf-muted); font-size: 18px; }
.cf-section--dark .cf-lead { color: #cbd2d8; }

.cf-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cf-service-card { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--cf-radius); background: #24313c; color: #fff; box-shadow: var(--cf-shadow); }
.cf-service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(15,24,33,.92) 100%), var(--cf-card-image) center/cover no-repeat; transition: transform .45s ease; }
.cf-service-card:hover::before { transform: scale(1.035); }
.cf-service-card__body { position: relative; z-index: 1; width: 100%; padding: 30px; }
.cf-service-card h3 { margin: 0 0 9px; font-size: 27px; line-height: 1.15; }
.cf-service-card p { margin: 0 0 16px; color: #e1e6ea; }
.cf-text-link { color: #ff9a50; font-weight: 900; text-decoration: none; }

.cf-package-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cf-package { display: flex; min-height: 260px; flex-direction: column; padding: 25px 22px; border: 1px solid var(--cf-line); border-radius: 12px; background: #fff; }
.cf-package__icon { color: var(--cf-orange); font-size: 28px; }
.cf-package h3 { margin: 14px 0 8px; font-size: 20px; line-height: 1.2; }
.cf-package p { margin: 0 0 18px; color: var(--cf-muted); font-size: 14px; }
.cf-package__price { margin-top: auto; color: var(--cf-anthracite); font-size: 17px; font-weight: 900; }

.cf-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cf-brand-card { min-height: 118px; display: grid; place-items: center; padding: 22px; border: 1px solid var(--cf-line); border-radius: 10px; background: #fff; text-decoration: none; transition: .2s ease; }
.cf-brand-card:hover { border-color: var(--cf-orange); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(24,34,45,.09); }
.cf-brand-card img { max-width: 150px; max-height: 52px; object-fit: contain; }
.cf-brand-wordmark { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }

.cf-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; border-radius: var(--cf-radius); overflow: hidden; background: #fff; box-shadow: var(--cf-shadow); }
.cf-split__media { min-height: 470px; background: var(--cf-split-image) center/cover no-repeat; }
.cf-split__content { padding: clamp(38px, 6vw, 74px); }
.cf-checks { display: grid; gap: 12px; padding: 0; list-style: none; }
.cf-checks li::before { content: "✓"; margin-right: 10px; color: var(--cf-orange); font-weight: 900; }

.cf-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cf-feature { padding: 26px; border-radius: 12px; background: #fff; border: 1px solid var(--cf-line); }
.cf-feature h3 { margin: 0 0 8px; }
.cf-feature p { margin: 0; color: var(--cf-muted); }

.cf-page-hero { padding: 80px 0; background: var(--cf-anthracite); color: #fff; }
.cf-page-hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(42px, 6vw, 70px); line-height: 1; }
.cf-page-hero p { max-width: 720px; margin: 0; color: #d5dce2; font-size: 20px; }
.cf-content { padding: 70px 0; }
.cf-content > * { max-width: 820px; }

.cf-contact-band { padding: 54px 0; background: var(--cf-orange); color: #fff; }
.cf-contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cf-contact-band h2 { margin: 0 0 6px; color: #fff; font-size: clamp(30px, 4vw, 44px); }
.cf-contact-band p { margin: 0; }
.cf-contact-band .cf-button { background: #fff; border-color: #fff; color: var(--cf-anthracite); }

.cf-footer { padding: 70px 0 24px; background: #111a23; color: #d7dde2; }
.cf-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; }
.cf-footer h3 { margin: 0 0 16px; color: #fff; font-size: 16px; }
.cf-footer ul { margin: 0; padding: 0; list-style: none; }
.cf-footer li { margin: 7px 0; }
.cf-footer a { color: #d7dde2; text-decoration: none; }
.cf-footer a:hover { color: #fff; }
.cf-footer__logo { width: 190px; filter: brightness(0) invert(1); opacity: .95; }
.cf-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9eabb6; font-size: 13px; }

@media (max-width: 980px) {
  .cf-package-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-brand-grid { grid-template-columns: repeat(3, 1fr); }
  .cf-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-trust-item { border-bottom: 1px solid var(--cf-line); }
  .cf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px; background: #fff; box-shadow: var(--cf-shadow); }
  .cf-nav.is-open { display: block; }
  .cf-nav ul { align-items: stretch; flex-direction: column; gap: 14px; }
  .cf-menu-toggle { display: block; margin-left: auto; }
  .cf-header-cta { display: none; }
}

@media (max-width: 720px) {
  .cf-container { width: min(calc(100% - 28px), var(--cf-content)); }
  .cf-topbar__inner { justify-content: center; }
  .cf-topbar__inner span:first-child { display: none; }
  .cf-header__inner { min-height: 68px; }
  .cf-logo img { width: 155px; }
  .cf-hero { min-height: 620px; }
  .cf-hero::before { background: linear-gradient(90deg, rgba(12,20,29,.9), rgba(12,20,29,.48)), var(--cf-hero) 64% center/cover no-repeat; }
  .cf-service-grid, .cf-feature-grid, .cf-split, .cf-footer-grid { grid-template-columns: 1fr; }
  .cf-service-card { min-height: 370px; }
  .cf-package-grid, .cf-brand-grid { grid-template-columns: 1fr 1fr; }
  .cf-trust-grid { grid-template-columns: 1fr; }
  .cf-split__media { min-height: 320px; }
  .cf-contact-band__inner, .cf-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .cf-package-grid, .cf-brand-grid { grid-template-columns: 1fr; }
  .cf-actions .cf-button { width: 100%; }
}
