/* Style für Abitur 1987 Website */
:root {
  --primary: #7A1C28;       /* Archigymnasium Weinrot */
  --primary-dark: #54111A;
  --accent: #D4AF37;         /* Dezentes Gold */
  --bg: #F8F9FA;
  --card-bg: #FFFFFF;
  --text: #2B2D42;
  --text-muted: #6C757D;
  --border: #E9ECEF;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

header h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: 1px; }
header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 5px; }

nav {
  background: white;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

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

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

/* Klassenfoto */
.class-photo-container {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.class-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.caption {
  background: #f1f3f5;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Organisatoren Grid (Responsive Layout) */
.organizers-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.organizers-section h3 {
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.organizer-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #FDFBFB;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.organizer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.organizer-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.organizer-info h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.organizer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.organizer-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.organizer-info a:hover {
  text-decoration: underline;
}

/* Galerie Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4a5568;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  header h1 { font-size: 1.75rem; }
  .card { padding: 1.25rem; }
  .organizer-card { flex-direction: column; text-align: center; border-left: 1px solid var(--border); border-top: 4px solid var(--primary); }
}

/* Highlight Box für das nächste Treffen */
.meeting-banner {
  background: linear-gradient(135deg, rgba(122, 28, 40, 0.08), rgba(212, 175, 55, 0.12));
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.meeting-banner h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.meeting-banner p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.meeting-banner a.map-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.meeting-banner a.map-link:hover {
  color: var(--primary-dark);
}

header p a {
  color: inherit !important;
  text-decoration: none !important;
}
header p a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

footer a {
  color: var(--primary);
  text-decoration: underline;
}
footer a:hover {
  color: var(--primary-dark);
}
