/* ==========================================================================
   psv-wahl.de – Pflegesachverständiger Luca Wahl
   ========================================================================== */

:root {
  --color-bg: #faf6ee;
  --color-bg-alt: #f1e9d8;
  --color-dark: #14100c;
  --color-dark-alt: #1f1811;
  --color-accent: #8a6a35;
  --color-accent-light: #a9863f;
  --color-text: #2a241c;
  --color-text-muted: #5c5245;
  --color-text-on-dark: #f2ead9;
  --color-text-on-dark-muted: #c9bda3;
  --color-border: #ddd0b3;

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container-width: 1080px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 76px;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  border: none;
  margin: 0.8em 0 1.4em;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-light);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--on-dark {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}

.btn--on-dark:hover {
  background: var(--color-accent-light);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: saturate(140%) blur(4px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
}

.brand__role {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 40px;
  height: 36px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-dark);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle__bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bar::after {
  position: absolute;
  top: 6px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 64px 0 56px;
}

.hero__inner {
  max-width: 640px;
}

.hero .section-eyebrow {
  color: var(--color-accent-light);
}

.hero h1 {
  color: #fff;
}

.hero p {
  color: var(--color-text-on-dark-muted);
  font-size: 1.05rem;
}

.hero__actions {
  margin-top: 1.6em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Quote / intro ---------- */

.intro {
  padding: 56px 0;
  text-align: center;
}

.intro__inner {
  max-width: 680px;
  margin: 0 auto;
}

.intro blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-dark);
  margin: 0 0 0.7em;
}

.intro p {
  color: var(--color-text-muted);
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--color-dark-alt);
  color: var(--color-text-on-dark);
  padding: 48px 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-bar__item {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
}

.trust-bar__item h3 {
  color: #fff;
  font-size: 1rem;
}

.trust-bar__item p {
  color: var(--color-text-on-dark-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Services grid ---------- */

.services {
  padding: 60px 0;
}

.section-head {
  max-width: 560px;
  margin: 0 0 2em;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  border: 1px solid var(--color-border);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 0.4em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Image placeholder ---------- */

.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  min-height: 220px;
  padding: 12px;
}

.media-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-accent);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}

.cta-band--photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 16, 12, 0.88), rgba(138, 106, 53, 0.82));
}

.cta-band--photo .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.4em;
}

.cta-band .btn--outline {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn--outline:hover {
  background: #fff;
  color: var(--color-accent);
}

/* ---------- Generic page header (for inner pages) ---------- */

.page-header {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 44px 0 38px;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-header p {
  color: var(--color-text-on-dark-muted);
  max-width: 620px;
  margin: 0;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 0.8em;
}

.breadcrumb a:hover {
  color: var(--color-accent-light);
}

/* ---------- Content sections (Leistungen / Über mich / Impressum / Datenschutz) ---------- */

.content-section {
  padding: 52px 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border);
}

.content-section--alt {
  background: var(--color-bg-alt);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.two-col__media {
  order: 2;
}

.two-col.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.two-col.reverse .two-col__media {
  order: -1;
}

.legal-text h2 {
  margin-top: 1.6em;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text p, .legal-text li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Contact form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2 {
  margin-top: 1.4em;
}

.contact-info h2:first-child {
  margin-top: 0;
}

.contact-info__item {
  margin-bottom: 1.2em;
}

.contact-info__item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2em;
}

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 1px;
}

.form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-field--checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-field--checkbox label {
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.form-note {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark-muted);
  padding: 40px 0 26px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-social a:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

.site-footer__bottom {
  padding-top: 18px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .two-col,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .two-col__media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    height: calc(100vh - 65px);
    z-index: 200;
    background: #faf6ee;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    border-top: 1px solid var(--color-border);
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}
