/* CSS Design System for THAT'S WHYnheim */
:root {
  --color-primary: #BAC373;
  --color-text: #5f6360;
  --color-heading: #080808;
  --color-bg: #ffffff;
  --color-bg-alt: #E2E2E2;
  --color-border: #8F8F8F;
  --color-white: #ffffff;
  --color-black: #000000;
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-heading);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.site-slogan {
  font-size: 0.75rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  border-radius: var(--border-radius);
  letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-heading);
  background-color: rgba(186, 195, 115, 0.15);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: none;
  min-width: 220px;
  padding: 8px 0;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-item:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.dropdown-link:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-heading);
  padding-left: 24px;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  margin: 6px 0;
  transition: var(--transition);
}

/* Main Layout Offset */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px - 350px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 195, 115, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-heading);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-heading);
  transform: translateY(-2px);
}

/* Section Common Styling */
.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.25rem;
  text-align: center;
  position: relative;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Sammelstelle Info Card */
.sammelstelle-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--color-primary);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.sammelstelle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}

.sammelstelle-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.sammelstelle-address {
  font-style: normal;
  white-space: pre-line;
  font-weight: 500;
  color: var(--color-text);
}

/* Card Component */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  padding-bottom: 60%; /* Aspect ratio */
  overflow: hidden;
  background-color: #eee;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-text);
  flex-grow: 1;
  margin-bottom: 20px;
  white-space: pre-line;
}

/* Bullet list (Unsere Arbeit / story) */
.bullet-list {
  list-style: none;
  margin-bottom: 24px;
}

.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 80px;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Team section board members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 0;
}

.team-card {
  text-align: center;
  background: var(--color-bg-alt);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: var(--color-white);
}

.team-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Downloads Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.download-icon {
  font-size: 2rem;
  color: var(--color-primary);
}

.download-info {
  flex-grow: 1;
}

.download-name {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 1rem;
}

.download-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Interactive Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-heading);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-heading);
  transition: var(--transition);
  background: var(--color-bg-alt);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(186, 195, 115, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.85rem;
}

.form-checkbox input {
  margin-top: 4px;
}

/* Spenden page styling */
.spenden-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.spenden-method-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.spenden-method-card h3 {
  margin-bottom: 16px;
}

.iban-display {
  background: var(--color-bg-alt);
  padding: 16px;
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin: 16px 0;
  border: 1px dashed var(--color-border);
}

/* Privacy friendly video placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #333;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.video-placeholder-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

/* Footer styling */
footer {
  background-color: var(--color-heading);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
}

/* Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 24px;
  z-index: 9999;
  display: none;
  margin: 0 auto;
}

.cookie-banner h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Admin Dashboard CSS styling */
.admin-header {
  background: var(--color-heading);
  color: var(--color-white);
  padding: 20px 0;
}

.admin-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  color: var(--color-white);
  margin: 0;
}

.admin-logout {
  color: var(--color-white);
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.admin-logout:hover {
  background: var(--color-primary);
  color: var(--color-heading);
}

.admin-nav {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.admin-nav-btn {
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.admin-nav-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-heading);
}

.admin-panel-section {
  display: none;
  background: var(--color-white);
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.admin-panel-section.active {
  display: block;
}

.admin-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-heading);
  color: var(--color-white);
  padding: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.list-editor-item {
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  background: var(--color-bg-alt);
  position: relative;
}

.list-editor-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Toast Messages */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  display: none;
  font-weight: 600;
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #f44336;
}

/* Mobile Compatibility Styles */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-bg-alt);
    display: block;
    opacity: 1;
    transform: none;
    margin-top: 8px;
    width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .sammelstelle-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sammelstelle-card {
    margin-top: -40px;
    padding: 24px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .spenden-methods {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
