/*
 * mybidet Ratgeber-Hub – Redesign 2026-08-22
 * Bewusst auf die Übersichtsseite begrenzt, damit Ratgeber-Artikel unverändert bleiben.
 */

body.guide-hub {
  --rh-ink: #0b2a47;
  --rh-copy: #41536b;
  --rh-cream: #f7f0e3;
  --rh-cream-light: #fcf8f1;
  --rh-aqua: #18b7c8;
  --rh-green: #6f8d55;
  --rh-line: rgba(11, 42, 71, 0.1);
  background:
    radial-gradient(circle at 8% 10%, rgba(24, 183, 200, 0.08), transparent 28rem),
    radial-gradient(circle at 94% 20%, rgba(111, 141, 85, 0.09), transparent 30rem),
    var(--rh-cream);
  color: var(--rh-copy);
}

body.guide-hub main {
  overflow: clip;
}

body.guide-hub main > section .container {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

/* Hero */
body.guide-hub .ratgeber-hub-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.2rem, 4.5vw, 4.5rem) 0 clamp(4.8rem, 6vw, 6rem);
  text-align: center;
}

body.guide-hub .ratgeber-hub-hero::before,
body.guide-hub .ratgeber-hub-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

body.guide-hub .ratgeber-hub-hero::before {
  top: 12%;
  left: max(-8rem, -8vw);
  width: clamp(16rem, 28vw, 32rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(24, 183, 200, 0.14), rgba(24, 183, 200, 0));
}

body.guide-hub .ratgeber-hub-hero::after {
  right: max(-9rem, -8vw);
  bottom: 2%;
  width: clamp(18rem, 32vw, 36rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(111, 141, 85, 0.15), rgba(111, 141, 85, 0));
}

body.guide-hub .ratgeber-hub-hero-inner {
  display: grid;
  justify-items: center;
}

body.guide-hub .ratgeber-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--rh-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.guide-hub .ratgeber-hub-kicker::before {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--rh-aqua);
  box-shadow: 0 0 0 0.38rem rgba(24, 183, 200, 0.12);
  content: "";
}

html body.guide-hub .ratgeber-hub-hero h2 {
  max-width: 980px;
  margin: 0;
  color: var(--rh-ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

html body.guide-hub .ratgeber-hub-hero h2 em {
  display: inline;
  background: none;
  color: var(--rh-aqua);
  font-style: normal;
  -webkit-text-fill-color: var(--rh-aqua);
}

body.guide-hub .ratgeber-hub-hero > .container > p {
  max-width: 760px;
  margin: 1.75rem auto 0;
  color: var(--rh-copy);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.55;
  text-wrap: balance;
}

body.guide-hub .ratgeber-hub-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

body.guide-hub .ratgeber-hub-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(11, 42, 71, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 26px rgba(38, 50, 45, 0.06);
  color: var(--rh-ink);
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

body.guide-hub .ratgeber-hub-trust strong {
  margin-right: 0.28rem;
  color: var(--rh-green);
}

/* Suche */
body.guide-hub .ratgeber-search-section {
  position: relative;
  z-index: 3;
  margin-top: -2.45rem;
  padding: 0 0 clamp(4.5rem, 7vw, 6.5rem);
}

body.guide-hub .ratgeber-search-section > .container {
  max-width: 940px;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid rgba(11, 42, 71, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(30, 51, 43, 0.12);
  backdrop-filter: blur(14px);
}

body.guide-hub .ratgeber-search-label {
  margin: 0 0 0.75rem;
  color: var(--rh-ink);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 800;
  text-align: center;
}

body.guide-hub .ratgeber-search {
  max-width: none;
  min-height: 4.25rem;
  margin: 0;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid rgba(11, 42, 71, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

body.guide-hub .ratgeber-search:focus-within {
  border-color: var(--rh-aqua);
  box-shadow: 0 0 0 5px rgba(24, 183, 200, 0.12);
  transform: none;
}

body.guide-hub .ratgeber-search-ic {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--rh-green);
}

body.guide-hub .ratgeber-search-in {
  color: var(--rh-ink);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

body.guide-hub .ratgeber-search-status {
  margin: 0.7rem 0 0;
  color: var(--rh-copy);
  text-align: center;
}

/* Themen-Einstieg */
body.guide-hub .related-guides.guide-topic-links {
  padding: 0 0 clamp(5rem, 8vw, 8rem);
  background: transparent;
}

body.guide-hub .ratgeber-head {
  display: block;
  margin: 0 auto clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
}

body.guide-hub .ratgeber-head > div {
  max-width: 900px;
  margin-inline: auto;
}

body.guide-hub .ratgeber-head .eyebrow {
  margin-bottom: 0.85rem;
  color: var(--rh-green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

html body.guide-hub .ratgeber-head h2 {
  margin: 0;
  color: var(--rh-ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

html body.guide-hub .ratgeber-head h2 em {
  background: none;
  color: var(--rh-aqua);
  font-style: normal;
  -webkit-text-fill-color: var(--rh-aqua);
}

body.guide-hub .guide-hub-grid-intro {
  max-width: 760px;
  margin: 1.2rem auto 0;
  color: var(--rh-copy);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  text-wrap: balance;
}

body.guide-hub .ratgeber-themennav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto clamp(4.5rem, 7vw, 6.5rem);
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(11, 42, 71, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(41, 50, 43, 0.07);
}

body.guide-hub .ratgeber-themennav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(11, 42, 71, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--rh-ink);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

body.guide-hub .ratgeber-themennav a span {
  display: grid;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(111, 141, 85, 0.13);
  color: var(--rh-green);
  font-size: 0.68rem;
  font-weight: 850;
}

body.guide-hub .ratgeber-themennav a:hover,
body.guide-hub .ratgeber-themennav a:focus-visible {
  border-color: var(--rh-green);
  background: var(--rh-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(76, 104, 55, 0.18);
  transform: translateY(-2px);
}

body.guide-hub .ratgeber-themennav a:hover span,
body.guide-hub .ratgeber-themennav a:focus-visible span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Themenbereiche und Karten */
body.guide-hub .ratgeber-theme {
  position: relative;
  margin: 0 0 clamp(5rem, 8vw, 7.5rem);
  scroll-margin-top: 8rem;
}

body.guide-hub .ratgeber-theme:last-child {
  margin-bottom: 0;
}

html body.guide-hub .ratgeber-theme-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1.4rem, 2.5vw, 2rem);
  color: var(--rh-ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-align: center;
}

html body.guide-hub .ratgeber-theme-title::before,
html body.guide-hub .ratgeber-theme-title::after {
  width: min(7vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent, var(--rh-green)) 52%, transparent));
  content: "";
}

html body.guide-hub .ratgeber-theme-title::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--rh-green)) 52%, transparent), transparent);
}

html body.guide-hub .ratgeber-theme-title span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--rh-green)) 12%, #fff);
  color: color-mix(in srgb, var(--accent, var(--rh-green)) 82%, var(--rh-ink));
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.guide-hub .ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.45rem);
}

body.guide-hub .article {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(11, 42, 71, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent, var(--rh-aqua)) 11%, transparent), transparent 44%),
    linear-gradient(150deg, #fff 0%, var(--rh-cream-light) 100%);
  box-shadow: 0 18px 45px rgba(40, 52, 45, 0.08);
  color: var(--rh-copy);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.guide-hub .article::before {
  top: 1.35rem;
  right: 1.35rem;
  left: auto;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent, var(--rh-aqua));
  box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--accent, var(--rh-aqua)) 12%, transparent);
}

body.guide-hub .article .article-body {
  display: flex;
  min-height: 100%;
  padding: clamp(1.45rem, 2.5vw, 2rem);
  flex-direction: column;
}

body.guide-hub .article .cat {
  align-self: flex-start;
  max-width: calc(100% - 2.25rem);
  margin-bottom: 1rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--rh-aqua)) 10%, #fff);
  color: color-mix(in srgb, var(--accent, var(--rh-aqua)) 74%, var(--rh-ink));
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

html body.guide-hub .article h2,
html body.guide-hub .article h3 {
  margin: 0;
  color: var(--rh-ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

body.guide-hub .article p {
  display: -webkit-box;
  margin: 0.85rem 0 1.35rem;
  overflow: hidden;
  color: var(--rh-copy);
  font-size: 0.96rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.guide-hub .article .meta {
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 42, 71, 0.08);
  color: #6c7889;
  font-size: 0.78rem;
}

body.guide-hub .article .read {
  color: var(--rh-green);
  font-weight: 850;
}

body.guide-hub .article:hover,
body.guide-hub .article:focus-visible {
  border-color: color-mix(in srgb, var(--accent, var(--rh-aqua)) 38%, transparent);
  box-shadow: 0 24px 60px rgba(40, 52, 45, 0.14);
  transform: translateY(-5px);
}

body.guide-hub .article:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, var(--rh-aqua)) 42%, transparent);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  body.guide-hub .ratgeber-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.guide-hub .article {
    min-height: 270px;
  }
}

@media (max-width: 720px) {
  body.guide-hub main > section .container {
    width: min(100% - 1.25rem, 1280px);
  }

  body.guide-hub .ratgeber-hub-hero {
    padding: 3.25rem 0 5.5rem;
  }

  html body.guide-hub .ratgeber-hub-hero h2 {
    max-width: 22rem;
    font-size: clamp(2.8rem, 13.3vw, 4rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
  }

  body.guide-hub .ratgeber-hub-hero > .container > p {
    max-width: 33rem;
    margin-top: 1.25rem;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  body.guide-hub .ratgeber-hub-trust {
    display: grid;
    width: min(100%, 23rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.5rem;
  }

  body.guide-hub .ratgeber-hub-trust span {
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    text-align: center;
  }

  body.guide-hub .ratgeber-hub-trust span:first-child {
    grid-column: 1 / -1;
  }

  body.guide-hub .ratgeber-search-section {
    margin-top: -2.75rem;
    padding-bottom: 4rem;
  }

  body.guide-hub .ratgeber-search-section > .container {
    width: calc(100% - 1.25rem);
    padding: 1rem;
    border-radius: 22px;
  }

  body.guide-hub .ratgeber-search {
    min-height: 3.75rem;
    padding: 0.62rem 0.85rem;
    border-radius: 15px;
  }

  body.guide-hub .ratgeber-search-in {
    min-width: 0;
    font-size: 0.96rem;
  }

  html body.guide-hub .ratgeber-head h2 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
    line-height: 1.02;
  }

  body.guide-hub .guide-hub-grid-intro {
    font-size: 1rem;
    line-height: 1.5;
  }

  body.guide-hub .ratgeber-themennav {
    display: flex;
    width: calc(100% + 1.25rem);
    margin: 0 -0.625rem 4rem;
    padding: 0.85rem 0.625rem 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
    scroll-padding-inline: 0.625rem;
    scrollbar-width: none;
  }

  body.guide-hub .ratgeber-themennav::-webkit-scrollbar {
    display: none;
  }

  body.guide-hub .ratgeber-themennav a {
    flex: 0 0 auto;
    min-height: 2.65rem;
    font-size: 0.79rem;
  }

  body.guide-hub .ratgeber-theme {
    margin-bottom: 4.25rem;
    scroll-margin-top: 6.5rem;
  }

  html body.guide-hub .ratgeber-theme-title {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    text-align: center;
  }

  html body.guide-hub .ratgeber-theme-title::before,
  html body.guide-hub .ratgeber-theme-title::after {
    display: none;
  }

  body.guide-hub .ratgeber-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.guide-hub .article {
    min-height: 0;
    border-radius: 22px;
  }

  body.guide-hub .article .article-body {
    padding: 1.35rem 1.2rem 1.15rem;
  }

  html body.guide-hub .article h2,
  html body.guide-hub .article h3 {
    padding-right: 0.4rem;
    font-size: 1.28rem;
    line-height: 1.2;
  }

  body.guide-hub .article p {
    margin: 0.7rem 0 1.05rem;
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
  }

  body.guide-hub .article:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.guide-hub .article,
  body.guide-hub .ratgeber-themennav a {
    transition: none;
  }
}
