/* ======================================== CSS Variables & Reset ======================================== */
:root {
  --bg-main: #123222;
  --bg-alt: #0f281c;
  --bg-dark: #050505;
  --accent: #27ae60;
  --accent-light: #2ecc71;
  --accent-dark: #1e8449;
  --text-white: #ffffff;
  --text-light: #f1f7f3;
  --text-muted: #d1dfd5;
  --border-radius: 14px;
  --border-radius-lg: 22px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ======================================== Typography & Sections ======================================== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(39, 174, 96, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ======================================== Navigation ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  height: 45px;
  width: auto;
}

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

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-light);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ======================================== Hero Section ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--header-height);
  background: radial-gradient(circle at top right, rgba(39, 174, 96, 0.15), transparent), var(--bg-main);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-image {
  max-width: 460px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ======================================== Cards & Ausbildung ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

/* ======================================== Vorstand Grid ======================================== */
.vorstand-box {
  margin-top: 3rem;
}

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.vorstand-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vorstand-icon {
  width: 60px;
  height: 60px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.vorstand-name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.vorstand-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================================== Pressearchiv & Accordion ======================================== */
.year-section {
  max-height: 96px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  border-bottom: 1px solid rgba(39, 174, 96, 0.2);
  cursor: pointer;
}

.year-section.active {
  max-height: 5000px;
  transition: max-height 1s ease-in-out;
  cursor: default;
}

.year-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 0;
  line-height: 1.35;
  margin-bottom: 0 !important;
}

.year-heading::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: var(--accent);
}

.year-section.active .year-heading::after {
  transform: rotate(180deg);
}

.article-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-img img {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin-top: 1rem;
}

/* ======================================== Forms & Contact ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
}

/* ======================================== Footer & Buttons ======================================== */
.footer {
  background: var(--bg-dark);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.btn {
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: white;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

/* ======================================== Accessibility Enhancements ======================================== */
.nav-link:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.btn-submit:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-light);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(39, 174, 96, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ======================================== HTML Match Additions ======================================== */
.logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(5, 5, 5, 0.98);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list-mobile {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link-mobile,
.nav-cta-mobile {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta-mobile {
  background: var(--accent);
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(5, 5, 5, 0.98);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-bg {
  display: none;
}

.hero-text {
  max-width: 620px;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-scroll {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.scroll-indicator {
  width: 32px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translateX(-50%);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-grid.reverse .content-image {
  order: 2;
}

.content-grid.reverse .content-text {
  order: 1;
}

.content-image img {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.content-headline {
  margin-bottom: 1rem;
}

.section-title,
.section-desc,
.section-subtitle {
  text-align: center;
}

.section-desc,
.section-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.12);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
}

.card-title {
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
}

.event-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
}

.event-date {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 12px;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.event-month {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-light);
  text-transform: uppercase;
}

.event-info h4 {
  margin-bottom: 0.35rem;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.badge-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.badge-text {
  color: var(--text-light);
}

.presse-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.presse-year-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.presse-year-btn {
  padding: 8px 16px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.presse-year-btn:hover,
.presse-year-btn:focus-visible {
  background: var(--accent);
  box-shadow: 0 0 15px rgba(39, 174, 96, 0.4);
}

.intro-box {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.article-date,
.article-tag {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(39, 174, 96, 0.12);
  color: var(--text-light);
}

.vorstand-chief {
  border-color: rgba(39, 174, 96, 0.35);
}

.vorstand-icon-small {
  width: 52px;
  height: 52px;
}

.contact-info,
.contact-form-wrapper {
  height: 100%;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.12);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .content-grid,
  .footer-content,
  .event-item {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer,
  .footer-links,
  .footer-legal {
    text-align: center;
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.legal-block h2 {
  margin-bottom: 1rem;
}

.legal-block h3 {
  margin: 1.25rem 0 0.75rem;
}

.legal-block ul {
  margin: 0.75rem 0 1rem 1.25rem;
  padding-left: 0.25rem;
}

.legal-block li {
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.footer-legal a.active {
  color: var(--text-white);
}

.nav-link-mobile:focus-visible,
.nav-cta-mobile:focus-visible,
.footer-links a:focus-visible,
.footer-legal a:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .year-heading {
    align-items: flex-start;
    font-size: 1.5rem;
  }

  .year-heading::after {
    margin-top: 0.25rem;
    flex-shrink: 0;
  }
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.legal-page {
  padding-top: 120px;
}

.nav-link,
.nav-link-mobile,
.nav-cta-mobile,
.footer-links a,
.footer-legal a {
  -webkit-tap-highlight-color: transparent;
}
