/*
Theme Name: Der Bodendoktor
Theme URI: https://derbodendoktor.at
Author: Der Bodendoktor
Description: Minimalistisches One-Page-Theme für Der Bodendoktor, Spezialist für Kunstharzböden. Enthält Startseite, Impressum und Datenschutz gemäß österreichischen Vorgaben.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: der-bodendoktor
*/

/* ============================================================
   DER BODENDOKTOR — Design Tokens
   Palette:
   --anthrazit  #1C1F1D  (Text, dunkle Flächen)
   --nebel      #F7F6F3  (Haupt-Hintergrund, hell)
   --stein      #E7E2D8  (Sekundär-Hintergrund, warmer Screed-Ton)
   --harz       #B8863A  (Akzent — Farbe des ausgehärteten Kunstharzes)
   --harz-hell  #D9AE63  (Akzent hell, für Verläufe)
   --rauch      #6E7168  (Sekundärtext, Linien)
   Typografie:
   Display  -> fette, breit getrackte Systemgrotesk (Präzision/Technik)
   Eyebrow  -> serifenkursiv (Handwerk/Handschrift)
   Body     -> Systemgrotesk regulär
   ============================================================ */

:root {
  --anthrazit: #1c1f1d;
  --nebel: #f7f6f3;
  --stein: #e7e2d8;
  --harz: #b8863a;
  --harz-hell: #d9ae63;
  --rauch: #6e7168;
  --linie: rgba(28, 31, 29, 0.12);

  --font-display: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-eyebrow: Georgia, "Times New Roman", serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--anthrazit);
  background: var(--nebel);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Focus & Utility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--harz);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-eyebrow);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--harz);
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--harz);
  color: var(--nebel);
}
.btn-primary:hover { background: var(--anthrazit); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--anthrazit);
  border: 1px solid var(--linie);
}
.btn-ghost:hover { border-color: var(--harz); color: var(--harz); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--anthrazit);
  position: relative;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--harz);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
nav.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthrazit);
  margin: 5px 0;
}

@media (max-width: 800px) {
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--nebel);
    border-bottom: 1px solid var(--linie);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 28px 22px;
  }
  nav.main-nav li { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--harz);
}
.hero p.lead {
  font-size: 1.08rem;
  color: #3c3f3b;
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Signature: resin pour visual */
.resin-pour {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 62% 68%, var(--harz-hell) 0%, var(--harz) 46%, #8f651f 100%);
  box-shadow: 0 30px 70px -20px rgba(184, 134, 58, 0.55), inset 0 0 40px rgba(0,0,0,0.08);
  animation: pour-in 1.1s ease-out both, sheen 6s ease-in-out infinite 1.1s;
}
@keyframes pour-in {
  from { transform: scale(0.65); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes sheen {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}
.resin-pour::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Amber divider used between sections */
.pool-divider {
  height: 3px;
  width: 84px;
  margin: 0 0 26px;
  background: linear-gradient(90deg, var(--harz), var(--harz-hell));
  border-radius: 2px;
}

/* ---------- Section basics ---------- */
section { padding: 92px 0; }
.section-alt { background: var(--stein); }
h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 14px;
}
.section-intro { max-width: 62ch; color: #3c3f3b; margin: 0 0 48px; }

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
}
.service-card {
  background: var(--nebel);
  padding: 34px 30px;
  transition: background 0.2s ease;
}
.service-card:hover { background: #fffdf8; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.service-card p { margin: 0; color: #4a4d47; font-size: 0.96rem; }
.service-mark {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--harz);
  margin-bottom: 16px;
}

/* ---------- Ablauf (echter Prozess -> Nummerierung gerechtfertigt) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--harz);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 10px;
}
.process-step p { margin: 0; color: #4a4d47; font-size: 0.96rem; }

@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .resin-pour { max-width: 280px; margin: 0 auto; }
}

/* ---------- Über uns ---------- */
.about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about blockquote {
  font-family: var(--font-eyebrow);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--anthrazit);
  border-left: 3px solid var(--harz);
  padding-left: 22px;
  margin: 0;
}
.about-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.about-facts li { display: flex; gap: 12px; font-size: 0.96rem; }
.about-facts li::before { content: "—"; color: var(--harz); }
.placeholder-text { color: var(--harz); font-style: italic; }

@media (max-width: 800px) {
  .about .wrap { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.contact-card {
  background: var(--anthrazit);
  color: var(--nebel);
  border-radius: 4px;
  padding: 54px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}
.contact-card h2 { color: var(--nebel); }
.contact-card .section-intro-dark { color: #c9cbc6; max-width: 50ch; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact-list a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(247,246,243,0.25);
  padding-bottom: 4px;
}
.contact-list a:hover { border-color: var(--harz); color: var(--harz-hell); }
.contact-list span.label {
  display: block;
  font-family: var(--font-eyebrow);
  font-style: italic;
  color: var(--harz-hell);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.contact-note {
  align-self: end;
  font-size: 0.88rem;
  color: #a9aca4;
  border-top: 1px solid rgba(247,246,243,0.18);
  padding-top: 20px;
}

@media (max-width: 800px) {
  .contact-card { grid-template-columns: 1fr; padding: 38px 26px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--linie);
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--rauch);
}
footer.site-footer a { text-decoration: none; }
footer.site-footer nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
footer.site-footer nav a:hover { color: var(--harz); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page { padding: 70px 0 110px; }
.legal-page h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 34px;
}
.legal-page h2 {
  font-size: 1.05rem;
  margin: 40px 0 12px;
}
.legal-page p, .legal-page li { color: #3c3f3b; font-size: 0.98rem; }
.legal-page ul { padding-left: 20px; }
.legal-page .placeholder {
  color: var(--harz);
  font-style: italic;
}
.legal-page a.back {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--rauch);
}
.legal-page a.back:hover { color: var(--harz); }
