/* DalorinMatrix - Editorial Story Layout */
/* Financial Literacy Germany */

:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #ed8936;
  --accent-hover: #dd6b20;
  --light: #f7fafc;
  --dark: #1a202c;
  --gray: #718096;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --success: #38a169;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.375rem; margin-bottom: 0.875rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--dark);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Minimal Top Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* Editorial Hero */
.editorial-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-image {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Editorial Story Content */
.story-section {
  padding: 4rem 0;
}

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

.story-text {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.story-text p {
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
}

.story-text p:first-of-type::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 1;
  padding-right: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.inline-image {
  margin: 2.5rem -2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.inline-image img {
  width: 100%;
}

.inline-image figcaption {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  font-style: italic;
}

/* Pull Quote */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem;
  border-left: 4px solid var(--accent);
  background: var(--light);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--secondary);
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--gray);
}

/* Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  text-align: center;
}

.inline-cta h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.inline-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

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

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

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

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

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

/* Services Cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  flex: 1 1 300px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.service-card h4 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-suffix {
  font-size: 0.9rem;
  color: var(--gray);
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--dark);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

/* Testimonials */
.testimonial-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-block::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--secondary);
}

.author-info strong {
  display: block;
  color: var(--dark);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Contact Form */
.contact-section {
  padding: 5rem 0;
  background: var(--light);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

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

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

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 999;
}

.sticky-cta.visible {
  transform: translateY(0);
}

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

.sticky-text {
  color: var(--white);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

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

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-banner.visible {
  transform: translateY(0);
}

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

.cookie-text {
  flex: 1;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

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

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
}

.cookie-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-accept:hover {
  background: var(--accent-hover);
}

.cookie-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-reject:hover {
  border-color: var(--white);
}

/* Thanks Page */
.thanks-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.thanks-content {
  max-width: 600px;
}

.thanks-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--success) 0%, #2f855a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thanks-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--white);
}

/* Legal Pages */
.legal-page {
  padding: 8rem 0 4rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-light);
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

/* Info Boxes */
.info-box {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box.warning {
  border-color: #e53e3e;
  background: #fff5f5;
}

.info-box.success {
  border-color: var(--success);
  background: #f0fff4;
}

/* Stats Section */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray);
}

/* About Page */
.about-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  flex: 1 1 280px;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 700;
}

.member-name {
  margin-bottom: 0.25rem;
}

.member-role {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--gray);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }

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

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    flex-direction: column;
  }

  .service-card {
    flex: 1 1 auto;
  }

  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sticky-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .stats-row {
    flex-direction: column;
  }

  .inline-image {
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .container,
  .narrow-container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .story-text {
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}
