/* ============================================================
   FeWo AlpenBase · Content-Bridge
   Bringt die TYPO3-Standard-Inhaltselemente (fluid_styled_content:
   Text, Text & Medien, Aufzählung, Tabelle, Menü …) auf die
   AlpenBase-Typografie aus dem Design-Handoff.
   Einbinden:  page.includeCSS.alpenbaseContent = fileadmin/alpenbase/css/alpenbase-content.css
   Inhalt wird in <main class="ab-content"> gewrappt (TypoScript: page.10.stdWrap.wrap).
   Hinweis: handgebaute .ab-section-Blöcke (eigene Klassen) bleiben unberührt –
   deren Klassen gewinnen per Spezifität gegenüber den Element-Regeln hier.
   ============================================================ */

.ab-content{
  /* Design-Tokens (aus Handoff) */
  --brown:#5e4c42;        /* Überschriften + Akzent */
  --brown-hover:#6f5a4e;
  --olive:#748459;        /* Links, Akzente */
  --text-lead:#4a3d35;    /* Lead / Untertitel */
  --text-body:#6b6259;    /* Fließtext (heller als Überschriften) */
  --text-info:#8a8077;    /* kleiner Info-Text */
  --surface:#fdfcf8;      /* warmweißer Seitengrund */
  --hairline:rgba(94,76,66,.14);
  --olive-line:rgba(116,132,89,.40);

  background:var(--surface);
  font-family:"Schibsted Grotesk",system-ui,sans-serif;
  color:var(--text-body);
  -webkit-font-smoothing:antialiased;
  padding-block:clamp(48px,8vh,96px);
}

/* ── zentrierte Lesespalte (~720px) per Padding, damit volle .ab-section-Bänder
      NICHT eingeengt werden (die matchen diese Selektoren nicht) ── */
.ab-content > .frame > header,
.ab-content > .frame > .ce-bodytext,
.ab-content > .frame > .ce-textpic,
.ab-content > .frame > ul,
.ab-content > .frame > ol,
.ab-content > .frame > table,
.ab-content > .frame > .menu,
.ab-content > .frame > [class*="menu"]{
  padding-inline:max(22px, calc(50% - 360px));
}

/* Abstand zwischen Inhaltselementen */
.ab-content > .frame + .frame{ margin-top:clamp(30px,4.5vh,52px); }

/* ── Überschriften ── */
.ab-content h1{ font-weight:400; font-size:43px; line-height:1.08; letter-spacing:-.01em; color:var(--brown); margin:0 0 .5em; }
.ab-content h2{ font-weight:600; font-size:26px; line-height:1.2;  color:var(--brown); margin:1.4em 0 .5em; }
.ab-content h3{ font-weight:500; font-size:23px; line-height:1.25; color:var(--brown); margin:1.3em 0 .4em; }
.ab-content h4{ font-weight:600; font-size:19px; line-height:1.3;  color:var(--brown); margin:1.2em 0 .35em; }
.ab-content header > h1:first-child,
.ab-content header > h2:first-child,
.ab-content header > h3:first-child{ margin-top:0; }

/* Untertitel / subheader -> Lead-Stil */
.ab-content header .subheader,
.ab-content .ce-headline + .subheader{ font-weight:450; font-size:22px; line-height:1.5; color:var(--text-lead); margin:.2em 0 0; }

/* ── Fließtext ── */
.ab-content p{ font-weight:400; font-size:19px; line-height:1.5; color:var(--text-body); margin:0 0 1em; }
.ab-content .ce-bodytext > :last-child{ margin-bottom:0; }
.ab-content strong,.ab-content b{ font-weight:600; color:var(--text-lead); }
.ab-content em,.ab-content i{ font-style:italic; }
.ab-content hr{ border:0; border-top:1px solid var(--hairline); margin:2em 0; }

/* erste Zeile als Lead opt-in über RTE-Klasse */
.ab-content p.lead,
.ab-content .ce-bodytext > p.lead{ font-weight:450; font-size:22px; line-height:1.5; color:var(--text-lead); }
.ab-content p.info{ font-size:17px; line-height:1.45; color:var(--text-info); }

/* ── Links ── */
.ab-content a{ color:var(--olive); text-decoration:none; border-bottom:1px solid var(--olive-line); transition:color .2s ease,border-color .2s ease; }
.ab-content a:hover{ color:var(--brown); border-bottom-color:var(--brown); }

/* ── Listen (eigene olive Punkte statt Browser-Marker) ── */
.ab-content ul,.ab-content ol{ margin:0 0 1em; }
.ab-content li{ font-size:19px; line-height:1.5; color:var(--text-body); margin:.35em 0; }
.ab-content ol{ padding-left:1.4em; }
.ab-content ul{ list-style:none; padding-left:0; }
.ab-content ul > li{ position:relative; padding-left:1.5em; }
.ab-content ul > li::before{ content:''; position:absolute; left:.25em; top:.62em; width:6px; height:6px; border-radius:50%; background:var(--olive); }

/* ── Bilder / Text & Medien (textpic) ── */
.ab-content figure{ margin:0; }
.ab-content img,
.ab-content .ce-gallery img{ display:block; max-width:100%; height:auto; border-radius:8px; }
.ab-content .ce-gallery{ margin:0 0 1.2em; }
.ab-content .ce-row{ display:grid; gap:clamp(12px,2vw,20px); }
.ab-content .ce-gallery[data-ce-columns="2"] .ce-row{ grid-template-columns:1fr 1fr; }
.ab-content .ce-gallery[data-ce-columns="3"] .ce-row{ grid-template-columns:repeat(3,1fr); }
.ab-content .ce-textpic.ce-center .ce-gallery{ text-align:center; }
/* Bild neben Text (intext) – dezenter Float */
.ab-content .ce-intext.ce-left .ce-gallery{ float:left; margin:0 clamp(16px,2vw,28px) 14px 0; max-width:46%; }
.ab-content .ce-intext.ce-right .ce-gallery{ float:right; margin:0 0 14px clamp(16px,2vw,28px); max-width:46%; }
.ab-content .ce-textpic::after{ content:''; display:block; clear:both; }

/* ── Tabellen ── */
.ab-content table{ width:100%; border-collapse:collapse; margin:0 0 1.2em; font-size:18px; }
.ab-content th,.ab-content td{ text-align:left; padding:11px 14px; border-bottom:1px solid var(--hairline); color:var(--text-body); }
.ab-content th{ font-weight:600; color:var(--brown); }

/* ── Menü-Inhaltselemente (menu_*) ── */
.ab-content [class*="frame-type-menu"] ul{ list-style:none; padding-left:0; }
.ab-content [class*="frame-type-menu"] li{ padding-left:0; margin:.2em 0; }
.ab-content [class*="frame-type-menu"] li::before{ display:none; }
.ab-content [class*="frame-type-menu"] a{ display:inline-block; font-size:19px; }

/* ── Buttons (falls FSC „Header link“ o. ä. genutzt wird) ── */
.ab-content .ce-headline a.btn,
.ab-content a.ab-cta{ /* eigene CTA-Klassen bleiben über alpenbase-sections.css */ }