/* Bernhard Fischer Immobilienclearings — Design-System (siehe DESIGN.md) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --copper: #c8946e;
  --copper-hover: #a87559;
  --bg-light: #fbf9f6;
  --bg-beige: #f3ede4;
  --text-dark: #1a1a1a;
  --text-muted: #6a6a6a;
  --radius-card: 16px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
}

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

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.logo img { height: 64px; width: auto; }

nav.main-nav { display: flex; gap: 32px; }
nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--copper); }
nav.main-nav a.active { color: var(--copper); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-dark); line-height: 1; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--copper); border: 1.5px solid var(--copper); }
.btn-outline:hover { background: var(--copper); color: #fff; }
.btn-white { background: #fff; color: var(--copper); }
.btn-white:hover { background: var(--bg-beige); }

/* Sections */
section { padding: 88px 0; }
section.beige { background: var(--bg-beige); }
section.copper {
  background: linear-gradient(135deg, var(--copper), var(--copper-hover));
  color: #fff;
}
section.copper h2, section.copper p { color: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
p { color: var(--text-muted); }
p.lead { font-size: 1.15rem; }

/* Hero */
.hero { padding: 100px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero p { color: var(--text-muted); font-size: 1.15rem; margin: 22px 0 32px; max-width: 540px; }
.hero-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero.centered { text-align: center; }
.hero.centered .hero-grid { display: block; }
.hero.centered p { margin-left: auto; margin-right: auto; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 16px;
}

.beige .card, section:not(.beige) .card.on-light { background: var(--bg-light); }

/* List with checkmarks */
ul.check-list { list-style: none; margin-top: 16px; }
ul.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
ul.check-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}
ul.check-list li:last-child { border-bottom: none; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.step { text-align: center; }
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

/* Two column text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-card);
  aspect-ratio: 4/3;
  background: var(--bg-beige);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: hidden;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pricing */
.price-box {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.price-row:last-child { border-bottom: none; }
.price-row .amount { color: var(--copper); font-weight: 700; }

/* Testimonials */
.testimonial {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative;
}
.testimonial .quote-mark { font-size: 2.5rem; color: var(--copper); opacity: 0.3; line-height: 1; }
.testimonial p.text { color: var(--text-dark); font-style: italic; margin: 12px 0 16px; }
.testimonial .author { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.testimonial.placeholder { opacity: 0.6; border: 1.5px dashed rgba(0,0,0,0.15); box-shadow: none; }

/* CTA section */
section.copper { text-align: center; }
section.copper .btn-white { margin-top: 24px; }

/* Form */
.contact-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-status-ok { background: #eaf4ea; color: #2f6b34; }
.form-status-error { background: #fbeaea; color: #9c3030; }
.form-status-error a { color: #9c3030; text-decoration: underline; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-light);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--copper);
}
.form-row.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-row.checkbox input { width: auto; }
.form-row.checkbox label { font-weight: 400; font-size: 0.88rem; margin-bottom: 0; }

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-detail { margin-bottom: 18px; }
.contact-detail .label { font-size: 0.82rem; color: var(--copper); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-detail .value { font-size: 1.05rem; font-weight: 600; }

/* Footer */
footer.site-footer {
  background: #29282a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--copper); }
.footer-logo { height: 56px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--copper); }

/* Legal pages */
.legal-content h2 { margin-top: 36px; font-size: 1.3rem; }
.legal-content h3 { margin-top: 20px; font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 14px; }
.legal-content a { color: var(--copper); text-decoration: underline; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }

/* Responsive */
@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-toggle { display: block; order: 1; margin-left: 12px; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .header-inner .btn-primary { padding: 8px 16px !important; font-size: 0.8rem !important; }
  .hero-grid, .split, .contact-info-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
