/* =============================================
   DR. TOBIAS GLAS – POLITISCHE WEBSITE
   ============================================= */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark:    #162510;
  --blue-mid:     #25461a;
  --blue-accent:  #4a7c28;
  --blue-light:   #d4e8b8;
  --gold:         #c9a84c;
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-300:     #cbd5e1;
  --gray-500:     #64748b;
  --gray-700:     #334155;
  --gray-900:     #0f172a;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(22,37,16,0.10);
  --shadow-lg: 0 12px 48px rgba(22,37,16,0.18);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { color: var(--gray-700); }

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-white { background: var(--white); }
.section-light { background: var(--gray-50); }
.section-dark  { background: var(--blue-dark); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header-light .section-title { color: var(--white); }
.section-header-light .section-intro { color: rgba(255,255,255,0.75); margin-top: 1rem; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.6rem;
}
.section-dark .section-label { color: var(--gold); }

.section-title { color: var(--blue-dark); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}
.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,124,40,0.35);
}

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

/* ---------- NAVIGATION ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 2px 20px rgba(22,37,16,0.25);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-cta {
  background: var(--blue-accent) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
}
.nav-cta:hover { background: #2d5a18 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#hero { position: relative; }

.hero-image-wrapper {
  display: flex;
  justify-content: flex-start;
  order: 1;
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-photo-placeholder {
  display: none;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}

.hero-content { order: 2; }

.hero-content { order: 2; position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-name {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* The section#hero IS the hero — override the .hero grid defaults */
#hero {
  background: linear-gradient(135deg, #0d1a09 0%, #172e10 50%, #2a2010 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 3rem) max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem)) 4rem;
}

/* ---------- INNER PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d1a09 0%, #172e10 50%, #2a2010 100%);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
  color: var(--white);
}
.page-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p { margin-bottom: 1rem; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.about-card:hover { box-shadow: var(--shadow); }

.about-card-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.about-card h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--blue-dark); }
.about-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ---------- TOPICS ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.topic-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.topic-card:hover::before { transform: scaleX(1); }

.topic-icon { font-size: 2rem; margin-bottom: 1rem; }
.topic-card h3 { color: var(--blue-dark); margin-bottom: 0.75rem; }
.topic-card p { font-size: 0.9rem; line-height: 1.65; }

/* ---------- QUOTE ---------- */
.section-quote {
  background: var(--blue-accent);
  padding: 5rem 1.5rem;
}

blockquote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

blockquote p {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

blockquote cite {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--blue-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 86px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--blue-accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--blue-light);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-accent);
  text-align: right;
  padding-top: 0.2rem;
  letter-spacing: 0.02em;
}

.timeline-content { padding-top: 0; }
.timeline-content h3 { color: var(--blue-dark); margin-bottom: 0.35rem; font-size: 1.05rem; }
.timeline-content p { font-size: 0.9rem; }

/* ---------- NEWS ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.news-image-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
}
.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-image-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.85rem;
}

.news-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.78rem; font-weight: 600; color: var(--blue-accent); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.news-title { font-size: 1rem; color: var(--blue-dark); margin-bottom: 0.6rem; flex: 1; }
.news-excerpt { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1rem; }
.news-link { font-size: 0.88rem; font-weight: 600; color: var(--blue-accent); transition: gap var(--transition); display: inline-flex; align-items: center; gap: 0.25rem; }
.news-link:hover { gap: 0.5rem; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.15rem; }
.contact-item a, .contact-item address { color: var(--white); font-size: 0.95rem; line-height: 1.6; }
.contact-item a:hover { color: var(--gold); }

.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--blue-accent); color: var(--white); transform: translateY(-2px); }

/* Contact CTA */
.contact-cta {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.contact-cta-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.contact-cta-btn { width: fit-content; }

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.form-note a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.form-note a:hover { color: var(--white); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.footer-tagline { font-size: 0.85rem; }

.footer-links-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.85rem; }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-group a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links-group a:hover { color: var(--white); }

.footer-bottom { text-align: center; font-size: 0.82rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-cards { flex-direction: row; flex-wrap: wrap; }
  .about-card { flex: 1 1 260px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 0.7rem 1.5rem; }
  .nav-toggle { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-image-wrapper { order: 1; }
  .hero-content { order: 2; }
  .hero-photo, .hero-photo-placeholder { max-width: 280px; }
  .hero-actions { justify-content: center; }

  .topics-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 80px 1fr; }
  .timeline-item::after { left: 64px; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-photo, .hero-photo-placeholder { max-width: 220px; }
  .about-card { flex: 1 1 100%; }
}

/* ---------- MANDATE & FUNKTIONEN ---------- */
.mandates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mandate-card {
  background: rgba(74,124,40,0.05);
  border: 1px solid rgba(74,124,40,0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.mandate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-accent);
}
.mandate-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.mandate-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.mandate-title {
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.mandate-since {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

@media (max-width: 1024px) {
  .mandates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mandates-grid { grid-template-columns: 1fr; }
}
