/* ==========================================================================
   Impressfix UI · Öffentliche Inhaltsseiten: Footer, Blog, Rechtstexte, SEO-Landingpages, Cookie-Banner
   Baut auf assets/ui.css auf (Tokens --ui-*). Siehe DESIGN.md.

   Inhalt
   1. Seitenkopf (Blog, Beitrag, Rechtliches)
   2. Blog-Übersicht
   3. Blogbeitrag (Lesespalte, Cover, Lesefortschritt)
   4. Rechtstexte + Widerrufsformular
   5. Ratgeber-Section (Hinweis: Gestaltung in ui-site.css, .sx-blog)
   6. SEO-Landingpages (seitenspezifische Teile)
   7. Footer
   8. Reduzierte Bewegung
   Cookie-Banner: assets/cookie-tool.css (wird überall geladen, auch ohne diese Datei).
   ========================================================================== */


/* ==========================================================================
   1. Seitenkopf – hell, Typografie trägt die Hierarchie
   ========================================================================== */
:is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero{
  position: relative;
  overflow: visible;
  padding: clamp(56px, 7vw, 104px) 0 clamp(32px, 4vw, 52px);
  background-color: transparent !important;
  background-image: none !important;
  color: var(--ui-muted);
}

:is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-eyebrow{
  display: block;
  margin: 0 0 12px;
  color: var(--ui-accent);
  font: 600 var(--ui-fs-callout)/1.3 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  text-transform: none;
}
:is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-eyebrow::before{ content: none; }

:is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero h1{
  max-width: 920px;
  margin: 0;
  color: var(--ui-ink);
  font: 700 var(--ui-fs-display)/var(--ui-lh-tight) var(--ui-font-display);
  letter-spacing: var(--ui-track-display);
  text-wrap: balance;
}
:is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero h1 + p,
.blog-post-page .sx-page-hero .blog-post-intro{
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--ui-muted);
  font: 400 var(--ui-fs-lead)/1.42 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  text-wrap: pretty;
}

/* Einblenden: ruhig von unten, gestaffelt */
.sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *{
  animation: ui-rise-sm var(--ui-dur-4) var(--ui-ease) both;
}
.sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *:nth-child(2){ animation-delay: 70ms; }
.sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *:nth-child(3){ animation-delay: 140ms; }
.sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *:nth-child(4){ animation-delay: 210ms; }
.sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *:nth-child(5){ animation-delay: 280ms; }

/* Fehlerseite im Blog (Beitrag nicht gefunden): Button im System-Stil */
.blog-post-page .sx-page-hero .sx-wrap > p:last-child:has(> .btn){ margin: 32px 0 0; }
.blog-post-page .sx-page-hero:has(.btn){ padding-bottom: clamp(88px, 10vw, 136px); }
.blog-post-page .sx-page-hero .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: var(--ui-accent);
  box-shadow: none;
  color: #fff;
  font: 500 var(--ui-fs-callout)/1 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  text-decoration: none;
  transition: background-color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-1) var(--ui-ease);
}
.blog-post-page .sx-page-hero .btn:hover{ background: var(--ui-accent-hover); }
.blog-post-page .sx-page-hero .btn:active{ transform: scale(.97); }


/* ==========================================================================
   2. Blog-Übersicht – redaktionelles Raster, erster Beitrag als Feature
   ========================================================================== */
body.blog-page,
.blog-page main{ background: var(--ui-bg-2); }

.blog-page .blog-list-section{ padding: 8px 0 var(--ui-section); }
.blog-page .blog-list-section .wrap{
  width: 100%;
  max-width: calc(var(--ui-max) + var(--ui-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--ui-gutter);
  box-sizing: border-box;
}
.blog-page .blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-page .blog-grid .blog-slide-card{
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 0 !important;
  border-radius: var(--ui-r-lg) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-1) !important;
  transition: opacity var(--ui-dur-4) var(--ui-ease), transform var(--ui-dur-3) var(--ui-ease), box-shadow var(--ui-dur-3) var(--ui-ease) !important;
}
.sx-js .blog-page .blog-grid .blog-slide-card[data-reveal]:not(.is-in){ transform: translate3d(0, 24px, 0); }

.blog-page .blog-slide-media{
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ui-bg-2);
}
.blog-page .blog-slide-media::after{
  /* feine Kante zwischen Bild und Text, statt harter Linie */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--ui-hairline);
}
.blog-page .blog-slide-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 900ms var(--ui-ease);
}
.blog-page .blog-slide-placeholder{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--ui-bg-2);
  color: var(--ui-faint);
  font: 700 var(--ui-fs-title-2)/1 var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
}

.blog-page .blog-slide-body{
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}
.blog-page .blog-slide-body h3{
  margin: 0 0 10px;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-title-3)/1.24 var(--ui-font-display);
  letter-spacing: var(--ui-track-headline);
  text-wrap: balance;
}
.blog-page .blog-slide-body h3 a{
  color: inherit;
  text-decoration: none;
}
/* ganze Karte klickbar, der Titel-Link bleibt das Fokusziel */
.blog-page .blog-slide-body h3 a::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.blog-page .blog-slide-body h3 a:focus-visible{ outline: none; }
.blog-page .blog-grid .blog-slide-card:has(h3 a:focus-visible){
  box-shadow: 0 0 0 4px var(--ui-accent-ring), var(--ui-shadow-2) !important;
}
.blog-page .blog-slide-body p{
  display: -webkit-box;
  margin: 0 0 22px;
  overflow: hidden;
  color: var(--ui-muted);
  font: 400 var(--ui-fs-callout)/1.5 var(--ui-font);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.blog-page .blog-read-link{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  color: var(--ui-accent);
  font: 500 var(--ui-fs-callout)/1.3 var(--ui-font);
  text-decoration: none;
}
.blog-page .blog-read-link span{
  display: inline-block;
  transition: transform var(--ui-dur-2) var(--ui-ease);
}

@media (hover: hover){
  .blog-page .blog-grid .blog-slide-card.is-in:hover,
  html:not(.sx-js) .blog-page .blog-grid .blog-slide-card:hover{
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--ui-shadow-2) !important;
  }
  .blog-page .blog-grid .blog-slide-card:hover .blog-slide-media img{ transform: scale(1.045); }
  .blog-page .blog-grid .blog-slide-card:hover .blog-read-link span{ transform: translateX(3px); }
  .blog-page .blog-read-link:hover{ color: var(--ui-accent-hover); }
}
.blog-page .blog-grid .blog-slide-card:active{ transform: scale(.99); }

/* Feature: neuester Beitrag groß, Bild links, Text rechts */
@media (min-width: 900px){
  .blog-page .blog-grid > .blog-slide-card:first-child{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    border-radius: var(--ui-r-xl) !important;
  }
  .blog-page .blog-grid > .blog-slide-card:first-child .blog-slide-media{
    aspect-ratio: auto;
    min-height: 100%;
  }
  .blog-page .blog-grid > .blog-slide-card:first-child .blog-slide-media img{
    position: absolute;
    inset: 0;
  }
  .blog-page .blog-grid > .blog-slide-card:first-child .blog-slide-media::after{
    inset: 0 0 0 auto;
    width: 1px;
    height: auto;
  }
  .blog-page .blog-grid > .blog-slide-card:first-child .blog-slide-body{
    justify-content: center;
    padding: clamp(36px, 4vw, 56px);
  }
  .blog-page .blog-grid > .blog-slide-card:first-child h3{
    margin-bottom: 14px;
    font: 700 calc(var(--ui-fs-title-2) * 1.15)/1.14 var(--ui-font-display);
    letter-spacing: var(--ui-track-title);
  }
  .blog-page .blog-grid > .blog-slide-card:first-child p{
    margin-bottom: 28px;
    font-size: var(--ui-fs-body);
    line-height: 1.55;
    -webkit-line-clamp: 4;
  }
  .blog-page .blog-grid > .blog-slide-card:first-child .blog-read-link{ margin-top: 0; }
}

/* Leerer Zustand */
.blog-page .blog-empty{
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 32px;
  border: 0;
  border-radius: var(--ui-r-xl);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
  text-align: center;
}
.blog-page .blog-empty h2{
  margin: 0 0 10px;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-title-2)/1.2 var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
}
.blog-page .blog-empty p{
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-fs-callout);
  line-height: 1.5;
}

@media (max-width: 899px){
  .blog-page .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px){
  .blog-page .blog-list-section{ padding-bottom: 88px; }
  .blog-page .blog-grid{ grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-page .blog-slide-body{ padding: 20px 20px 12px; }
  .blog-page .blog-slide-body h3{ margin-bottom: 8px; }
  .blog-page .blog-slide-body p{ margin-bottom: 4px; }
  /* Tippfläche 44 px, optisch aber dicht am Text */
  .blog-page .blog-read-link{ min-height: 44px; }
}


/* ==========================================================================
   3. Blogbeitrag – Lesespalte, großes Cover, ruhige Typografie
   ========================================================================== */
body.blog-post-page,
.blog-post-page main{ background: var(--ui-bg); }

.blog-post-page .blog-post-hero{
  margin: 0;
  padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3.4vw, 44px);
  border: 0;
  text-align: left;
}
/* Kopf und Lesespalte teilen sich dieselbe Spalte (Lesebreite + Seitenrand) */
.blog-post-page .blog-post-hero .sx-wrap,
.blog-post-page .sx-page-hero .sx-wrap,
.blog-post-page .blog-article{
  max-width: calc(var(--ui-max-text) + var(--ui-gutter) * 2);
}

/* Brotkrumen */
.blog-post-page .blog-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0 0 22px;
  color: var(--ui-faint);
  font: 500 var(--ui-fs-footnote)/1.3 var(--ui-font);
}
.blog-post-page .blog-breadcrumb a{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ui-muted);
  text-decoration: none;
  transition: color var(--ui-dur-1) var(--ui-ease);
}
.blog-post-page .blog-breadcrumb a:hover{ color: var(--ui-ink); }
.blog-post-page .blog-breadcrumb span{ color: var(--ui-faint); }

.blog-post-page .blog-post-hero h1{
  max-width: none;
  /* zwischen Title 1 und Display: lange Beitragstitel bleiben bei 2–3 Zeilen */
  font-size: calc(var(--ui-fs-title-1) * 1.2);
  line-height: 1.08;
}
.blog-post-page .blog-post-hero .blog-post-intro{
  max-width: none;
  margin-top: 20px;
  color: var(--ui-muted);
}

/* Meta: Lesezeit als ruhige Fußnote mit Uhr-Symbol */
.blog-post-page .blog-post-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ui-muted);
  font: 500 var(--ui-fs-footnote)/1.3 var(--ui-font);
}
.blog-post-page .blog-post-meta span{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ui-muted);
}
.blog-post-page .blog-post-meta span::before{
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cover: breit, große Rundung, weiches Einschweben */
.blog-post-page .blog-post-cover{
  max-width: calc(var(--ui-max) + var(--ui-gutter) * 2);
  margin: 0 auto;
  padding: 8px var(--ui-gutter) 0;
  box-sizing: border-box;
}
.blog-post-page .blog-post-cover img{
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  border-radius: var(--ui-r-xl);
  background: var(--ui-bg-2);
  box-shadow: var(--ui-shadow-0);
}
.sx-js .blog-post-page .blog-post-cover img{
  animation: ui-scale-in 1000ms var(--ui-ease) 180ms both;
}

/* Lesespalte */
.blog-post-page .blog-article{
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--ui-gutter) clamp(72px, 9vw, 120px);
  box-sizing: border-box;
  color: var(--ui-text);
  font: 400 var(--ui-fs-body)/1.65 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  overflow-wrap: break-word;
}
.blog-post-page .blog-article > :first-child{ margin-top: 0; }
.blog-post-page .blog-article p{ margin: 0 0 1.15em; }
.blog-post-page .blog-article strong,
.blog-post-page .blog-article b{ color: var(--ui-ink); font-weight: 600; }
.blog-post-page .blog-article h2{
  margin: 2.4em 0 .6em;
  color: var(--ui-ink);
  font: 700 var(--ui-fs-title-2)/1.2 var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
  scroll-margin-top: 96px;
}
.blog-post-page .blog-article h3{
  margin: 2em 0 .5em;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-title-3)/1.3 var(--ui-font-display);
  letter-spacing: var(--ui-track-headline);
  scroll-margin-top: 96px;
}
.blog-post-page .blog-article h4{
  margin: 1.8em 0 .4em;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-headline)/1.35 var(--ui-font);
}
.blog-post-page .blog-article h2 + h3{ margin-top: 1em; }
.blog-post-page .blog-article a{
  color: var(--ui-accent);
  text-decoration: underline;
  text-decoration-color: var(--ui-accent-ring);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ui-dur-1) var(--ui-ease), text-decoration-color var(--ui-dur-1) var(--ui-ease);
}
.blog-post-page .blog-article a strong{ color: inherit; }
.blog-post-page .blog-article a:hover{ color: var(--ui-accent-hover); text-decoration-color: currentColor; }

/* Listen: eigene Aufzählungspunkte, Zahlen in Akzent */
.blog-post-page .blog-article ul,
.blog-post-page .blog-article ol{
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}
.blog-post-page .blog-article li{
  position: relative;
  margin: .5em 0;
  padding-left: 26px;
}
.blog-post-page .blog-article ul > li::before{
  content: "";
  position: absolute;
  left: 7px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-faint);
}
.blog-post-page .blog-article ol{ counter-reset: ui-ol; }
.blog-post-page .blog-article ol > li{ counter-increment: ui-ol; padding-left: 30px; }
.blog-post-page .blog-article ol > li::before{
  content: counter(ui-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 20px;
  color: var(--ui-accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.blog-post-page .blog-article blockquote{
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border: 0;
  border-left: 3px solid var(--ui-accent);
  border-radius: 0;
  background: none;
  color: var(--ui-ink);
  font: 500 var(--ui-fs-title-3)/1.45 var(--ui-font-display);
  letter-spacing: var(--ui-track-headline);
}
.blog-post-page .blog-article blockquote p:last-child{ margin-bottom: 0; }
.blog-post-page .blog-article hr{
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--ui-line);
}

/* Adressbeispiel (fett gesetzter Block mit Zeilenumbrüchen) als Etikett */
.blog-post-page .blog-article p:has(> strong:only-child > br){
  width: fit-content;
  max-width: 100%;
  margin: 1.4em 0 1.6em;
  padding: 18px 22px;
  border-radius: var(--ui-r-md);
  background: var(--ui-bg-2);
  box-shadow: inset 0 0 0 1px var(--ui-hairline);
  line-height: 1.55;
}
.blog-post-page .blog-article p:has(> strong:only-child > br) strong{ font-weight: 500; }

/* Inline-CTA (fette Frage, Umbruch, Link) als Band im System-Stil */
.blog-post-page .blog-article p:has(> strong:first-child + br + a){
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 2.2em 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--ui-r-xl);
  background: var(--ui-bg-2);
}
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > br{ display: none; }
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > strong{
  color: var(--ui-ink);
  font: 700 var(--ui-fs-title-2)/1.2 var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
}
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > a{
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-accent);
  color: #fff;
  font: 500 var(--ui-fs-callout)/1.25 var(--ui-font);
  text-decoration: none;
  transition: background-color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-1) var(--ui-ease);
}
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > a strong{ color: #fff; font-weight: 500; }
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > a:hover{ background: var(--ui-accent-hover); color: #fff; }
.blog-post-page .blog-article p:has(> strong:first-child + br + a) > a:active{ transform: scale(.97); }

/* Hinweis am Ende als Fußnote */
.blog-post-page .blog-article > p:last-child{
  margin: 3em 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: var(--ui-fs-callout);
  line-height: 1.55;
}

/* Lesefortschritt */
.blog-post-page .sx-readbar{
  top: 0;
  z-index: 1000;
  height: 2px;
}
.blog-post-page .sx-readbar span{ background: var(--ui-accent); }

@media (max-width: 640px){
  .blog-post-page .blog-post-hero{ padding-top: 32px; }
  .blog-post-page .blog-breadcrumb{ margin-bottom: 14px; }
  .blog-post-page .blog-breadcrumb a{ min-height: 44px; }
  .blog-post-page .blog-post-hero h1{ line-height: 1.1; }
  .blog-post-page .blog-post-cover{ padding: 4px var(--ui-gutter) 0; }
  .blog-post-page .blog-post-cover img{ aspect-ratio: 16 / 10; border-radius: var(--ui-r-lg); }
  .blog-post-page .blog-article{ padding-top: 40px; padding-bottom: 72px; font-size: var(--ui-fs-body); }
  /* schmale Spalte: lange deutsche Komposita sauber trennen statt Flatterrand */
  .blog-post-page .blog-article :is(p, li){
    -webkit-hyphens: auto;
            hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }
  .blog-post-page .blog-article h2{ margin-top: 2em; }
  .blog-post-page .blog-article p:has(> strong:first-child + br + a) > a{
    width: 100%;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: var(--ui-r-pill);
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
  }
}


/* ==========================================================================
   4. Rechtstexte – Lesespalte im Stil von Apple-Rechtsseiten
   ========================================================================== */
body.lx-page,
.lx-page main{ background: var(--ui-bg); }

.lx-page .sx-page-hero .sx-wrap,
.lx-page .lx-layout{
  max-width: calc(var(--ui-max-text) + var(--ui-gutter) * 2);
  padding-inline: var(--ui-gutter);
}
.lx-page .sx-page-hero{ padding-bottom: 0; }
.lx-page .sx-page-hero .sx-wrap::after{
  /* Haarlinie unter dem Titel, auf die Lesespalte begrenzt */
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(28px, 3.6vw, 44px);
  background: var(--ui-line);
  animation: none;
}
.lx-page .sx-page-hero h1{
  font: 700 var(--ui-fs-title-1)/var(--ui-lh-title) var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
}

.lx-page .lx-layout{
  display: block;
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(88px, 10vw, 136px);
}
.lx-page .lx-prose{
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ui-text);
  font: 400 var(--ui-fs-body)/1.6 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  overflow-wrap: break-word;
}
.sx-js .lx-page .lx-prose{ animation: ui-rise-sm var(--ui-dur-4) var(--ui-ease) 180ms both; }

.lx-page .lx-prose p,
.lx-page .lx-prose li{ color: var(--ui-text); }
.lx-page .lx-prose p{ margin: 0 0 1em; }
.lx-page .lx-prose strong,
.lx-page .lx-prose b{ color: var(--ui-ink); font-weight: 600; }

/* Abschnittsüberschriften: h2 und fett gesetzte Absatztitel (lx-h, per site.js) */
.lx-page .lx-prose h2,
.lx-page .lx-prose p.lx-h{
  margin: 1.6em 0 .6em;
  padding-top: 1.25em;
  text-wrap: balance;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font: 600 var(--ui-fs-title-3)/1.3 var(--ui-font-display);
  letter-spacing: var(--ui-track-headline);
  scroll-margin-top: 96px;
}
.lx-page .lx-prose p.lx-h strong,
.lx-page .lx-prose p.lx-h b{ font-weight: 600; }
.lx-page .lx-prose > h1:first-child + h2,
.lx-page .lx-prose > h1:first-child + p.lx-h,
.lx-page .lx-prose > h2:first-child,
.lx-page .lx-prose > p.lx-h:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
/* „Stand: …“ direkt unter dem (ausgeblendeten) Dokumenttitel: leise Metazeile,
   danach beginnt Abschnitt 1 ohne zweiten Trenner direkt unter der Titel-Haarlinie */
.lx-page .lx-prose > h1:first-child + p:not(.lx-h):has(+ h2, + p.lx-h){
  margin-bottom: 0;
  color: var(--ui-muted);
  font-size: var(--ui-fs-callout);
}
.lx-page .lx-prose > h1:first-child + p:not(.lx-h):has(+ h2, + p.lx-h) :is(strong, b){ color: var(--ui-text); }
.lx-page .lx-prose > h1:first-child + p:not(.lx-h):has(+ h2, + p.lx-h) + :is(h2, p.lx-h){
  margin-top: 1.4em;
  padding-top: 0;
  border-top: 0;
}
.lx-page .lx-prose h2 + h3{ margin-top: 1.2em; }
.lx-page .lx-prose h3{
  margin: 2em 0 .5em;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-headline)/1.4 var(--ui-font);
  letter-spacing: var(--ui-track-headline);
  scroll-margin-top: 96px;
}
.lx-page .lx-prose h4{
  margin: 1.6em 0 .4em;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-callout)/1.4 var(--ui-font);
}
.lx-page .lx-prose a{
  color: var(--ui-accent);
  text-decoration: underline;
  text-decoration-color: var(--ui-accent-ring);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ui-dur-1) var(--ui-ease), text-decoration-color var(--ui-dur-1) var(--ui-ease);
}
.lx-page .lx-prose a:hover{ color: var(--ui-accent-hover); text-decoration-color: currentColor; }

.lx-page .lx-prose ul,
.lx-page .lx-prose ol{
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.lx-page .lx-prose li{
  position: relative;
  margin: .4em 0;
  padding-left: 24px;
}
.lx-page .lx-prose ul > li::before{
  content: "";
  position: absolute;
  left: 6px;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ui-faint);
}
.lx-page .lx-prose ol{ counter-reset: ui-ol; }
.lx-page .lx-prose ol > li{ counter-increment: ui-ol; padding-left: 28px; }
.lx-page .lx-prose ol > li::before{
  content: counter(ui-ol) ".";
  position: absolute;
  left: 0;
  color: var(--ui-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Tabellen (falls im Admin gepflegt) */
.lx-page .lx-prose table{
  width: 100%;
  margin: 1.4em 0 1.8em;
  border-collapse: collapse;
  font-size: var(--ui-fs-callout);
  line-height: 1.45;
}
.lx-page .lx-prose th,
.lx-page .lx-prose td{
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--ui-line);
  text-align: left;
  vertical-align: top;
}
.lx-page .lx-prose th{
  color: var(--ui-ink);
  font-weight: 600;
  border-bottom-color: var(--ui-line-strong);
}
.lx-page .lx-prose blockquote{
  margin: 1.6em 0;
  padding: 18px 22px;
  border: 0;
  border-radius: var(--ui-r-md);
  background: var(--ui-bg-2);
  color: var(--ui-ink);
}
.lx-page .lx-prose hr{
  height: 1px;
  margin: 2.6em 0;
  border: 0;
  background: var(--ui-line);
}

/* --- Widerrufsformular: Karte auf Grau, Felder im System-Stil ----------- */
.lx-page .lx-prose .lx-withdraw{
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(24px, 4.4vw, 44px);
  border: 0;
  border-radius: var(--ui-r-xl);
  background: var(--ui-bg-2);
  scroll-margin-top: 96px;
}
.lx-page .lx-prose .lx-withdraw-head{ margin-bottom: 28px; }
.lx-page .lx-prose .lx-withdraw-head .sx-eyebrow{
  display: block;
  margin: 0 0 8px;
  color: var(--ui-accent);
  font: 600 var(--ui-fs-subhead)/1.3 var(--ui-font);
  letter-spacing: 0;
}
.lx-page .lx-prose .lx-withdraw-head .sx-eyebrow::before{ content: none; }
.lx-page .lx-prose .lx-withdraw-head h2{
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--ui-ink);
  font: 700 var(--ui-fs-title-2)/1.2 var(--ui-font-display);
  letter-spacing: var(--ui-track-title);
}
.lx-page .lx-prose .lx-withdraw-head p:last-child{
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-fs-callout);
  line-height: 1.5;
}
.lx-page .lx-withdraw-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.lx-page .lx-field{ display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lx-page .lx-field label{
  margin: 0;
  color: var(--ui-ink);
  font: 500 var(--ui-fs-subhead)/1.3 var(--ui-font);
}
.lx-page .lx-field label span{ margin-left: 4px; color: var(--ui-muted); font-weight: 400; }
.lx-page .lx-field input,
.lx-page .lx-field textarea{
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid var(--ui-line-strong);
  border-radius: 12px;
  background: var(--ui-surface);
  box-shadow: none;
  color: var(--ui-ink);
  font: 400 var(--ui-fs-body)/1.4 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--ui-dur-2) var(--ui-ease), box-shadow var(--ui-dur-2) var(--ui-ease);
}
.lx-page .lx-field input[type="date"]{ min-height: 48px; line-height: 1.2; }
.lx-page .lx-field textarea{ min-height: 140px; resize: vertical; line-height: 1.5; }
.lx-page .lx-field input:hover,
.lx-page .lx-field textarea:hover{ border-color: var(--ui-faint); }
.lx-page .lx-field input:focus,
.lx-page .lx-field textarea:focus{
  outline: none;
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 4px var(--ui-accent-ring);
}
.lx-page .lx-field ::placeholder{ color: var(--ui-faint); opacity: 1; }
.lx-page .lx-field input:user-invalid,
.lx-page .lx-field textarea:user-invalid{ border-color: var(--ui-red); background: var(--ui-red-tint); }
.lx-page .lx-field input:user-invalid:focus,
.lx-page .lx-field textarea:user-invalid:focus{ background: var(--ui-surface); box-shadow: 0 0 0 4px var(--ui-red-tint); }
.lx-page .lx-withdraw-actions{ padding-top: 6px; }
.lx-page .lx-withdraw .lx-withdraw-actions .sx-btn.is-primary{
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: var(--ui-accent);
  color: #fff;
  font: 500 var(--ui-fs-headline)/1 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  transition: background-color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-1) var(--ui-ease);
}
.lx-page .lx-withdraw .lx-withdraw-actions .sx-btn.is-primary:hover{ background: var(--ui-accent-hover); }
.lx-page .lx-withdraw .lx-withdraw-actions .sx-btn.is-primary:active{ transform: scale(.97); }
/* Rückmeldung: getönte Zeile mit Status-Symbol (wie auf der Kunden-Impressumsseite) */
.lx-page .lx-prose .lx-withdraw-msg{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  font: 500 var(--ui-fs-callout)/1.45 var(--ui-font);
  animation: ui-rise-sm var(--ui-dur-3) var(--ui-ease) both;
}
.lx-page .lx-prose .lx-withdraw-msg::before{
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: var(--_ico) center / contain no-repeat;
          mask: var(--_ico) center / contain no-repeat;
}
.lx-page .lx-prose .lx-withdraw-msg.is-ok{
  --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.7 7.7-5.5 5.6a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4l1.8 1.8 4.8-4.9a1 1 0 0 1 1.4 1.4z'/%3E%3C/svg%3E");
  background: var(--ui-green-tint);
  color: var(--ui-green-ink);
}
.lx-page .lx-prose .lx-withdraw-msg.is-error{
  --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 5a1.1 1.1 0 0 1 1.1 1.1v4.6a1.1 1.1 0 0 1-2.2 0V8.1A1.1 1.1 0 0 1 12 7zm0 10.4a1.3 1.3 0 1 1 0-2.6 1.3 1.3 0 0 1 0 2.6z'/%3E%3C/svg%3E");
  background: var(--ui-red-tint);
  color: var(--ui-red-ink);
}
.lx-page .lx-prose .lx-withdraw-msg.is-info{
  --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 15.2a1.1 1.1 0 0 1-1.1-1.1v-4.6a1.1 1.1 0 0 1 2.2 0v4.6a1.1 1.1 0 0 1-1.1 1.1zm0-8.6a1.3 1.3 0 1 1 0-2.6 1.3 1.3 0 0 1 0 2.6z'/%3E%3C/svg%3E");
  background: var(--ui-blue-tint);
  color: var(--ui-blue-ink);
}
.lx-page .lx-prose .lx-withdraw-msg a{ color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* --- Online-Widerruf (§ 356a BGB): Einstieg im Seitenkopf ---------------- */
.lx-page .lx-hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: var(--ui-accent);
  color: #fff;
  font: 500 var(--ui-fs-callout)/1 var(--ui-font);
  text-decoration: none;
  transition: background-color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-1) var(--ui-ease);
}
.lx-page .lx-hero-cta svg{ width: 15px; height: 15px; transition: transform var(--ui-dur-2) var(--ui-ease); }
.lx-page .lx-hero-cta:hover{ background: var(--ui-accent-hover); color: #fff; }
.lx-page .lx-hero-cta:hover svg{ transform: translateY(2px); }
.lx-page .lx-hero-cta:active{ transform: scale(.97); }

/* Feldhinweise und Fehler direkt am Feld */
.lx-page .lx-prose .lx-field-hint{ margin: -2px 0 2px; color: var(--ui-muted); font: 400 var(--ui-fs-footnote)/1.4 var(--ui-font); }
.lx-page .lx-prose .lx-field-error{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--ui-red-ink);
  font: 500 var(--ui-fs-footnote)/1.4 var(--ui-font);
}
/* Feldränder mit genug Kontrast auf der grauen Karte (WCAG 1.4.11) */
.lx-page .lx-withdraw .lx-field :is(input, textarea){ border-color: var(--ui-faint); }
.lx-page .lx-withdraw .lx-field :is(input, textarea):hover{ border-color: var(--ui-muted); }
.lx-page .lx-withdraw .lx-field :is(input, textarea):focus{ border-color: var(--ui-accent); }
.lx-page .lx-field.has-error :is(input, textarea){ border-color: var(--ui-red); background: var(--ui-red-tint); }
.lx-page .lx-field.has-error :is(input, textarea):focus{ background: var(--ui-surface); box-shadow: 0 0 0 4px var(--ui-red-tint); }
/* Sicherheitsfrage: schmales Zahlenfeld, Karte hebt sich leicht ab */
.lx-page .lx-withdraw-form .lx-field:has(#wf-answer){
  padding: 16px;
  border-radius: 14px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-0);
  animation: ui-rise-sm var(--ui-dur-3) var(--ui-ease) both;
}
.lx-page .lx-field #wf-answer{ max-width: 160px; font-variant-numeric: tabular-nums; }
/* Falle für Bots: für Menschen unsichtbar und nicht erreichbar */
.lx-page .lx-hp{ position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lx-page .lx-withdraw-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lx-page .lx-prose .lx-withdraw-note{ margin: 0; color: var(--ui-muted); font: 400 var(--ui-fs-footnote)/1.4 var(--ui-font); }

/* --- Eingangsbestätigung auf der Seite (druckbar) ------------------------- */
.lx-page .lx-prose .lx-withdraw.is-done{ background: var(--ui-surface); box-shadow: var(--ui-shadow-1); animation: ui-rise-sm var(--ui-dur-3) var(--ui-ease) both; }
.lx-page .lx-prose .lx-receipt-head{ display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.lx-page .lx-receipt-icon{
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ui-green-tint);
  color: var(--ui-green-ink);
  animation: ui-pop 520ms var(--ui-ease-spring) 120ms both;
}
.lx-page .lx-receipt-icon svg{ width: 26px; height: 26px; }
.lx-page .lx-prose .lx-receipt-head .sx-eyebrow{ display: block; margin: 0 0 4px; color: var(--ui-green-ink); font: 600 var(--ui-fs-subhead)/1.3 var(--ui-font); letter-spacing: 0; }
.lx-page .lx-prose .lx-receipt-head .sx-eyebrow::before{ content: none; }
.lx-page .lx-prose .lx-receipt-head h2{ margin: 0; padding: 0; border: 0; color: var(--ui-ink); font: 700 var(--ui-fs-title-2)/1.2 var(--ui-font-display); letter-spacing: var(--ui-track-title); }
.lx-page .lx-prose .lx-receipt-head h2:focus{ outline: none; }
.lx-page .lx-prose .lx-receipt-lead{ margin: 0 0 24px; color: var(--ui-text); font-size: var(--ui-fs-callout); line-height: 1.55; }
.lx-page .lx-prose .lx-receipt-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 24px;
  padding: 4px 18px;
  border-radius: 14px;
  background: var(--ui-bg-2);
}
.lx-page .lx-prose .lx-receipt-list > div{ padding: 12px 0; border-bottom: 1px solid var(--ui-line); min-width: 0; }
.lx-page .lx-prose .lx-receipt-list > div.is-wide{ grid-column: 1 / -1; border-bottom: 0; }
.lx-page .lx-prose .lx-receipt-list dt{ margin: 0 0 2px; color: var(--ui-muted); font: 500 var(--ui-fs-footnote)/1.35 var(--ui-font); }
.lx-page .lx-prose .lx-receipt-list dd{ margin: 0; color: var(--ui-ink); font: 500 var(--ui-fs-callout)/1.45 var(--ui-font); overflow-wrap: anywhere; }
.lx-page .lx-receipt-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.lx-page .lx-receipt-actions .sx-btn.is-secondary{
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: var(--ui-fill);
  color: var(--ui-ink);
  font: 500 var(--ui-fs-callout)/1 var(--ui-font);
  cursor: pointer;
}
.lx-page .lx-receipt-actions .sx-btn.is-secondary:hover{ background: color-mix(in srgb, var(--ui-muted) 20%, transparent); }
.lx-page .lx-prose .lx-receipt-new{ color: var(--ui-accent); font: 500 var(--ui-fs-callout)/1.3 var(--ui-font); }
.lx-page .lx-prose .lx-receipt-org{ margin: -8px 0 20px; color: var(--ui-muted); font: 400 var(--ui-fs-footnote)/1.4 var(--ui-font); }

/* Drucken: nur die Bestätigung */
@media print{
  body.lx-page > main.lx-main{ display: block !important; } /* hebt die alte Druckregel body>*{display:none} aus enterprise.css auf */
  .lx-page .lx-prose .lx-receipt-org{ display: block; }
  .lx-page:has(.lx-withdraw.is-done) :is(.sx-header, .sx-nav, header, footer, .cf, .sx-page-hero, #cookie-banner, .cookie-tool){ display: none !important; }
  .lx-page:has(.lx-withdraw.is-done) .lx-prose > :not(.lx-withdraw){ display: none !important; }
  .lx-page .lx-prose .lx-withdraw.is-done{ margin: 0; padding: 0; box-shadow: none; animation: none; }
  .lx-page .lx-receipt-actions{ display: none; }
}

@media (max-width: 640px){
  .lx-page .lx-prose .lx-receipt-list{ grid-template-columns: minmax(0, 1fr); }
  .lx-page .lx-withdraw-actions{ flex-direction: column; align-items: stretch; text-align: center; }
  .lx-page .lx-receipt-actions{ flex-direction: column; align-items: stretch; text-align: center; }
  .lx-page .lx-receipt-actions .sx-btn.is-secondary{ width: 100%; }
}

@media (max-width: 640px){
  /* Lesekomfort auf dem Handy: ruhiger Rand, Abschnitte klar getrennt, nichts läuft aus der Spalte */
  .lx-page .sx-page-hero{ padding-top: 40px; }
  .lx-page .lx-layout{ padding-top: 28px; }
  .lx-page .lx-prose{ line-height: 1.62; }
  .lx-page .lx-prose :is(p, li){
    -webkit-hyphens: auto;
            hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }
  /* gleiche Spezifität wie die Basisregel, damit die Rücksetzung für die erste Überschrift greift */
  .lx-page .lx-prose h2,
  .lx-page .lx-prose p.lx-h{
    margin-top: 1.5em;
    padding-top: 1.4em;
    line-height: 1.28;
    -webkit-hyphens: manual;
            hyphens: manual;
  }
  .lx-page .lx-prose li{ padding-left: 20px; }
  .lx-page .lx-prose ul > li::before{ left: 4px; }
  .lx-page .lx-prose a{ overflow-wrap: anywhere; }
  .lx-page .lx-prose table{
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .lx-page .lx-prose :is(th, td){ min-width: 120px; }
  .lx-page .lx-withdraw-form{ grid-template-columns: minmax(0, 1fr); }
  .lx-page .lx-withdraw .lx-withdraw-actions .sx-btn.is-primary{ width: 100%; }
  .lx-page .lx-prose .lx-withdraw{ margin-left: -4px; margin-right: -4px; border-radius: var(--ui-r-lg); }
}


/* ==========================================================================
   5. Ratgeber-Section (Startseite, Blogbeitrag, Landingpages)
   ========================================================================== */
/* Die Ratgeber-Section (.bx-section.sx-blog) gestaltet ui-site.css als Baustein
   der Startseite; blog.css liefert nur noch die Grundstruktur ohne eigene Farben. */


/* ==========================================================================
   6. SEO-Landingpages – Einleitungstext und weiterführende Ratgeber
   ========================================================================== */
/* Einleitungstext unter dem Abschnittskopf: eine Stufe leiser als der Lead darüber,
   damit Überschrift → Lead → Text → Kacheln eine klare Hierarchie bilden
   (Grundgestaltung .sx-intro in ui-site.css, hier nur seitenbezogen verfeinert). */
.seo-page .sx-intro{
  max-width: var(--ui-max-text);
  margin: calc(clamp(48px, 6vw, 80px) * -0.45) auto clamp(44px, 5vw, 64px);
  color: var(--ui-text);
  font: 400 var(--ui-fs-body)/1.6 var(--ui-font);
  letter-spacing: var(--ui-track-body);
  text-wrap: pretty;
}
@media (max-width: 640px){
  .seo-page .sx-intro{ margin-top: -12px; margin-bottom: 36px; }
}

.seo-page .sx-related{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.seo-page .sx-related a{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-fill-2);
  color: var(--ui-ink);
  font: 500 var(--ui-fs-subhead)/1.25 var(--ui-font);
  text-decoration: none;
  transition: background-color var(--ui-dur-2) var(--ui-ease), color var(--ui-dur-2) var(--ui-ease), transform var(--ui-dur-1) var(--ui-ease);
}
.seo-page .sx-related a:hover{
  background: var(--ui-accent-tint);
  color: var(--ui-accent-ink);
  text-decoration: none;
}
.seo-page .sx-related a:active{ transform: scale(.97); }
@media (max-width: 640px){
  .seo-page .sx-related a{ min-height: 44px; }
}


/* ==========================================================================
   7. Footer – hell, ruhig, klar gegliedert (apple.com)
   ========================================================================== */
.cf-footer{
  position: relative;
  background: var(--ui-bg-2);
  border-top: 1px solid var(--ui-hairline);
  color: var(--ui-muted);
  font: 400 var(--ui-fs-footnote)/1.45 var(--ui-font);
  letter-spacing: 0;
}
.cf-footer a{ color: inherit; text-decoration: none; }
.cf-footer a:focus-visible{
  outline: 3px solid var(--ui-accent-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.cf-footer .cf-top{
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: clamp(48px, 5vw, 64px) 0 clamp(36px, 4vw, 48px);
}

/* Marke + Kontakt */
.cf-footer .cf-logo{
  display: inline-flex;
  border-radius: 8px;
  transition: opacity var(--ui-dur-2) var(--ui-ease);
}
.cf-footer .cf-logo:hover{ opacity: .78; }
.cf-footer .cf-logo img{ display: block; width: auto; height: 30px; }
.cf-footer .cf-contact{
  display: grid;
  gap: 6px;
  margin: 22px 0 0;
}
.cf-footer .cf-contact-item{
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
}
.cf-footer .cf-contact-ico{
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-0);
  color: var(--ui-ink);
  transition: color var(--ui-dur-2) var(--ui-ease), background-color var(--ui-dur-2) var(--ui-ease);
}
.cf-footer .cf-contact-ico svg{ width: 16px; height: 16px; }
.cf-footer .cf-contact-txt small{
  display: block;
  color: var(--ui-muted);
  font: 400 var(--ui-fs-caption)/1.3 var(--ui-font);
}
.cf-footer .cf-contact-txt b{
  display: block;
  overflow: hidden;
  color: var(--ui-ink);
  font: 500 var(--ui-fs-subhead)/1.4 var(--ui-font);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--ui-dur-1) var(--ui-ease);
}
.cf-footer .cf-contact-item:hover b{ color: var(--ui-accent); }
.cf-footer .cf-contact-item:hover .cf-contact-ico{ color: var(--ui-accent); }

/* Link-Spalten */
.cf-footer .cf-col h2{
  margin: 0 0 14px;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-footnote)/1.3 var(--ui-font);
  letter-spacing: 0;
}
.cf-footer .cf-col ul{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cf-footer .cf-col a{
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ui-text);
  font: 400 var(--ui-fs-footnote)/1.4 var(--ui-font);
  transition: color var(--ui-dur-1) var(--ui-ease);
}
.cf-footer .cf-col a:hover{
  color: var(--ui-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.cf-footer .cf-col-ico{ display: none; }

/* Vertrauens-Zeile: ruhig ausgerichtet, ohne Kacheln */
.cf-footer .cf-trust{
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--ui-line);
}
.cf-footer .cf-badges{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 24px;
}
.cf-footer .cf-badge-link{
  display: block;
  min-width: 0;
  border-radius: 12px;
  color: inherit;
}
.cf-footer .cf-badge{
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}
.cf-footer .cf-badge:hover{ background: none; }
.cf-footer .cf-badge-ico{
  flex: none;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--ui-shadow-0);
  transition: transform var(--ui-dur-3) var(--ui-ease-spring);
}
.cf-footer .cf-badge-link:hover .cf-badge-ico{ transform: translateY(-2px); }
.cf-footer .cf-badge-txt{ display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cf-footer .cf-badge-txt b{
  overflow: hidden;
  color: var(--ui-ink);
  font: 600 var(--ui-fs-caption)/1.3 var(--ui-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-footer .cf-badge-txt small{
  overflow: hidden;
  color: var(--ui-muted);
  font: 400 var(--ui-fs-caption)/1.3 var(--ui-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Untere Zeile: Copyright, Rechtliches, nach oben */
.cf-footer .cf-bottom{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font: 400 var(--ui-fs-caption)/1.4 var(--ui-font);
}
.cf-footer .cf-copy{ white-space: nowrap; }
.cf-footer .cf-legal{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 0;
  margin-left: auto;
}
.cf-footer .cf-legal a{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ui-text);
  transition: color var(--ui-dur-1) var(--ui-ease);
}
.cf-footer .cf-legal a:hover{ color: var(--ui-ink); text-decoration: underline; text-underline-offset: 3px; }
.cf-footer .cf-legal a + a::before{
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 12px;
  border-radius: 0;
  background: var(--ui-line-strong);
  vertical-align: middle;
}
.cf-footer .cf-totop{
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
  color: var(--ui-ink);
  transition: transform var(--ui-dur-2) var(--ui-ease), box-shadow var(--ui-dur-2) var(--ui-ease);
}
.cf-footer .cf-totop:hover{ transform: translateY(-2px); box-shadow: var(--ui-shadow-2); }
.cf-footer .cf-totop:active{ transform: scale(.94); }
.cf-footer .cf-totop svg{ width: 15px; height: 15px; }

@media (max-width: 1080px){
  .cf-footer .cf-top{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .cf-footer .cf-brand{ grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
  .cf-footer .cf-contact{ display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; }
  .cf-footer .cf-badges{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  /* Ein gemeinsames, leicht asymmetrisches Zweier-Raster für Links, Siegel und Rechtliches:
     „Autoren & Self-Publisher“ bleibt auf 375–390 px einzeilig, alle zweiten Spalten fluchten. */
  .cf-footer{ --_cf-cols: minmax(0, .84fr) minmax(0, 1.16fr); }
  .cf-footer .cf-top{ grid-template-columns: var(--_cf-cols); gap: 28px 16px; padding-top: 40px; }
  .cf-footer .cf-col a{ text-wrap: balance; }
  .cf-footer .cf-brand{ display: block; }
  .cf-footer .cf-contact{ display: grid; gap: 0; margin-top: 18px; }
  .cf-footer .cf-col ul{ gap: 0; }
  .cf-footer .cf-col a{ min-height: 44px; font-size: var(--ui-fs-callout); }
  .cf-footer .cf-col h2{ margin-bottom: 4px; }
  .cf-footer .cf-badges{ grid-template-columns: var(--_cf-cols); gap: 18px 16px; }
  .cf-footer .cf-bottom{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "legal legal" "copy top";
    gap: 8px 16px;
    padding-top: 12px;
  }
  .cf-footer .cf-legal{
    grid-area: legal;
    display: grid;
    grid-template-columns: var(--_cf-cols);
    gap: 0 16px;
    margin-left: 0;
  }
  .cf-footer .cf-legal a{ min-height: 44px; font-size: var(--ui-fs-footnote); }
  .cf-footer .cf-legal a + a::before{ content: none; }
  .cf-footer .cf-copy{ grid-area: copy; align-self: center; }
  .cf-footer .cf-totop{ grid-area: top; width: 44px; height: 44px; }
}


/* ==========================================================================
   8. Reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .sx-js :is(.blog-page, .blog-post-page, .lx-page) .sx-page-hero .sx-wrap > *,
  .sx-js .lx-page .lx-prose,
  .sx-js .blog-post-page .blog-post-cover img{ animation: none; }
  .blog-page .blog-grid .blog-slide-card,
  .blog-page .blog-grid .blog-slide-card:hover{ transform: none !important; }
  .blog-page .blog-slide-card:hover .blog-slide-media img{ transform: none; }
}
