/* ============================================================
   R & N Immobilien GmbH — Global Stylesheet
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #E8967A;
  --accent-dk: #d4815f;
  --charcoal:  #1e1e1e;
  --mid:       #4a4a4a;
  --light:     #888888;
  --rule:      #e8e0d8;
  --bg:        #ffffff;
  --bg-off:    #f9f7f5;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout helpers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 22px 24px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.2;
}

.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* accent rule */
.nav-rule {
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding: 112px 24px 100px;
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--charcoal);
  max-width: 780px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.03em;
  margin-bottom: 44px;
  max-width: 560px;
}

.hero-sub strong {
  font-weight: 500;
  color: var(--charcoal);
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
.btn:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
section {
  padding: var(--section-pad);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.section-rule {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 36px;
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
#ueber-uns {
  background: var(--bg-off);
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ueber-text p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.ueber-text p:last-child { margin-bottom: 0; }

.ueber-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.stat-item {
  border-top: 1.5px solid var(--rule);
  padding-top: 20px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--light);
  text-transform: uppercase;
}

/* ============================================================
   WAS WIR SUCHEN
   ============================================================ */
#was-wir-suchen {
  background: var(--bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.card {
  border: 1px solid var(--rule);
  padding: 44px 36px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--accent);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ============================================================
   VORTEILE
   ============================================================ */
#vorteile {
  background: var(--bg-off);
}

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 12px;
}

.vorteil {
  position: relative;
  padding-top: 28px;
}

.vorteil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1.5px;
  background: var(--accent);
}

.vorteil-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.vorteil-text {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt {
  background: var(--charcoal);
  color: #fff;
}

#kontakt .section-label { color: var(--accent); }
#kontakt .section-heading { color: #fff; }
#kontakt .section-rule { background: var(--accent); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.kontakt-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 36px;
}

.kontakt-details {
  list-style: none;
}

.kontakt-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.kontakt-details li:last-child { margin-bottom: 0; }

.kd-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.kd-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}

.kd-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.kd-value a { color: var(--accent); }
.kd-value a:hover { text-decoration: underline; }

/* contact form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select option { background: #1e1e1e; color: #fff; }

.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #141414;
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   LEGAL PAGES (impressum / datenschutz)
   ============================================================ */
.legal-page {
  padding: 80px 24px 96px;
  min-height: calc(100vh - 200px);
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.legal-accent-rule {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 1.4em;
  margin-bottom: 10px;
}

.legal-page a { color: var(--accent); }
.legal-page a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ueber-grid,
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vorteile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px 20px; }

  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-toggle { display: flex; }

  .cards-grid { grid-template-columns: 1fr; }
  .vorteile-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  #hero { padding: 72px 20px 64px; }

  .ueber-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .vorteile-grid { grid-template-columns: 1fr; }
}
