/*
Theme Name: SkinCos
Theme URI: https://skincos.de/
Author: SkinCos / Intercosmed GmbH
Description: Individuelles, schlankes Block-Theme für SkinCos. Visuell verwandt mit Intercosmed, mit wärmerer SkinCos-Akzentwelt.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: skincos
*/

:root {
  --sc-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sc-ink: #596575;
  --sc-ink-deep: #3f4854;
  --sc-muted: #727986;
  --sc-line: #dfe3e8;
  --sc-paper: #fbfaf7;
  --sc-white: #ffffff;
  --sc-warm: #a99a87;
  --sc-warm-deep: #74685c;
  --sc-warm-soft: #f2eee7;
  --sc-max: 1180px;
  --sc-reading: 760px;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  text-rendering: auto;
  font-family: var(--sc-font);
  font-weight: 300;
  color: var(--sc-muted);
  background: var(--sc-paper);
  font-stretch: normal;
  font-style: normal;
  font-kerning: normal;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

.wp-site-blocks {
  background: var(--sc-paper);
}

/*
 * Typografie auf allen Endgeräten identisch halten.
 * Montserrat wird über die WordPress-Schriftverwaltung geladen;
 * Theme und responsive Navigation verwenden immer dieselbe Familie.
 */
.wp-site-blocks,
.wp-site-blocks p,
.wp-site-blocks li,
.wp-site-blocks a,
.wp-site-blocks span,
.wp-site-blocks button,
.wp-site-blocks input,
.wp-site-blocks textarea,
.wp-site-blocks select,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6,
.wp-site-blocks .wp-block-navigation,
.wp-site-blocks .wp-block-navigation * {
  font-family: var(--sc-font) !important;
  font-synthesis: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font);
  color: var(--sc-ink);
}

h1,
.wp-site-blocks h1,
.wp-site-blocks .wp-block-heading:is(h1) {
  font-weight: 200 !important;
}
h2, h3, h4, h5, h6 { font-weight: 300; }

.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6 {
  font-weight: 300 !important;
  font-stretch: normal;
}

p, li, a, span, button, input, textarea, select {
  font-family: var(--sc-font);
}

a { color: var(--sc-ink); }

.wp-site-blocks { overflow: hidden; }

.sc-shell {
  width: min(calc(100% - 40px), var(--sc-max));
  margin-inline: auto;
}

.sc-reading {
  width: min(100%, var(--sc-reading));
  margin-inline: auto;
}

.sc-kicker {
  margin: 0 0 14px;
  color: var(--sc-warm-deep);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sc-hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 74px 0 64px;
}

.sc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: clamp(82px, 6vw, 96px);
  align-items: center;
}

.sc-hero-grid > *,
.sc-bio-grid > *,
.sc-professional-grid > *,
.sc-grid-3 > *,
.sc-price-grid > *,
.sc-safety-grid > * {
  min-width: 0;
}

.sc-hero-copycol {
  width: 100%;
  max-width: 660px;
}

.sc-hero-title-line {
  display: block;
  white-space: nowrap;
}

/*
 * Hero-Typografie bewusst sehr fein halten.
 * Die !important-Regeln verhindern, dass gespeicherte WordPress-Global-Styles
 * auf der Live-Seite den H1-Schnitt wieder auf 300 anheben.
 */
.sc-hero h1,
.wp-site-blocks .sc-hero h1 {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  font-family: var(--sc-font) !important;
  font-size: clamp(70px, 5.2vw, 78px);
  line-height: 1.01;
  letter-spacing: -.024em;
  font-weight: 200 !important;
  font-style: normal !important;
  font-synthesis: none !important;
}

.sc-hero-lead,
.wp-site-blocks .sc-hero-lead {
  max-width: 660px;
  margin: 0 0 22px;
  font-family: var(--sc-font) !important;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--sc-ink);
  font-weight: 300 !important;
  font-style: normal !important;
  font-synthesis: none !important;
}

.sc-hero-copy {
  max-width: 660px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--sc-muted);
}

.sc-hero-media {
  min-height: 500px;
  background: linear-gradient(155deg, #efe8dd 0%, #d8ccbd 56%, #b4a692 100%);
  position: relative;
  overflow: hidden;
}

.sc-hero-media::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  top: 15%;
  left: 14%;
}

.sc-hero-media::after {
  content: "SKINCOS";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  letter-spacing: .18em;
}

.sc-trustline {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--sc-line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--sc-muted);
  letter-spacing: .03em;
}

.sc-section { padding: 86px 0; }
.sc-section--tight { padding: 70px 0; }
.sc-section--warm { background: var(--sc-warm-soft); }
.sc-section--dark { background: var(--sc-ink-deep); color: #fff; }
.sc-section--dark h2,
.sc-section--dark h3,
.sc-section--dark p { color: inherit; }
.sc-section--dark .sc-kicker { color: #d8cec1; }

.sc-section-title {
  max-width: 860px;
  margin: 0 auto 18px;
  text-align: center;
}

.sc-section-copy {
  max-width: 790px;
  margin: 0 auto;
  text-align: center;
  color: var(--sc-muted);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 300;
}

.sc-statement {
  max-width: 940px;
  margin: 42px auto 0;
  padding: 34px 0;
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  text-align: center;
  color: var(--sc-ink);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.35;
}

.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--sc-line);
  border-left: 1px solid var(--sc-line);
}

.sc-card {
  min-height: 280px;
  padding: 30px 28px 26px;
  border-right: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  background: rgba(255,255,255,.55);
  transition: background .2s ease, transform .2s ease;
}

.sc-card:hover { background: #fff; transform: translateY(-2px); }
.sc-card h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.35; font-weight: 300; color: var(--sc-ink); }
.sc-card p { margin: 0 0 20px; color: var(--sc-muted); font-size: 15px; line-height: 1.72; font-weight: 300; }
.sc-card a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.sc-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.sc-price-card {
  padding: 34px;
  background: rgba(255,255,255,.74);
  border: 1px solid #ded7cd;
}
.sc-price-card .sc-price { font-size: 42px; font-weight: 300; color: var(--sc-ink); }

.sc-safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.22);
  border-left: 1px solid rgba(255,255,255,.22);
  margin-top: 42px;
}
.sc-safety-item {
  padding: 26px 22px;
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.sc-safety-item .sc-num { display:block; margin-bottom:18px; color:#d8cec1; font-size:12px; letter-spacing:.12em; }
.sc-safety-item h3 { font-size:20px; font-weight:300; }
.sc-safety-item p { font-size:14px; line-height:1.7; opacity:.88; }

.sc-professional {
  padding: 44px 0;
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
}
.sc-professional-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.sc-bio-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(42px,7vw,100px);
  align-items: center;
}
.sc-bio-photo {
  min-height: 540px;
  background: linear-gradient(155deg, #e9dfd3, #b8aa98);
  position: relative;
}
.sc-bio-photo::after {
  content:"BEATE SCHEFFLER";
  position:absolute;
  bottom:20px;
  left:22px;
  font-size:11px;
  letter-spacing:.14em;
  color:rgba(255,255,255,.85);
}

.sc-footer {
  padding: 54px 0 26px;
  border-top: 1px solid var(--sc-line);
  background: #fff;
}
.sc-footer-grid {
  display:grid;
  grid-template-columns:1.4fr repeat(3, 1fr);
  gap:48px;
}
.sc-footer h4 { font-size:13px; font-weight:300; color:var(--sc-ink); text-transform:uppercase; letter-spacing:.08em; }
.sc-footer a { text-decoration:none; }

.sc-utility {
  background:#fff;
  border-bottom:1px solid var(--sc-line);
  font-size:12px;
}
.sc-utility-inner {
  width:min(calc(100% - 40px), var(--sc-max));
  margin:auto;
  padding:8px 0;
  display:flex;
  justify-content:flex-end;
  gap:18px;
}
.sc-utility a { text-decoration:none; font-weight:300; color:var(--sc-muted); }

.sc-header {
  background:rgba(251,250,247,.96);
  border-bottom:1px solid rgba(223,227,232,.88);
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter: blur(12px);
}
.sc-header-inner {
  width:min(calc(100% - 40px), var(--sc-max));
  min-height:78px;
  margin:auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:32px;
  align-items:center;
}
.sc-brand {
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  line-height:0;
}
.sc-brand img {
  display:block;
  width:176px;
  height:auto;
  max-width:100%;
}
.sc-header nav ul { justify-content:center; gap:26px !important; }
.sc-header nav a { text-decoration:none; font-size:13px; font-weight:300; color:var(--sc-ink); }

.wp-element-button,
.wp-block-button__link {
  border-radius:0 !important;
  padding:12px 20px !important;
  font-size:13px !important;
  font-weight:300 !important;
  letter-spacing:.015em;
  transition: all .2s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translateY(-1px); }

.sc-outline .wp-block-button__link {
  background:transparent !important;
  color:var(--sc-ink) !important;
  border:1px solid var(--sc-ink) !important;
}

@media (min-width: 1241px) {
  .sc-hero .sc-shell {
    width: min(calc(100% - 40px), 1240px);
  }

  /* Header und Hero teilen sich auf großen Screens exakt dieselbe linke Achse. */
  .sc-header-inner,
  .sc-utility-inner {
    width: min(calc(100% - 40px), 1240px);
  }

  /* Desktop-Header ruhiger: Wortmarke präsent, aber nicht dominierend. */
  .sc-header-inner {
    min-height: 84px;
    gap: 46px;
  }
  .sc-brand img {
    width: 194px;
  }

  /* Navigation optisch eine Stufe hinter die Marke und den CTA setzen. */
  .sc-header nav ul {
    gap: 22px !important;
  }
  .sc-header nav a {
    font-size: 12px;
    color: var(--sc-muted);
  }
  .sc-header nav a:hover,
  .sc-header nav a:focus-visible {
    color: var(--sc-ink);
  }

  /* Utility-Leiste bewusst dezent halten. */
  .sc-utility {
    font-size: 11px;
  }
  .sc-utility-inner {
    padding: 6px 0;
    gap: 14px;
  }
  .sc-utility a,
  .sc-utility span {
    opacity: .76;
  }

  /*
   * Die längste H1-Zeile soll optisch mit der längsten Zeile des
   * Fließtextblocks darunter abschließen. Bei der echten Montserrat 200
   * entspricht das auf großen Screens ca. 78 px.
   */
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    font-size: clamp(72px, 4.4vw, 78px);
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .sc-hero-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
    gap: clamp(58px, 5vw, 74px);
  }
  .sc-hero-copycol {
    max-width: 100%;
  }
  .sc-hero h1 {
    font-size: clamp(58px, 5.6vw, 70px);
  }
  .sc-hero-lead {
    font-size: clamp(20px, 2vw, 24px);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .sc-brand img { width: 158px; }
  .sc-header nav ul { gap: 18px !important; }
}

@media (max-width: 980px) {
  .sc-hero-grid, .sc-bio-grid { grid-template-columns:1fr; }
  .sc-hero-media, .sc-bio-photo { min-height:460px; }
  .sc-grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sc-safety-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sc-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sc-header nav { display:none; }
  .sc-header-inner { grid-template-columns:1fr auto; }

  /*
   * Tablet/Mobil: Die H1 bleibt bewusst exakt zweizeilig:
   * „Ihre Haut.“ / „Ihre Entscheidung.“. Die Textspalte darf deshalb
   * nicht mehr auf die Desktop-Breite von 660 px begrenzt werden.
   */
  .sc-hero-copycol {
    max-width: 100%;
  }
  .sc-hero-title-line,
  .sc-hero-title-line:first-child {
    white-space: nowrap;
  }
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 7vw, 60px);
    line-height: 1.02;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  :root {
    /* Auf Mobil bewusst etwas wärmer, damit Taupe/Beige optisch wie am Desktop wirkt. */
    --sc-paper: #f8f4ee;
    --sc-warm-soft: #eee5da;
    --sc-line: #ddd5cb;
  }
  html, body, .wp-site-blocks {
    background: var(--sc-paper) !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  .sc-section--warm { background: var(--sc-warm-soft) !important; }
  .sc-header { background: rgba(251,250,247,.96) !important; }
  .sc-shell, .sc-header-inner, .sc-utility-inner { width:min(calc(100% - 28px), var(--sc-max)); }
  .sc-hero { min-height:auto; padding:50px 0 44px; }
  .sc-hero-grid { gap: 30px; }
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    width: 100%;
    max-width: 100%;
    /*
     * Mobil bewusst deutlich schmaler als Desktop.
     * Ziel: „Ihre Entscheidung.“ bleibt vollständig in EINER Zeile
     * und wird auch bei Android-/Browser-Textskalierung nicht abgeschnitten.
     */
    font-size: clamp(31px, 7.4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 200 !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    overflow: visible;
  }
  .sc-hero-title-line,
  .sc-hero-title-line:first-child,
  .sc-hero-title-line + .sc-hero-title-line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
  }
  .sc-hero-lead {
    width: 100%;
    max-width: 100%;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.45;
    overflow-wrap: break-word;
  }
  .sc-hero-copy,
  .sc-section-copy,
  .sc-card p,
  .sc-safety-item p,
  .sc-price-card p,
  .sc-professional p,
  .sc-bio-grid p,
  .sc-footer p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .sc-hero-copy {
    font-size: 16px;
    line-height: 1.68;
  }
  .sc-section-title,
  .sc-section-copy,
  .sc-statement {
    width: 100%;
    max-width: 100%;
  }
  .sc-statement {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.32;
  }
  .sc-hero .wp-block-buttons {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }
  .sc-hero .wp-block-button,
  .sc-hero .wp-block-button__link {
    max-width: 100%;
  }
  .sc-hero-media { min-height:340px; }
  .sc-section { padding:66px 0; }
  .sc-grid-3, .sc-price-grid, .sc-safety-grid, .sc-footer-grid { grid-template-columns:1fr; }
  .sc-professional-grid { grid-template-columns:1fr; }
  .sc-card { min-height:0; }
  .sc-utility-inner { justify-content:center; }
  .sc-header-inner { min-height:70px; }
  .sc-brand img { width:128px; }

  body,
  .wp-site-blocks p,
  .wp-site-blocks li,
  .wp-site-blocks a,
  .wp-site-blocks span,
  .wp-site-blocks button {
    font-stretch: normal !important;
    font-style: normal !important;
    letter-spacing: normal;
  }

  /* Mobile: exakt dieselbe Montserrat-Hierarchie wie Desktop */
  .wp-site-blocks h1,
  .sc-hero h1 {
    font-family: var(--sc-font) !important;
    font-weight: 200 !important;
    font-stretch: normal !important;
  }
  .wp-site-blocks h2,
  .wp-site-blocks h3,
  .wp-site-blocks h4,
  .sc-section-title,
  .sc-card h3,
  .sc-statement {
    font-family: var(--sc-font) !important;
    font-weight: 300 !important;
    font-stretch: normal !important;
  }
  .wp-site-blocks p,
  .wp-site-blocks li,
  .wp-site-blocks a,
  .wp-site-blocks span,
  .wp-site-blocks button,
  .wp-site-blocks .wp-block-navigation,
  .wp-site-blocks .wp-block-navigation * {
    font-family: var(--sc-font) !important;
    font-weight: 300;
  }
}
@media (max-width: 390px) {
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    /* Auf sehr schmalen Geräten proportional weiter verkleinern. */
    font-size: min(28px, 7.6vw);
  }
  .sc-hero-lead {
    font-size: 17px;
  }
  .sc-shell, .sc-header-inner, .sc-utility-inner {
    width: min(calc(100% - 24px), var(--sc-max));
  }
}

/* Startseite: 8 Themen sauber in 4 x 2 darstellen. */
.sc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sc-grid-4 > * { min-width: 0; }
@media (max-width: 1100px) {
  .sc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sc-grid-4 { grid-template-columns: 1fr; }
}


/* ============================================================
   v0.1.30 – editable homepage: full-width + stable responsive grids
   ============================================================ */

/*
 * Since v0.1.25 the homepage content lives inside core/post-content.
 * WordPress applies the global contentSize (760px) to direct children of
 * constrained post content. That unintentionally squeezed every SkinCos
 * section. These rules restore the original full-width section canvas while
 * retaining the inner .sc-shell max width.
 */
.wp-site-blocks > .wp-block-post-content,
.wp-block-post-content,
.wp-block-post-content.is-layout-constrained {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

.wp-block-post-content > .wp-block-group,
.wp-block-post-content > section,
.wp-block-post-content.is-layout-constrained > .wp-block-group,
.wp-block-post-content.is-layout-constrained > section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Same geometry in the page editor preview. */
.editor-styles-wrapper .wp-block-post-content,
.editor-styles-wrapper .wp-block-post-content > .wp-block-group {
  max-width: none !important;
  width: 100% !important;
}

/* Hero: typography scales from the actual left text column. */
.sc-hero-copycol {
  container-type: inline-size;
  container-name: sc-hero-copy;
}

.sc-hero h1,
.wp-site-blocks .sc-hero h1 {
  font-size: clamp(44px, 11.75cqw, 78px) !important;
  line-height: 1.01 !important;
  letter-spacing: -0.024em !important;
}

.sc-hero-title-line {
  display: block;
  white-space: nowrap;
}

/* All core card grids use the full inner shell and equal-width columns. */
.sc-grid-4,
.sc-grid-3,
.sc-price-grid,
.sc-safety-grid {
  width: 100%;
  max-width: none;
  align-items: stretch;
}

/* Topics: all eight cards share the same height on desktop. */
.sc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.sc-grid-4 > .sc-card,
.sc-grid-3 > .sc-card,
.sc-price-grid > .sc-price-card,
.sc-safety-grid > .sc-safety-item {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.sc-grid-4 > .sc-card,
.sc-grid-3 > .sc-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sc-grid-4 .sc-card h3,
.sc-grid-3 .sc-card h3 {
  margin-top: 0;
}

.sc-grid-4 .sc-card > p:last-child,
.sc-grid-3 .sc-card > p:last-child {
  align-self: end;
  margin-bottom: 0;
}

/* Equal visual heading zone in multi-column card rows. */
@media (min-width: 701px) {
  .sc-grid-4 .sc-card h3,
  .sc-grid-3 .sc-card h3 {
    min-height: 2.7em;
  }
}

/* Consultation cards remain exactly equal in height. */
.sc-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.sc-price-card {
  display: flex;
  flex-direction: column;
}

/* Safety cards remain exactly equal in height. */
.sc-safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sc-safety-item {
  display: flex;
  flex-direction: column;
}

/* Hype cards: three identical columns/heights on desktop. */
.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

/* Tablet: preserve equal proportions, reduce only column count. */
@media (max-width: 980px) {
  .sc-grid-4,
  .sc-safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    font-size: clamp(44px, 11.75cqw, 66px) !important;
  }
}

/* Phone: one column; cards use natural height, H1 stays prominent. */
@media (max-width: 700px) {
  .sc-grid-4,
  .sc-grid-3,
  .sc-price-grid,
  .sc-safety-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
  }
  .sc-grid-4 .sc-card h3,
  .sc-grid-3 .sc-card h3 {
    min-height: 0;
  }
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    font-size: clamp(40px, 11.75cqw, 52px) !important;
    line-height: 1.03 !important;
  }
}

@media (max-width: 390px) {
  .sc-hero h1,
  .wp-site-blocks .sc-hero h1 {
    font-size: clamp(38px, 11.75cqw, 46px) !important;
  }
}


/* ============================================================
   v0.1.31 – automatische Textumbrüche und Silbentrennung
   ============================================================ */

/*
 * Fließtexte sollen sich an jede verfügbare Spaltenbreite anpassen,
 * ohne unnatürliche Lücken oder abgeschnittene Wörter. Deutschsprachige
 * Browser können mit hyphens:auto an sinnvollen Stellen trennen.
 */
.sc-hero p,
.sc-section p,
.sc-card p,
.sc-price-card p,
.sc-safety-item p,
.sc-professional p,
.sc-bio-grid p,
.sc-trustline,
.wp-block-post-content p {
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}

/* Überschriften umbrechen ausgewogen; H1 bleibt bewusst zweizeilig. */
.sc-section-title,
.sc-card h3,
.sc-price-card h3,
.sc-safety-item h3,
.sc-professional h2,
.sc-bio-grid h2 {
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: balance;
}

/* Buttons und Links dürfen an Wortgrenzen umbrechen, aber nicht mitten im Wort. */
.wp-block-button__link,
.sc-card a,
.sc-price-card a,
.sc-safety-item a {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Die beiden H1-Zeilen bleiben als bewusstes Markenelement erhalten. */
.sc-hero-title-line {
  white-space: nowrap;
  hyphens: none;
}

/* ============================================================
   v0.1.32 – Gutenberg flow-gap reset for custom SkinCos layouts
   ============================================================ */

/*
 * WordPress gives Group blocks with "flow" layout an automatic block gap:
 * .is-layout-flow > * + * { margin-block-start: ... }
 * When a SkinCos Group is converted to CSS Grid/Flex, those margins remain
 * on grid items and shift every item except the first one downward. This was
 * the reason the first card in Topics/Hype/Consultation/Safety started higher
 * and the boxes no longer shared one top/bottom line.
 *
 * Custom SkinCos layout containers use CSS gap / grid tracks instead, so their
 * direct children must not keep the WordPress flow margins.
 */
.sc-grid-4 > *,
.sc-grid-3 > *,
.sc-price-grid > *,
.sc-safety-grid > *,
.sc-hero-grid > *,
.sc-professional-grid > *,
.sc-bio-grid > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
}

/* Equal card geometry: all cards in the same grid track share one height. */
.sc-grid-4,
.sc-grid-3,
.sc-price-grid,
.sc-safety-grid {
  align-items: stretch !important;
}

.sc-grid-4 > .sc-card,
.sc-grid-3 > .sc-card,
.sc-price-grid > .sc-price-card,
.sc-safety-grid > .sc-safety-item {
  height: 100% !important;
  align-self: stretch !important;
}

/* Topic and Hype cards keep links pinned to the same lower baseline. */
.sc-grid-4 > .sc-card,
.sc-grid-3 > .sc-card {
  display: grid !important;
  grid-template-rows: auto 1fr auto;
}

.sc-grid-4 > .sc-card > p:last-child,
.sc-grid-3 > .sc-card > p:last-child {
  align-self: end;
}

/* Notes / CTAs belong below the grids, never on top of their lower border. */
.sc-price-grid + p,
.sc-safety-grid + p {
  position: relative;
  clear: both;
  margin-top: 22px !important;
  margin-bottom: 0 !important;
}

/* Keep automatic responsive text wrapping; never force words outside cards. */
.sc-grid-4 h3,
.sc-grid-3 h3,
.sc-price-grid h3,
.sc-safety-grid h3,
.sc-grid-4 p,
.sc-grid-3 p,
.sc-price-grid p,
.sc-safety-grid p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* On phones every box returns to natural content height. */
@media (max-width: 700px) {
  .sc-grid-4 > .sc-card,
  .sc-grid-3 > .sc-card,
  .sc-price-grid > .sc-price-card,
  .sc-safety-grid > .sc-safety-item {
    height: auto !important;
  }
}


/* ============================================================
   v0.1.33 – zuverlässige deutsche Silbentrennung
   ============================================================ */

/*
 * Browser trennen nur dann sprachlich korrekt, wenn die Sprache des
 * Textes bekannt ist. Für alle editierbaren SkinCos-Texte erzwingen wir
 * daher echte deutsche Auto-Hyphenation. H1 und Buttons bleiben davon
 * bewusst ausgenommen.
 */
:where(
  .sc-hero-copycol,
  .sc-section,
  .sc-card,
  .sc-price-card,
  .sc-safety-item,
  .sc-professional,
  .sc-bio-grid,
  .sc-footer,
  .wp-block-post-content
) :where(p, li, h2, h3, h4) {
  -webkit-hyphens: auto !important;
  -moz-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
  hyphenate-character: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Etwas engere Textspalten profitieren besonders von Silbentrennung. */
:where(.sc-grid-4, .sc-grid-3, .sc-safety-grid, .sc-price-grid) :where(p, h3) {
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  text-wrap: pretty;
}

/* Markenheadline und Interaktionselemente nie mitten im Wort trennen. */
.sc-hero h1,
.sc-hero-title-line,
.wp-block-button__link,
.sc-card a,
.sc-price-card a,
.sc-safety-item a,
.sc-header a,
.sc-footer a {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
}
