/* =================================================================
   DPI Sachverständigen GmbH – Design-System
   Aesthetik: editorial / institutionell / seriös-premium
   Navy + dezentes Gold auf warmem Creme
   ================================================================= */

:root {
  /* Farben */
  --navy: #0f2944;
  --navy-deep: #0a1e33;
  --navy-700: #1a3b5c;
  --gold: #c7a24a;
  --gold-soft: #d8bd76;
  --gold-ink: #6f5618; /* dunkles Gold für Text auf hellem Grund (WCAG-AA) */
  --cream: #f7f4ee;
  --cream-200: #efe9df;
  --white: #ffffff;
  --ink: #1b2733;
  --ink-soft: #4a5562;
  --line: #e3ddd1;
  --line-navy: rgba(255, 255, 255, 0.14);
  --on-navy: #e8eef5;
  --on-navy-soft: #b6c4d4;

  /* Typografie */
  --serif: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 18px 48px -24px rgba(15, 41, 68, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(15, 41, 68, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--gold-soft); }

/* Layout helpers ------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin-top: 1.4rem; }
.measure { max-width: 68ch; }

/* Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--on-navy); border-color: var(--line-navy); }
.btn--ghost-light:hover { border-color: var(--gold-soft); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand { text-decoration: none; line-height: 1.05; }
.brand b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand span {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); border-color: var(--gold); }
.nav-links .btn { color: var(--navy-deep); }
.nav-links .btn:hover { color: var(--navy-deep); }

/* Dropdown „Leistungen" --------------------------------------- */
.has-dropdown { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-drop-toggle:hover, .has-dropdown:focus-within .nav-drop-toggle { color: var(--navy); }
.nav-drop-toggle.active { color: var(--navy); border-color: var(--gold); }
.nav-drop-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.has-dropdown:hover .nav-drop-toggle svg,
.has-dropdown.open .nav-drop-toggle svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 0.6rem); left: 0;
  min-width: 230px;
  list-style: none; margin: 0; padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; gap: 0.1rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; width: auto;
  padding: 0.6rem 0.8rem; border: 0; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; color: var(--ink-soft);
}
.dropdown a:hover { background: var(--cream-200); color: var(--navy); }
.dropdown a.active { color: var(--navy); }

/* Dezenter Textlink (sekundäre Aktion statt Zweit-Button) ------ */
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { border-color: currentColor; }
.text-link--light { color: var(--on-navy-soft); }
.text-link--light:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 130% at 80% -10%, var(--navy-700) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: var(--on-navy);
  overflow: hidden;
}
.hero::before {
  /* dezente Linientextur */
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-navy) 1px, transparent 1px);
  background-size: 100% 46px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: var(--on-navy-soft); }
.hero .btn-row { margin-top: 2rem; }
.hero-rule { width: 64px; height: 3px; background: var(--gold); margin-bottom: 2rem; }

/* Page header (innere Seiten) ------------------------------------ */
.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
}
.page-head .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); }
.page-head h1 { color: #fff; }
.page-head .lead { color: var(--on-navy-soft); }

/* Cards ---------------------------------------------------------- */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Service-Block (Detailseiten) ----------------------------------- */
.service {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}
.service:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.service h2 { display: flex; align-items: baseline; gap: 0.7rem; }
.service h2::before {
  content: "";
  width: 26px; height: 2px; background: var(--gold);
  transform: translateY(-0.4em);
  flex: none;
}

/* Reasons / Feature list ----------------------------------------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.features li { display: flex; gap: 0.9rem; }
.features .dot {
  flex: none; width: 10px; height: 10px; margin-top: 0.55rem;
  background: var(--gold); border-radius: 50%;
}
.features b { display: block; color: var(--navy); font-family: var(--serif); font-weight: 560; }
.features span { color: var(--ink-soft); }

/* Occasions / Tag list ------------------------------------------- */
.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.case-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.case-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 2px;
  background: var(--gold);
}
.case-list li:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 640px) {
  .case-list { grid-template-columns: 1fr; }
  .case-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-list li:last-child { border-bottom: 0; }
}

/* Trust bar ------------------------------------------------------ */
.trust {
  background: var(--cream-200);
  border-block: 1px solid var(--line);
}
.trust .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 5vw, 3.5rem);
  padding-block: 1.8rem;
}
.trust-item { text-align: center; }
.trust-item b {
  display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--navy);
}
.trust-item span { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* CTA band ------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  text-align: center;
}
.cta-band .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--on-navy-soft); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* Split (Kontakt / Über uns) ------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Info box ------------------------------------------------------- */
.infobox {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.infobox h3 { margin-top: 0; }
.infobox address { font-style: normal; line-height: 1.9; }
.infobox a { color: var(--navy); font-weight: 600; }

/* Checklist ------------------------------------------------------ */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 0.2rem; }

/* Form ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 162, 74, 0.18);
}
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--cream-200);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}

/* Prose (Impressum / Datenschutz) -------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose .placeholder {
  background: var(--cream-200);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Zertifizierungen: Hero mit Porträt ----------------------------- */
.cert-hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.cert-hero .hero-rule { margin-bottom: 1.4rem; }

/* Medien-Platzhalter (vom Betreiber durch echtes Bild ersetzen) --- */
.media-ph {
  display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--gold-soft);
  border-radius: var(--radius);
  color: var(--on-navy-soft);
  font-size: 0.82rem; line-height: 1.5;
  padding: 1.5rem; min-height: 300px;
}

/* Logo-/Trust-Leiste --------------------------------------------- */
.logo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem); padding-block: 1.8rem;
}
.logo-ph {
  display: grid; place-items: center; text-align: center;
  width: 160px; height: 72px;
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  font-size: 0.72rem; color: var(--ink-soft); padding: 0.5rem;
}
.logo-img { width: 160px; height: 72px; object-fit: contain; }

/* Zertifizierungs-Karten ----------------------------------------- */
.cert-card { text-align: center; }
.cert-card .cert-logo {
  width: 100%; height: 64px; display: grid; place-items: center;
  margin-bottom: 1.2rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  font-size: 0.7rem; color: var(--ink-soft); padding: 0.4rem;
}
.cert-card .cert-logo-img {
  width: 100%; height: 72px; object-fit: contain;
  margin: 0 auto 1.2rem;
}
.cert-card h3::after {
  content: ""; display: block; width: 32px; height: 2px;
  background: var(--gold); margin: 0.6rem auto 0;
}

/* Feature-Liste mit Icons ---------------------------------------- */
.features--icon li { gap: 1.1rem; }
.features--icon .ic {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  color: var(--navy);
}
.features--icon .ic svg { width: 22px; height: 22px; }

/* CTA-Kontaktoptionen -------------------------------------------- */
.cta-contact {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.6rem; margin-top: 1.4rem;
}
.cta-contact a, .cta-contact span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--on-navy); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.cta-contact a:hover { color: #fff; }
.cta-contact svg { width: 20px; height: 20px; color: var(--gold-soft); }

@media (max-width: 900px) {
  .cert-hero .wrap { grid-template-columns: 1fr; }
}

/* Footer --------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  font-size: 1rem;
}
.site-footer .wrap { padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 {
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft);
  margin: 0 0 1rem;
}
.site-footer .brand b { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: var(--on-navy-soft); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-navy);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.9rem; color: var(--on-navy-soft);
}

/* Entrance animation --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.18s; }
  .reveal-3 { animation-delay: 0.31s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Scroll-Reveal (IntersectionObserver) --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--rd, 0) * 90ms);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* Gutachtenablauf: Schritt-für-Schritt-Timeline ------------------ */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(var(--gold) 0%, var(--gold-soft) 35%, var(--line) 100%);
}
.step {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem;
  padding-bottom: 2.2rem;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  box-shadow: 0 0 0 6px var(--cream-200);
}
.step-body h3 { margin: 0.55rem 0 0.3rem; }
.step-body p { color: var(--ink-soft); margin: 0; }

/* Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active { border-color: var(--gold); }

  /* Dropdown inline statt schwebend */
  .has-dropdown { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: grid; }
  .dropdown a { padding: 0.6rem 0; }
  .nav-links .btn { margin-top: 0.8rem; width: 100%; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
