/* style.css - VfB 1900 Gießen e.V. */

:root {
  --primary: #69b5cd;           /* Das neue Blau */
  --primary-hover: #569eb5;     /* Etwas dunkleres Blau für Hover */
  --accent-green: #72bb6c;      /* Das neue Grün für Navigation */
  --accent-green-hover: #5fa859; /* Dunkleres Grün für Hover */
  
  --bg-body: #f4f9fb;           /* Ganz zartes Blau-Grau */
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  
  --radius: 12px;
  --container-width: 1400px;
  --gap: 2rem;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* --- BASIS & MOBILE SICHERHEIT --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden; /* Verhindert seitliches Scrollen auf Mobilgeräten */
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-body);
  color: var(--text-main);
}

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

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

/* --- HEADER --- */
.main-header {
  background: white;
  border-bottom: 3px solid var(--primary);
  padding: 1.5rem 0;
}

/* --- HAUPTBEREICH (GRID) --- */
.main-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: var(--gap);
  align-items: start;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* --- FOOTER --- */
.main-footer {
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
  text-align: center;
}

.main-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* --- TYPOGRAFIE & BÜNDIGKEIT --- */
h1, h2, h3 { color: #0f172a; margin-bottom: 1rem; }

.sidebar-left > *:first-child,
.content > *:first-child,
.sidebar-right > *:first-child,
.card > *:first-child {
  margin-top: 0 !important;
}

/* --- NAVIGATION & KOMPONENTEN --- */
.nav-menu { list-style: none; }

.nav-menu a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-menu a:hover { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}

.nav-menu a.active {
  background-color: #f0f9f0;
  color: #2d5a2a;
  border: 1px solid #ccebc8;
  border-left: 5px solid var(--accent-green);
  font-weight: 700;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
}

/* --- VORSTANDSLISTE --- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child { border-bottom: none; }

.role {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.person { color: var(--text-main); font-weight: 500; }

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-item a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.tel-link {
    font-size: 0.95rem;
    margin-left: 5px;
    font-weight: 500;
}

/* --- ANMELDUNG & DOWNLOADS --- */
.address-box {
  background-color: #f0f7f9;
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.icon-word { color: #2b579a; }
.icon-pdf { color: #f40f02; }

.download-card:hover .material-symbols-outlined {
  transform: scale(1.1);
}

.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2rem 0;
}

/* --- IMPRESSUM --- */
.impressum-section { margin-bottom: 1.5rem; }
.impressum-section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.impressum-disclaimer {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.impressum-disclaimer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    padding: 20px;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoom 0.3s ease-out;
    cursor: zoom-out;
}

@keyframes zoom {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.card img, .content img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.card img:hover { opacity: 0.9; }

/* --- NEWS & EHRUNGEN --- */
.news-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.news-figure {
    margin: 0 0 2rem 0; /* Fix: Kein negatives Margin mehr für Mobil-Sicherheit */
    width: 100%;
}

.news-figure img {
    width: 100%;
    border-radius: var(--radius);
}

.news-figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-style: italic;
    background: #f8fafc;
    color: var(--text-muted);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.honors-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.honor-group {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.honor-group.highlight {
    background: #fffdf2;
    border-color: #fde68a;
}

.honor-badge {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.honor-badge.special { background: #d97706; }

.honor-group p { margin-bottom: 0; font-size: 0.95rem; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .main-header .container {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-left { order: 2; }
  .content { order: 1; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .card { padding: 1.25rem; }
    .contact-item { grid-template-columns: 1fr; gap: 0.25rem; }
    .honor-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    .honor-badge {
        width: auto;
        min-width: 0;
        align-self: flex-start;
    }
}