/* Kontextlora.fit - German Gaming Website Styles */

:root {
  /* Modern Gaming Color Scheme */
  --primary: #6366F1;       /* Indigo */
  --secondary: #EC4899;     /* Pink */
  --accent: #10B981;        /* Emerald */
  --bg-dark: #1F2937;       /* Dark Gray */
  --bg-light: #F9FAFB;      /* Light */
  --text-primary: #111827;  /* Dark */
  --text-secondary: #6B7280; /* Gray */
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #0d9668;
}

/* Game Grid */
.games-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow);
}

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

.game-info {
  padding: 1rem;
}

.game-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.game-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.game-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.play-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 600;
  transition: background 0.3s;
}

.play-btn:hover {
  background: #4f46e5;
}

/* Game Page */
.game-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
}

.game-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.game-details {
  background: var(--white);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
}

.game-details h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.game-instructions {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 5px;
  margin: 1rem 0;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -2px 10px var(--shadow);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.cookie-buttons button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-buttons button:first-child {
  background: var(--accent);
  color: var(--white);
}

.cookie-buttons button:first-child:hover {
  background: #0d9668;
}

.cookie-buttons button:not(:first-child) {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-buttons button:not(:first-child):hover {
  background: var(--white);
  color: var(--bg-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .game-container iframe {
    height: 400px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

.mt-2 {
  margin-top: 2rem;
}

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

.py-4 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Legal Pages Styles */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.legal-content {
  padding: 4rem 0;
}

.legal-document {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.legal-document h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-document h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-document h4 {
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.legal-document ul, .legal-document ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-document li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-document th,
.legal-document td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.legal-document th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
}

.legal-document address {
  font-style: normal;
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
}

/* Article Styles */
.article-header {
  background: var(--bg-light);
  padding: 2rem 0;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-meta span {
  display: flex;
  align-items: center;
}

.article-content {
  padding: 3rem 0;
}

.blog-article {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.article-intro {
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
}

.blog-article h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-article h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-article blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 5px;
}

.article-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.related-articles h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.related-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.related-card h4 {
  margin-bottom: 0.5rem;
}

.related-card h4 a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
}

.related-card h4 a:hover {
  text-decoration: underline;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Cookie Management Styles */
.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.cookie-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.cookie-settings-panel {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
}

.cookie-settings-panel h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cookie-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* Checklist Styles */
.checklist {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.checklist h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.checklist-items {
  list-style: none;
  padding: 0;
}

.checklist-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.checklist-items li:last-child {
  border-bottom: none;
}

/* Mission Section Styles */
.mission-section {
  padding: 4rem 0;
  background: var(--white);
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 1rem;
  border-radius: 10px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .blog-article,
  .legal-document {
    padding: 2rem 1.5rem;
  }
  
  .blog-article h2 {
    font-size: 1.5rem;
  }
  
  .blog-article h3 {
    font-size: 1.25rem;
  }
  
  .mission-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mission-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .value-item {
    padding: 1rem;
  }
  
  .cookie-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .cookie-table {
    overflow-x: auto;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .game-container iframe {
    height: 300px;
  }
  
  .mission-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
}