/* Abnehmtherapie v4 (TEST) – page-scoped styles for gewichtsmanagement.html only.
   Every selector is scoped to body.gm-page. Uses the site's fonts (fonts.css) and tokens (style.css).
   No external assets, no animation loops. */

.gm-page {
  --gm-navy: #163c4a;
  --gm-rust: #9e4522;
  --gm-paper: #eff1ea;
  --gm-white: #fafbf7;
  --gm-mist: #dce3d8;
  --gm-sage: #e8ede5;
  --gm-line: #c3cfc4;
  --gm-muted: #46585b;
}

.gm-page main { font-size: 1.0625rem; }
.gm-page main p { overflow-wrap: break-word; }
.gm-page main h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); letter-spacing: -.02em; margin-bottom: 1.1rem; }
.gm-page main h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: .55rem; }
.gm-page .gm-small { color: var(--gm-muted); font-size: .9rem; line-height: 1.55; }
.gm-page .gm-section { padding: 56px 0; }
.gm-page .gm-section-intro { max-width: 70ch; margin: 0 0 24px; }
.gm-page .gm-anchor { display: block; position: relative; top: -126px; height: 0; }

/* Hero */
.gm-page .gm-hero { padding: 32px 0 48px; background: radial-gradient(ellipse at 88% 22%, #dce6de 0, transparent 54%); }
.gm-page .gm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.gm-page .gm-hero h1 { max-width: 18ch; margin-bottom: 20px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1.06; }
.gm-page .gm-lede { max-width: 50ch; margin: 0 0 24px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; }
.gm-page .gm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.gm-page .gm-hero-actions .btn { margin: 0; }
.gm-page .gm-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gm-navy); font-weight: 500; text-underline-offset: 4px; }
.gm-page .gm-text-link span { color: var(--gm-rust); }
.gm-page .gm-hero-note { max-width: 56ch; margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--gm-rust); background: var(--gm-white); color: var(--ink); font-size: .95rem; line-height: 1.55; }
.gm-page .gm-overview { padding: 30px 28px 24px; background: var(--gm-mist); border-radius: 110px 110px 6px 6px; }
.gm-page .gm-overview h2 { margin: 0 0 18px; font-size: 1.6rem; text-align: center; }
.gm-page .gm-overview-list { margin: 0; padding: 0; list-style: none; }
.gm-page .gm-overview-list li { padding: 11px 0; border-top: 1px solid #bdcbbf; }

/* Route (4 steps) */
.gm-page .gm-route { background: var(--gm-white); }
.gm-page .gm-route-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gm-page .gm-route-step { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--gm-paper); border: 1px solid var(--gm-line); border-radius: 14px; }
.gm-page .gm-route-step p { margin: 0; font-size: 1rem; }
.gm-page .gm-step-number { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gm-white); border: 1px solid var(--gm-line); color: var(--gm-rust); font-family: var(--font-mono); font-size: .9rem; font-weight: 500; }
.gm-page .gm-route-note { max-width: 75ch; margin: 22px 0 0; color: var(--gm-muted); }
.gm-page .gm-route-cta { margin: 20px 0 0; }

/* Diagnostics */
.gm-page .gm-diagnostics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.gm-page .gm-diagnostics-card { padding: 24px; background: var(--gm-white); border-top: 3px solid var(--gm-line); border-radius: 4px; }
.gm-page .gm-diagnostics-card p { margin: 0; }

/* Details / accordions (native, readable without JS) */
.gm-page .gm-details-list { border-bottom: 1px solid var(--gm-line); }
.gm-page .gm-details { border-top: 1px solid var(--gm-line); }
.gm-page .gm-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0; color: var(--gm-navy); font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.gm-page .gm-details > summary::-webkit-details-marker { display: none; }
.gm-page .gm-details > summary::after { content: '+'; flex: 0 0 24px; color: var(--gm-rust); font-size: 1.5rem; line-height: 1; text-align: center; }
.gm-page .gm-details[open] > summary::after { content: '−'; }
.gm-page .gm-details-body { padding: 0 0 20px; max-width: 78ch; }
.gm-page .gm-details-body > :last-child { margin-bottom: 0; }
.gm-page .gm-lab-list, .gm-page .gm-source-list { margin: 0 0 14px; padding-left: 20px; }
.gm-page .gm-lab-list li, .gm-page .gm-source-list li { padding: 3px 0; }

/* Metabolic scheme (v4) */
.gm-page .gm-metabolic { background: var(--gm-paper); }
.gm-page .metabolic-figure { margin: 0; max-width: 980px; }
.gm-page .metabolic-map { position: relative; isolation: isolate; }
.gm-page .metabolic-connectors { position: absolute; inset: 0; width: 100%; height: 100%; color: #597366; opacity: .65; z-index: 0; transition: opacity .35s ease, color .35s ease; }
.gm-page .metabolic-cards { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 108px 100px; margin: 0; padding: 0; list-style: none; }
.gm-page .metabolic-card { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 22px; text-align: center; border: 1px solid rgba(22, 60, 74, .16); border-radius: 18px; }
.gm-page .metabolic-card-label { color: var(--gm-navy); font-size: 1.25rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.gm-page .metabolic-card--sage { background: #dce3d8; }
.gm-page .metabolic-card--blue { background: #e0eaed; }
.gm-page .metabolic-card--sand { background: #eee8d8; }
.gm-page .metabolic-card--apricot { background: #f2e2d6; }
.gm-page .metabolic-map-key { position: absolute; left: 50%; top: 50%; z-index: 2; margin: 0; padding: 10px 16px; transform: translate(-50%, -50%); background: var(--gm-paper); color: var(--gm-navy); font-size: .95rem; font-weight: 600; line-height: 1.5; text-align: center; white-space: nowrap; }
.gm-page .metabolic-map-key span { font-weight: 400; font-size: .85rem; }
.gm-page .metabolic-figure figcaption { max-width: 80ch; margin-top: 24px; }
.gm-page .metabolic-toggle { margin-top: 16px; cursor: pointer; font: inherit; font-weight: 500; }
.gm-page .metabolic-toggle[hidden] { display: none; }
.gm-page .metabolic-toggle[aria-pressed="true"] { background: var(--gm-navy); color: var(--gm-white); }
.gm-page .metabolic-map.is-highlighted .metabolic-connectors { opacity: 1; color: var(--gm-rust); }

/* FAQ / optional reading */
.gm-page .gm-more { background: var(--gm-white); }
.gm-page .gm-faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 72px); align-items: start; }

/* BMI (inside details) */
.gm-page .gm-tools-intro { margin: 0 0 16px; color: var(--gm-muted); }
.gm-page .gm-alert { padding: 14px; border-left: 3px solid var(--rooftop); background: #f4e8df; }
.gm-page .gm-card { min-width: 0; max-width: 760px; padding: clamp(20px, 3.5vw, 28px); border: 1px solid var(--gm-line); border-radius: 16px; background: var(--gm-paper); }
.gm-page .gm-card h3 { margin-bottom: 10px; }
.gm-page .gm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gm-page .gm-card label { display: block; margin: 16px 0 7px; font-weight: 600; font-size: .95rem; }
.gm-page .gm-card input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #6f8582; border-radius: 8px; font: inherit; }
.gm-page .gm-card input:focus-visible { outline: 3px solid var(--rooftop-text); outline-offset: 3px; }
.gm-page .gm-card input[aria-invalid="true"] { border: 2px solid #943b1d; }
.gm-page .gm-input-hint { margin: 12px 0 0; }
.gm-page .gm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.gm-page .gm-actions .btn { margin: 0; cursor: pointer; font: inherit; font-weight: 500; }
.gm-page .gm-error { margin: 0; color: #943b1d; }
.gm-page .gm-error:empty { min-height: 0; }
.gm-page .gm-error:not(:empty) { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid #943b1d; background: #fff5ed; }
.gm-page .gm-result { min-height: 62px; margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; background: var(--gm-sage); }
.gm-page .gm-result strong { color: var(--gm-navy); font-family: var(--font-display); font-size: 1.6rem; white-space: nowrap; }

/* Costs – always visible */
.gm-page .gm-costs { padding-bottom: 0; }
.gm-page .gm-costs-card { max-width: 900px; padding: clamp(22px, 4vw, 34px); background: var(--gm-white); border: 1px solid var(--gm-line); border-left: 4px solid var(--gm-rust); border-radius: 6px; }
.gm-page .gm-costs-card p:last-child { margin-bottom: 0; }

/* Contact */
.gm-page .gm-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 60px); align-items: start; }
.gm-page .gm-contact-card { padding: 26px; background: var(--gm-white); border: 1px solid var(--gm-line); border-radius: 8px; overflow-wrap: anywhere; }
.gm-page .gm-contact-address { margin: 0; }
.gm-page .gm-contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 22px 0 14px; }
.gm-page .gm-contact-actions .btn { margin: 0; text-align: center; }
.gm-page .gm-contact .small { font-size: .9rem; color: var(--gm-muted); }

@media (max-width: 960px) {
  .gm-page .gm-route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .gm-page .gm-hero-grid,
  .gm-page .gm-faq-grid,
  .gm-page .gm-contact-grid { grid-template-columns: 1fr; }
  .gm-page .gm-overview { border-radius: 6px; }
  .gm-page .gm-overview h2 { text-align: left; font-size: 1.45rem; }
}

@media (max-width: 760px) {
  .gm-page .metabolic-cards { gap: 94px 36px; }
  .gm-page .metabolic-card { min-height: 110px; padding: 18px 14px; }
  .gm-page .metabolic-card-label { font-size: 1.1rem; }
  .gm-page .metabolic-map-key { font-size: .9rem; }
}

@media (max-width: 680px) {
  .gm-page .gm-section { padding: 40px 0; }
  .gm-page .gm-costs { padding-bottom: 0; }
  .gm-page .gm-hero { padding: 4px 0 36px; }
  .gm-page .gm-hero .pl-breadcrumb { margin-bottom: 4px; }
  .gm-page .gm-hero .pl-breadcrumb a { padding: 8px 0; }
  .gm-page .gm-hero h1 { margin-bottom: 10px; font-size: clamp(1.95rem, 8.8vw, 2.45rem); }
  .gm-page .gm-lede { margin-bottom: 14px; line-height: 1.5; }
  .gm-page .gm-hero-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .gm-page .gm-hero-note { margin-bottom: 12px; padding: 10px 14px; }
  .gm-page .gm-hero-actions .btn,
  .gm-page .gm-route-cta .btn { width: 100%; text-align: center; }
  .gm-page .gm-text-link { justify-content: center; }
  .gm-page .gm-route-list,
  .gm-page .gm-diagnostics-grid { grid-template-columns: 1fr; gap: 12px; }
  .gm-page .gm-route-step { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .gm-page .gm-step-number { flex: 0 0 38px; width: 38px; height: 38px; font-size: .8rem; }
  .gm-page .gm-diagnostics-card { padding: 20px; }
  .gm-page .gm-field-row { grid-template-columns: 1fr; gap: 0; }
  .gm-page .gm-actions .btn { width: 100%; text-align: center; }
  .gm-page .gm-contact-card { padding: 20px; }
}

@media (max-width: 560px) {
  .gm-page .metabolic-cards { grid-template-columns: 1fr; gap: 12px; }
  .gm-page .metabolic-card { min-height: 0; justify-content: flex-start; padding: 16px 20px; text-align: left; border-radius: 12px; }
  .gm-page .metabolic-card-label br { display: none; }
  .gm-page .metabolic-connectors { display: none; }
  .gm-page .metabolic-map-key { position: static; transform: none; padding: 16px 0 0; white-space: normal; text-align: left; }
  .gm-page .metabolic-toggle { display: none !important; }
  .gm-page .metabolic-figure figcaption { margin-top: 14px; }
}

@media (max-width: 768px) {
  .gm-page .nav-toggle { width: 44px; height: 44px; }
  .gm-page .main-nav a { display: flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-page .metabolic-connectors { transition: none; }
  .gm-page * { scroll-behavior: auto !important; }
}

@media print {
  .gm-page .metabolic-toggle { display: none !important; }
}
@media (max-width: 380px) {
  .gm-page .gm-hero-note { margin-bottom: 8px; }
}
