/* Ernährungspaket Sonja Gasser – Fix für aktuellen Contao-HTML-Output */

.article_36 {
  background: #fbf7ef !important;
  color: #222 !important;
}

.article_36 .container {
  max-width: 1240px;
}

.article_36 .ce_text > section {
  --sg-bg: #fbf7ef;
  --sg-card: #fffdf8;
  --sg-text: #222;
  --sg-muted: #6f665d;
  --sg-gold: #b79b6b;
  --sg-border: #d9c7a8;
  --sg-soft: #f3eadc;

  background: var(--sg-bg);
  color: var(--sg-text);
  padding: clamp(30px, 5vw, 70px) 0;
}

.article_36 .ce_text h1,
.article_36 .ce_text h2,
.article_36 .ce_text h3,
.article_36 .ce_text p,
.article_36 .ce_text li,
.article_36 .ce_text td,
.article_36 .ce_text th {
  color: var(--sg-text) !important;
}

.article_36 .sg-nutrition__hero,
.article_36 .sg-nutrition__footer,
.article_36 .sg-choice-box + section header {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.article_36 .sg-eyebrow {
  margin: 0 0 10px;
  color: var(--sg-gold) !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article_36 .ce_text h1,
.article_36 .ce_text h2,
.article_36 .ce_text h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 500;
}

.article_36 .ce_text h1 {
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  margin-bottom: 18px;
}

.article_36 .ce_text h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.article_36 .ce_text h3 {
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  text-align: center;
}

.article_36 .sg-lead {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

.article_36 .sg-intro,
.article_36 .sg-choice-box + section header p,
.article_36 .sg-note,
.article_36 .sg-contact {
  color: var(--sg-muted) !important;
}

.article_36 .sg-intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Paket-Karten */
.article_36 .sg-package-grid {
  max-width: 1180px;
  margin: clamp(34px, 6vw, 70px) auto 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.article_36 .sg-package-grid > article,
.article_36 .sg-bottom-grid > article,
.article_36 .sg-choice-box,
.article_36 .sg-entry-box,
.article_36 .sg-info-box {
  position: relative;
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(80, 61, 35, 0.08);
}

.article_36 .sg-package-grid > article {
  padding: 44px clamp(22px, 3vw, 36px) 30px;
}

.article_36 .sg-package-grid > article:nth-child(2) {
  border-width: 2px;
}

.article_36 .sg-package-number {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--sg-bg);
  border: 1px solid var(--sg-border);
  border-radius: 50%;
  color: var(--sg-gold) !important;
  font-weight: 700;
  font-size: 0.85rem;
}

.article_36 .sg-package-grid h2 {
  text-align: center;
  margin-bottom: 6px;
}

.article_36 .sg-badge {
  margin: -8px 0 8px;
  color: var(--sg-gold) !important;
  text-align: center;
  font-size: 0.95rem;
}

.article_36 .sg-price {
  margin: 8px 0 14px;
  color: var(--sg-gold) !important;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  text-align: center;
  font-weight: 600;
}

.article_36 .sg-card-subline {
  min-height: 56px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sg-soft);
  text-align: center;
  font-weight: 600;
  line-height: 1.45;
}

.article_36 .ce_text ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article_36 .ce_text li {
  margin: 0 0 8px;
  line-height: 1.45;
}

/* Wahlmodul + Einstieg */
.article_36 .sg-choice-box,
.article_36 .sg-entry-box {
  max-width: 1180px;
  margin: 28px auto;
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.article_36 .sg-choice-box h2,
.article_36 .sg-entry-box h2 {
  color: var(--sg-gold) !important;
}

.article_36 .sg-choice-box p,
.article_36 .sg-entry-box p {
  margin: 0;
  line-height: 1.65;
}

/* Weiterbegleitung */
.article_36 .sg-choice-box + section {
  max-width: 1180px;
  margin: clamp(48px, 7vw, 90px) auto 0;
}

.article_36 .sg-choice-box + section header p {
  max-width: 880px;
  margin: 14px auto 0;
  line-height: 1.6;
}

.article_36 .sg-info-box {
  margin: 34px 0;
  padding: 22px 26px;
  line-height: 1.55;
}

.article_36 .sg-info-box strong {
  display: block;
  margin-bottom: 8px;
}

.article_36 .sg-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
}

.article_36 .sg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
}

.article_36 .sg-table th,
.article_36 .sg-table td {
  border: 1px solid var(--sg-border);
  padding: 18px 20px;
  vertical-align: middle;
  text-align: left;
  line-height: 1.45;
}

.article_36 .sg-table th {
  width: 26%;
  font-weight: 700;
}

.article_36 .sg-table td:nth-child(2) {
  width: 170px;
  color: var(--sg-gold) !important;
  text-align: center;
  white-space: nowrap;
}

.article_36 .sg-table td:nth-child(2) strong {
  color: var(--sg-gold) !important;
  font-size: 1.8rem;
  line-height: 1;
}

.article_36 .sg-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Untere Karten */
.article_36 .sg-bottom-grid {
  max-width: 1180px;
  margin: 40px auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.article_36 .sg-bottom-grid > article {
  padding: 30px clamp(22px, 3vw, 34px);
}

.article_36 .sg-bottom-grid h3 {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sg-border);
}

/* Footer */
.article_36 .sg-final-line {
  margin: 42px 0 18px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.article_36 .sg-contact {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article_36 .sg-contact a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .article_36 .sg-package-grid,
  .article_36 .sg-bottom-grid {
    grid-template-columns: 1fr;
  }

  .article_36 .sg-choice-box,
  .article_36 .sg-entry-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article_36 .sg-card-subline {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .article_36 .ce_text > section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .article_36 .sg-package-grid > article {
    padding-top: 40px;
  }

  .article_36 .sg-table th,
  .article_36 .sg-table td {
    padding: 14px;
    font-size: 0.95rem;
  }

  .article_36 .sg-table td:nth-child(2) strong {
    font-size: 1.35rem;
  }
}