/*
Theme Name: KFZ Gutachter Clean
Theme URI: https://example.com/
Author: Armin B
Description: Sauberes, schlankes Landingpage-Theme für einen KFZ-Gutachter-Auftritt. Dark Automotive Design mit blauem Akzent.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kfz-gutachter-clean
*/

:root {
  --kfz-bg: #07101a;
  --kfz-bg-soft: #0b1825;
  --kfz-bg-card: rgba(12, 26, 40, 0.82);
  --kfz-bg-card-solid: #0d1d2c;
  --kfz-text: #f4f8fb;
  --kfz-muted: #a9b8c7;
  --kfz-muted-2: #d8e0e8;
  --kfz-line: rgba(133, 166, 197, 0.22);
  --kfz-accent: #4297df;
  --kfz-accent-strong: #267ac5;
  --kfz-accent-soft: rgba(66, 151, 223, 0.16);
  --kfz-white: #ffffff;
  --kfz-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --kfz-radius: 18px;
  --kfz-radius-sm: 12px;
  --kfz-max: 1180px;
  --kfz-header-h: 88px;
  --kfz-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--kfz-bg);
  color: var(--kfz-text);
  font-family: var(--kfz-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--kfz-muted-2);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--kfz-text);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 5.25rem);
  text-transform: uppercase;
  max-width: 800px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.45rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.kfz-container {
  width: min(calc(100% - 40px), var(--kfz-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--kfz-header-h);
  background: rgba(5, 11, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--kfz-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--kfz-header-h);
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--kfz-accent);
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__name {
  font-weight: 900;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__tagline {
  margin-top: 4px;
  color: var(--kfz-accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.custom-logo-link img {
  display: block;
  width: auto;
  max-height: 58px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  padding: 32px 0 28px;
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--kfz-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.header-contact__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--kfz-accent);
}

.header-contact__meta {
  display: grid;
  line-height: 1.1;
}

.header-contact__label {
  color: var(--kfz-accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-contact__phone {
  color: var(--kfz-white);
  font-weight: 900;
  font-size: 1.05rem;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--kfz-line);
  background: transparent;
  border-radius: 12px;
  color: var(--kfz-text);
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--kfz-header-h));
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(66, 151, 223, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(5, 12, 20, 0.98) 0%, rgba(5, 12, 20, 0.88) 42%, rgba(5, 12, 20, 0.48) 70%, rgba(5, 12, 20, 0.82) 100%),
    linear-gradient(135deg, #07111d 0%, #162535 44%, #050a10 100%);
  background-size: cover;
  background-position: center;
}

.hero.has-image {
  background-size: cover;
  background-position: center right;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.96) 0%, rgba(5, 12, 20, 0.86) 40%, rgba(5, 12, 20, 0.42) 70%, rgba(5, 12, 20, 0.74) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  z-index: -1;
  background: linear-gradient(0deg, var(--kfz-bg) 0%, transparent 100%);
}

.hero__content {
  width: min(calc(100% - 40px), var(--kfz-max));
  margin-inline: auto;
  padding: clamp(52px, 8vw, 86px) 0 42px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--kfz-accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--kfz-accent);
}

.hero__lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  color: rgba(244, 248, 251, 0.86);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 620px);
  margin: 36px 0 34px;
}

.hero-feature {
  padding: 0 18px;
  border-right: 1px solid var(--kfz-line);
  text-align: center;
}

.hero-feature:first-child {
  padding-left: 0;
}

.hero-feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-feature__icon {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: var(--kfz-accent);
}

.hero-feature h3 {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-feature p {
  margin: 8px 0 0;
  color: rgba(244, 248, 251, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.kfz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.kfz-btn:hover,
.kfz-btn:focus-visible {
  transform: translateY(-2px);
}

.kfz-btn--primary {
  background: linear-gradient(180deg, #4aa7f0, #2b80cc);
  color: var(--kfz-white);
  box-shadow: 0 16px 34px rgba(66, 151, 223, 0.24);
}

.kfz-btn--ghost {
  color: var(--kfz-white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255, 255, 255, 0.03);
}

.kfz-btn--ghost:hover,
.kfz-btn--ghost:focus-visible {
  border-color: var(--kfz-accent);
  background: var(--kfz-accent-soft);
}

.trust-strip {
  width: min(calc(100% - 40px), var(--kfz-max));
  margin: -74px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--kfz-line);
  border-radius: 8px;
  background: rgba(9, 21, 33, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--kfz-shadow);
}

.trust-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 22px 28px;
  border-right: 1px solid var(--kfz-line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item__icon {
  color: rgba(120, 174, 224, 0.72);
}

.trust-item strong {
  display: block;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-item span {
  display: block;
  color: var(--kfz-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 4px;
}

.section {
  padding: clamp(76px, 9vw, 118px) 0;
}

.section--tight-top {
  padding-top: clamp(92px, 10vw, 135px);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 38px;
}

.section__head p {
  max-width: 640px;
  margin-left: auto;
  color: var(--kfz-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--kfz-line);
  border-radius: var(--kfz-radius);
  background: linear-gradient(180deg, rgba(15, 32, 49, 0.92), rgba(9, 21, 33, 0.92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--kfz-accent-soft);
  color: var(--kfz-accent);
}

.card h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: var(--kfz-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--kfz-muted-2);
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--kfz-white);
  background: var(--kfz-accent);
  font-weight: 900;
  line-height: 1;
}

.about-panel {
  border: 1px solid var(--kfz-line);
  border-radius: var(--kfz-radius);
  background:
    linear-gradient(145deg, rgba(66, 151, 223, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(15, 32, 49, 0.96), rgba(9, 21, 33, 0.96));
  padding: 34px;
  box-shadow: var(--kfz-shadow);
}

.about-panel__stat {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--kfz-line);
}

.about-panel__stat:last-child {
  border-bottom: 0;
}

.about-panel__stat strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-panel__stat span {
  color: var(--kfz-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  font-weight: 800;
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  counter-increment: step;
  position: relative;
  padding: 28px;
  min-height: 250px;
  border: 1px solid var(--kfz-line);
  border-radius: var(--kfz-radius);
  background: rgba(12, 26, 40, 0.75);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--kfz-accent);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.process-step h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.process-step p {
  color: var(--kfz-muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

details.faq-item {
  border: 1px solid var(--kfz-line);
  border-radius: var(--kfz-radius-sm);
  background: rgba(12, 26, 40, 0.72);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--kfz-text);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--kfz-accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--kfz-muted);
}

.contact-section {
  background:
    radial-gradient(circle at 70% 30%, rgba(66, 151, 223, 0.18), transparent 32%),
    linear-gradient(180deg, var(--kfz-bg), #050a10);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  border: 1px solid var(--kfz-line);
  border-radius: var(--kfz-radius);
  background: rgba(12, 26, 40, 0.82);
  padding: 34px;
}

.contact-card--accent {
  background: linear-gradient(180deg, rgba(66, 151, 223, 0.18), rgba(12, 26, 40, 0.92));
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-method {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--kfz-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-method__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--kfz-accent-soft);
  color: var(--kfz-accent);
}

.contact-method strong,
.contact-method span {
  display: block;
}

.contact-method span {
  color: var(--kfz-muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--kfz-line);
  background: #04090f;
  padding: 28px 0;
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--kfz-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--kfz-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.content-page {
  min-height: 60vh;
  padding: 80px 0;
}

.content-page__inner {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.content-page h1 {
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.content-page :where(p, li) {
  color: var(--kfz-muted-2);
}

@media (max-width: 1080px) {
  .header-contact {
    display: none;
  }

  .hero-features,
  .trust-strip,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--kfz-line);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --kfz-header-h: 76px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: var(--kfz-header-h);
  }

  .mobile-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--kfz-header-h) 20px auto 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--kfz-line);
    border-radius: 18px;
    background: rgba(5, 11, 18, 0.98);
    box-shadow: var(--kfz-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    display: flex;
    padding: 14px;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: 48px;
    padding-bottom: 100px;
  }

  .section__head,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section__head p {
    margin-left: 0;
  }

  .cards,
  .process {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -42px;
  }
}

@media (max-width: 620px) {
  .kfz-container,
  .site-header__inner,
  .hero__content,
  .trust-strip,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--kfz-max));
  }

  .brand__tagline {
    display: none;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .hero-features,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    text-align: left;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--kfz-line);
  }

  .hero-feature:last-child {
    border-bottom: 0;
  }

  .hero-feature__icon {
    min-height: 46px;
  }

  .hero-feature h3,
  .hero-feature p {
    margin-top: 0;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--kfz-line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .kfz-btn {
    width: 100%;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
