/* ==========================================================================
   Hände gesucht – Stadt des Miteinanders
   CI: Grün #aec752, Dunkelgrün #1d4b44, Akzent Orange #ec7d2c
   Schriften: Zilla Slab (Überschriften), Asap (Text) – freie Alternativen
   zu den CI-Schriften, wie beim Adventkalender.
   ========================================================================== */

@font-face { font-family: "SDM Slab"; src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SDM Sans"; src: url("fonts/asap-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SDM Sans"; src: url("fonts/asap-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SDM Sans"; src: url("fonts/asap-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.sdm-hg {
  --hg-green: #aec752;
  --hg-green-deep: #8aa83a;
  --hg-green-light: #d6e5a3;
  --hg-green-pale: #f3f7e4;
  --hg-dark: #1d4b44;
  --hg-dark-2: #163a35;
  --hg-orange: #ec7d2c;
  --hg-red: #b3261e;
  --hg-line: #cbd8a8;
  --hg-muted: #4f6f69;
  --hg-slab: "SDM Slab", "Zilla Slab", Rockwell, Georgia, serif;
  --hg-sans: "SDM Sans", "Asap", "Segoe UI", system-ui, sans-serif;
  --hg-radius: 18px;

  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--hg-dark);
  font-family: var(--hg-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Layout richtet sich nach der tatsächlichen Breite (z. B. neben einer Seitenleiste), nicht nach dem Bildschirm. */
  container-type: inline-size;
  container-name: hg;
}
@media (max-width: 600px) { .sdm-hg { font-size: 16px; } }
.sdm-hg *, .sdm-hg *::before, .sdm-hg *::after { box-sizing: border-box; }
.sdm-hg [hidden] { display: none !important; }
/* Theme-Schriften überschreiben, damit alles in der CI-Schrift erscheint */
.sdm-hg p, .sdm-hg li, .sdm-hg span, .sdm-hg a, .sdm-hg label, .sdm-hg strong, .sdm-hg summary,
.sdm-hg input, .sdm-hg select, .sdm-hg textarea, .sdm-hg button, .sdm-hg legend { font-family: var(--hg-sans); }
.sdm-hg p { margin: 0 0 .8em; }
.sdm-hg a { color: var(--hg-dark); text-decoration-color: var(--hg-green-deep); text-underline-offset: 3px; }
.sdm-hg a:hover { color: var(--hg-dark-2); }
.sdm-hg .hg-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.sdm-hg .hg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 2px solid var(--hg-dark); border-radius: 999px;
  background: var(--hg-dark); color: #fff;
  font: 600 1rem/1.2 var(--hg-sans); letter-spacing: 0; text-transform: none; text-decoration: none;
  cursor: pointer; box-shadow: none;
  transition: background .15s, color .15s, transform .15s;
}
.sdm-hg .hg-btn:hover { background: var(--hg-dark-2); border-color: var(--hg-dark-2); color: #fff; transform: translateY(-1px); }
.sdm-hg .hg-btn:focus-visible, .sdm-hg .hg-chip:focus-visible, .sdm-hg summary:focus-visible, .sdm-hg .hg-share:focus-visible {
  outline: 3px solid var(--hg-orange); outline-offset: 3px;
}
.sdm-hg .hg-btn--light { background: #fff; border-color: #fff; color: var(--hg-dark); }
.sdm-hg .hg-btn--light:hover { background: var(--hg-green-pale); border-color: var(--hg-green-pale); color: var(--hg-dark); }
.sdm-hg .hg-btn--ghost { background: transparent; color: var(--hg-dark); }
.sdm-hg .hg-btn--ghost:hover { background: var(--hg-green-pale); color: var(--hg-dark); }
.sdm-hg .hg-btn--danger { background: var(--hg-red); border-color: var(--hg-red); }
.sdm-hg .hg-btn--danger:hover { background: #8c1d17; border-color: #8c1d17; }
.sdm-hg .hg-btn--big { min-height: 56px; padding: .9em 2em; font-size: 1.08rem; }
.sdm-hg .hg-btn.is-busy { opacity: .6; cursor: progress; }

.sdm-hg .hg-linkbtn { background: none; border: 0; padding: 0; color: var(--hg-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- Kopfbereich ---------- */
.sdm-hg .hg-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(160deg, #c9dc84 0%, var(--hg-green) 45%, var(--hg-green-deep) 100%);
}
.sdm-hg .hg-blob {
  position: absolute; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.2);
  border-radius: 63% 37% 54% 46% / 45% 52% 48% 55%;
}
.sdm-hg .hg-blob--1 { width: 380px; height: 320px; right: -120px; bottom: -160px; transform: rotate(-12deg); }
.sdm-hg .hg-blob--2 { width: 180px; height: 160px; left: 38%; top: -90px; transform: rotate(20deg); background: rgba(255,255,255,.14); }
.sdm-hg .hg-head__text { max-width: 640px; }
.sdm-hg .hg-kicker {
  margin: 0 0 .4em; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.sdm-hg .hg-kicker--dark { color: var(--hg-muted); }
.sdm-hg .hg-title {
  margin: 0 0 .25em; padding: 0; border: 0;
  font: 700 clamp(2.3rem, 6vw, 3.6rem)/1 var(--hg-slab); color: var(--hg-dark); letter-spacing: -.01em;
  transform: rotate(-1.5deg); transform-origin: left center;
}
.sdm-hg .hg-intro { margin: 0; font-size: 1.12rem; }

/* ---------- Filter ---------- */
.sdm-hg .hg-filter { margin: 28px 0 8px; }
.sdm-hg .hg-filter__row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sdm-hg .hg-chip {
  min-height: 40px; padding: .4em 1em;
  border: 2px solid var(--hg-line); border-radius: 999px;
  background: #fff; color: var(--hg-dark);
  font: 600 .95rem/1.2 var(--hg-sans); text-transform: none; letter-spacing: 0;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.sdm-hg .hg-chip:hover { border-color: var(--hg-green-deep); background: var(--hg-green-pale); color: var(--hg-dark); }
.sdm-hg .hg-chip.is-active { background: var(--hg-dark); border-color: var(--hg-dark); color: #fff; }
.sdm-hg .hg-chip--small { min-height: 34px; font-size: .88rem; padding: .3em .9em; }
.sdm-hg .hg-count { margin: 4px 0 0; font-size: .9rem; color: var(--hg-muted); }

/* ---------- Pinnwand ---------- */
.sdm-hg .hg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 34px 28px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 40px) clamp(14px, 3vw, 36px);
  border-radius: 28px;
  background-color: var(--hg-green-pale);
  background-image: radial-gradient(rgba(29,75,68,.09) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  align-items: start;
}

.sdm-hg .hg-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 24px 18px;
  border-radius: var(--hg-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(22,58,53,.08), 0 10px 26px -12px rgba(22,58,53,.28);
  transition: transform .2s ease, box-shadow .2s ease;
  scroll-margin-top: 110px;
}
.sdm-hg .hg-card--a { transform: rotate(-.8deg); }
.sdm-hg .hg-card--b { transform: rotate(.6deg); }
.sdm-hg .hg-card--c { transform: rotate(-.3deg); }
.sdm-hg .hg-card--d { transform: rotate(.9deg); }
.sdm-hg .hg-card:hover, .sdm-hg .hg-card:focus-within, .sdm-hg .hg-card.is-target {
  transform: rotate(0) translateY(-2px);
  box-shadow: 0 1px 2px rgba(22,58,53,.08), 0 18px 34px -14px rgba(22,58,53,.38);
}
.sdm-hg .hg-card.is-target { outline: 3px solid var(--hg-orange); outline-offset: 4px; }

.sdm-hg .hg-pin {
  position: absolute; top: -9px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9ec8f 0 18%, var(--hg-green-deep) 60%);
  box-shadow: 0 3px 5px rgba(22,58,53,.35);
}
.sdm-hg .hg-card--b .hg-pin, .sdm-hg .hg-card--d .hg-pin {
  background: radial-gradient(circle at 35% 35%, #4e8077 0 18%, var(--hg-dark) 60%);
}

.sdm-hg .hg-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sdm-hg .hg-tag {
  display: inline-block; padding: .2em .75em; border-radius: 999px;
  background: var(--hg-green-pale); color: var(--hg-dark);
  font-size: .8rem; font-weight: 600; line-height: 1.5;
}
.sdm-hg .hg-tag--new { background: var(--hg-orange); color: #fff; }
.sdm-hg .hg-card__title {
  margin: 0 0 .3em; padding: 0;
  font: 700 1.42rem/1.18 var(--hg-slab); color: var(--hg-dark);
  overflow-wrap: anywhere; hyphens: auto;
}
.sdm-hg .hg-card__org { margin: 0 0 14px; font-size: .97rem; color: var(--hg-muted); }
.sdm-hg .hg-card__org strong { color: var(--hg-dark); }

.sdm-hg .hg-facts { list-style: none; margin: 0 0 16px; padding: 0; }
.sdm-hg .hg-facts li {
  display: flex; align-items: flex-start; gap: .55em;
  margin: 0 0 6px; padding: 0; font-size: .97rem;
}
.sdm-hg .hg-facts li::before { content: none; }
.sdm-hg .hg-facts .hg-ico { margin-top: .18em; color: var(--hg-green-deep); }

/* Aufklappen */
.sdm-hg .hg-more { margin-top: auto; border-top: 2px dashed var(--hg-green-light); }
.sdm-hg .hg-more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 10px 0 6px;
  list-style: none; cursor: pointer;
  font-weight: 700; color: var(--hg-dark);
}
.sdm-hg .hg-more > summary::-webkit-details-marker { display: none; }
.sdm-hg .hg-more > summary::after {
  content: ""; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: var(--hg-green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4b44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.sdm-hg .hg-more[open] > summary::after { transform: rotate(180deg); }
.sdm-hg .hg-more__close, .sdm-hg .hg-more[open] .hg-more__open { display: none; }
.sdm-hg .hg-more[open] .hg-more__close { display: inline; }
.sdm-hg .hg-more__body { padding: 6px 0 4px; }
.sdm-hg .hg-more h4 {
  margin: 14px 0 4px; padding: 0;
  font: 700 .82rem/1.3 var(--hg-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--hg-muted);
}
.sdm-hg .hg-more p { overflow-wrap: anywhere; }

.sdm-hg .hg-contact {
  margin-top: 16px; padding: 14px 16px;
  border-radius: 14px; background: var(--hg-green-pale);
}
.sdm-hg .hg-contact h4 { margin-top: 0; }
.sdm-hg .hg-contact__name { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; }
.sdm-hg .hg-contact__list { list-style: none; margin: 0; padding: 0; }
.sdm-hg .hg-contact__list li { margin: 0; padding: 0; }
.sdm-hg .hg-contact__list li::before { content: none; }
.sdm-hg .hg-contact__list a {
  display: flex; align-items: center; gap: .55em; min-height: 40px;
  font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.sdm-hg .hg-contact__list a:hover { text-decoration: underline; }
.sdm-hg .hg-contact__list .hg-ico { color: var(--hg-green-deep); }
.sdm-hg .hg-contact__hint { margin: 8px 0 0; font-size: .95rem; }

.sdm-hg .hg-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  font-size: .82rem; color: var(--hg-muted);
}
.sdm-hg .hg-share {
  display: inline-flex; align-items: center; gap: .35em;
  min-height: 36px; padding: .3em .7em; border: 0; border-radius: 999px;
  background: transparent; color: var(--hg-dark);
  font: 600 .85rem/1 var(--hg-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.sdm-hg .hg-share:hover { background: var(--hg-green-pale); color: var(--hg-dark); }

.sdm-hg .hg-none, .sdm-hg .hg-empty { text-align: center; }
.sdm-hg .hg-none { margin: 24px 0; }
.sdm-hg .hg-empty {
  margin-top: 24px; padding: clamp(28px, 5vw, 56px) 24px;
  border: 2px dashed var(--hg-green); border-radius: 28px; background: var(--hg-green-pale);
}
.sdm-hg .hg-empty__title { font: 700 1.6rem/1.2 var(--hg-slab); }

/* ---------- So funktioniert's ---------- */
.sdm-hg .hg-how {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin-top: 40px; padding: clamp(24px, 4vw, 40px);
  border-radius: 28px; background: var(--hg-dark); color: #fff;
}
.sdm-hg .hg-how__title { margin: 0 0 8px; padding: 0; font: 700 1.8rem/1.15 var(--hg-slab); color: #fff; }
.sdm-hg .hg-steps { counter-reset: hg; list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.sdm-hg .hg-steps li { counter-increment: hg; position: relative; margin: 0; padding: 0 0 0 52px; color: #e8f0d0; }
.sdm-hg .hg-steps li::before {
  content: counter(hg); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--hg-green); color: var(--hg-dark); font: 700 1.1rem/1 var(--hg-slab);
}
.sdm-hg .hg-steps strong { color: #fff; }
.sdm-hg .hg-how .hg-btn { justify-self: start; background: var(--hg-green); border-color: var(--hg-green); color: var(--hg-dark); }
.sdm-hg .hg-how .hg-btn:hover { background: #c3d87a; border-color: #c3d87a; color: var(--hg-dark); }
@container hg (min-width: 860px) {
  .sdm-hg .hg-how { grid-template-columns: 240px 1fr; column-gap: 40px; align-items: start; }
  .sdm-hg .hg-how .hg-btn { grid-column: 2; }
  .sdm-hg .hg-steps { grid-template-columns: repeat(3, 1fr); grid-column: 2; grid-row: 1; }
  .sdm-hg .hg-how__title { grid-row: 1; }
}

/* ---------- Panels (Formular, Danke, Verwalten) ---------- */
.sdm-hg .hg-back {
  display: inline-flex; align-items: center; gap: .4em; margin: 0 0 16px;
  font-weight: 600; text-decoration: none;
}
.sdm-hg .hg-back:hover { text-decoration: underline; }
.sdm-hg .hg-panel {
  max-width: 780px; margin: 0 auto;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(22,58,53,.06), 0 16px 40px -20px rgba(22,58,53,.3);
  border-top: 10px solid var(--hg-green);
}
.sdm-hg .hg-panel--center { text-align: center; }
.sdm-hg .hg-h { margin: 0 0 .4em; padding: 0; font: 700 clamp(1.8rem, 4.5vw, 2.4rem)/1.1 var(--hg-slab); color: var(--hg-dark); }
.sdm-hg .hg-lead { font-size: 1.05rem; color: var(--hg-muted); }

.sdm-hg .hg-form { margin-top: 10px; }
.sdm-hg .hg-group { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.sdm-hg .hg-group__title {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0 0 14px; padding: 0 0 10px; border-bottom: 2px solid var(--hg-green-light);
  font: 700 1.35rem/1.2 var(--hg-slab); color: var(--hg-dark);
}
.sdm-hg .hg-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hg-green); color: var(--hg-dark); font-size: 1.05rem;
}
.sdm-hg .hg-field { position: relative; margin: 0 0 20px; }
.sdm-hg .hg-label, .sdm-hg .hg-radios legend {
  display: block; margin: 0 0 6px; padding: 0;
  font: 600 1rem/1.35 var(--hg-sans); color: var(--hg-dark);
}
.sdm-hg .hg-req { color: var(--hg-orange); font-weight: 700; }
.sdm-hg .hg-opt { font-weight: 400; color: var(--hg-muted); font-size: .9em; }
.sdm-hg .hg-form input[type="text"], .sdm-hg .hg-form input[type="email"], .sdm-hg .hg-form input[type="tel"],
.sdm-hg .hg-form select, .sdm-hg .hg-form textarea {
  display: block; width: 100%; max-width: 100%; margin: 0;
  min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--hg-line); border-radius: 12px;
  background: #fff; color: var(--hg-dark);
  font: 400 1.03rem/1.45 var(--hg-sans); /* mind. 16px: kein Zoomen am iPhone */
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.sdm-hg .hg-form textarea { resize: vertical; min-height: 96px; }
.sdm-hg .hg-form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4b44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.sdm-hg .hg-form ::placeholder { color: #8ba09a; opacity: 1; }
.sdm-hg .hg-form input:focus, .sdm-hg .hg-form select:focus, .sdm-hg .hg-form textarea:focus {
  outline: none; border-color: var(--hg-green-deep); box-shadow: 0 0 0 4px rgba(174,199,82,.35);
}
.sdm-hg .hg-help { margin: 6px 0 0; font-size: .9rem; color: var(--hg-muted); }
.sdm-hg .hg-counter { display: block; margin-top: 4px; font-size: .82rem; color: var(--hg-muted); text-align: right; min-height: 1em; }
.sdm-hg .hg-counter.is-low { color: var(--hg-orange); font-weight: 600; }

.sdm-hg .hg-radios { margin: 0; padding: 0; border: 0; min-width: 0; }
.sdm-hg .hg-radios__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sdm-hg .hg-radio { position: relative; margin: 0; cursor: pointer; }
.sdm-hg .hg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sdm-hg .hg-radio span {
  display: inline-flex; align-items: center; min-height: 46px; padding: .5em 1.1em;
  border: 2px solid var(--hg-line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .97rem; transition: background .15s, border-color .15s;
}
.sdm-hg .hg-radio:hover span { border-color: var(--hg-green-deep); }
.sdm-hg .hg-radio input:checked + span { background: var(--hg-dark); border-color: var(--hg-dark); color: #fff; }
.sdm-hg .hg-radio input:focus-visible + span { outline: 3px solid var(--hg-orange); outline-offset: 2px; }

.sdm-hg .hg-field--check { margin-top: 28px; padding: 16px; border-radius: 14px; background: var(--hg-green-pale); }
.sdm-hg .hg-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.sdm-hg .hg-check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--hg-dark); }

.sdm-hg .has-error input, .sdm-hg .has-error select, .sdm-hg .has-error textarea, .sdm-hg .has-error .hg-radio span { border-color: var(--hg-red); }
.sdm-hg .hg-error { margin: 6px 0 0; color: var(--hg-red); font-weight: 600; font-size: .92rem; }
.sdm-hg .hg-alert, .sdm-hg .hg-success {
  margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600;
}
.sdm-hg .hg-alert { background: #fbe9e7; color: var(--hg-red); border-left: 6px solid var(--hg-red); }
.sdm-hg .hg-alert:focus { outline: none; }
.sdm-hg .hg-success { background: var(--hg-green-pale); color: var(--hg-dark); border-left: 6px solid var(--hg-green-deep); }
.sdm-hg .hg-actions { margin-top: 26px; }
.sdm-hg .hg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Verwalten */
.sdm-hg .hg-summary { margin: 10px 0 24px; padding: 16px 18px; border-radius: 14px; background: var(--hg-green-pale); }
.sdm-hg .hg-summary p { margin: 0 0 4px; }
.sdm-hg .hg-summary__title { font: 700 1.25rem/1.25 var(--hg-slab); }
.sdm-hg .hg-manage { display: grid; gap: 16px; }
.sdm-hg .hg-manage__item { padding: 18px; border: 2px solid var(--hg-green-light); border-radius: 16px; }
.sdm-hg .hg-manage__item h3 { margin: 0 0 4px; padding: 0; font: 700 1.2rem/1.2 var(--hg-slab); color: var(--hg-dark); }
.sdm-hg .hg-manage__item form { margin: 0; }
.sdm-hg .hg-manage__item--danger { border-color: #f0cfcb; }
.sdm-hg .hg-confirm > summary { list-style: none; }
.sdm-hg .hg-confirm > summary::-webkit-details-marker { display: none; }
.sdm-hg .hg-confirm[open] > summary { display: none; }
.sdm-hg .hg-confirm form { padding: 12px 14px; border-radius: 12px; background: #fbe9e7; }

/* ---------- Handy ---------- */
@container hg (max-width: 600px) {
  .sdm-hg .hg-head { border-radius: 24px; }
  .sdm-hg .hg-head .hg-btn { width: 100%; }
  .sdm-hg .hg-grid { grid-template-columns: 1fr; gap: 30px; border-radius: 22px; padding: 26px 12px; }
  .sdm-hg .hg-card { padding: 28px 18px 14px; }
  .sdm-hg .hg-card--a, .sdm-hg .hg-card--b, .sdm-hg .hg-card--c, .sdm-hg .hg-card--d { transform: rotate(0); }
  .sdm-hg .hg-filter__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -12px; scrollbar-width: none; }
  .sdm-hg .hg-filter__row::-webkit-scrollbar { display: none; }
  .sdm-hg .hg-chip { flex: 0 0 auto; }
  .sdm-hg .hg-panel { border-radius: 22px; }
  .sdm-hg .hg-btn--big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sdm-hg *, .sdm-hg *::after { transition: none !important; }
  .sdm-hg .hg-card { transform: none !important; }
}

@media print {
  .sdm-hg .hg-head, .sdm-hg .hg-filter, .sdm-hg .hg-how, .sdm-hg .hg-share { display: none !important; }
  .sdm-hg .hg-grid { background: none; padding: 0; }
  .sdm-hg .hg-card { transform: none; box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .sdm-hg .hg-more__body { display: block !important; }
}

/* ---------- Schutz gegen Theme-Stile für Buttons ----------
   Viele Themes färben alle <button> ein. Hier gewinnt unsere CI. */
.sdm-hg button.hg-chip, .sdm-hg button.hg-chip:not(:hover):not(:active) {
  background: #fff !important; color: var(--hg-dark) !important; border: 2px solid var(--hg-line) !important;
}
.sdm-hg button.hg-chip:hover { background: var(--hg-green-pale) !important; border-color: var(--hg-green-deep) !important; color: var(--hg-dark) !important; }
.sdm-hg button.hg-chip.is-active, .sdm-hg button.hg-chip.is-active:not(:hover):not(:active) {
  background: var(--hg-dark) !important; border-color: var(--hg-dark) !important; color: #fff !important;
}
.sdm-hg button.hg-share, .sdm-hg button.hg-share:not(:hover):not(:active) {
  background: transparent !important; color: var(--hg-dark) !important; border: 0 !important;
}
.sdm-hg button.hg-share:hover { background: var(--hg-green-pale) !important; }
.sdm-hg button.hg-linkbtn, .sdm-hg button.hg-linkbtn:not(:hover):not(:active) {
  background: none !important; color: var(--hg-dark) !important; border: 0 !important; padding: 0 !important;
}
.sdm-hg button.hg-btn:not(.hg-btn--danger), .sdm-hg button.hg-btn:not(.hg-btn--danger):not(:hover):not(:active) {
  background: var(--hg-dark) !important; border-color: var(--hg-dark) !important; color: #fff !important;
}
.sdm-hg button.hg-btn--danger, .sdm-hg button.hg-btn--danger:not(:hover):not(:active) {
  background: var(--hg-red) !important; border-color: var(--hg-red) !important; color: #fff !important;
}
.sdm-hg a.hg-btn { text-decoration: none !important; }
