/*
Theme Name: CS Immowert Redesign
Theme URI: https://cs-immowert.de/
Author: Nazir Alhaffar
Description: Maßgeschneidertes WordPress-Theme für CS Immowert – Sachverständiger für Immobilienbewertung.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cs-immowert-redesign
*/

:root {
  --ink: #0d2832;
  --paper: #f5f2eb;
  --accent: #c17852;
  --accent-dark: #985334;
  --line: rgba(13, 40, 50, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

.shell { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 120px; }
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.light { color: #e5b69c; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
}
h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1.02; }
p { line-height: 1.75; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1340px, calc(100% - 48px));
  height: 104px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: max-content; }
.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: -.04em;
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1; }
.brand-copy small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .76; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { font-size: 13px; transition: color .2s ease; }
.desktop-nav a:hover { color: #e7b89f; }
.header-cta {
  padding: 13px 19px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .04em;
  transition: all .2s ease;
}
.header-cta:hover { background: white; color: var(--ink); }

.hero {
  position: relative;
  min-height: 880px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("assets/images/heritage-property.jpeg") center / cover no-repeat;
  transform: scale(1.035);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,29,37,.96) 0%, rgba(8,29,37,.82) 42%, rgba(8,29,37,.35) 72%, rgba(8,29,37,.25) 100%), linear-gradient(0deg, rgba(8,29,37,.75), transparent 35%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero h1 { max-width: 780px; margin-bottom: 30px; font-size: clamp(64px, 8.3vw, 124px); line-height: .88; }
.hero-lead { max-width: 670px; margin-bottom: 38px; color: rgba(255,255,255,.78); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 18px 24px; border-radius: 2px; font-size: 13px; font-weight: 700; }
.button-accent { background: var(--accent); color: white; transition: background .2s ease, transform .2s ease; }
.button-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.text-link { padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; }
.light-link { color: rgba(255,255,255,.9); }
.trust-bar {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.24);
}
.trust-bar > div { padding: 26px 24px 27px; border-right: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 7px; }
.trust-bar > div:first-child { padding-left: 0; }
.trust-bar > div:last-child { border-right: 0; }
.trust-number { font-family: Georgia, serif; font-size: 22px; }
.trust-bar span:last-child { max-width: 270px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; letter-spacing: .035em; }

.intro-section { border-bottom: 1px solid var(--line); }
.section-kicker { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.intro-grid h2 { max-width: 600px; margin-bottom: 0; }
.intro-grid p { color: #53666c; }
.large-copy { color: var(--ink) !important; font-family: Georgia, serif; font-size: 24px; line-height: 1.45; }

.services-section { background: #ede9df; }
.section-heading-row { display: grid; grid-template-columns: 1.35fr .65fr; gap: 90px; align-items: end; margin-bottom: 58px; }
.section-heading-row h2 { max-width: 720px; margin-bottom: 0; }
.section-heading-row > p { margin-bottom: 6px; color: #5b6d72; }
.service-columns { display: grid; grid-template-columns: 1fr 1fr; }
.service-card { min-height: 670px; padding: 46px 52px; display: flex; flex-direction: column; }
.featured-card { background: white; }
.dark-card { background: var(--ink); color: white; }
.card-index { margin-left: auto; color: var(--accent); font-family: Georgia, serif; font-size: 14px; }
.card-label { margin: 18px 0 40px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-dark); }
.dark-card .card-label { color: #e5b69c; }
.service-card h3 { max-width: 430px; margin-bottom: 35px; font-size: 35px; line-height: 1.13; }
.service-card ul { margin: 0 0 40px; padding: 0; list-style: none; }
.service-card li { position: relative; padding: 12px 0 12px 25px; border-bottom: 1px solid var(--line); color: #4d6269; font-size: 14px; }
.service-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.dark-card li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.68); }
.service-card a { margin-top: auto; align-self: flex-start; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; }
.service-card a span { margin-left: 18px; }
.property-groups { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; padding-top: 38px; }
.property-group { padding: 28px 30px 30px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.property-group > p { margin-top: 0; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.property-group > div { display: flex; flex-wrap: wrap; gap: 10px; }
.property-group span { padding: 10px 15px; border: 1px solid #cbc5b8; border-radius: 100px; background: rgba(255,255,255,.44); font-size: 13px; }

.expert-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.portrait-wrap { position: relative; background: #d9d9d3; }
.portrait-wrap > img { width: 100%; height: auto; object-fit: contain; filter: saturate(.75) contrast(.96); }
.portrait-caption { position: static; padding: 18px 20px; background: rgba(245,242,235,.96); display: flex; flex-direction: column; gap: 5px; }
.portrait-caption span { font-family: Georgia, serif; font-size: 20px; }
.portrait-caption small { color: #5c6c71; }
.expert-copy h2 { margin-bottom: 32px; }
.expert-copy > p:not(.eyebrow) { color: #576b71; }
.certificate-row { display: flex; align-items: center; gap: 25px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.certificate-row img { width: 150px; height: auto; mix-blend-mode: multiply; }
.certificate-row div { display: flex; flex-direction: column; gap: 8px; }
.certificate-row strong { font-size: 13px; }
.certificate-row span { color: #68797e; font-size: 12px; line-height: 1.6; }

.process-section { background: var(--ink); color: white; }
.process-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 90px; align-items: end; margin-bottom: 72px; }
.process-heading h2 { margin-bottom: 0; }
.process-heading p { margin-bottom: 7px; color: rgba(255,255,255,.6); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.process-grid li { min-height: 275px; padding: 32px 28px 25px 0; border-right: 1px solid rgba(255,255,255,.15); }
.process-grid li:not(:first-child) { padding-left: 28px; }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: #e5b69c; font-family: Georgia, serif; font-size: 13px; }
.process-grid h3 { margin: 70px 0 16px; font-size: 28px; }
.process-grid p { margin-bottom: 0; color: rgba(255,255,255,.58); font-size: 13px; }

.fee-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 75px; background: white; box-shadow: 0 20px 80px rgba(28,43,48,.08); }
.fee-card h2 { margin-bottom: 28px; font-size: clamp(40px, 4.5vw, 62px); }
.fee-card p { color: #5b6f75; }
.fee-values { display: grid; gap: 25px; padding-left: 70px; border-left: 1px solid var(--line); }
.fee-values > div { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.fee-values small { color: #65777b; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fee-values strong { font-family: Georgia, serif; font-size: 36px; font-weight: 400; }
.fee-values em { color: var(--accent); font-style: normal; }
.fee-values span, .fee-values > p { color: #758286; font-size: 12px; }
.fee-values > p { margin: -8px 0 0; line-height: 1.6; }
.fee-values .fee-detail { font-size: 13px; }
.fee-values .fee-source { color: #8a9497; font-size: 11px; font-style: italic; }

.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 110px; align-items: start; border-top: 1px solid var(--line); }
.faq-section h2 { font-size: clamp(40px, 4vw, 58px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 0; cursor: pointer; font-family: Georgia, serif; font-size: 20px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-family: Arial, sans-serif; font-weight: 300; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 50px 24px 0; color: #5a6d72; font-size: 14px; }

.contact-section { padding: 105px 0; background: var(--accent); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: end; }
.contact-section .eyebrow { color: #ffe0d0; }
.contact-section h2 { max-width: 720px; margin-bottom: 22px; }
.contact-section p { max-width: 630px; color: rgba(255,255,255,.75); }
.contact-actions { display: grid; gap: 12px; }
.contact-actions a { position: relative; padding: 25px 60px 25px 25px; border: 1px solid rgba(255,255,255,.45); transition: background .2s ease, color .2s ease; display: flex; flex-direction: column; gap: 6px; }
.contact-actions a:hover { background: white; color: var(--ink); }
.contact-actions small { opacity: .7; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.contact-actions strong { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.contact-actions span { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); }

.site-footer { padding: 75px 0 28px; background: #081c24; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .5fr; gap: 80px; padding-bottom: 55px; }
.footer-brand { margin-bottom: 23px; }
.footer-grid p, .footer-grid address, .footer-links a { color: rgba(255,255,255,.55); font-size: 12px; font-style: normal; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links a:hover { color: white; }
.copyright { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.36); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.content-page { min-height: 60vh; padding-block: 90px; }
.content-page article { width: min(850px, 100%); }
.content-page h1 { margin-bottom: 36px; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.content-page .entry-content { color: #4f636a; line-height: 1.75; }
.content-page .entry-content h2, .content-page .entry-content h3 { margin-top: 42px; }
body:not(.home) .site-header { position: relative; left: auto; transform: none; width: 100%; padding-inline: max(24px, calc((100% - 1220px) / 2)); background: #081c24; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { min-height: 800px; }
  .trust-bar { grid-template-columns: repeat(3, 1fr); }
  .trust-bar > div { padding: 16px 14px; }
  .trust-number { font-size: 18px; }
  .intro-grid, .section-heading-row, .expert-section, .process-heading, .fee-card, .faq-section, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .property-groups { grid-template-columns: 1fr; }
  .service-card { padding: 38px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .fee-values { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1220px); }
  .section { padding-block: 82px; }
  .site-header { width: calc(100% - 32px); height: 82px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small { display: none; }
  .header-cta { padding: 11px 13px; font-size: 10px; }
  .hero { min-height: 780px; align-items: flex-start; padding-top: 190px; }
  .hero-image { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,29,37,.95), rgba(8,29,37,.58)), linear-gradient(0deg, rgba(8,29,37,.9), transparent); }
  .hero-content { padding-top: 0; }
  .hero h1 { font-size: clamp(58px, 19vw, 82px); max-width: 570px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .trust-bar { width: calc(100% - 32px); }
  .trust-bar > div { padding: 13px 7px; }
  .trust-bar > div:first-child { padding-left: 7px; }
  .trust-number { font-size: 15px; }
  .trust-bar span:last-child { font-size: 8px; line-height: 1.35; }
  h2 { font-size: 43px; }
  .large-copy { font-size: 21px; }
  .service-columns { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 32px 25px; }
  .service-card h3 { font-size: 30px; }
  .service-card a { margin-top: 25px; }
  .property-group { padding: 24px 20px; }
  .expert-section { gap: 60px; }
  .certificate-row { align-items: flex-start; flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li:not(:first-child) { min-height: 0; padding: 27px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .process-grid h3 { margin: 35px 0 12px; }
  .fee-card { padding: 35px 24px; }
  .fee-values strong { font-size: 30px; }
  .faq-section { gap: 25px; }
  .contact-section { padding: 82px 0; }
  .contact-actions strong { font-size: 17px; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-links { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
