/* ═══════════════════════════════════════════════════════════════
   Reitsport NRW Theme
   Colors extracted from reitsport-nrw.de for brand continuity.
   Prefix: rs-
   ═══════════════════════════════════════════════════════════════ */

:root {
  --rs-primary: #B74D3B;
  --rs-primary-dark: #9A3F30;
  --rs-primary-light: rgba(183, 77, 59, 0.1);
  --rs-gold: #89744D;
  --rs-tan: #B4A179;
  --rs-cream: #f8f8f8;
  --rs-cream-dark: #E9DEC3;
  --rs-white: #ffffff;
  --rs-text: #212121;
  --rs-text-light: #555555;
  --rs-text-muted: #888888;
  --rs-border: #e0e0e0;
  --rs-shadow: rgba(0, 0, 0, 0.08);
  --rs-radius: 8px;
  --rs-max-width: 1200px;
  --rs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Theme bridge variables */
  --theme-brand: #B74D3B;
  --theme-brand-dark: #9A3F30;
  --theme-brand-light: rgba(183, 77, 59, 0.1);
  --theme-bg: #ffffff;
  --theme-bg-light: #f8f8f8;
  --theme-text: #212121;
  --theme-text-secondary: #555555;
  --theme-text-muted: #888888;
  --theme-border: #e0e0e0;
  --theme-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --theme-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --theme-radius: 8px;
  --theme-container-max: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--rs-font);
  color: var(--rs-text);
  background: var(--rs-white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rs-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rs-primary-dark); }

.container {
  max-width: var(--rs-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Navigation ───────────────────────────────────── */
.rs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rs-border);
}

.rs-nav-inner {
  max-width: var(--rs-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.rs-logo img { transition: opacity 0.2s; }
.rs-logo:hover img { opacity: 0.8; }

.rs-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.rs-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rs-text);
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.rs-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rs-primary);
  transition: width 0.3s ease;
}

.rs-nav-link:hover,
.rs-nav-link--active {
  color: var(--rs-primary);
}

.rs-nav-link:hover::after,
.rs-nav-link--active::after {
  width: 100%;
}

.rs-nav-actions { display: flex; align-items: center; gap: 1rem; }

.rs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--rs-primary);
  color: var(--rs-white);
  border: 2px solid var(--rs-primary);
  border-radius: var(--rs-radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
}

.rs-btn-primary:hover {
  background: transparent;
  color: var(--rs-primary);
}

/* Hamburger */
.rs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.rs-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rs-text);
  transition: all 0.3s;
}

.rs-hamburger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.rs-hamburger--open span:nth-child(2) { opacity: 0; }
.rs-hamburger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.rs-mobile-menu {
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-border);
}

.rs-mobile-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--rs-text);
  border-bottom: 1px solid var(--rs-border);
}

.rs-mobile-link:last-child { border-bottom: none; }
.rs-mobile-link:hover { color: var(--rs-primary); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section,
.team-hero,
.service-hero,
.contact-hero,
.legal-hero {
  background: var(--rs-cream);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-section h1,
.team-hero-title,
.service-hero h1,
.contact-hero h1,
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--rs-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section .hero-subtitle,
.team-hero-subtitle,
.service-hero p,
.contact-hero p,
.legal-hero p {
  font-size: 1.1rem;
  color: var(--rs-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero accent line */
.hero-section h1::after,
.team-hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rs-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── Features Grid (Services overview on home) ─────────────── */
.features-section {
  padding: 5rem 0;
}

.features-section .section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rs-primary);
  margin-bottom: 0.75rem;
}

.features-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-section .section-subtitle {
  color: var(--rs-text-light);
  max-width: 600px;
  margin-bottom: 3rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--rs-primary);
  box-shadow: 0 8px 24px var(--rs-shadow);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--rs-text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--rs-text-light);
  line-height: 1.7;
}

/* ── About Block (Home) ────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
  background: var(--rs-cream);
}

.about-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-section .about-subtitle {
  color: var(--rs-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-section p {
  color: var(--rs-text-light);
  margin-bottom: 1rem;
  max-width: 700px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rs-border);
}

.about-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rs-primary);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--rs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-section .section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rs-primary);
  margin-bottom: 0.75rem;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--rs-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ── Team Page ─────────────────────────────────────────────── */
.team-section {
  padding: 4rem 0 5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
}

.team-card:hover {
  box-shadow: 0 8px 24px var(--rs-shadow);
  transform: translateY(-2px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rs-cream);
  color: var(--rs-text-muted);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.25rem 1.5rem 0.25rem;
  color: var(--rs-text);
}

.team-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rs-primary);
  margin: 0 1.5rem 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--rs-text-light);
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
}

.team-empty {
  text-align: center;
  color: var(--rs-text-muted);
  font-size: 1rem;
  padding: 3rem 0;
}

/* ── Service Detail Page ───────────────────────────────────── */
.svc-detail {
  padding: 4rem 0 5rem;
}

.svc-detail h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--rs-text);
}

.svc-detail p,
.svc-detail li {
  color: var(--rs-text-light);
  line-height: 1.8;
}

.svc-features {
  list-style: none;
  padding: 0;
}

.svc-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.svc-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rs-primary);
}

.svc-faq { margin-top: 3rem; }
.svc-faq-item { border-bottom: 1px solid var(--rs-border); padding: 1.25rem 0; }
.svc-faq-q { font-weight: 600; color: var(--rs-text); margin-bottom: 0.5rem; }
.svc-faq-a { color: var(--rs-text-light); }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rs-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  font-family: var(--rs-font);
  font-size: 0.9rem;
  color: var(--rs-text);
  background: var(--rs-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rs-primary);
  box-shadow: 0 0 0 3px var(--rs-primary-light);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--rs-primary);
  color: var(--rs-white);
  border: 2px solid var(--rs-primary);
  border-radius: var(--rs-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background: transparent;
  color: var(--rs-primary);
}

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p { margin-bottom: 1rem; color: var(--rs-text-light); }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { color: var(--rs-text-light); margin-bottom: 0.5rem; }

/* ── Footer ────────────────────────────────────────────────── */
.rs-footer {
  background: var(--rs-cream);
  border-top: 1px solid var(--rs-border);
  padding: 3rem 0 0;
}

.rs-footer-inner {
  max-width: var(--rs-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rs-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.rs-footer-tagline {
  color: var(--rs-text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.rs-footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rs-text);
  margin-bottom: 1rem;
}

.rs-footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }

.rs-footer-link {
  font-size: 0.9rem;
  color: var(--rs-text-light);
  transition: color 0.2s;
}

.rs-footer-link:hover { color: var(--rs-primary); }

.rs-footer-address {
  font-size: 0.9rem;
  color: var(--rs-text-light);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.rs-footer-bottom {
  border-top: 1px solid var(--rs-border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--rs-text-muted);
}

.rs-footer-legal-link {
  color: var(--rs-text-muted);
  margin-left: 1.5rem;
}

.rs-footer-legal-link:hover { color: var(--rs-primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rs-nav-links { display: none; }
  .rs-hamburger { display: flex; }
  .rs-btn-primary { display: none; }

  .rs-footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rs-footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .rs-footer-legal-link { margin-left: 0; margin-right: 1rem; }

  .hero-section,
  .team-hero,
  .service-hero,
  .contact-hero,
  .legal-hero {
    padding: 3rem 0;
  }

  .features-section,
  .about-section,
  .cta-section,
  .team-section,
  .svc-detail {
    padding: 3rem 0;
  }

  .team-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .rs-nav-inner { height: 60px; }

  .hero-section h1,
  .team-hero-title,
  .rs-hero-h1 { font-size: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   RS-prefixed classes used by reitsport home page handler
   ═══════════════════════════════════════════════════════════════ */

.rs-container {
  max-width: var(--rs-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.rs-hero {
  position: relative;
  background: var(--rs-cream);
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.rs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(183,77,59,0.04) 0%, transparent 50%, rgba(137,116,77,0.04) 100%);
  pointer-events: none;
}

.rs-hero-content { position: relative; z-index: 1; }

.rs-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--rs-primary-light);
  color: var(--rs-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.rs-hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--rs-text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.rs-hero-h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rs-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.rs-hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rs-text-light);
  margin-bottom: 1.25rem;
}

.rs-accent { color: var(--rs-primary); margin: 0 0.5rem; }

.rs-hero-sub {
  font-size: 1rem;
  color: var(--rs-text-light);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.rs-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--rs-radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.rs-btn-primary {
  background: var(--rs-primary);
  color: var(--rs-white);
  border-color: var(--rs-primary);
}

.rs-btn-primary:hover {
  background: var(--rs-primary-dark);
  border-color: var(--rs-primary-dark);
  color: var(--rs-white);
}

.rs-btn-outline {
  background: transparent;
  color: var(--rs-text);
  border-color: var(--rs-border);
}

.rs-btn-outline:hover {
  border-color: var(--rs-primary);
  color: var(--rs-primary);
}

/* ── Section ──────────────────────────────────────────────── */
.rs-section {
  padding: 5rem 0;
}

.rs-section-alt {
  background: var(--rs-cream);
}

.rs-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rs-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rs-primary);
  margin-bottom: 0.75rem;
}

.rs-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--rs-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.rs-section-sub {
  font-size: 1rem;
  color: var(--rs-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.rs-body {
  color: var(--rs-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ── Grid ─────────────────────────────────────────────────── */
.rs-grid {
  display: grid;
  gap: 1.5rem;
}

.rs-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ── Service Card ─────────────────────────────────────────── */
.rs-service-card {
  display: block;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--rs-text);
  transition: all 0.3s;
}

.rs-service-card:hover {
  border-color: var(--rs-primary);
  box-shadow: 0 8px 24px var(--rs-shadow);
  transform: translateY(-3px);
  color: var(--rs-text);
}

.rs-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--rs-primary-light);
  color: var(--rs-primary);
  margin-bottom: 1.25rem;
}

.rs-service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--rs-text);
}

.rs-service-desc {
  font-size: 0.9rem;
  color: var(--rs-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.rs-link-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rs-primary);
  transition: gap 0.2s;
}

.rs-service-card:hover .rs-link-text { text-decoration: underline; }

/* ── About Grid ───────────────────────────────────────────── */
.rs-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.rs-about-content .rs-h2 { text-align: left; }
.rs-about-sub {
  color: var(--rs-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.rs-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rs-stat {
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  padding: 1.5rem;
  text-align: center;
}

.rs-stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rs-primary);
  margin-bottom: 0.4rem;
}

.rs-stat-label {
  font-size: 0.78rem;
  color: var(--rs-text-muted);
  line-height: 1.4;
}

/* ── CTA ──────────────────────────────────────────────────── */
.rs-cta {
  background: var(--rs-cream);
}

/* ── Responsive (rs-prefixed) ─────────────────────────────── */
@media (max-width: 768px) {
  .rs-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rs-about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .rs-grid-4 {
    grid-template-columns: 1fr;
  }

  .rs-hero { padding: 4rem 0 3rem; }
  .rs-section { padding: 3rem 0; }
  .rs-hero-actions { flex-direction: column; }
  .rs-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .rs-hero-h1 { font-size: 1.75rem; }
  .rs-about-stats { grid-template-columns: 1fr; }
}
