/*
Theme Name: thetective.ch
Theme URI: https://thetective.ch
Author: Codex
Description: Editierbares WordPress-Theme fuer thetective.ch nach PDF-Vorlage.
Version: 1.0.3
Requires at least: 6.0
Text Domain: thetective
*/

:root {
  --red: #df0b12;
  --black: #0f0f0f;
  --ink: #1f1f1f;
  --muted: #6d6d6d;
  --line: #dfdfdf;
  --soft: #f7f7f7;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.05);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 252px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 800;
  font-size: 15px;
}
.main-nav a {
  position: relative;
  padding: 42px 0 36px;
}
.main-nav a.active,
.main-nav a:hover { color: var(--red); }
.main-nav > a.active::after,
.main-nav > a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 35px;
  height: 3px;
  background: var(--red);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 34px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 0;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(223, 11, 18, .18);
}
.btn:hover { background: #bf080d; }
.btn::after { content: "\2192"; font-size: 22px; line-height: 1; }
.nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
}
.nav-cta .btn {
  min-width: 164px;
  min-height: 64px;
  padding-inline: 26px;
  color: var(--white);
  padding-block: 0;
}
.nav-cta .btn:hover,
.nav-cta .btn:focus {
  color: var(--white);
  transform: none;
}
.nav-cta .btn::before,
.nav-cta .btn::after {
  position: static;
}
.nav-cta .btn:hover::after,
.nav-cta .btn:focus::after {
  background: transparent;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.44) 26%, rgba(255,255,255,0) 50%), var(--hero-image) right center / cover no-repeat;
  filter: grayscale(1);
}
.hero.subtle::before { opacity: .98; }
.page-template-page-services .hero::before {
  inset: 0 0 0 52%;
  background: var(--hero-image) left center / contain no-repeat;
  opacity: .86;
  filter: none;
}
.hero-mark {
  position: absolute;
  right: 9%;
  top: 22%;
  width: min(390px, 34vw);
  opacity: .045;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-block: 90px;
}
.eyebrow {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: normal;
}
h1 { font-size: clamp(3.8rem, 7.1vw, 6.7rem); }
h2 { font-size: clamp(2.6rem, 4vw, 4.2rem); }
h3 { font-size: clamp(1.65rem, 2vw, 2.35rem); }
.red { color: var(--red); }
.rule {
  width: 64px;
  height: 3px;
  background: var(--red);
  margin: 34px 0;
}
.lead {
  max-width: 520px;
  margin: 0 0 42px;
  color: #555;
  font-size: 18px;
  font-weight: 650;
}

.values {
  border-block: 1px solid var(--line);
  padding: 76px 0;
}
.section-label {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.value-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.value-grid.four,
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.value {
  min-height: 245px;
  padding: 0 52px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.value:first-child { border-left: 0; }
.icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  color: var(--red);
}
.value .mini-rule,
.service-card .mini-rule {
  width: 34px;
  height: 3px;
  background: var(--red);
  margin: 20px auto;
}
.value p,
.service-card p {
  margin: 0;
  color: #646464;
  font-weight: 650;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.split img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.split-copy { padding: 90px 74px; align-self: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding-bottom: 7px;
  border-bottom: 1px solid #999;
  font-weight: 900;
}

.section { padding: 86px 0; }
.section-head { margin-bottom: 58px; }
.section-head.centered { text-align: center; }
.card-grid { gap: 20px; }
.service-card {
  min-height: 492px;
  border: 1px solid var(--line);
  padding: 58px 34px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card.align-left {
  align-items: flex-start;
  text-align: left;
}
.service-card.align-left .icon,
.service-card.align-left .mini-rule {
  margin-left: 0;
}
.service-card .text-link { margin-top: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
}
.step {
  position: relative;
  padding: 0 34px 0 0;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 26px;
  width: calc(100% - 68px);
  height: 2px;
  background: #f0a4a6;
  transform: translateX(50%);
}
.step-no {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}
.step h3 { font-size: 1.45rem; text-align: center; }
.step p { text-align: center; color: #5f5f5f; font-weight: 650; }

.owner-panel {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  gap: 84px;
  align-items: center;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}
.owner-panel img { filter: grayscale(1); }
.phone-line {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--black);
  font-size: 25px;
  font-weight: 900;
  white-space: nowrap;
  word-break: keep-all;
}
.phone-line .icon {
  flex: 0 0 36px;
  margin: 0;
}

.cta-dark {
  background: #151515;
  color: #fff;
  padding: 54px 0;
}
.cta-red {
  background: var(--red);
  color: #fff;
  padding: 62px 0;
}
.cta-red .cta-logo {
  box-shadow: 0 22px 40px rgba(0,0,0,.22);
}
.cta-red .phone-line {
  color: #fff;
  margin-top: 18px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
}
.cta-contacts {
  display: flex;
  gap: 42px;
  color: #dcdcdc;
  font-weight: 800;
}
.cta-contacts span {
  white-space: nowrap;
  word-break: keep-all;
}
.cta-logo {
  width: 190px;
  border-radius: 999px;
  background: #fff;
  padding: 14px;
}
.cta-side {
  display: grid;
  gap: 18px;
  padding-left: 42px;
  border-left: 1px solid rgba(255,255,255,.28);
}
.cta-large .cta-inner {
  justify-content: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 92px;
  padding: 86px 0 80px;
}
.form-row { margin-bottom: 22px; }
label { display: block; font-weight: 800; margin-bottom: 9px; }
input, textarea {
  width: 100%;
  border: 1px solid #d6d6d6;
  background: #fff;
  min-height: 57px;
  padding: 15px 18px;
  font: inherit;
}
textarea { min-height: 188px; resize: vertical; }
.privacy { color: #777; font-weight: 650; font-size: 14px; }
.form-notice {
  padding: 14px 18px;
  border-left: 4px solid var(--red);
  background: #f8f8f8;
  font-weight: 800;
}
.contact-info {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}
.info-list {
  display: grid;
  gap: 0;
}
.info-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.info-item strong {
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.info-item span {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}
.map-card img {
  border-radius: 6px;
  width: 100%;
  filter: grayscale(.9);
}
.contact-owner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 270px 1fr 130px;
  align-items: center;
  gap: 46px;
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
}
.contact-owner img { filter: grayscale(1); }

.site-footer {
  padding: 48px 0 28px;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 270px 160px 210px 170px 185px 145px;
  gap: 0;
  align-items: center;
}
.footer-logo img { width: 245px; }
.footer-item {
  min-height: 72px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: keep-all;
}
.footer-item strong {
  display: block;
  color: #777;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-item:first-of-type,
.footer-item:nth-of-type(2),
.footer-item:nth-of-type(3) {
  white-space: nowrap;
}
.footer-claim {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #777;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .45em;
  text-transform: uppercase;
}
.footer-legal {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.footer-legal a {
  color: #555;
}
.footer-legal a:hover {
  color: var(--red);
}

.privacy-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 88px;
}
.privacy-hero {
  padding: 46px 52px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.06);
}
.privacy-hero .eyebrow {
  color: var(--red);
  margin-bottom: 8px;
}
.privacy-hero h1 {
  color: var(--black);
  font-family: var(--serif);
  font-size: clamp(3rem, 5.1vw, 5.3rem);
  line-height: 1.02;
  font-weight: 700;
}
.privacy-hero p {
  max-width: 900px;
  margin: 24px 0 0;
  color: #555;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 650;
}
.privacy-intro {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 58px;
  margin: 28px 0 48px;
}
.privacy-intro p,
.privacy-content p {
  margin: 0 0 16px;
  color: #505050;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}
.privacy-card {
  align-self: start;
  padding: 24px;
  background: #151515;
  color: #fff;
}
.privacy-card h2 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 28px;
}
.privacy-card p {
  color: #fff;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.privacy-content {
  display: grid;
  gap: 22px;
}
.privacy-content h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.privacy-content article {
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.privacy-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: #555;
  font-weight: 700;
}

.mobile-toggle { display: none; }

@media (max-width: 1020px) {
  .header-inner { min-height: 86px; }
  .brand img { width: 205px; }
  .mobile-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
  }
  .main-nav {
    position: absolute;
    inset: 86px 0 auto;
    display: none;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; }
  .main-nav a.active::after,
  .main-nav a:hover::after { bottom: 5px; }
  .main-nav .btn { margin-top: 14px; }
  .nav-cta .btn {
    width: 100%;
    min-width: 0;
  }
  .hero { min-height: 650px; }
  .hero::before { inset-left: 22%; opacity: .78; }
  .value-grid,
  .value-grid.four,
  .card-grid,
  .card-grid.four,
  .split,
  .two-col,
  .owner-panel,
  .contact-layout,
  .contact-info,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .value { border-left: 0; border-top: 1px solid var(--line); padding: 34px 10px; }
  .value:first-child { border-top: 0; }
  .split-copy { padding: 52px 20px; }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .step::after { display: none; }
  .cta-inner,
  .cta-contacts { align-items: flex-start; flex-direction: column; }
  .cta-side { border-left: 0; padding-left: 0; }
  .contact-owner { grid-template-columns: 1fr; }
  .footer-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .privacy-intro,
  .privacy-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1210px); }
  h1 {
    font-size: clamp(2.75rem, 12.2vw, 3.45rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero-content h1,
  .contact-layout h1 {
    max-width: 100%;
  }
  .hero { min-height: auto; }
  .hero::before { inset: 0; opacity: .18; }
  .hero-content { padding-block: 58px; }
  .hero-content,
  .contact-layout {
    overflow: hidden;
  }
  .lead {
    font-size: 17px;
    line-height: 1.55;
  }
  .section, .values { padding: 58px 0; }
  .service-card { min-height: 0; }
  .contact-layout { gap: 38px; }
  .privacy-wrap {
    width: min(100% - 28px, 1060px);
    padding: 38px 0 58px;
  }
  .privacy-hero {
    padding: 20px;
  }
  .privacy-hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.95rem);
  }
  .privacy-hero p {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.35rem, 11.4vw, 3rem);
  }
  .eyebrow {
    font-size: 13px;
  }
}
