/* ===========================
   CSS DESIGN SYSTEM
   ch-bauabrechnung.de
   =========================== */

:root {
  --accent: #C8A97E;
  --accent-dark: #A8895F;
  --warm-bg: #F5EFE6;
  --text-dark: #2B2B2B;
  --text-mid: #555555;
  --text-light: #888888;
  --white: #FFFFFF;
  --dark-bg: #1E1E1E;
  --border: #E5DDD3;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius: 6px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* CONTAINER */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTIONS */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-light { background: #FAFAF8; }
.section-warm { background: var(--warm-bg); }
.section-dark { background: var(--dark-bg); }
.section-accent { background: #2C2419; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--text-dark); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 0.3rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-kicker.light { color: var(--accent); }
.section-kicker.center { text-align: center; }

.section-title { text-align: center; margin-bottom: 1rem; }
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.center { text-align: center; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.full-width { width: 100%; text-align: center; }

/* ===========================
   NAVIGATION
   =========================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}
#site-header.scrolled .logo-name,
#site-header.scrolled .logo-sub { color: var(--text-dark); }
#site-header.scrolled .nav-links a { color: var(--text-dark); }
#site-header.scrolled .nav-links a:hover { color: var(--accent); }
#site-header.scrolled .nav-cta { color: var(--white) !important; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
#site-header.scrolled .logo-name { color: var(--text-dark); }
#site-header.scrolled .logo-sub { color: var(--text-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s;
}
#site-header.scrolled .nav-toggle span { background: var(--text-dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('Hero-Baustelle Vogelperspektive.jpg') center center / cover no-repeat;
  padding: 120px 40px 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,15,10,0.75) 0%, rgba(30,20,10,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ===========================
   INTRO / POSITIONIERUNG
   =========================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text p { margin-bottom: 1.2rem; }
.intro-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ===========================
   CHALLENGES
   =========================== */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.challenge-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.challenge-icon {
  color: var(--accent);
  font-size: 0.5rem;
  margin-bottom: 0.8rem;
}
.challenge-card h3 { color: var(--text-dark); margin-bottom: 0.6rem; }
.challenge-card p { font-size: 0.93rem; margin: 0; }

/* ===========================
   SERVICES
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 2rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 1rem; }
.service-card ul {
  list-style: none;
  padding: 0;
}
.service-card ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.service-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.services-note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--warm-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.services-note p { margin: 0; font-size: 0.93rem; color: var(--text-mid); }

/* ===========================
   BENEFITS
   =========================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}
.benefit-item h4 { color: var(--text-dark); margin-bottom: 0.25rem; }
.benefit-item p { font-size: 0.92rem; margin: 0; }

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1.2rem; }
.about-facts {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.fact { display: flex; flex-direction: column; }
.fact-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.fact-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ===========================
   ARBEITSWEISE / DISKRETION
   =========================== */
.section-accent h2, .section-accent p, .section-accent span {
  color: var(--white);
}
.section-accent p { color: rgba(255,255,255,0.75); }
.section-accent h2 { color: var(--white); }

.discretion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.discretion-text h2 { color: var(--white); margin-bottom: 1.2rem; }
.discretion-text p { color: rgba(255,255,255,0.78); margin-bottom: 1.2rem; }
.discretion-text p strong { color: var(--white); }

.discretion-list { display: flex; flex-direction: column; gap: 1rem; }
.dl-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.dl-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dl-item span { color: rgba(255,255,255,0.85); font-size: 0.93rem; }

/* ===========================
   HONORAR
   =========================== */
.honorar-container { text-align: center; }
.honorar-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.hf-item {
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}
.honorar-note {
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--text-mid);
}

/* ===========================
   REFERENZEN
   =========================== */
.ref-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ref-table thead { background: var(--text-dark); }
.ref-table thead th {
  padding: 1rem 1.2rem;
  text-align: left;
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ref-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.ref-table tbody tr:hover { background: var(--warm-bg); }
.ref-table tbody tr:last-child { border-bottom: none; }
.ref-table td {
  padding: 0.85rem 1.2rem;
  color: var(--text-mid);
  vertical-align: top;
}
.ref-table td:first-child { font-weight: 500; color: var(--text-dark); }
.ref-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===========================
   KONTAKT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info .light-text { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item .ci-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.contact-item .ci-value {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.7;
}
.contact-item .ci-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}
.contact-item a { color: var(--accent); }
.contact-item a:hover { color: var(--accent-dark); }

/* ===========================
   KONTAKT MAIL BOX
   =========================== */
.contact-mail-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.mail-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
}
.mail-icon svg { width: 100%; height: 100%; }
.contact-mail-box h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0;
}
.contact-mail-box p {
  color: rgba(255,255,255,0.72);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.mail-btn {
  font-size: 0.93rem;
  word-break: break-all;
}
.mail-note {
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.5) !important;
}
.mail-note a {
  color: var(--accent);
}
.mail-note a:hover {
  color: var(--accent-dark);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #141414;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
}
.footer-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-sans) !important;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-dark) !important; }
  .nav-cta { background: var(--accent) !important; }
  .nav-container { padding: 18px 24px; }

  .hero { padding: 120px 24px 60px; }
  .hero-actions { flex-direction: column; max-width: 280px; }

  .intro-grid,
  .about-grid,
  .discretion-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .intro-image { order: -1; }
  .intro-image img,
  .about-image img { height: 260px; }

  .challenges-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  .about-facts { gap: 1.5rem; }
  .contact-form-wrap { padding: 1.8rem; }
  .section { padding: 64px 0; }
}

@media (max-width: 580px) {
  .challenges-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 0.6rem; }
  .honorar-factors { flex-direction: column; align-items: center; }
  .about-facts { flex-direction: column; gap: 1.2rem; }
  .footer-links { gap: 1rem; }
  .ref-table { font-size: 0.8rem; }
  .ref-table th, .ref-table td { padding: 0.65rem 0.8rem; }
}
