/*
 * Neue Startseite: zentrale Gestaltungsquelle für freigegebenes Gutenberg-Markup.
 * Aktivierung durch sc_page_design(): tatsächliche Startseite oder Seitenvorschau,
 * jeweils mit vorhandener sc-home-about-Section. Keine feste Entwurfs-ID.
 * Alle Regeln bleiben auf .sc-page-home begrenzt; alte Startseitenregeln in
 * style.css und im gesicherten alten Seiteninhalt bleiben für Rollback erhalten.
 * Core-/Spectra-Anpassungen und notwendige CTA-Spezifität sind bewusst erhalten.
 */

  /* Startseite Sabine Classen – ruhige, einheitliche Gestaltung */

  body.sc-page-home {
    --sc-color-teal: #134f5c;
    --sc-color-accent: #1e6a72;
    --sc-color-heading: var(--ast-global-color-2, #141a0f);
    --sc-color-beige: #f6e4cf; /* gedämpftes Apricot; nach Umstellung von Astra Global Color 6 wieder var(--ast-global-color-6) */
    --sc-text-width: 820px;
    --sc-section-width: 1080px;
    --sc-mobile-text-width: 380px;
    --sc-mobile-heading-width: 340px;
    --sc-card-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    --sc-heading-font: "DM Sans", sans-serif;
  }

  body.sc-page-home:has(.sc-home-hero) #content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* keine weißen Lücken über dem Hero und vor dem Newsletter */

  body.sc-page-home:has(.sc-home-hero) #primary,
body.sc-page-home:has(.sc-home-hero) .site-main,
body.sc-page-home:has(.sc-home-hero) article.page {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.sc-page-home:has(.sc-home-hero) .entry-content > :last-child {
    margin-bottom: 0 !important;
  }

  body.sc-page-home:has(.sc-home-hero) .entry-header {
    display: none !important;
  }

  :where(.sc-page-home) .entry-content img {
    max-width: 100%;
    height: auto;
  }

  /* Buttons */

  :where(.sc-page-home) .sc-home .wp-block-buttons,
:where(.sc-page-home) .sc-studio-section .wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 12px;
  }

  :where(.sc-page-home) .sc-home .wp-block-button,
:where(.sc-page-home) .sc-studio-section .wp-block-button {
    margin: 0 !important;
  }

  :where(.sc-page-home) .sc-home .wp-block-button__link,
:where(.sc-page-home) .sc-studio-section .wp-block-button__link,
:where(.sc-page-home) .sc-home-hero__button,
:where(.sc-page-home) .sc-home-hero__buttons .wp-block-button__link {
    min-height: 46px;
    min-width: 160px;
    padding: 12px 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--sc-color-teal) !important;
    border-radius: 3px;
    background: var(--sc-color-teal) !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
  }

  :where(.sc-page-home) .sc-home .is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--sc-color-teal) !important;
  }

  :where(.sc-page-home) .sc-home-textlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--sc-color-accent) !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Abschnitte */

  :where(.sc-page-home) .sc-home {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 104px 24px 108px;
    background: #fff;
    color: var(--sc-color-teal);
  }

  :where(.sc-page-home) .sc-home--beige {
    background: var(--sc-color-beige);
  }

  /* feine Trennlinie zwischen zwei weißen Abschnitten */

  :where(.sc-page-home) .sc-home--rule {
    position: relative;
  }

  :where(.sc-page-home) .sc-home--rule::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(var(--sc-section-width), calc(100% - 48px));
    height: 1px;
    background: rgba(19, 79, 92, 0.12);
    transform: translateX(-50%);
  }

  :where(.sc-page-home) .sc-home *,
:where(.sc-page-home) .sc-home *::before,
:where(.sc-page-home) .sc-home *::after {
    box-sizing: border-box;
  }

  :where(.sc-page-home) .sc-home__inner {
    margin: 0 auto;
  }

  :where(.sc-page-home) .sc-home__head {
    max-width: var(--sc-text-width);
    margin: 0 auto;
    text-align: center;
  }

  :where(.sc-page-home) .sc-section-kicker {
    max-width: var(--sc-text-width);
    margin: 0 auto 14px !important;
    color: var(--sc-color-accent) !important;
    font-family: var(--sc-heading-font);
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }

  :where(.sc-page-home) .sc-section-heading,
:where(.sc-page-home) .sc-studio-section h2.wp-block-heading,
:where(.sc-page-home) .sc-home-reviews h2.wp-block-heading {
    max-width: var(--sc-text-width);
    margin: 0 auto 20px !important;
    color: var(--sc-color-heading) !important;
    font-family: var(--sc-heading-font) !important;
    font-size: clamp(28px, 2.4vw, 36px) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
  }

  :where(.sc-page-home) .sc-home__text,
:where(.sc-page-home) .sc-studio-section p:not(.sc-section-kicker) {
    max-width: 700px;
    margin: 0 auto;
    color: var(--sc-color-teal);
    font-size: 17px !important;
    line-height: 1.75 !important;
    text-align: center;
  }

  :where(.sc-page-home) .sc-home__text p {
    margin: 0 0 16px;
  }

  :where(.sc-page-home) .sc-home__text p:last-child {
    margin-bottom: 0;
  }

  :where(.sc-page-home) .sc-home .wp-block-buttons {
    margin-top: 30px;
  }

  :where(.sc-page-home) .sc-nowrap {
    white-space: nowrap;
  }

  /* Kurse – drei Bereiche mit Linien-Icons */

  :where(.sc-page-home) .sc-home-areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1000px;
    margin: 48px auto 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  :where(.sc-page-home) .sc-home-area {
    margin: 0;
    padding: 36px 28px 34px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(19, 79, 92, 0.06);
    text-align: center;
  }

  :where(.sc-page-home) .sc-home-area__icon path,
:where(.sc-page-home) .sc-home-area__icon ellipse {
    vector-effect: non-scaling-stroke;
  }

  :where(.sc-page-home) .sc-home-area__icon {
    display: block;
    width: auto;
    height: 52px;
    margin: 0 auto 20px;
    overflow: visible;
    color: var(--sc-color-teal);
  }

  :where(.sc-page-home) .sc-home-area__title {
    margin: 0 0 10px !important;
    font-family: var(--sc-heading-font) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
  }

  :where(.sc-page-home) .sc-home-area__title a {
    color: var(--sc-color-teal) !important;
    text-decoration: underline;
    text-decoration-color: rgba(19, 79, 92, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: text-decoration-color 0.2s;
  }

  :where(.sc-page-home) .sc-home-area__title a:hover,
:where(.sc-page-home) .sc-home-area__title a:focus-visible {
    text-decoration-color: var(--sc-color-teal);
  }

  :where(.sc-page-home) .sc-home-area__text {
    max-width: 280px;
    margin: 0 auto !important;
    color: var(--sc-color-teal);
    font-size: 16px;
    line-height: 1.65;
  }

  :where(.sc-page-home) .sc-home-courses__actions {
    align-items: center;
    margin-top: 48px !important;
  }

  /* Werke – bestehender Spectra-Slider */

  :where(.sc-page-home) .sc-home-works > .sc-home__inner > * {
    margin-top: 0;
  }

  :where(.sc-page-home) .sc-home-works .wp-block-uagb-image-gallery {
    margin-top: 44px !important;
    margin-bottom: 0 !important;
  }

  /* Atelier-Haus (synchronisierter Block) */

  :where(.sc-page-home) .sc-studio-section,
:where(.sc-page-home) .entry-content .sc-studio-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 104px 24px 108px !important;
    box-sizing: border-box;
    background: var(--sc-color-beige) !important;
  }

  :where(.sc-page-home) .sc-studio-section .uagb-container-inner-blocks-wrap {
    max-width: var(--sc-section-width);
    margin: 0 auto;
  }

  :where(.sc-page-home) .sc-studio-section .wp-block-spacer {
    height: 0 !important;
  }

  :where(.sc-page-home) .sc-studio-section .wp-block-group,
:where(.sc-page-home) .sc-studio-section .wp-block-columns,
:where(.sc-page-home) .sc-studio-section .wp-block-column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  :where(.sc-page-home) .sc-studio-section p:not(.sc-section-kicker) {
    margin-bottom: 28px !important;
  }

  :where(.sc-page-home) .sc-studio-section .wp-block-buttons {
    margin: 0 0 48px !important;
  }

  :where(.sc-page-home) .sc-studio-section .uagb-block-be189f93,
:where(.sc-page-home) .sc-studio-section .sc-studio-image {
    max-width: var(--sc-section-width);
    margin: 0 auto;
  }

  :where(.sc-page-home) .sc-studio-section .uagb-block-be189f93 img,
:where(.sc-page-home) .sc-studio-section .sc-studio-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  /* Werkbuch – Bild links, Text rechts */

  :where(.sc-page-home) .sc-home-book__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin: 0 auto;
  }

  :where(.sc-page-home) .sc-home-book__media {
    margin: 0;
  }

  :where(.sc-page-home) .sc-home-book__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  :where(.sc-page-home) .sc-home-book__text .sc-section-kicker,
:where(.sc-page-home) .sc-home-book__text .sc-section-heading {
    margin-left: 0 !important;
    text-align: left !important;
  }

  :where(.sc-page-home) .sc-home-book__text .sc-section-heading {
    margin-bottom: 6px !important;
  }

  :where(.sc-page-home) .sc-home-book__subtitle {
    margin: 0 0 20px !important;
    color: var(--sc-color-teal);
    font-size: 17px;
  }

  :where(.sc-page-home) .sc-home-book__text p {
    margin: 0 0 14px;
    color: var(--sc-color-teal);
    font-size: 17px;
    line-height: 1.75;
  }

  :where(.sc-page-home) .sc-home-book__note {
    font-size: 14px !important;
  }

  :where(.sc-page-home) .sc-home-book__text .wp-block-buttons {
    justify-content: flex-start !important;
    margin-top: 22px;
  }

  /* Stimmen */

  :where(.sc-page-home) .sc-home-reviews > .sc-home__inner > * {
    margin-top: 0;
  }

  :where(.sc-page-home) .sc-home-reviews .sc-section-heading,
:where(.sc-page-home) .sc-home-reviews h2.wp-block-heading {
    margin-bottom: 30px !important;
  }

  /* Tablet */

  /* Mobil */

  @media (max-width: 767px) {
    :where(.sc-page-home) .sc-home,
:where(.sc-page-home) .sc-studio-section,
:where(.sc-page-home) .entry-content .sc-studio-section {
      padding: 64px 20px 68px !important;
    }

    :where(.sc-page-home) .sc-section-kicker {
      max-width: var(--sc-mobile-heading-width);
      margin-bottom: 12px !important;
      font-size: 12px !important;
    }

    :where(.sc-page-home) .sc-section-heading,
:where(.sc-page-home) .sc-studio-section h2.wp-block-heading,
:where(.sc-page-home) .sc-home-reviews h2.wp-block-heading {
      max-width: var(--sc-mobile-heading-width);
      font-size: 24px !important;
      line-height: 1.25 !important;
    }

    :where(.sc-page-home) .sc-home__text,
:where(.sc-page-home) .sc-studio-section p:not(.sc-section-kicker) {
      max-width: var(--sc-mobile-text-width);
      font-size: 15px !important;
    }

    :where(.sc-page-home) .sc-home .wp-block-buttons {
      flex-direction: column;
      flex-wrap: nowrap;
      align-items: center;
    }

    :where(.sc-page-home) .sc-home .wp-block-button {
      width: min(280px, 100%);
      flex: 0 0 auto !important;
    }

    :where(.sc-page-home) .sc-home .wp-block-button__link {
      width: 100%;
      min-height: 48px;
    }

    :where(.sc-page-home) .sc-home-areas {
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      margin-top: 40px !important;
    }

    :where(.sc-page-home) .sc-home-courses__actions {
      margin-top: 36px !important;
    }

    :where(.sc-page-home) .sc-studio-section .wp-block-buttons {
      margin-bottom: 32px !important;
    }

    :where(.sc-page-home) .sc-studio-section .uagb-block-be189f93 img,
:where(.sc-page-home) .sc-studio-section .sc-studio-image img {
      aspect-ratio: 1 / 1;
    }

    :where(.sc-page-home) .sc-home-book__grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 28px;
    }

    :where(.sc-page-home) .sc-home-book__text {
      text-align: center;
    }

    :where(.sc-page-home) .sc-home-book__text .sc-section-kicker,
:where(.sc-page-home) .sc-home-book__text .sc-section-heading {
      margin-right: auto !important;
      margin-left: auto !important;
      text-align: center !important;
    }

    :where(.sc-page-home) .sc-home-book__text .wp-block-buttons {
      justify-content: center !important;
    }
  }

  /* Hero */

  :where(.sc-page-home) .sc-home-hero.alignfull {
    width: 100vw;
    max-width: 100vw !important;
    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;
  }

  :where(.sc-page-home) .sc-home-hero {
    min-height: 690px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background-image: url("https://sabineclassen.de/wp-content/uploads/2025/01/FF38470_neu.jpg");
    background-repeat: no-repeat;
    background-position: 38% 18%;
    background-size: cover;
  }

  :where(.sc-page-home) .sc-home-hero__image {
    display: none;
  }

  :where(.sc-page-home) .sc-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06),
        rgba(0, 0, 0, 0.03) 45%,
        rgba(0, 0, 0, 0.18)
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.16)
      );
  }

  :where(.sc-page-home) .sc-home-hero__inner {
    min-height: inherit;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 72px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
  }

  :where(.sc-page-home) .sc-home-hero__content-card {
    width: min(470px, 100%);
    aspect-ratio: 1 / 1;
    padding: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--sc-card-shadow);
    text-align: center;
  }

  :where(.sc-page-home) .sc-hero-kicker {
    margin: 0 auto 14px !important;
    color: var(--sc-color-accent) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }

  :where(.sc-page-home) .sc-home-hero__headline {
    margin: 0 0 18px !important;
    color: var(--sc-color-teal) !important;
    font-size: clamp(34px, 3vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    text-shadow: none !important;
  }

:where(.sc-page-home) .sc-home-hero__headline {

display: flex;

flex-direction: column-reverse;

align-items: center;

}

:where(.sc-page-home) .sc-home-hero__headline .sc-hero-kicker {

display: block;

font-family: "DM Sans", sans-serif;

white-space: normal;

}

  :where(.sc-page-home) .sc-home-hero__text {
    max-width: 370px;
    margin: 0 auto 26px !important;
    color: var(--sc-color-teal);
    font-size: 16px;
    line-height: 1.65;
  }

  :where(.sc-page-home) .sc-home-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  :where(.sc-page-home) .sc-home-hero__button,
:where(.sc-page-home) .sc-home-hero__buttons .wp-block-button__link {
    min-width: 160px;
    min-height: 46px;
    background: var(--sc-color-teal);
    color: #fff !important;
  }

  /* Größere Bildschirme */

  @media (min-width: 1400px) {
  :where(.sc-page-home) .sc-home-hero {
    min-height: clamp(760px, 82vh, 900px);
    background-position: 38% 12%;
  }

  :where(.sc-page-home) .sc-home-hero__inner {
    max-width: min(1340px, calc(100% - 48px));
  }
  }

  @media (min-width: 768px) and (max-width: 1024px) {

  :where(.sc-page-home) .sc-home-hero {
    min-height: 0;
    background: #fff !important;
    background-image: none;
  }

  :where(.sc-page-home) .sc-home-hero::before {
    display: none;
  }

  :where(.sc-page-home) .sc-home-hero__image {
    width: 100%;
    min-height: 560px;
    display: block;
    background-image: url("https://sabineclassen.de/wp-content/uploads/2025/01/FF38470_neu-1024x681.jpg");
background-repeat: no-repeat;
    background-position: 32% center;
    background-size: cover;
  }

  :where(.sc-page-home) .sc-home-hero__inner {
    min-height: 0;
    max-width: 100%;
    padding: 0 32px 48px;
    display: block;
  }

  :where(.sc-page-home) .sc-home-hero__content-card {
    width: min(470px, 100%);
    margin: -48px auto 0;
    padding: 38px;
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: var(--sc-card-shadow);
  }
  }

  @media (max-width: 767px) {
    /* Hero mobil */

    :where(.sc-page-home) .sc-home-hero.alignfull {
      margin-top: 0 !important;
    }

    :where(.sc-page-home) .sc-home-hero {
      min-height: 0;
      background: #fff !important;
      background-image: none;
    }

    :where(.sc-page-home) .sc-home-hero::before {
      display: none;
    }

    :where(.sc-page-home) .sc-home-hero__image {
      width: 100%;
      min-height: 390px;
      display: block;
background-image: url("https://sabineclassen.de/wp-content/uploads/2025/01/FF38470_neu-768x511.jpg");      background-repeat: no-repeat;
      background-position: 32% center;
      background-size: cover;
    }

    :where(.sc-page-home) .sc-home-hero__inner {
      min-height: 0;
      max-width: 100%;
      padding: 0 20px 40px;
      display: block;
    }

    :where(.sc-page-home) .sc-home-hero__content-card {
      width: min(390px, 100%);
      margin: -34px auto 0;
      padding: 32px 24px 34px;
      position: relative;
      z-index: 2;
      background: #fff;
      box-shadow: var(--sc-card-shadow);
    }

    :where(.sc-page-home) .sc-hero-kicker {
      margin-bottom: 12px !important;
      font-size: 12px !important;
      line-height: 1.25 !important;
    }

    :where(.sc-page-home) .sc-home-hero__headline {
      margin-bottom: 14px !important;
      font-size: clamp(30px, 9vw, 40px) !important;
      line-height: 1.08 !important;
      white-space: nowrap;
    }

    :where(.sc-page-home) .sc-home-hero__text {
      max-width: 320px;
      margin-bottom: 22px !important;
      font-size: 15px;
      line-height: 1.6;
    }

    :where(.sc-page-home) .sc-home-hero__buttons {
      width: min(280px, 100%);
      margin-right: auto;
      margin-left: auto;
      flex-direction: column;
      gap: 12px;
    }

    :where(.sc-page-home) .sc-home-hero__button,
:where(.sc-page-home) .sc-home-hero__buttons .wp-block-button__link {
      width: 100%;
      min-width: 0;
    }
  }

  @media (max-width: 360px) {
    :where(.sc-page-home) .sc-home-hero__headline {
      font-size: 28px !important;
    }
  }

  :where(.sc-page-home) .sc-home-hero__name {
    font-family: var(--sc-heading-font);
    font-weight: 400;
  }

/* =====================================================================
 * Ergänzungen für Core-Blöcke (neu, nicht im Entwurf)
 *
 * Grund: Gruppenblöcke bekommen von WordPress (theme.json von Astra,
 * blockGap) und Astra eigene Abstände, die die HTML-Blöcke nicht hatten.
 * Die Werte hier stellen die bisherige Optik wieder her.
 * ===================================================================== */

/* Astra-Gruppenabstände: Hero ohne zusätzliches Core-Block-Padding. */
:where(.sc-page-home) .entry-content > .wp-block-group.sc-home-hero {
  padding: 0;
}

:where(.sc-page-home) .entry-content > .wp-block-group.sc-home-about,
:where(.sc-page-home) .entry-content > .wp-block-group.sc-home-courses,
:where(.sc-page-home) .entry-content > .wp-block-group.sc-home-book {
  padding: 104px 24px 108px;
}

/* WordPress: in Gruppen 24px über jedem Kind, 0 über dem ersten
 * (:root :where(.is-layout-flow) > :first-child, Spezifität 0,2,0). */
:where(.sc-page-home) .sc-home-hero__content-card > .sc-home-hero__buttons,
:where(.sc-page-home) .sc-home-book__grid > .sc-home-book__text {
  margin-top: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  :where(.sc-page-home) .sc-home-hero__inner > .sc-home-hero__content-card {
    margin-top: -48px;
  }
}

@media (max-width: 767px) {
  :where(.sc-page-home) .sc-home-hero__inner > .sc-home-hero__content-card {
    margin-top: -34px;
  }
}

/* Hero-Buttons sind jetzt core/buttons. Damit greifen Regeln, die für die
 * bisherigen einfachen Links nicht galten:
 * - style.css „Einheitliche CTA-Maße“ (body #content …, mit !important):
 *   font-weight 600, padding 12px 20px, Radius 4px, line-height 1.4,
 *   mobil volle Breite
 * - WordPress-Flex-Layout align-items: center, Core height: 100%
 * Hier die bisherigen Werte mit ausreichender Spezifität. */
body.sc-page-home #content .sc-home-hero__buttons.wp-block-buttons {
  gap: 14px;
  align-items: normal;
}

body.sc-page-home #content .sc-home-hero__buttons .wp-block-button .wp-block-button__link {
  height: auto;
  padding: 12px 24px !important;
  border-radius: 3px !important;
  font-size: 15px !important;
  font-weight: inherit !important;
  line-height: 1.25 !important;
}

@media (max-width: 767px) {
  body.sc-page-home #content .sc-home-hero__buttons.wp-block-buttons {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  body.sc-page-home #content .sc-home-hero__buttons.wp-block-buttons {
    width: min(280px, 100%);
  }

  body.sc-page-home #content .sc-home-hero__buttons > .wp-block-button {
    flex-basis: auto;
  }
}

/* Textdetails aus dem Startseiten-Entwurf, für die künftige einzige CSS-Quelle. */
:where(.sc-page-home) .sc-home-courses .sc-home-next-starts .sc-next-starts-heading {
  max-width:1000px; margin-left:auto !important; margin-right:auto !important;
  text-align:center; font-size:20px; font-weight:400; line-height:1.4;
}
:where(.sc-page-home) .sc-home-works .sc-home-works__sales {
  margin:20px auto 0; font-size:17px; line-height:1.75; font-weight:500; text-align:center;
}

/* Gemeinsame Rahmen- und Typografieregeln der neuen Startseite. */
:where(.sc-page-home) .sc-home { --sc-section-width:var(--sc-frame-width); --sc-text-width:var(--sc-heading-width); padding-inline:0; }
:where(.sc-page-home) .entry-content > .wp-block-group.sc-home { padding-left:0; padding-right:0; }
:where(.sc-page-home) .sc-home__inner,
:where(.sc-page-home) .sc-home-book__grid {
  width:100%; max-width:var(--sc-frame-width); padding-inline:var(--sc-gutter); box-sizing:border-box; margin-inline:auto;
}
:where(.sc-page-home) .sc-home-courses .sc-home-areas,
:where(.sc-page-home) .sc-home-works .wp-block-uagb-image-gallery { max-width:none; width:100%; }
:where(.sc-page-home) .sc-home .sc-home__text {
  max-width:var(--sc-measure); font-size:var(--sc-text-size) !important;
  line-height:var(--sc-text-leading) !important;
}
:where(.sc-page-home) .sc-home .sc-home__text :is(p,ul,ol),
:where(.sc-page-home) .sc-home-book .sc-home-book__text > p:not(:where(.sc-section-kicker,.sc-home-book__subtitle,.sc-home-book__note)) {
  max-width:var(--sc-measure); font-size:var(--sc-text-size) !important; line-height:var(--sc-text-leading) !important; text-align:left;
}
:where(.sc-page-home) .sc-home-courses .sc-home__text p { text-align:center; }
:where(.sc-page-home) .sc-studio-section > .uagb-container-inner-blocks-wrap {
  width:100%; max-width:var(--sc-frame-width) !important; padding-inline:var(--sc-gutter); margin-inline:auto; box-sizing:border-box;
}
:where(.sc-page-home) .sc-studio-section > .uagb-container-inner-blocks-wrap > .wp-block-group { width:100%; max-width:none; }
:where(.sc-page-home) .sc-studio-section :is(.sc-section-kicker,h2.wp-block-heading) { max-width:var(--sc-heading-width); margin-inline:0 !important; text-align:left !important; }
:where(.sc-page-home) .sc-studio-section p:not(.sc-section-kicker) {
  max-width:var(--sc-measure); margin-inline:0 !important; font-size:var(--sc-text-size) !important;
  line-height:var(--sc-text-leading) !important; text-align:left !important;
}
:where(.sc-page-home) .sc-studio-section .uagb-block-be189f93 { max-width:none; width:100%; margin-inline:0; }
:where(.sc-page-home) .sc-studio-section .wp-block-buttons { justify-content:flex-start !important; }
@media(min-width:1025px) {
  :where(.sc-page-home) .sc-home-hero__content-card { aspect-ratio:auto; width:min(540px,100%); padding:44px; }
  :where(.sc-page-home) .sc-home-hero__text { max-width:440px; }
}
:where(.sc-page-home) .sc-home-hero__text { margin-bottom:16px !important; }
:where(.sc-page-home) .sc-home-hero__lead { max-width:440px; margin:0 auto 20px !important; font-size:16px; font-weight:600; line-height:1.5; color:var(--sc-color-teal); text-align:center; }
@media(max-width:767px) {
:where(.sc-page-home) .sc-home .sc-home__text,
:where(.sc-page-home) .sc-home .sc-home__text :is(p,ul,ol),
:where(.sc-page-home) .sc-home-book .sc-home-book__text > p:not(:where(.sc-section-kicker,.sc-home-book__subtitle,.sc-home-book__note)),
:where(.sc-page-home) .sc-studio-section p:not(.sc-section-kicker) { font-size:var(--sc-text-size-mobile) !important; }
  :where(.sc-page-home) .sc-home-hero__lead { font-size:15px; }
}
:where(.sc-page-home) .sc-home-courses .sc-next-starts__list { max-width:none; width:100%; }
:where(.sc-page-home) .entry-content .sc-studio-section { padding-left:0 !important; padding-right:0 !important; }
/* Replace the old mobile !important shorthand without doubling the gutter. */
:where(.sc-page-home) .sc-home { padding-left:0 !important; padding-right:0 !important; }
/* Reviews remain a centered component at their existing 1080px width. */
:where(.sc-page-home) .sc-home-reviews { padding-left:var(--sc-gutter) !important; padding-right:var(--sc-gutter) !important; }
:where(.sc-page-home) .sc-home-reviews .sc-home__inner { max-width:1080px; padding-inline:0; }

/* Hand an der Skulptur bei mittleren Desktopbreiten freihalten; größere Breiten passen bereits. */
@media (min-width:1200px) and (max-width:1399px) {
  :where(.sc-page-home) .sc-home-hero__inner { padding-right:0; }
}

/* Startseite: freigegebene gemeinsame Mittelachse für redaktionelle Abschnitte. */
body.sc-page-home .sc-home,
body.sc-page-home .sc-studio-section { padding-top:96px !important; padding-bottom:96px !important; }
body.sc-page-home .sc-home-about .sc-home__head {
  width:100%; max-width:var(--sc-frame-width); padding-inline:var(--sc-gutter); box-sizing:border-box;
}
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews) .sc-home__head {
  display:block; margin-inline:auto !important; text-align:center;
}
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews,.sc-studio-section) :is(.sc-section-kicker,.sc-section-heading,h2.wp-block-heading) {
  max-width:var(--sc-heading-width); margin-left:auto !important; margin-right:auto !important; text-align:center !important;
}
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews,.sc-studio-section) .sc-section-kicker { margin-bottom:14px !important; }
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-studio-section) :is(.sc-section-heading,h2.wp-block-heading) { margin-bottom:20px !important; }
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews) :is(.sc-home__text,.sc-home-works__sales),
body.sc-page-home .sc-studio-section p:not(.sc-section-kicker) {
  max-width:var(--sc-heading-width); margin-left:auto !important; margin-right:auto !important; text-align:center !important;
}
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews) .sc-home__text :is(p,ul,ol) {
  max-width:var(--sc-heading-width); text-align:center !important; margin-left:auto !important; margin-right:auto !important;
}
body.sc-page-home :is(.sc-home-about,.sc-home-courses,.sc-home-works,.sc-home-reviews,.sc-studio-section) .wp-block-buttons {
  justify-content:center !important; align-items:center !important; margin-top:28px !important;
}
body.sc-page-home .sc-home-works__sales { margin-top:36px !important; font-size:var(--sc-text-size); line-height:var(--sc-text-leading); }
body.sc-page-home :is(.sc-home-courses,.sc-home-works) .sc-home__head { margin-bottom:48px !important; }
body.sc-page-home .sc-studio-section .uagb-block-be189f93 { margin-top:48px !important; }
@media(max-width:767px) {
 body.sc-page-home .sc-home,
 body.sc-page-home .sc-studio-section { padding-top:64px !important; padding-bottom:64px !important; }
 body.sc-page-home .sc-home-works__sales { margin-top:28px !important; font-size:var(--sc-text-size-mobile); }
 body.sc-page-home :is(.sc-home-courses,.sc-home-works) .sc-home__head { margin-bottom:32px !important; }
 body.sc-page-home .sc-studio-section .uagb-block-be189f93 { margin-top:32px !important; }
}

/* Die Bildfläche wird kompakter; die Textkarte behält ihre natürliche Höhe. */
@media (max-width:767px) {
  body.sc-page-home .sc-home-hero__image { min-height:260px; }
}

/* Werke: Leitgedanke und Verkaufshinweis erhalten eine eigene visuelle Hierarchie. */
body.sc-page-home .sc-home-works .wp-block-buttons { margin-top:24px !important; }
body.sc-page-home .sc-home-works__statement {
  display:block; font-size:22px; font-weight:500; line-height:1.4;
}
body.sc-page-home .sc-home-works__availability {
  display:block; margin-top:8px; font-size:var(--sc-text-size); font-weight:400;
}
@media (max-width:767px) {
  body.sc-page-home .sc-home-works__statement { font-size:20px; }
  body.sc-page-home .sc-home-works__availability { font-size:var(--sc-text-size-mobile); }
}
