/* ==========================================================
   main.css — TTC Rheindahlen 1950
   Page layout, hero section, buttons, and general content styles.
   Depends on: variables.css
   ========================================================== */

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */
.main-content { flex: 1; }

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

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

.section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s;
  border: none;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: rgb(var(--text-rgb) / 0.7);
  border: 1px solid rgb(var(--text-rgb) / 0.2);
}
.btn--ghost:hover { color: var(--white); border-color: rgb(var(--text-rgb) / 0.5); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.hero-content { flex: 1; }

/* ── Text ────────────────────────────────────────────────── */
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title span { color: var(--red); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgb(var(--text-rgb) / 0.5);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-sub p + p { margin-top: 12px; }

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

/* ── Social media panel ──────────────────────────────────── */
.hero-social {
  flex-shrink: 0;
  width: 220px;
  padding-top: 8px;
}

.hero-social-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  text-align: center;
}

.hero-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: rgb(var(--text-rgb) / 0.6);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-social-link:hover {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.4);
  color: var(--white);
}

.hero-social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Light mode: hero has a dark bg, so text must stay white ── */
[data-theme="light"] .hero-title             { color: #ffffff; }
[data-theme="light"] .hero-title span        { color: #ffffff; }
[data-theme="light"] .hero-social-heading   { color: #ffffff; }
[data-theme="light"] .hero-eyebrow   { color: #ffffff; }
[data-theme="light"] .hero-sub               { color: rgba(255, 255, 255, 0.68); }
[data-theme="light"] .hero-social-link       { color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
[data-theme="light"] .hero-social-link:hover { color: #ffffff; }
[data-theme="light"] .hero .btn--ghost       { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.28); }
[data-theme="light"] .hero .btn--ghost:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }

/* ══════════════════════════════════════════════════════════
   HERO — COMPACT VARIANT
   ══════════════════════════════════════════════════════════ */
.hero--compact {
  min-height: auto;
  padding: 72px 0 56px;
}

.hero--compact .hero-inner {
  display: block;
}

.hero--compact .hero-title {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.hero--compact .hero-sub {
  margin-bottom: 0;
  max-width: 760px;
}

/* ══════════════════════════════════════════════════════════
   PROSE CONTENT
   Shared styles for text-heavy inner pages.
   ══════════════════════════════════════════════════════════ */
.prose-section {
  padding-top: 56px;
}

.prose-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.prose-block p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgb(var(--text-rgb) / var(--text-muted-alpha));
}

.prose-block p + p {
  margin-top: 14px;
}

.prose-block p em {
  color: rgb(var(--text-rgb) / 0.85);
  font-style: italic;
}

.prose-quote {
  border-left: 3px solid var(--red);
  margin: 24px 0;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-style: italic;
  color: rgb(var(--text-rgb) / 0.85);
}

.prose-block a {
  color: var(--red);
  font-weight: 600;
  transition: color 0.2s;
}

.prose-block a:hover {
  color: #d64535;
}

.prose-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgb(var(--text-rgb) / var(--text-muted-alpha));
}

.prose-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.prose-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }
  .hero-social { width: 100%; }
  .hero-social-links { flex-direction: row; flex-wrap: wrap; }
  .hero-social-link  { flex: 1; min-width: 140px; }

  .hero--compact {
    padding: 58px 20px 44px;
  }

  .prose-section {
    padding: 44px 20px 72px;
  }
}

@media (max-width: 600px) {
  .hero         { padding: 60px 0; }
  .hero-title   { font-size: 2.5rem; }
}
