/* ==========================================================================
   Studierende CFH e.V. – Stylesheet
   Mobile-First, keine externen Abhängigkeiten
   ========================================================================== */

:root {
  --acfh-dark: #6E1240;
  --acfh-dark2: #8A1650;
  --acfh-pink: #E5197D;
  --acfh-pink-light: #F472B6;
  --acfh-bg: #FFFFFF;
  --acfh-bg-soft: #FBF2F6;
  --acfh-text: #2B0F1D;
  --acfh-text-soft: #6B4A5A;
  --acfh-border: #F0DDE7;
  --acfh-max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--acfh-text);
  background: var(--acfh-bg);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--acfh-dark); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4, p, ul { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--acfh-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---- Layout helpers ---- */
.acfh-section { padding: 48px 20px; max-width: var(--acfh-max-width); margin: 0 auto; }
.acfh-section-soft { background: var(--acfh-bg-soft); }

.acfh-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acfh-pink);
  margin-bottom: 10px;
}

.acfh-h2 { font-size: 24px; font-weight: 800; margin: 0 0 16px 0; color: var(--acfh-dark); }
.acfh-lead { font-size: 16px; color: var(--acfh-text-soft); max-width: 720px; }

.acfh-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform .15s ease;
}
.acfh-btn:hover, .acfh-btn:focus-visible { transform: translateY(-2px); }
.acfh-btn-primary { background: var(--acfh-pink); color: #fff !important; }
.acfh-btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.7); }

/* ---- Site header ---- */
.acfh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--acfh-border);
}
.acfh-header-inner {
  max-width: var(--acfh-max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acfh-header-logo { display: flex; align-items: center; gap: 10px; }
.acfh-header-logo img { width: 120px; height: auto; }
.acfh-nav { display: none; }
.acfh-nav ul { list-style: none; padding: 0; display: flex; gap: 22px; }
.acfh-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--acfh-text);
}
.acfh-nav a:hover { color: var(--acfh-pink); text-decoration: none; }

@media (min-width: 780px) {
  .acfh-nav { display: block; }
}

/* ---- Hero ---- */
.acfh-hero {
  background: linear-gradient(135deg, var(--acfh-dark) 0%, var(--acfh-dark2) 55%, var(--acfh-pink) 130%);
  color: #fff;
  padding: 56px 20px 48px 20px;
  text-align: center;
}
.acfh-hero img.acfh-logo-main {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  background: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.acfh-hero h1 { font-size: 28px; font-weight: 800; margin: 0 0 14px 0; letter-spacing: -.01em; }
.acfh-hero p { font-size: 16px; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 26px auto; }
.acfh-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 640px) {
  .acfh-hero h1 { font-size: 34px; }
}
@media (min-width: 900px) {
  .acfh-hero { padding: 72px 24px 64px 24px; }
  .acfh-hero h1 { font-size: 40px; }
  .acfh-hero p { font-size: 18px; }
}

/* ---- Standorte grid ---- */
.acfh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 26px;
}
.acfh-card {
  background: #fff;
  border: 1px solid var(--acfh-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(110,18,64,.05);
}
.acfh-card img.acfh-logo-standort {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 14px auto;
}
.acfh-card h3 { font-size: 18px; margin: 0 0 6px 0; color: var(--acfh-dark); }
.acfh-card p { font-size: 14px; color: var(--acfh-text-soft); margin: 0 0 14px 0; }
.acfh-card a.acfh-insta { font-size: 14px; font-weight: 700; color: var(--acfh-pink); }

@media (min-width: 640px) {
  .acfh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .acfh-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---- Referate / Struktur ---- */
.acfh-referate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}
.acfh-ref-item {
  background: var(--acfh-bg);
  border-left: 4px solid var(--acfh-pink);
  padding: 18px 20px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 2px 8px rgba(110,18,64,.04);
}
.acfh-ref-item h4 { margin: 0 0 6px 0; font-size: 16px; color: var(--acfh-dark); }
.acfh-ref-item p { margin: 0; font-size: 14px; color: var(--acfh-text-soft); }

@media (min-width: 640px) {
  .acfh-referate { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .acfh-referate { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ---- Vorstand ---- */
.acfh-vorstand {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}
.acfh-vorstand-card {
  background: #fff;
  border: 1px solid var(--acfh-border);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
}
.acfh-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px auto;
  background: linear-gradient(135deg, var(--acfh-dark), var(--acfh-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.acfh-vorstand-card h4 { margin: 0 0 4px 0; font-size: 17px; color: var(--acfh-dark); }
.acfh-vorstand-card span { font-size: 13px; color: var(--acfh-text-soft); }

@media (min-width: 640px) {
  .acfh-vorstand { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .acfh-vorstand { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---- Kontakt ---- */
.acfh-kontakt {
  background: var(--acfh-dark);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.acfh-kontakt h2 { color: #fff; }
.acfh-kontakt-lead { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto; font-size: 15px; }
.acfh-kontakt-box {
  display: inline-block;
  text-align: left;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.9;
}
.acfh-kontakt-box a { color: #fff; }

/* ---- Footer ---- */
.acfh-footer {
  background: #250915;
  color: rgba(255,255,255,.65);
  padding: 26px 20px;
  text-align: center;
  font-size: 13px;
}
.acfh-footer a { color: rgba(255,255,255,.85); margin: 0 10px; }
.acfh-footer-links { margin-bottom: 10px; }
.acfh-footer-links a:hover { color: #fff; }

/* ---- Legal pages (Impressum / Datenschutz) ---- */
.acfh-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 56px 20px;
}
.acfh-legal h1 { font-size: 26px; font-weight: 800; color: var(--acfh-dark); margin-bottom: 8px; }
.acfh-legal h2 { font-size: 18px; font-weight: 700; color: var(--acfh-dark); margin: 30px 0 10px 0; }
.acfh-legal h3 { font-size: 16px; font-weight: 700; color: var(--acfh-text); margin: 20px 0 8px 0; }
.acfh-legal p, .acfh-legal li { font-size: 15px; color: var(--acfh-text); }
.acfh-legal ul { padding-left: 20px; margin-top: 6px; }
.acfh-legal a { color: var(--acfh-pink); }
.acfh-legal .acfh-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--acfh-dark);
}

@media (min-width: 640px) {
  .acfh-legal h1 { font-size: 28px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .acfh-btn { transition: none; }
}
