:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --gold: #c8a951;
  --text: #333;
  --bg: #fafafa;
  --white: #fff;
  --gray: #666;
  --gray-light: #999;
  --border: #e0e0e0;
}

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

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

/* Header */
header {
  background: var(--green-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.header-brand img {
  height: 44px;
  width: auto;
}

.header-brand h1 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-brand h1 small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation */
nav {
  background: var(--green);
}

nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.15);
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green);
  min-width: 220px;
  z-index: 200;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav ul li:hover > ul { display: flex; }

nav ul li ul li a {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  color: var(--green-dark);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

section {
  margin-bottom: 2.5rem;
}

section > h2 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

/* News articles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-article {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.news-article.no-image {
  grid-template-columns: 1fr;
}

.news-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center 20%;
}

.news-body {
  padding: 1.25rem 1.5rem;
}

.news-date {
  font-size: 0.78rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.news-body h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-body p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.card h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p, .card ul {
  font-size: 0.92rem;
  color: var(--gray);
}

.card ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

/* Termine table */
.termine-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.termine-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.termine-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.termine-table tr:last-child td { border-bottom: none; }
.termine-table tr:hover td { background: var(--green-light); }

.termine-table .month-header td {
  background: var(--green-light);
  font-weight: 700;
  color: var(--green-dark);
}

/* Vorstand */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.vorstand-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.vorstand-item.with-photo {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.vorstand-item .photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.vorstand-item .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 600;
}

.vorstand-item .name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}

.vorstand-item .contact {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* PitterUnPaul magazine cards */
.pup-card {
  text-decoration: none;
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pup-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pup-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

/* Korps list */
.korps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.korps-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.korps-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.korps-card h3 {
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.korps-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Info boxes */
.info-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}

.info-box p { font-size: 0.92rem; }

/* Warning */
.warning {
  background: #fff3e0;
  border-left: 4px solid #e65100;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}

.warning strong { color: #e65100; }

/* Section with image */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.section-with-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tab navigation */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  background: none;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover { color: var(--green-dark); }

.tab.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
  font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Prose */
.prose p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem;
  max-width: 750px;
}

/* Footer */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

footer p, footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav ul {
    display: none;
    flex-direction: column;
  }

  nav ul.open { display: flex; }

  nav ul li ul {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
  }

  .news-article {
    grid-template-columns: 1fr;
  }

  .news-image {
    min-height: 200px;
    max-height: 250px;
    object-position: center 0%;
  }

  .cards { grid-template-columns: 1fr; }
  .vorstand-grid { grid-template-columns: 1fr; }
  .korps-grid { grid-template-columns: 1fr 1fr; }

  .section-with-image {
    grid-template-columns: 1fr;
  }

  .section-with-image img {
    max-width: 280px;
  }
}
