/* --- CSS VARIABLES & BASE STYLES --- */
:root {
  --primary: #ff5722;
  --primary-hover: #e64a19;
  --dark: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

/* Navigation Dropdown Base */
nav li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px 0;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: var(--light-bg);
  color: var(--primary);
}

/* Aufklappen beim Hover */
nav li.dropdown:hover .dropdown-menu {
  display: block;
}

/* --- STARTSEITE:---*/ 
/* Hero mit dynamischem Hintergrundbild aus dem HTML */
.hero-with-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 100px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-with-bg h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-with-bg p {
  color: #f0f0f0;
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.map-section, .highlights-section {
  margin-top: 40px;
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 1rem;
}

#map {
  height: 500px;
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  z-index: 1;
}

/* --- TEAM HIGHLIGHTS GRID & WIDGETS --- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.activity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.activity-card-header {
  padding: 12px 16px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.activity-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.widget-container {
  background: var(--light-bg);
  border: 1px dashed var(--gray);
  border-radius: calc(var(--radius) - 4px);
  padding: 15px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.author-badge-link {
  text-decoration: none;
  display: inline-block;
}

.author-badge-link:hover .author-badge {
  color: var(--primary);
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--gray);
}