/* Affiliate Homeland – Gestaltung für die bestehende Empfehlungs-Unterseite */
:root {
  --legacy-navy: #192d46;
  --legacy-blue: #24496c;
  --legacy-light-blue: #a9c9f2;
  --legacy-gold: #d7bd84;
  --legacy-text: #263445;
  --legacy-muted: #657487;
  --legacy-paper: #f4f7fb;
  --legacy-line: #e1e8f0;
}
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body.legacy-page#main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--legacy-text);
  background: var(--legacy-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.legacy-page a { color: var(--legacy-blue); }
.legacy-page a:focus-visible { outline: 3px solid var(--legacy-gold); outline-offset: 3px; }
.subpage-hero {
  padding: 48px 20px 52px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 82% 15%, rgba(169,201,242,.20), transparent 25%),
              linear-gradient(125deg, #14263d 0%, #203e60 58%, #172d49 100%);
}
.subpage-hero-inner { max-width: 950px; margin: 0 auto; }
.subpage-hero .eyebrow { margin: 0 0 10px; color: var(--legacy-gold); font-size: .76rem; font-weight: 700; letter-spacing: .17em; }
.subpage-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.1; letter-spacing: .025em; text-shadow: none; }
.subpage-hero h1 span { color: var(--legacy-gold); }
.subpage-hero .hero-subtitle { margin: 13px 0 6px; color: var(--legacy-light-blue); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; }
.subpage-copy { max-width: 700px; margin: 8px auto 0; color: #edf3fa; }
.legacy-page .main-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--legacy-line); box-shadow: 0 4px 14px rgba(25,45,70,.045); }
.legacy-page .nav-inner { max-width: 1160px; min-height: 58px; margin: auto; padding: 0 18px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 22px; }
.legacy-page .main-nav a { padding: 15px 0; color: var(--legacy-navy); text-decoration: none; font-size: .91rem; font-weight: 700; }
.legacy-page .main-nav a:hover { color: #537da8; }
.legacy-page .main-nav .nav-support { color: #805d1d; }
.legacy-intro { max-width: 900px; margin: 0 auto; padding: 43px 20px 24px; text-align: center; }
.legacy-intro .section-kicker { margin: 0 0 8px; color: #8a6a2d; font-size: .76rem; font-weight: 700; letter-spacing: .15em; }
.legacy-intro h2 { margin: 0 0 8px; color: var(--legacy-navy); font-size: clamp(1.5rem, 3vw, 2rem); text-shadow: none; }
.legacy-intro p:last-child { margin: 0; color: var(--legacy-muted); }
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 1120px;
  margin: 0 auto 26px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--legacy-line);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(25,45,70,.05);
}
.topic-nav a {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #dce6f0;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--legacy-navy) !important;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.topic-nav a:hover { background: #eaf1f8; border-color: #b7cbe0; }
.legacy-page .top-support { margin: 12px auto 22px; padding: 0 14px; }
.legacy-page .top-support a {
  display: inline-block !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  background: #247b62 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.legacy-page #main01 { max-width: 780px; width: calc(100% - 30px); margin: 20px auto; padding: 0; }
.legacy-page .legacy-offer {
  max-width: 1080px;
  margin: 24px auto;
  padding: 26px clamp(16px, 3vw, 34px);
  border: 1px solid var(--legacy-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25,45,70,.055);
  text-align: center;
  overflow-wrap: anywhere;
}
.legacy-page .legacy-offer h2 { margin: 0 0 12px; color: var(--legacy-navy); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25; text-shadow: none; }
.legacy-page .legacy-offer h3 { color: var(--legacy-navy); }
.legacy-page .legacy-offer img { display: inline-block; max-width: min(100%, 520px); height: auto; object-fit: contain; }
.legacy-page .legacy-offer p.legacy-footer, .legacy-page p.legacy-footer { max-width: 850px; margin: 12px auto; padding: 12px 10px; color: #4c5d70; text-align: center; }
.legacy-page .legacy-offer a { overflow-wrap: anywhere; }
.legacy-page .legacy-offer a:hover { color: #805d1d; }
.legacy-page .responsive-video { position: relative; width: 100%; height: 0; padding-top: 0; padding-bottom: 56.25%; overflow: hidden; border-radius: 10px; background: #101d2c; }
.legacy-page .responsive-video iframe,
.legacy-page .responsive-video object,
.legacy-page .responsive-video embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legacy-page iframe { max-width: 100%; }
.legacy-page table { width: 100%; max-width: 900px; margin: 14px auto; border-collapse: collapse; table-layout: auto; overflow-wrap: anywhere; font-size: .95rem; font-family: Arial, Helvetica, sans-serif; font-style: normal; }
.legacy-page table#Tabelle1 { border: 1px solid var(--legacy-line); border-radius: 8px; background: #fff; }
.legacy-page table#Tabelle1 th,
.legacy-page table#Tabelle1 td { padding: 9px; border: 1px solid var(--legacy-line); color: var(--legacy-text); background: #fff; text-align: center; }
.legacy-page hr { max-width: 1080px; margin: 28px auto; border: 0; border-top: 1px solid #dce4ee; }
.legacy-page font[color="ff7722"], .legacy-page font[color="green"] { color: var(--legacy-navy) !important; }
.legacy-page a.gruen, .legacy-page a.maroon { color: var(--legacy-blue) !important; font-weight: 700; }
.legacy-page a.gruen:hover, .legacy-page a.maroon:hover { color: #8a6a2d !important; }
.legacy-page footer.legacy-footer { max-width: 1080px; margin: 22px auto; padding: 18px; border-radius: 12px; background: var(--legacy-navy); color: #fff; }
.legacy-page footer.legacy-footer table,
.legacy-page footer.legacy-footer table#Tabelle1 { max-width: 650px; margin: 0 auto; border: 0; background: transparent; }
.legacy-page footer.legacy-footer table td,
.legacy-page footer.legacy-footer table#Tabelle1 td { padding: 8px; border: 0; background: transparent; }
.legacy-page h6 { margin: 22px auto; color: var(--legacy-muted); font-size: .88rem; font-weight: 400; }
.legacy-page .back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; padding: 10px 14px; border-radius: 7px; background: var(--legacy-navy); color: #fff; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,.18); }
.legacy-page .back-to-top:hover { background: var(--legacy-blue); }
@media (max-width: 700px) {
  .subpage-hero { padding: 38px 16px 42px; }
  .legacy-page .nav-inner { gap: 3px 14px; }
  .legacy-page .main-nav a { padding: 10px 0; font-size: .85rem; }
  .legacy-intro { padding: 32px 16px 18px; }
  .topic-nav { margin: 0 12px 20px; padding: 14px; gap: 7px; }
  .topic-nav a { font-size: .82rem; padding: 7px 9px; }
  .legacy-page .legacy-offer { width: calc(100% - 24px); margin: 16px auto; padding: 20px 14px; }
  .legacy-page #main01 { width: calc(100% - 24px); }
  .legacy-page table { display: block; max-width: 100%; overflow-x: auto; }
  .legacy-page .back-to-top { right: 10px; bottom: 10px; font-size: .86rem; }
}
	
	/* Mobile-Korrektur: Seitenbreite stabilisieren */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.legacy-page,
.legacy-page#main {
  max-width: 100%;
  overflow-x: clip;
}

.legacy-page *,
.legacy-page *::before,
.legacy-page *::after {
  box-sizing: border-box;
}

.legacy-page img,
.legacy-page iframe,
.legacy-page video,
.legacy-page object,
.legacy-page embed {
  max-width: 100%;
}

.legacy-page table {
  max-width: 100%;
}

@media (max-width: 700px) {
  .legacy-page .legacy-offer,
  .legacy-page .legacy-intro,
  .legacy-page .topic-nav,
  .legacy-page #main01 {
    max-width: 100%;
  }

  .legacy-page .nav-inner {
    width: 100%;
    max-width: 100%;
  }
}

	/* Seitenbreite wie in der ursprünglichen Gestaltung */
body.legacy-page#main {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: clip;
}

@media (max-width: 700px) {
  body.legacy-page#main {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
}