/* =========================================================
   DG Immobilien Rhein-Neckar – Website Stylesheet
   ========================================================= */

:root {
  --navy: #0a2a52;
  --navy-dark: #071c38;
  --navy-light: #1c3f6e;
  --gold: #bb8f3b;
  --gold-light: #d9b968;
  --cream: #faf7f0;
  --white: #ffffff;
  --grey-100: #f4f5f7;
  --grey-300: #d9dce1;
  --grey-500: #8a92a1;
  --grey-700: #4a5163;
  --text: #1e2430;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 42, 82, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 42, 82, 0.16);
  --max-width: 1180px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: var(--grey-700); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--grey {
  background: var(--grey-100);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--primary:hover { background: var(--gold-light); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-300);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 48px; width: auto; }

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

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

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--gold);
}

/* Der "Kostenlose Bewertung"-Button in der Nav ist selbst ein <a>, soll aber
   wie ein Button aussehen (weißer Text auf Navy), nicht wie ein Nav-Link. */
.main-nav a.btn,
.main-nav a.btn:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,143,59,0.25) 0%, rgba(187,143,59,0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold-light);
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.hero-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card .price {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.6rem;
  margin: 10px 0;
}
.hero-card ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.hero-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--grey-300);
  font-size: 0.92rem;
}
.hero-card ul li span:first-child { color: var(--grey-500); }
.hero-card ul li span:last-child { font-weight: 600; color: var(--navy); }
.badge {
  display: inline-block;
  background: rgba(187,143,59,0.14);
  color: var(--gold);
  border: 1px solid rgba(187,143,59,0.35);
  border-radius: 30px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Property listing ---------- */
.property-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grey-300);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.property-media {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px;
  min-height: 320px;
}
.property-body {
  padding: 40px;
}
.property-body .status {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.property-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
  list-style: none;
  padding: 0;
}
.property-facts li {
  font-size: 0.9rem;
  color: var(--grey-700);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}
.property-facts li strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.notice-box {
  background: var(--grey-100);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--grey-700);
  margin-top: 20px;
}

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 130px; }

/* ---------- Region photo ---------- */
.region-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .region-photo { height: 320px; }
}

/* ---------- Profile photo ---------- */
.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.profile-name {
  text-align: center;
  margin-bottom: 4px;
}
.profile-role {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #ffffff; }

.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn--whatsapp:hover { background: #1ebc59; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 36px; margin-bottom: 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { margin-bottom: 12px; color: var(--grey-700); }
.legal-content ul { padding-left: 22px; }
.todo {
  background: #fff6e0;
  border: 1px dashed var(--gold);
  color: #7a5c14;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  margin: 14px 0;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .property-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--grey-300);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
}
