/* ============================================================
   StuRa Hochschule Anhalt – Stylesheet
   Farben abgeleitet aus dem StuRa-Logo (Rot / Schwarz)
   ============================================================ */

:root {
  --red: #c22b21;
  --red-dark: #9c1f16;
  --red-soft: #fbeae8;
  --ink: #16151a;
  --ink-soft: #4b4a52;
  --paper: #ffffff;
  --paper-warm: #faf7f5;
  --line: #eae5e1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 21, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 21, 26, 0.14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Typography ===== */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.eyebrow--light { color: #ff9d94; }

.accent { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(194, 43, 33, 0.3);
}
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 12px 26px rgba(194, 43, 33, 0.38); }

.btn--ghost {
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn--light:hover { background: var(--paper-warm); }

.btn__arrow { width: 1.1em; height: 1.1em; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

/* Blur auf ::before statt auf .header selbst: backdrop-filter würde den
   Header sonst zum Containing Block für das fixed positionierte
   Mobile-Menü machen. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand__logo {
  width: 46px;
  height: auto;
  border-radius: 8px;
}

.brand__text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand__sub--light { color: #a7a5ad; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav__link {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding-block: 0.3rem;
}
.nav__link:hover { color: var(--ink); text-decoration: none; }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.nav__link:hover::after,
.nav__link.active::after { right: 0; }
.nav__link.active { color: var(--ink); }

.nav__cta { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(194, 43, 33, 0.07), transparent 65%),
    var(--paper-warm);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__title {
  font-size: clamp(2.4rem, 1.5rem + 4.5vw, 4.2rem);
  margin-bottom: 1.4rem;
}

.hero__text {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__logo-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 380px;
  position: relative;
  z-index: 1;
  transform: rotate(2deg);
}

/* Equalizer-Balken – Motiv aus dem Logo */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.bars i {
  width: 14px;
  border-radius: 4px;
  background: var(--red);
}
.bars--hero {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.9;
}
.bars--hero i:nth-child(1) { height: 26px; }
.bars--hero i:nth-child(2) { height: 44px; background: var(--ink); }
.bars--hero i:nth-child(3) { height: 34px; }
.bars--hero i:nth-child(4) { height: 56px; }
.bars--hero i:nth-child(5) { height: 30px; background: var(--ink); }
.bars--hero i:nth-child(6) { height: 48px; }
.bars--hero i:nth-child(7) { height: 24px; }

/* ===== Sections ===== */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section--tinted { background: var(--paper-warm); }

.section--dark {
  background:
    radial-gradient(70% 100% at 15% 0%, rgba(194, 43, 33, 0.25), transparent 60%),
    var(--ink);
  color: #fff;
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.section__lead {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }

/* ===== Callout (Semesterbeitrag / Mitmachen) ===== */
.callout {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.callout--slim { margin-top: 2rem; }

.callout__badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(194, 43, 33, 0.35);
}

.callout__badge--icon svg { width: 28px; height: 28px; }

.callout h3 { margin-bottom: 0.5rem; }
.callout p { color: var(--ink-soft); }

.checklist {
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}
.checklist li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: var(--red-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c22b21' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Errungenschaften ===== */
.achievements {
  display: grid;
  gap: 1.4rem;
}

.achievement {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
}

.achievement__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(194, 43, 33, 0.3);
}
.achievement__icon svg { width: 28px; height: 28px; }

.achievement h3 { margin-bottom: 0.4rem; }
.achievement p { color: var(--ink-soft); }

.achievement--soon {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.achievement--soon .achievement__icon {
  background: var(--red-soft);
  color: var(--red);
  box-shadow: none;
}

/* ===== Antragsportal ===== */
.portal {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.portal h2 { color: #fff; }

.portal__lead {
  margin-top: 1rem;
  color: #c9c7cf;
  font-size: 1.05rem;
  max-width: 32rem;
}

.portal__list {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.portal__list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--red);
}
.portal__list strong { font-size: 1.02rem; }
.portal__list span { color: #a7a5ad; font-size: 0.93rem; }

.bars--portal {
  justify-content: center;
  align-self: end;
  gap: 12px;
  opacity: 0.9;
}
.bars--portal i { width: 22px; border-radius: 6px; }
.bars--portal i:nth-child(1) { height: 60px; }
.bars--portal i:nth-child(2) { height: 120px; background: #fff; }
.bars--portal i:nth-child(3) { height: 85px; }
.bars--portal i:nth-child(4) { height: 150px; }
.bars--portal i:nth-child(5) { height: 70px; background: #fff; }
.bars--portal i:nth-child(6) { height: 130px; }
.bars--portal i:nth-child(7) { height: 95px; }
.bars--portal i:nth-child(8) { height: 55px; background: #fff; }
.bars--portal i:nth-child(9) { height: 110px; }

/* ===== Dokumente ===== */
.doc-panel {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(194, 43, 33, 0.06), transparent 60%),
    #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.doc-panel__icon {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}
.doc-panel__icon svg { width: 58px; height: 58px; }

.doc-panel__body h2 { margin-bottom: 0.8rem; }
.doc-panel__body p {
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

/* ===== Mitglieder ===== */
.board { margin-bottom: 1.4rem; }

.card--role {
  text-align: center;
  border-top: 5px solid var(--red);
}

.role__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.campus__title {
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--red-soft);
}

.member-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.member-list li {
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
}
.member-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}

/* ===== Kontakt ===== */
.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-list__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.contact-list a { font-weight: 600; }
.contact-list span:not(.contact-list__label) { color: var(--ink-soft); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #a7a5ad;
  padding-block: 3rem 2rem;
}

.footer__inner {
  display: grid;
  gap: 1.8rem;
}

.footer__brand .brand__text { color: #fff; margin-bottom: 0.6rem; }
.footer__brand p { font-size: 0.9rem; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.footer__nav a {
  color: #d5d3da;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer__nav a:hover { color: #fff; }

.footer__note {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
}

/* ===== Reveal-Animationen =====
   Nur aktiv, wenn JS läuft (html.js) – ohne JS bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { order: -1; }
  .hero__logo-card { max-width: 300px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .portal { grid-template-columns: 1fr; }
  .bars--portal { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h, 66px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem 1.5rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s 0.28s;
    overflow-y: auto;
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease;
  }

  .nav__link {
    font-size: 1.15rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }

  .nav__cta {
    margin-top: 1.4rem;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.4rem;
  }

  .nav-toggle { display: flex; }

  body.nav-locked { overflow: hidden; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }

  .callout { flex-direction: column; }
  .achievement { flex-direction: column; padding: 1.6rem; }
  .doc-panel { flex-direction: column; text-align: left; align-items: flex-start; }
  .doc-panel__icon { width: 80px; height: 80px; border-radius: 20px; }
  .doc-panel__icon svg { width: 42px; height: 42px; }

  .footer__nav { flex-direction: column; gap: 0.9rem; }
}
