/* ═══════════════════════════════════════════════════════════════
   Traumstart e.V. — Gemeinsame Styles
   Wird von allen Seiten eingebunden via <link rel="stylesheet">
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif; color: #4A6670; background: #F8F9FA; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── CSS Custom Properties ── */
:root {
  --teal-dark: #0A6D82;
  --teal: #16AABD;
  --teal-light: #D0EDF1;
  --teal-pale: #EAF6F8;
  --orange: #FF9933;
  --orange-light: #FFF3E0;
  --red: #D31217;
  --dark: #1A2A30;
  --medium: #4A6670;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --border: #DCE8EB;
  --font-h: 'Roboto Slab', Georgia, serif;
  --font-b: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --max-w: 1200px;
}

h1, h2, h3, h4 { font-family: var(--font-h); color: var(--teal-dark); }

/* ── Layout Helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { margin-bottom: 48px; }
.section-title .eyebrow { font-family: var(--font-b); font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section-title h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.section-title .subtitle { font-size: 16px; line-height: 1.65; color: var(--medium); margin-top: 12px; max-width: 560px; }
.section-title.center { text-align: center; }
.section-title.center .subtitle { margin-left: auto; margin-right: auto; }

/* ── Grid System ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex-row { display: flex; gap: 56px; align-items: stretch; }

/* ── NAV ── */
.nav { width: 100%; height: 72px; background: var(--white); display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 12px rgba(10,109,130,0.08); border-bottom: 2px solid var(--teal-light); }
.nav-inner { width: 100%; max-width: var(--max-w); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-svg { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--dark); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-cta { font-family: var(--font-h); font-size: 13px; font-weight: 800; color: var(--white); background: var(--orange); padding: 10px 24px; border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,0.15); }
/* Überschreibt die .nav-links a-Regel (höhere Spezifität 0,2,0 vs. 0,1,1) */
.nav-links .nav-cta { color: var(--white); border-bottom: none; padding-bottom: 10px; }
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { color: var(--white); border-bottom-color: transparent; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 999; flex-direction: column; padding: 24px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--dark); padding: 16px 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-menu .mobile-cta { font-size: 16px; font-weight: 800; color: var(--white); background: var(--orange); padding: 16px 24px; border-radius: 10px; text-align: center; margin-top: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ── HERO (Basis) ── */
.hero { width: 100%; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1EC6D4 100%); display: flex; align-items: center; justify-content: center; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 900; color: white; letter-spacing: -0.03em; }

/* ── IMAGE-TEXT COMBO ── */
.img-text { display: flex; gap: 56px; align-items: stretch; }
.img-text.reversed { flex-direction: row-reverse; }
.img-text-image { flex: 1; min-height: 320px; border-radius: 16px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.img-text-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.img-text-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.img-text-content .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.img-text-content h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; margin-bottom: 14px; letter-spacing: -0.02em; line-height: 1.2; }
.img-text-content p { font-size: 15px; line-height: 1.75; color: var(--medium); margin-bottom: 24px; }
.img-text-content .link { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ── PERSON CARD ── */
.person-card { background: var(--white); border-radius: 16px; overflow: hidden; text-align: center; border: 1px solid var(--border); }
.person-photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-photo span { font-family: var(--font-h); font-size: 42px; font-weight: 900; color: var(--teal-dark); }
.person-card-body { padding: 20px 24px 24px; }
.person-card-body h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.person-card-body .role { font-size: 13px; color: var(--teal); }
/* Legacy fallback */
.person-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; border: 3px solid rgba(22,170,189,0.19); }
.person-avatar span { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--teal-dark); }
.person-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.person-card .role { font-size: 13px; color: var(--teal); }

/* ── CTA BANNER ── */
.cta-banner { width: 100%; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-dark), var(--teal) 70%, #1EC6D4); border-radius: 20px; padding: 64px 40px; text-align: center; }
.cta-banner h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; color: white; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn-white { font-family: var(--font-h); font-size: 15px; font-weight: 800; color: var(--teal-dark); background: white; padding: 14px 32px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.cta-btns .btn-orange { font-family: var(--font-h); font-size: 15px; font-weight: 800; color: white; background: var(--orange); padding: 14px 32px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ── LEGAL CONTENT (Impressum & Datenschutz) ── */
.legal-content { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px; background: var(--white); }
.legal-content h3 { font-size: 20px; font-weight: 800; margin-top: 40px; margin-bottom: 12px; color: var(--teal-dark); line-height: 1.3; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; color: var(--medium); }

/* ── FOOTER ── */
.footer { background: var(--teal-dark); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer h4 { font-family: var(--font-b); font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer a, .footer span.addr { font-size: 13px; color: rgba(255,255,255,0.55); display: block; margin-bottom: 10px; line-height: 1.5; }
.footer a:hover { color: rgba(255,255,255,0.8); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo span { font-family: var(--font-h); font-size: 18px; font-weight: 800; color: white; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-partner { text-align: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-bottom a { font-size: 11px; color: rgba(255,255,255,0.3); margin-left: 20px; }

/* ── RESPONSIVE (Gemeinsam) ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-svg { height: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .flex-row, .img-text, .img-text.reversed { flex-direction: column; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }
  .cta-banner { padding: 48px 24px; }
}
@media (max-width: 600px) {
  .nav-logo-svg { height: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: auto; }
  .legal-content { padding: 40px 20px; }
  .legal-content h3 { margin-top: 32px; font-size: 18px; }
  .legal-content p { font-size: 14px; }
}
