/* FinOverview - Ihr Leitfaden für Finanzkompetenz */
/* Global Styles & Design System */

:root {
  --primary-blue: #2196F3;
  --light-gray: #ECEFF1;
  --primary-green: #4CAF50;
  --green-hover: #388E3C;
  --text-dark: #212121;
  --text-gray: #757575;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

p, li {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--green-hover);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-gray) 100%);
  color: var(--white);
  padding: 150px 2rem 100px;
  text-align: center;
  margin-top: 70px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

/* Container & Section */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section {
  margin-bottom: 4rem;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin: -2rem auto 3rem;
  max-width: 700px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

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

.card-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-gray);
  margin: 0 auto;
}

/* Statistics Section */
.statistics {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--green-hover) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta-section {
  background: var(--light-gray);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.content-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.content-item:nth-child(even) {
  direction: rtl;
}

.content-item:nth-child(even) > * {
  direction: ltr;
}

.content-text h3 {
  color: var(--primary-blue);
}

.content-image {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.blog-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

/* Article */
.article-header {
  margin-top: 100px;
  padding: 3rem 2rem;
  background: var(--light-gray);
  text-align: center;
}

.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

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

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

.article-title {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 2.8rem;
  color: var(--primary-blue);
}

.article-meta {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  color: var(--text-gray);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.article-content h2 {
  color: var(--primary-blue);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-container {
  max-width: var(--max-width);
  margin: 120px auto 0;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.contact-text p {
  margin: 0;
}

.contact-text a {
  color: var(--text-dark);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--primary-blue);
}

.map-container {
  grid-column: 1 / -1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 2rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.faq-question {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-gray);
}

/* Privacy & Terms */
.legal-container {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 2rem;
}

.legal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

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

.legal-content p {
  margin-bottom: 1rem;
  max-width: 100%;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

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

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

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .content-item {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    padding: 120px 1rem 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    padding: 2rem 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
  }
}