/*
Theme Name: U18 Tagesgeld
Theme URI: https://u18tagesgeld.de
Author: u18tagesgeld.de
Author URI: https://u18tagesgeld.de
Description: SEO- und konversionsoptimiertes WordPress-Theme für u18tagesgeld.de – Renault Bank U18 Tagesgeldkonto Vergleich und Ratgeber für Eltern und Minderjährige.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: u18tagesgeld
Tags: finance, tagesgeld, savings, landing-page, seo-optimized
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --primary: #1B6B4A;
  --primary-dark: #134D35;
  --primary-light: #E8F5EE;
  --accent: #F5A623;
  --accent-dark: #D48E1A;
  --accent-light: #FFF5E0;

  /* Neutrals */
  --text: #1A1A2E;
  --text-secondary: #4A4A68;
  --text-muted: #7A7A94;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-card: #FFFFFF;
  --border: #E2E4EA;
  --border-light: #F0F1F4;

  /* Status */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Typography */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 20px rgba(245,166,35,0.3);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* WP Admin Bar Kompensation */
body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .breadcrumbs {
  margin-top: 104px;
}

body.admin-bar .hero {
  padding-top: 172px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .breadcrumbs {
    margin-top: 118px;
  }
  body.admin-bar .hero {
    padding-top: 186px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  width: 325px;
  height: auto;
}

.footer-about .site-logo img {
  width: 325px;
  height: auto;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-accent);
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7FF 50%, #FFF9EE 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,107,74,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(245,166,35,0.3);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-value .unit {
  font-size: 0.6em;
  color: var(--text-muted);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Product Card */
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card::before {
  content: 'EMPFEHLUNG';
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 6px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.bank-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bank-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

img.bank-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-card-bank {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-card-product {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-rate {
  text-align: center;
  padding: 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.hero-card-rate-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-card-rate-value .percent {
  font-size: 0.5em;
}

.hero-card-rate-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-card-features {
  list-style: none;
  margin-bottom: 24px;
}

.hero-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-card-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.hero-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: var(--section-padding);
}

.section-soft {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header + p {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== VORTEILE SECTION ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefits-grid--ratgeber {
  grid-template-columns: repeat(2, 1fr);
}

.benefit-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

/* ===== COMPARISON TABLE ===== */
.comparison-table-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: auto;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.comparison-table tbody tr:hover {
  background: var(--bg-soft);
}

.comparison-table .highlight-row {
  background: var(--accent-light);
  font-weight: 600;
}

.comparison-table .highlight-row:hover {
  background: #FFF0CC;
}

.table-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-template-page-faq .faq-list {
  max-width: 100%;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-toggle {
  width: 28px;
  height: 28px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-section .btn-primary {
  background: var(--accent);
  font-size: 1.1rem;
  padding: 18px 40px;
}

/* ===== BLOG STYLES ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), #E8EEFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .read-more::after {
  content: '→';
  transition: var(--transition);
}

.blog-card:hover .read-more::after {
  transform: translateX(4px);
}

/* Single Blog Post */
.single-post-header {
  padding: 40px 0;
  background: var(--bg-soft);
}

.single-post-header + .section {
  padding-top: 48px;
}

.single-post-header .container {
  max-width: 800px;
}

.post-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.post-header-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.ratgeber-content {
  max-width: 100%;
  padding: 0;
}

.single-post-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.single-post-content h2:first-child {
  margin-top: 0;
}

.single-post-content h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.single-post-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.single-post-content li {
  margin-bottom: 8px;
}

/* Affiliate Box in content */
.affiliate-box {
  background: linear-gradient(135deg, var(--primary-light), #E8EEFF);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.affiliate-box h3 {
  color: var(--primary);
  margin-bottom: 8px;
  margin-top: 0;
}

.affiliate-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.affiliate-box a:not(.btn) {
  color: var(--text) !important;
  text-decoration: underline;
}

.affiliate-box .btn-primary {
  font-size: 1rem;
}

.affiliate-notice {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-top: 12px;
  display: block;
}

.affiliate-box li {
  color: var(--text-secondary) !important;
}

/* ===== SIDEBAR (blog pages) ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 48px;
}

/* TOC aligns naturally with sidebar via grid */

.sidebar {
  /* stretches to full grid row height */
}

.sidebar-inner {
  position: sticky;
  top: 96px;
}

.sidebar .widget {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar .widget-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: white;
  text-align: center;
  border: none !important;
}

.sidebar-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.sidebar-cta .rate-display {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--accent);
  color: white;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-top: 40px;
}

.author-box-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.author-box-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.author-box-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
}

.author-box-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.author-box-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .site-logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h3 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.footer-column li {
  margin-bottom: 8px;
}

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

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-affiliate-notice {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== PAGE TEMPLATES ===== */
.page-header {
  padding: 40px 0;
  background: var(--bg-soft);
  text-align: center;
}

.page-header + .section,
.page-header + section {
  padding-top: 48px;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.page-content {
  padding: 64px 0;
}

.page-content .container {
  max-width: 900px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 72px;
  margin-bottom: 0;
}

.breadcrumbs a {
  color: var(--text-muted);
}

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

.breadcrumbs .separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* ===== SCHEMA MARKUP - REVIEW BOX ===== */
.review-box {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

.review-box-header {
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-box-header h3 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

.review-stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-box-body {
  padding: 24px;
}

.review-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-box-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.review-box-item span:last-child {
  font-weight: 600;
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 16px;
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .hero { padding: 120px 0 56px; }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 14px 24px;
  }

  .site-logo img {
    width: 275px;
    height: auto;
  }

  .footer-about .site-logo img {
    width: 275px;
    height: auto;
  }

  .benefits-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid--ratgeber {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-table-wrapper {
    margin: 0;
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .comparison-table thead th {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  /* Alle inline-grids auf mobile stacken */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Generelle Overflow-Sicherung */
  .single-post-content,
  .blog-layout main,
  .section .container {
    overflow-x: hidden;
    max-width: 100%;
  }

  .single-post-content img,
  .single-post-content iframe,
  .single-post-content video {
    max-width: 100%;
    height: auto;
  }

  .single-post-content ul,
  .single-post-content ol {
    padding-left: 20px;
  }

  .single-post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .post-nav {
    grid-template-columns: 1fr !important;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .review-box-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    gap: 24px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SHARE SECTION ===== */
.share-section {
  margin: 40px 0 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f7ff 100%);
  border-radius: 16px;
  border: 1px solid #e8ecf0;
}

.share-section.share-section--header {
  margin: 0 0 36px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e8ecf0;
  border-radius: 0;
  padding: 0 0 24px;
}

.share-section .share-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 16px;
  padding: 0;
}

.share-section .share-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.share-section a.share-pill,
.share-section button.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.share-section a.share-pill:hover,
.share-section button.share-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  filter: brightness(1.1);
  text-decoration: none;
  color: #fff;
}

.share-section a.share-pill:active,
.share-section button.share-pill:active {
  transform: translateY(0);
}

.share-section .share-pill svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.share-section .share-pill .share-pill__label {
  display: inline;
}

.share-section a.share-pill.share-pill--facebook  { background-color: #1877F2; }
.share-section a.share-pill.share-pill--whatsapp  { background-color: #25D366; }
.share-section a.share-pill.share-pill--telegram  { background-color: #0088cc; }
.share-section a.share-pill.share-pill--x         { background-color: #14171a; }
.share-section a.share-pill.share-pill--reddit    { background-color: #FF4500; }
.share-section a.share-pill.share-pill--linkedin  { background-color: #0A66C2; }
.share-section a.share-pill.share-pill--email     { background-color: #6B7280; }

.share-section button.share-pill.share-pill--copy {
  background-color: #fff;
  color: #1a2332;
  border: 1.5px solid #d1d5db;
}

.share-section button.share-pill.share-pill--copy:hover {
  border-color: #1B6B4A;
  color: #1B6B4A;
}

.share-section button.share-pill.share-pill--copy.copied {
  background-color: #1B6B4A;
  color: #fff;
  border-color: #1B6B4A;
}

@media (max-width: 768px) {
  .share-section {
    padding: 20px;
  }
  .share-section .share-pill .share-pill__label {
    display: none;
  }
  .share-section a.share-pill,
  .share-section button.share-pill {
    padding: 10px;
    border-radius: 50%;
  }
}

/* ===== AFFILIATE LINK STYLING ===== */
a[rel*="sponsored"],
a.affiliate-link {
  position: relative;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .cta-section, .affiliate-box, .share-section { display: none; }
  body { font-size: 12pt; color: black; }
}

/* ─── Table of Contents ──────────────────────────────── */
.table-of-contents {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 24px 32px;
    margin: 0 0 32px 0;
    border-left: 4px solid var(--primary);
}
/* TOC aligns naturally with sidebar via grid */
.table-of-contents strong {
    font-size: 1.05rem;
    color: var(--text-dark);
}
.table-of-contents ol {
    margin: 12px 0 0;
    padding-left: 20px;
}
.table-of-contents li {
    margin-bottom: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.table-of-contents a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s;
}
.table-of-contents a:hover {
    color: var(--primary);
}
