/* AKKOC v31.7 – dauerhafte Qualitäts-, Farb- und Breitenregeln */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main .wrap,
.five-star-article,
.five-star-hero,
.golden-rules-teaser,
.golden-rules-teaser > div {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Feste AKKOC-CI-Regel: Gold führt das Auge, der Text erklärt. */
main h1,
main h2,
main h3,
main h4 {
  color: #8a6b32 !important;
}

.hero h1,
.request-hero h1,
.catalog-hero h1,
.recommend-hero h1,
.akkoc-origin h1,
.akkoc-origin h2,
.akkoc-origin h3,
.akkoc-origin h4,
.golden-rules-teaser h2 {
  color: #e4c47f !important;
}

/* Persönliche Geschichte: Kapitelkennzeichnung auf dunklem Grund gut lesbar. */
#wie-alles-begann > .eyebrow {
  color: #e4c47f !important;
  opacity: 1 !important;
}

/* Unternehmerfrage: kompakt, klar und mit eindeutigem Handlungsbutton. */
.question-box {
  padding: clamp(24px, 4vw, 38px);
}

.question-box textarea {
  min-height: 112px;
  resize: vertical;
}

#prepare-question.btn {
  appearance: none;
  background: #c9a45b;
  border: 1px solid #c9a45b;
  color: #0f1d31;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 48px;
  padding: 13px 20px;
}

#prepare-question.btn:hover,
#prepare-question.btn:focus-visible {
  background: #e4c47f;
  border-color: #e4c47f;
  color: #0f1d31;
}

#prepare-question.btn:focus-visible {
  outline: 3px solid #0f1d31;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .question-box {
    padding: 22px 18px;
  }

  #prepare-question.btn {
    display: block;
    width: 100%;
  }
}

/* Leitartikel: vom Standard zum Fünf-Sterne-Unternehmen. */
.five-star-article {
  background: #fbf8f1;
  border: 1px solid rgba(138, 107, 50, .35);
  border-radius: 24px;
  margin: 42px 0;
  padding: clamp(26px, 5vw, 56px);
}

.five-star-article .lead {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.five-star-jump {
  margin: 26px 0 8px;
}

.five-star-jump .btn {
  background: #c9a45b !important;
  border: 2px solid #8a6b32 !important;
  color: #0f1d31 !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  padding: 14px 22px !important;
  text-decoration: none !important;
  visibility: visible !important;
}

.five-star-jump .btn:hover,
.five-star-jump .btn:focus-visible {
  background: #e4c47f !important;
  color: #0f1d31 !important;
}

#fuenf-sterne-unternehmen > header.five-star-hero {
  background-color: #0f1d31 !important;
  background-image: none !important;
  border: 2px solid #c9a45b !important;
  border-radius: 18px !important;
  display: block !important;
  margin: 0 0 32px !important;
  opacity: 1 !important;
  padding: clamp(22px, 3vw, 32px) !important;
}

.five-star-hero .eyebrow,
.five-star-hero h2 {
  color: #e4c47f !important;
}

.five-star-hero h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.45rem) !important;
  hyphens: auto;
  line-height: 1.06;
  margin: .35rem 0 .8rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.five-star-hero .lead {
  color: #fff !important;
  margin: 0;
}

.five-star-hero .lead strong {
  color: #fff !important;
}

.five-star-article p,
.golden-rules-teaser p,
.golden-rules-teaser h2 {
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

.golden-rules-teaser h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem) !important;
  line-height: 1.08;
}

.golden-rules-teaser .btn {
  box-sizing: border-box;
  margin: 0 0 12px;
  max-width: 100%;
  white-space: normal;
}

.golden-rules-teaser .text-link {
  display: block !important;
  margin-top: 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
  width: max-content;
}

@media (max-width: 760px) {
  .five-star-article {
    border-radius: 18px;
    padding: 18px;
  }

  #fuenf-sterne-unternehmen > header.five-star-hero {
    padding: 22px 18px !important;
  }

  .five-star-jump .btn,
  .golden-rules-teaser .btn {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* v34.5: Einheitlicher, gut sichtbarer Sprung zum Seitenanfang. */
.back-to-top {
  align-items: center;
  background: #101b2d;
  border: 1px solid #b79452;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 6px 20px rgba(16, 27, 45, .22);
  color: #fff !important;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 700;
  gap: 7px;
  padding: 10px 15px;
  position: fixed;
  right: 18px;
  text-decoration: none;
  z-index: 1000;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #b79452;
  color: #101b2d !important;
}

@media (max-width: 520px) {
  .back-to-top {
    bottom: 12px;
    font-size: .88rem;
    padding: 9px 12px;
    right: 12px;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
}

/* v34.4: volle Kartenbreite auch bei mobilen Browsern mit breitem Layout-Viewport. */
@media (max-width: 1100px) {
  .catalog-products .wrap {
    display: block !important;
    width: 100% !important;
  }

  .catalog-products .product-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: none !important;
    width: 100% !important;
  }

  .catalog-products .product-card,
  .catalog-products .product-card.wide-product {
    grid-column: 1 / -1 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .catalog-products .product-card h2,
  .catalog-products .product-price,
  .catalog-products .product-price small,
  .catalog-products .product-card p strong {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
}

.latest-card-featured {
  border-color: #b89245 !important;
  box-shadow: 0 14px 34px rgba(15, 29, 49, .13);
}

/* Der bessere Betrieb: ruhige, einheitliche Artikel-Typografie. */
.better-page > .wrap > h1 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  hyphens: auto;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

.better-page > .wrap > h2,
.better-page > .wrap > section > h2,
.better-page .honest-filter h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
  hyphens: auto;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

.better-page .honest-filter,
.better-page #kontakt-idee {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.better-page .btn {
  background: #c9a45b !important;
  border: 2px solid #8a6b32 !important;
  box-sizing: border-box;
  color: #0f1d31 !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  max-width: 100%;
  opacity: 1 !important;
  padding: 13px 20px !important;
  text-decoration: none !important;
  visibility: visible !important;
  white-space: normal;
}

@media (max-width: 760px) {
  .better-page > .wrap > h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
  }

  .better-page > .wrap > h2,
  .better-page > .wrap > section > h2,
  .better-page .honest-filter h2 {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
  }

  .better-page .btn {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

.five-star-article h2 {
  margin-top: 2.2rem;
}

.five-star-article .five-star-rule {
  background: #0f1d31;
  border-left: 5px solid #e4c47f;
  border-radius: 14px;
  color: #fff;
  margin: 28px 0;
  padding: 20px 22px;
}

.five-star-article .five-star-rule strong {
  color: #e4c47f;
}

/* v34.1: Angebotskarten auf kleinen Bildschirmen sicher innerhalb des Viewports halten. */
.product-grid,
.product-card,
.product-card > *,
.product-topline,
.product-labels {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.product-card h2,
.product-card p,
.product-card strong,
.product-price,
.product-price small {
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 760px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .product-card,
  .product-card.wide-product {
    grid-column: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    width: 100% !important;
  }

  .product-card h2 {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  .product-topline {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .product-actions .btn {
    display: flex !important;
    justify-content: center;
    text-align: center;
    white-space: normal !important;
    width: 100% !important;
  }
}

/* v35.2: first-visit orientation and separate floating controls */
body .back-to-top {left:14px !important;right:auto !important;bottom:calc(14px + env(safe-area-inset-bottom, 0px)) !important;}
.about-more {margin:22px 0;border:1px solid #b79452;border-radius:12px;background:#faf7ef;color:#102037;}
.about-more>summary {cursor:pointer;padding:18px 20px;font-weight:700;line-height:1.5;color:#745619;}
.about-more-content {padding:0 20px 20px;}
.about-more-content p {white-space:normal;overflow-wrap:anywhere;}
.about-more:focus-within {outline:2px solid #b79452;outline-offset:3px;}
.hero .hero-check-explainer {font-size:1rem;line-height:1.5;margin-top:12px;}
.latest-swipe-hint {font-size:.95rem;font-weight:600;color:#745619;margin:14px 0;}
@media(min-width:1101px){.latest-swipe-hint{display:none;}}
@media(max-width:760px){
 body .hero {padding-top:38px !important;padding-bottom:32px !important;}
 body .hero h1 {font-size:clamp(30px,8vw,42px) !important;line-height:1.12 !important;}
 body .hero p {font-size:1.05rem !important;line-height:1.55 !important;}
 body .hero .hero-trust {font-size:.9rem !important;}
 body .hero .hero-actions .btn {white-space:normal !important;}
 .about-more-content {padding:0 14px 18px;}
 body .back-to-top {font-size:.8rem !important;padding:9px 12px !important;}
}
