/* ═══════════════════════════════════════════════════════════
   spardrops-additions.css v6.4
   Alle Erweiterungen konsolidiert – keine Duplikate
   ═══════════════════════════════════════════════════════════ */

/* ════════════════════════
   FOOTER GRID
════════════════════════ */
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 2fr;
}
/* footer-grid responsive rules merged into main @media block below */

/* ════════════════════════
   LOGO (Header & Footer)
   FIX #3/#4/#5/#6/#7: Konsolidierte Regeln,
   keine Duplikate, keine hardcoded Dimensionen
════════════════════════ */
/* Header-Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
/* Footer-Logo: filter:invert(1) macht weißes Logo auf dunklem Hintergrund.
   Wenn das Logo einen weißen (opaken) Hintergrund hat →
   filter:brightness(0) invert(1) entfernen und stattdessen eine
   weiße/transparente Logo-Variante in der Mediathek hinterlegen. */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 10px;
}
.footer-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ════════════════════════
   HEADER INNER
════════════════════════ */
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* ════════════════════════
   HEADER NAV
════════════════════════ */
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-medium);
  padding: 7px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link--active {
  color: var(--green-primary);
  background: var(--green-light);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.ham-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.ham-open span:nth-child(2) { opacity: 0; }
.hamburger.ham-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ════════════════════════
   INHALTSVERZEICHNIS
════════════════════════ */
.toc-section { background: var(--white); padding: 40px 0 0; }
.toc-box { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 24px 28px; max-width: 900px; margin: 0 auto; }
.toc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.toc-icon { font-size: 22px; }
.toc-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; margin: 0; color: var(--text-dark); }
.toc-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.toc-link { display: flex; align-items: center; gap: 10px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; text-decoration: none; transition: var(--transition); flex: 1; min-width: 200px; }
.toc-link:hover { border-color: var(--green-primary); background: var(--green-light); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.toc-link--cta { border-color: #25D366; background: #f0fdf4; }
.toc-link--cta:hover { background: #dcfce7; border-color: #16a34a; }
.toc-logo { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; flex-shrink: 0; }
.toc-link-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: var(--text-dark); flex: 1; }
.toc-count { font-size: 12px; color: var(--text-light); background: var(--white); padding: 2px 8px; border-radius: 20px; white-space: nowrap; border: 1px solid var(--border); }
.toc-back-link { display: inline-block; font-size: 13px; color: var(--green-primary); margin-left: 16px; font-weight: 600; text-decoration: none; }
.toc-back-link:hover { text-decoration: underline; }

/* ════════════════════════
   PAGE HERO
════════════════════════ */
.page-hero { background: var(--green-primary); padding: 80px 0 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -60px; left: -80px; width: 350px; height: 350px; background: rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.page-hero-content { text-align: center; position: relative; z-index: 2; padding-bottom: 80px; }
.page-hero-content h1 { color: var(--white); max-width: 800px; margin: 0 auto 16px; }
.page-hero-content .hero-sub { color: var(--white); opacity: .92; font-size: 18px; max-width: 660px; margin: 0 auto 28px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-badge-pill { background: rgba(255,255,255,.18); color: var(--white); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 24px; border: 1px solid rgba(255,255,255,.25); }
.page-hero--finance { background: linear-gradient(135deg,#15803D 0%,#16A34A 100%); }
.page-hero--travel  { background: linear-gradient(135deg,#0369A1 0%,#0284C7 100%); }
.page-hero-sm { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 56px 0 48px; }
.page-hero-sm h1 { font-size: 36px; color: var(--text-dark); margin-bottom: 8px; }
.page-hero-sm p  { color: var(--text-light); font-size: 15px; }

/* ════════════════════════
   AFFILIATE INTRO
════════════════════════ */
.affiliate-intro { padding: 60px 0 20px; background: var(--white); }
.affiliate-intro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.affiliate-intro-card { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px 24px; text-align: center; }
.aff-intro-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.affiliate-intro-card h3 { font-size: 17px; margin-bottom: 8px; }
.affiliate-intro-card p  { font-size: 14px; color: var(--text-light); }

/* ════════════════════════
   PROVIDER SECTIONS
════════════════════════ */
.provider-section { padding: 80px 0; background: var(--white); }
.provider-section--alt { background: var(--bg-gray); }
.provider-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.provider-brand { display: flex; align-items: center; gap: 16px; }
.provider-logo-box { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 14px; color: var(--white); flex-shrink: 0; box-shadow: var(--shadow-card); }
.provider-brand h2 { font-size: 28px; margin-bottom: 4px; }
.provider-tagline { color: var(--text-light); font-size: 15px; }
.provider-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trust-badge-pill { background: var(--bg-green); color: var(--green-primary); border: 1px solid #BBF7D0; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 24px; white-space: nowrap; }
.provider-main-cta { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.provider-cta-note { font-size: 12px; color: var(--text-light); margin: 0; }
.provider-divider { padding: 20px 0; }
.provider-divider .container { display: flex; align-items: center; gap: 20px; color: var(--text-light); font-size: 13px; font-weight: 600; }
.provider-divider .container::before,
.provider-divider .container::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.provider-coming-soon { padding: 40px 0 60px; background: var(--white); }
.provider-section--alt + .provider-coming-soon { background: var(--bg-gray); }
.coming-soon-card { max-width: 360px; margin: 0 auto; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius-card); padding: 36px 28px; background: var(--white); }
.coming-soon-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.coming-soon-card h3 { font-size: 20px; margin-bottom: 8px; }
.coming-soon-card p  { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.coming-soon-badge { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid #FDE68A; }

/* ════════════════════════
   AFFILIATE CATEGORY GRID
════════════════════════ */
.affiliate-cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.affiliate-cat-grid--travel { grid-template-columns: repeat(4,1fr); }
.affiliate-cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-card); padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: var(--transition); text-decoration: none; color: inherit; }
.affiliate-cat-card:hover { border-color: var(--green-primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.provider-section--alt .affiliate-cat-card { background: var(--white); }
.affiliate-cat-card--travel:hover { border-color: #0369A1; }
.affiliate-cat-card.has-subcats { border-left: 3px solid var(--green-primary); }
.aff-cat-badge { position: absolute; top: 10px; right: 10px; background: var(--green-primary); color: var(--white); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-badge); letter-spacing: .4px; text-transform: uppercase; }
.aff-cat-badge--orange { background: var(--orange-cta); }
.aff-cat-icon { font-size: 28px; line-height: 1; display: block; }
.aff-cat-icon--lg { font-size: 36px; }
.aff-cat-body { flex: 1; }
.aff-cat-body h3 { font-size: 15px; margin-bottom: 5px; color: var(--text-dark); }
.aff-cat-body p  { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.aff-cat-cta { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-primary); margin-top: auto; transition: var(--transition); }
.affiliate-cat-card:hover .aff-cat-cta { color: var(--green-hover); }
a.affiliate-cat-card .aff-cat-cta { pointer-events: none; }

/* Unterkategorien */
.aff-subcats { display: flex; flex-direction: column; gap: 4px; margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.aff-subcat-link { display: block; font-size: 13px; color: var(--green-primary); font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--green-light); transition: var(--transition); text-align: left; }
.aff-subcat-link:hover { background: var(--green-primary); color: var(--white); }

/* ════════════════════════
   PAGE WHATSAPP CTA
════════════════════════ */
.page-wa-cta { background: var(--green-primary); padding: 70px 0; }
.page-wa-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-wa-cta-inner h2 { color: var(--white); font-size: 30px; margin-bottom: 8px; }
.page-wa-cta-inner p  { color: rgba(255,255,255,.85); font-size: 16px; }

/* ════════════════════════
   LEGAL PAGES
════════════════════════ */
.legal-page { padding: 60px 0 80px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 22px; margin-bottom: 14px; color: var(--text-dark); }
.legal-section h3 { font-size: 17px; margin: 16px 0 8px; }
.legal-section p  { font-size: 15px; color: var(--text-medium); margin-bottom: 12px; line-height: 1.8; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a  { color: var(--green-primary); text-decoration: underline; }
.legal-section a:hover { color: var(--green-hover); }
.legal-list { list-style: disc; padding-left: 24px; margin: 10px 0; }
.legal-list li { font-size: 15px; color: var(--text-medium); margin-bottom: 6px; line-height: 1.7; }
.legal-toc { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px 28px; margin-bottom: 36px; }
.legal-toc strong { display: block; margin-bottom: 12px; font-size: 15px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--green-primary); font-size: 14px; }
.legal-toc a:hover { text-decoration: underline; }

/* ════════════════════════
   REISEN – Spartipps
════════════════════════ */
.reise-tipps { background: var(--white); padding: 80px 0; }
.reise-tipps h2 { text-align: center; margin-bottom: 12px; }
.tipps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 40px; }
.tipp-card { background: var(--bg-gray); border-radius: var(--radius-card); padding: 28px 22px; border: 1px solid var(--border); }
.tipp-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.tipp-card h3 { font-size: 17px; margin-bottom: 8px; }
.tipp-card p { font-size: 14px; color: var(--text-light); }

/* ════════════════════════
   ADMIN URL-STATUS
════════════════════════ */
.pm-url-status-bar { padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.pm-vis-ok   { color: #16a34a; background: #f0fdf4; padding: 5px 10px; border-radius: 6px; border: 1px solid #bbf7d0; display: inline-block; }
.pm-vis-warn { color: #dc2626; background: #fff5f5; padding: 5px 10px; border-radius: 6px; border: 1px solid #fecaca; display: inline-block; }
.pm-url-warn-badge { background: #fee2e2; color: #dc2626; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 6px; flex-shrink: 0; }
.pm-sc-status { font-size: 14px; padding: 0 4px; align-self: center; cursor: default; }
.pm-sc-row { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }

/* ════════════════════════
   RESPONSIVE (KONSOLIDIERT)
   FIX #9: Nur ein Block pro Breakpoint
════════════════════════ */
@media (max-width: 1024px) {
  .affiliate-cat-grid          { grid-template-columns: repeat(2,1fr); }
  .affiliate-cat-grid--travel  { grid-template-columns: repeat(2,1fr); }
  .affiliate-intro-grid        { grid-template-columns: repeat(3,1fr); }
  .provider-header             { flex-direction: column; }
  .tipps-grid                  { grid-template-columns: repeat(2,1fr); }
  .footer-grid                 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Logo */
  .logo-img       { height: 38px; }
  .footer-logo-img { height: 36px; }
  /* Header */
  .header-inner   { height: 60px; padding: 0 16px; }
  .hamburger      { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 4px;
    z-index: 999;
  }
  .main-nav.nav-open { display: flex; }
  .nav-link        { padding: 12px 16px; border-radius: 8px; font-size: 16px; display: block; }
  .nav-cta         { margin-left: 0; margin-top: 8px; text-align: center; display: block; font-size: 15px; padding: 14px; }
  /* Grids */
  .affiliate-cat-grid         { grid-template-columns: 1fr 1fr; }
  .affiliate-cat-grid--travel { grid-template-columns: 1fr 1fr; }
  .affiliate-intro-grid       { grid-template-columns: 1fr; gap: 16px; }
  .tipps-grid                 { grid-template-columns: 1fr 1fr; }
  .footer-grid                { grid-template-columns: 1fr; gap: 24px; }
  /* Page Hero */
  .page-hero                  { padding: 60px 0 0; }
  .page-hero-content h1       { font-size: 28px; }
  .page-hero-content .hero-sub { font-size: 16px; }
  .hero-badge-pill            { font-size: 12px; padding: 5px 12px; }
  /* Provider */
  .provider-main-cta          { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Page WA CTA */
  .page-wa-cta-inner          { flex-direction: column; text-align: center; }
  .page-wa-cta-inner h2       { font-size: 24px; }
  /* TOC */
  .toc-nav                    { flex-direction: column; }
  .toc-link                   { min-width: 100%; }
  /* Legal */
  .legal-toc                  { padding: 16px 18px; }
  /* Affiliate subcats */
  .affiliate-cat-card.has-subcats { border-left: none; border-top: 3px solid var(--green-primary); }
  /* Body padding for sticky CTA */
  body                        { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .affiliate-cat-grid         { grid-template-columns: 1fr; }
  .affiliate-cat-grid--travel { grid-template-columns: 1fr; }
  .affiliate-intro-grid       { grid-template-columns: 1fr; }
  .tipps-grid                 { grid-template-columns: 1fr; }
}
