/*
Theme Name: Breitblick
Description: Politische Spektrums-Analyse für Nachrichten
Author: Breitblick Team
Version: 0.1
*/

/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container und Grid-Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-4 {
  padding: 1rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .md\:grid-cols-3,
  .md\:grid-cols-4,
  .grid-cols-5 {
    grid-template-columns: 1fr;
  }
}

/* Karten-Styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h2 {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-small {
  background: white;
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.card-small:hover {
  transform: translateY(-1px);
}

.card-small img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.card-small p {
  font-size: 0.9rem;
  font-weight: 500;
}

.card-small small {
  color: #666;
  font-size: 0.8rem;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Intro Section */
.intro {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.intro h1 {
  color: white;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Positions Grid */
.positions-grid {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.positions-grid > div {
  text-align: center;
  padding: 1rem;
  border-radius: 6px;
}

.positions-grid > div:nth-child(1) {
  background: #e6fffa;
  border: 2px solid #38b2ac;
}

.positions-grid > div:nth-child(2) {
  background: #fef5e7;
  border: 2px solid #ed8936;
}

.positions-grid > div:nth-child(3) {
  background: #fed7d7;
  border: 2px solid #e53e3e;
}

/* Sources Grid */
.sources-grid {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sources-grid > div {
  text-align: center;
}

.sources-grid h5 {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: #f7fafc;
}

/* Party Barometer */
.party-barometer {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.party-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: #f7fafc;
}

.party-name {
  font-weight: 600;
}

.party-percentage {
  font-weight: 600;
  color: #2d3748;
}

/* Summary */
.summary {
  background: #f0fff4;
  border-left: 4px solid #48bb78;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}

/* Prose für Artikel */
.prose {
  max-width: 800px;
}

.prose h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.prose p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Navigation */
.nav-primary {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.nav-primary ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-primary a {
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-primary a:hover {
  color: #667eea;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

/* Login Link */
.login-link {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.login-link:hover {
  background: #5a67d8;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
} 