/* Gemeinsame Anpassungen für Smartphone, Querformat und vergrößerten Text. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
img, video, iframe { max-width: 100%; }
main, article, section, .wrap, .guide, .card, .product { min-width: 0; }
h1, h2, h3, p, li, a, figcaption { overflow-wrap: anywhere; }
.cards > *, .articles > *, .grid > *, .grid3 > *, .grid4 > *, .smartgrid > *, .guide-related > * { min-width: 0; }
.cta { max-width: 100%; white-space: normal; text-align: center; line-height: 1.45; }
button, input, select, textarea { font-size: 16px; }
a:focus-visible, button:focus-visible { outline: 3px solid #d97836; outline-offset: 3px; }
.guide-related { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.table-wrap, .reach-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#analytics-consent-banner { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
#analytics-consent-settings { bottom: env(safe-area-inset-bottom, 0px); max-width: 100%; min-height: 32px; }
@media (max-width: 1100px) {
  header.home-header { height: auto; min-height: 66px; padding: 10px 5vw; gap: 12px; }
  header.home-header .brand { flex: 1; min-width: 0; font-size: clamp(18px, 3.8vw, 24px); line-height: 1.25; }
  #menu { display: block; flex: 0 0 44px; min-width: 44px; min-height: 44px; cursor: pointer; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 5vw; gap: 0; flex-direction: column; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; border-bottom: 1px solid #e9e3d5; background: #fbfaf5; }
  #nav.open { display: flex; }
  #nav a { display: flex; align-items: center; min-height: 44px; padding: 9px 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  header { gap: 12px; flex-wrap: wrap; height: auto; min-height: 66px; padding: 10px 5vw; }
  header .brand, header .logo { min-width: 0; font-size: clamp(17px, 4.2vw, 23px); line-height: 1.3; }
  header > a:last-child:not(.brand) { white-space: normal; }
  .cards, .articles, .grid, .grid3, .grid4, .smartgrid, .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .hero, .photo-hero, .feature, .balcony, .season { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 44px 5vw; }
  .cards article, .articles article, .grid4 article, .smartgrid article, .card, .product { padding: 20px; }
  .hero h1, .photo-hero h1 { font-size: clamp(32px, 9.5vw, 54px); line-height: 1.12; }
  .section h2, .feature h2, .balcony h2, .season h2 { font-size: clamp(27px, 7.5vw, 38px); line-height: 1.2; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; }
  .guide { width: 90%; }
  .guide-toc { position: static; display: flex; flex-direction: column; gap: 8px; }
  .guide-toc a { display: block; padding: 8px 0; line-height: 1.45; }
  .cta, .quick a, .guide-related a { min-height: 44px; }
  .quick a { display: inline-flex; align-items: center; }
  .box { max-width: 100%; padding: 28px clamp(24px, 10vw, 60px); }
  .greens { font-size: clamp(42px, 14vw, 70px); }
  #analytics-consent-banner { left: 10px; right: 10px; display: block; padding: 15px; }
  #analytics-consent-banner .consent-actions { display: flex; flex-wrap: wrap; margin-top: 12px; gap: 10px; }
  #analytics-consent-banner button { flex: 1 1 100px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Produktbuttons belegen eigenen Platz, auch bei mehrzeiligem Text. */
.product a.cta {
  display: block;
  position: static;
  float: none;
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  box-sizing: border-box;
  margin: 20px 0;
  padding: 15px 22px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none;
}
.product a.cta + p { margin-top: 0; }

/* Einheitliche Ratgeber-Navigation und sichtbare Linkzustände. */
header.guide-header { height: auto; min-height: 76px; gap: 16px; padding: 14px 5vw; }
header.guide-header .brand { min-width: 0; line-height: 1.3; }
header.guide-header .guide-back-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
header.guide-header a.guide-back-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 18px; border: 1px solid #bdccbf; border-radius: 999px; background: #eef3eb; color: #123c2d; font: 700 15px/1.3 Arial,sans-serif; text-decoration: none; white-space: normal; box-shadow: 0 3px 10px rgba(18,60,45,.06); transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
header.guide-header a.guide-back-link:active { background: #123c2d; color: #fff; }
header.guide-header a.guide-back-link:focus-visible { outline: 3px solid #d97836; outline-offset: 3px; background: #123c2d; color: #fff; }
.guide-section h2 a, .articles h3 a, .cards h3 a, .grid4 h3 a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
.guide-section h2 a:focus-visible, .articles h3 a:focus-visible, .cards h3 a:focus-visible, .grid4 h3 a:focus-visible { text-decoration: underline; }
.guide-related a { display: flex; align-items: center; text-decoration: none; border: 1px solid #e2dac7; transition: background-color .18s ease,color .18s ease; }
@media (hover: hover) { header.guide-header a.guide-back-link:hover, .guide-related a:hover { background: #123c2d; color: #fff; box-shadow: 0 5px 14px rgba(18,60,45,.14); } .guide-section h2 a:hover, .articles h3 a:hover, .cards h3 a:hover, .grid4 h3 a:hover { text-decoration: underline; } }
@media (max-width: 760px) { header.guide-header { position: relative; top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 5vw; } header.guide-header .guide-back-nav { width: 100%; } header.guide-header a.guide-back-link { flex: 0 1 auto; font-size: 14px; padding: 10px 15px; } }
@media (prefers-reduced-motion: reduce) { header.guide-header a.guide-back-link, .guide-related a { transition: none; } }

/* Moderne Ueberschriften und einheitliche Ratgeber-Buttons. */
h1.garden-heading, h2.garden-heading, h3.garden-heading { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 750; letter-spacing: -.025em; text-wrap: balance; }
h1.garden-heading { line-height: 1.12; }
h2.garden-heading, h3.garden-heading { line-height: 1.25; }
.garden-heading a { color: inherit; text-decoration: none; background-image: linear-gradient(#d97836,#d97836); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; padding-bottom: 3px; transition: color .2s ease, background-size .2s ease; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
a.garden-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; max-width: 100%; min-height: 48px; padding: 13px 21px; border: 1px solid #285e46; border-radius: 14px; background: #123c2d; color: #fff; font: 700 16px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align: left; text-decoration: none; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 4px 12px rgba(18,60,45,.1); transition: background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.guide-related a.garden-button { display: flex; justify-content: flex-start; background: #eef3eb; color: #123c2d; border-color: #c6d2c7; }
.articles article > a.garden-button, .cards article > a.garden-button, .grid4 article > a.garden-button { margin-top: 10px; }
a.garden-button:focus-visible, header.guide-header a.guide-back-link:focus-visible { outline: 3px solid #d97836; outline-offset: 4px; }
a.garden-button:active, header.guide-header a.guide-back-link:active { background: #d97836; border-color: #d97836; color: #123c2d; transform: translateY(0); box-shadow: none; }
.garden-heading a:active, .garden-heading a:focus-visible { color: #9b4413; background-size: 100% 2px; }
@media (hover:hover) { a.garden-button:hover, .guide-related a.garden-button:hover, header.guide-header a.guide-back-link:hover { background: #d97836; color: #123c2d; border-color: #d97836; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18,60,45,.15); } .garden-heading a:hover { color: #9b4413; text-decoration: none; background-size: 100% 2px; } }
@media(max-width:760px) { a.garden-button { padding: 12px 17px; min-height: 48px; } .guide-related a.garden-button { width: 100%; } }
@media(prefers-reduced-motion:reduce) { a.garden-button, .garden-heading a, header.guide-header a.guide-back-link { transition: none; transform: none !important; } }

/* Ratgeber-Navigation darf nicht die mobile Startseiten-Menuregel erben. */
header.guide-header .guide-back-nav {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  gap: 10px;
}
@media (max-width: 760px) {
  header.guide-header { position: static; height: auto; min-height: 0; }
  header.guide-header .guide-back-nav { width: 100%; }
  header.guide-header a.guide-back-link { margin: 0; }
}

header.guide-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
