:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --card-bg: #ffffff;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --text-main: #1a1a2e;
  --text-black: #000000;
  --text-muted: #6c757d;
  --accent: #10b981;
  --border-color: #e9ecef;
  
  /* Label Colors */
  --label-text: #333333;
  --label-eco: #c8e6c9;
  --label-eu-hosted: #bbdefb;
  --label-open-source: #e0e0e0;
  --label-eu: #ffe0b2;
  --label-efta: #e1bee7;
  --label-co-op: #ffcdd2;
  --label-fairtrade: #fff9c4;
  --label-non-profit: #b2dfdb;
}

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

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

/* Header Navigation */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2rem;
  z-index: 1000;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

/* Homepage Hero Section */
.home-hero {
  text-align: center;
  padding: 8rem 1rem 4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #5c94fc 30%, #8ab4f8 60%, #ec4899 100%);
  color: white;
}

.home-hero h1 { font-size: 3.5rem; letter-spacing: -0.05em; margin-bottom: 0.5rem; }
.home-hero .slogan { font-size: 1.25rem; opacity: 0.9; font-weight: 300; }

/* Other Pages Hero */
.page-hero {
  text-align: left;
  padding: 6rem 2rem 3rem;
  background: var(--bg-color);
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 0.5rem; color: var(--text-black); font-weight: 700; }

/* Info Tiles - 2x2 Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.tile {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tile h3 { color: var(--text-black); margin-bottom: 0.5rem; font-size: 1.1rem; font-weight: 700; }
.tile p { font-size: 0.95rem; color: var(--text-muted); }

/* Theme Intro Text */
.theme-intro {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: left;
}

/* Theme Grid (Themes Overview) */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.theme-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-black);
  font-weight: 700;
}

.theme-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Explore Button - Transparent Background, Blue Text */
.btn-explore {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  align-self: flex-start;
}

.btn-explore:hover {
  background: var(--primary);
  color: white;
}

/* View Options Button - Transparent Background, Blue Text */
.btn-view-options {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  align-self: flex-start;
}

.btn-view-options:hover {
  background: var(--primary);
  color: white;
}

/* Subtheme Title - BLACK AND BOLD (not blue) */
.subtheme-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 0.5rem;
  text-align: left;
}

/* COMPANY LIST - NOW GRID (TILES) */
.company-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Company Card - Tile Style */
.company-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-black);
  margin: 0;
}

.btn-link {
  background: white;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-link:hover {
  background: var(--primary);
  color: white;
}

.company-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.company-country img,
.detail-country img {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
}

.company-country span,
.detail-country span {
  font-size: 1em;
}

/* Labels under Country */
.category-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.category-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--label-text);
}

/* Specific Label Backgrounds */
.tag-eco { background-color: var(--label-eco); }
.tag-eu-hosted { background-color: var(--label-eu-hosted); }
.tag-open-source { background-color: var(--label-open-source); }
.tag-eu { background-color: var(--label-eu); }
.tag-efta { background-color: var(--label-efta); }
.tag-co-op { background-color: var(--label-co-op); }
.tag-non-profit { background-color: var(--label-non-profit); }
.tag-fairtrade { background-color: var(--label-fairtrade); }

/* Short Description under Labels */
.company-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Read More Link - Light Blue Text */
.read-more {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Detail Page */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.detail-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 0.5rem;
  text-align: left;
}

.detail-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: left;
}

.detail-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 2rem;
  text-align: left;
}

/* Detail Link Button */
.detail-link-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.detail-link-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* START BUTTON (Homepage) - Blue Background, White Text, Centered */
.cta-container { text-align: center; margin: 3rem 0; }
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { 
  background: var(--primary-dark); 
  transform: scale(1.05); 
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Footer - NO OPEN SOURCE TEXT */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  background: var(--bg-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-header { padding: 0 1rem; }
  .home-hero h1 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .company-list { grid-template-columns: 1fr; }
  .company-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-links { flex-direction: column; gap: 1rem; }
}
/* --- Neue Styles für Footer und Buttons --- */

/* Footer Links Container */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Prominenter Vorschlag-Button im Footer */
.suggest-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-suggest {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-suggest:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Responsive Anpassungen für Footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  
  .suggest-footer {
    margin-top: 1rem;
  }
  
  .btn-suggest {
    width: 100%;
    max-width: 300px;
  }
}