/*
 * The Beauty Loft 141 – Stylesheet
 *
 * Farben und Schriften kommen aus theme.json:
 *   Markenfarben  var(--wp--preset--color--<slug>)      z. B. bordeaux, sand, creme
 *   Abstufungen   var(--wp--custom--color--<name>)      z. B. text-grau, kupfer
 *   Schriften     var(--wp--preset--font-family--<slug>) manrope, cormorant
 * Eine Farbe ändern = den Wert in theme.json ändern, sie ändert sich überall.
 *
 * Inhalt
 *   1. Grundlagen
 *   2. Animationen
 *   3. Kopfbereich
 *   4. Startseite (One-Pager)
 *   5. Unterseiten
 *   6. Fussbereich
 *
 * Mobile-First-Hinweis: Die Breakpoints stammen aus dem Original-Design
 * (max-width 320 / 375 / 425 / 480 / 768 / 992 / 1024 px).
 */

/* ==================================================================
   1. Grundlagen
   ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Die Seite startet unsichtbar und wird von main.js eingeblendet (Seitenübergang). */
body {
  background: var(--wp--preset--color--hintergrund);
  color: var(--wp--custom--color--text-neutral);
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-x: hidden;
}

body.fade-in,
body.page-loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

@media (min-width: 480px) {
  body { font-size: 1.1rem; }
}

@media (min-width: 768px) {
  body { font-size: 1.3rem; }
}

@media (min-width: 1024px) {
  body { font-size: 1.5rem; }
}

h1,
h2,
h4,
h5,
h6 {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 200;
}

h1 {
  font-size: clamp(2rem, 5vw, 5rem);
}

h3 {
  font-size: 25px;
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 700;
}

p {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 200;
  color: var(--wp--preset--color--text);
  font-size: clamp(0.4rem, 1vw, 1.2rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links und Buttons: Mindestgrösse 44 × 44 px für Touch-Bedienung */
button,
a {
  padding-top: 12px;
  font-size: 1rem;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ==================================================================
   2. Animationen
   Einblenden beim Scrollen (.fade-up, per JavaScript gesetzt) und Buchstaben-Effekt.
   ================================================================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  50% {
    transform: translateY(-10%);
    color: var(--wp--custom--color--sheen);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Auf dem Handy ohne Einblenden, damit nichts verzögert erscheint */
@media (max-width: 768px) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Buchstaben-Effekt beim Hovern (Menü, Buchen-Button, Instagram-Link) */
.wobble span {
  display: inline-block;
  pointer-events: none;
}

.wobble span.sheen {
  animation: sheen 0.3s 1;
}

/* ==================================================================
   3. Kopfbereich
   Navigation, Mobile-Menü, Buchen-Button, WordPress-Admin-Leiste.
   ================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--wp--preset--color--weiss);
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--wp--preset--color--creme);
  box-shadow: 0 4px 6px rgba(59, 56, 56, 0.1);
  padding: 1rem 2rem;
  /* Das Original verweist auf 'Acumin Regular', die Schrift war aber nie eingebunden.
     Angezeigt wird darum die Systemschrift. */
  font-family: 'Acumin Regular', sans-serif;
}

/* Platz für die WordPress-Admin-Leiste (nur sichtbar, wenn eingeloggt) */
.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .navbar { top: 46px; }
}

#wpadminbar a {
  padding-top: 0;
  min-width: 0;
  min-height: 0;
}

.nav-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--wp--preset--color--text);
  font-size: 1.2rem;
  transition: color 0.3s ease;
  z-index: 9999;
  position: relative;
}

.nav-links a:hover {
  color: var(--wp--preset--color--altrosa);
}

.book-btn {
  padding: 0.6rem 2rem;
  background-color: var(--wp--preset--color--taupe);
  color: var(--wp--preset--color--weiss);
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-left: auto;
}

.book-btn:hover {
  background-color: var(--wp--custom--color--taupe-hover);
}

/* Hamburger-Icon (nur mobil sichtbar) */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-icon div {
  width: 25px;
  height: 3px;
  background-color: var(--wp--preset--color--text);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--wp--preset--color--creme);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    pointer-events: auto;
  }

  .book-btn {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .book-btn {
    margin-top: 10px;
  }
}

/* ==================================================================
   4. Startseite (One-Pager)
   Alle Abschnitte sind Blöcke mit eigenen CSS-Klassen (bl-…).
   Die Klasse steht im Editor unter Block > Erweitert > Zusätzliche CSS-Klasse(n).
   ================================================================== */

/* ---------- Block-Abstände zurücksetzen ---------- */
/* Klassische Themes legen in Gruppen einen zusätzlichen Wrapper an; für das Layout ignorieren */
.bl-content .wp-block-group__inner-container { display: contents; }

.bl-content .wp-block-image,
.bl-content .wp-block-table,
.bl-content .wp-block-gallery,
.bl-content .wp-block-columns,
.bl-content .wp-block-cover,
.bl-content .wp-block-media-text,
.bl-content .wp-block-buttons {
  margin: 0;
}
.bl-content .wp-block-group > *,
.bl-content .wp-block-group__inner-container > *,
.bl-content .wp-block-column > *,
.bl-content .wp-block-cover__inner-container > *,
.bl-content .wp-block-media-text__content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* ---------- Hero (Cover-Block .bl-hero) ---------- */
.bl-content .wp-block-cover.bl-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 100vh !important;
  min-height: 100svh !important;
  width: 100vw;
  padding: 0;
  overflow: hidden;
}
.bl-hero .wp-block-cover__image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.bl-hero .wp-block-cover__background {
  background-color: var(--wp--preset--color--weiss);
  opacity: 0.5 !important;
  z-index: 1;
}
.bl-hero .wp-block-cover__inner-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: auto;
  color: inherit;
}
.bl-content .bl-hero .bl-hero-logo {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 900;
  width: 40vw;
  max-width: 100%;
  margin: 0;
}
.bl-hero .bl-hero-logo img {
  width: 100%;
  height: auto;
  max-height: 30vh;
  object-fit: contain;
}
.bl-content .bl-hero .bl-hero-subtext {
  margin-top: 20rem;
  font-size: 1.7rem;
  color: var(--wp--preset--color--bordeaux-hell);
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 400;
}
@media (max-width: 770px) {
  .bl-content .bl-hero .bl-hero-subtext { margin-top: 15.5rem; margin-left: 0.5rem; font-size: 1.4rem; max-width: 100%; }
}
@media (max-width: 767px) {
  .bl-content .bl-hero .bl-hero-subtext { margin-top: 9rem; margin-left: 0.5rem; font-size: 1rem; max-width: 100%; }
}
@media (max-width: 425px) {
  .bl-content .bl-hero .bl-hero-logo { width: 70%; }
  .bl-hero .bl-hero-logo img { max-height: 25vh; }
}
@media (max-width: 400px) {
  .bl-content .bl-hero .bl-hero-logo { max-width: 70%; }
  .bl-hero .bl-hero-logo img { max-height: 30vh; }
}
@media (max-width: 375px) {
  .bl-content .bl-hero .bl-hero-logo { width: 75%; }
  .bl-hero .bl-hero-logo img { max-height: 25vh; }
}
@media (max-width: 320px) {
  .bl-content .bl-hero .bl-hero-logo { width: 80%; }
  .bl-hero .bl-hero-logo img { max-height: 20vh; }
  .bl-content .bl-hero .bl-hero-subtext { margin-top: 7rem; font-size: 0.8rem; }
}

/* ---------- Behandlungen (Gruppe .bl-service) ---------- */
.bl-content .bl-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  background-color: var(--wp--preset--color--weiss);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.bl-content .bl-service .bl-service-img {
  flex: 1;
  max-width: 35%;
  margin: 0;
}
.bl-service .bl-service-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 250px;
}
.bl-content .bl-service .bl-service-text {
  flex: 1;
  max-width: 65%;
  padding-left: 2rem;
}
.bl-content .bl-service-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  white-space: normal;
}
.bl-content .bl-service-title a {
  color: var(--wp--preset--color--bordeaux);
  font-size: inherit;
  padding-top: 0;
  min-height: 0;
  min-width: 0;
  text-align: inherit;
}
.bl-service-title a:hover {
  color: var(--wp--custom--color--bordeaux-hover);
}
.bl-content .bl-service-desc {
  font-size: 1rem;
  color: var(--wp--preset--color--bordeaux);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: blFadeInUp 1s ease forwards;
  animation-delay: 3s;
}
@keyframes blFadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Ausklapp-Block = Button "Behandlungen Preisliste" */
.bl-preise summary {
  display: inline-block;
  font-size: 1rem;
  color: var(--wp--preset--color--weiss);
  background-color: var(--wp--preset--color--sand);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s;
}
.bl-preise summary::-webkit-details-marker { display: none; }
.bl-preise summary::marker { content: ''; }
.bl-preise summary:hover { background-color: var(--wp--custom--color--sand-hover); }

.bl-content .bl-dropdown {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--wp--custom--color--flaeche-dropdown);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--wp--custom--color--text-grau);
  text-align: left;
}
.bl-dropdown strong { font-weight: 1000; }
.bl-content .bl-dropdown .bl-preis-titel {
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wp--custom--color--text-grau);
  margin-bottom: 1.37rem;
}
.bl-content .bl-dropdown .bl-preis-rows + .bl-preis-titel {
  margin-top: 1.37rem;
}
.bl-content .bl-dropdown p {
  font-size: 1rem;
  color: var(--wp--custom--color--text-grau);
  margin-bottom: 1.37em;
  opacity: 1;
  transform: none;
  animation: none;
}
.bl-content .bl-preis-rows table,
.bl-content .bl-preis-rows table.has-fixed-layout {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.bl-content .bl-preis-rows td {
  border: 0;
  padding: 0 0 1.37em 0;
  vertical-align: top;
  font-size: 1rem;
  color: var(--wp--custom--color--text-grau);
}
.bl-content .bl-preis-rows td:first-child {
  text-align: left;
  padding-right: 1rem;
}
.bl-content .bl-preis-rows td:last-child {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

/* Button "Weitere Preise sehen" */
.bl-content .wp-block-button.bl-more .wp-block-button__link {
  display: inline-block;
  font-size: 1rem;
  color: var(--wp--preset--color--weiss);
  background-color: var(--wp--preset--color--sand);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.bl-content .wp-block-button.bl-more .wp-block-button__link:hover {
  background-color: var(--wp--custom--color--sand-hover);
}

@media (max-width: 992px) {
  .bl-content .bl-service { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .bl-content .bl-service .bl-service-img { max-width: 100%; margin-bottom: 1rem; }
  .bl-content .bl-service .bl-service-text { max-width: 100%; padding-left: 0; }
  .bl-preise summary { display: block; width: 100%; }
  .bl-content .wp-block-buttons:has(.bl-more) { display: block; }
  .bl-content .wp-block-button.bl-more { width: 100%; }
  .bl-content .wp-block-button.bl-more .wp-block-button__link { display: block; width: 100%; text-align: center; }
  .bl-content .bl-dropdown,
  .bl-content .bl-preis-rows td { font-size: 0.9rem; }
  .bl-service .bl-service-img img { width: 100%; height: auto; }
}
@media (max-width: 420px) {
  .bl-content .bl-service-title { font-size: 2rem; }
}
@media (max-width: 375px) {
  .bl-content .bl-service-title { font-size: 1.5rem; }
}
@media (max-width: 320px) {
  .bl-content .bl-service-title { font-size: 1.3rem; line-height: 1.2; }
  .bl-content .bl-service-desc { font-size: 0.85rem; line-height: 1.4; }
  .bl-content .bl-dropdown,
  .bl-content .bl-preis-rows td { font-size: 0.7rem; }
}
/* Zwischentitel in der Preisliste blenden beim Laden ein */
.bl-content .bl-service-text h6 {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.1s;
}

@media (max-width: 320px) {
  .bl-content .bl-service-text p { line-height: 1.4; }
}

/* ---------- Zitat (Cover-Block .bl-quote) ---------- */
.bl-content .wp-block-cover.bl-quote {
  display: block;
  position: relative;
  min-height: 0;
  padding: 8vw 5vw;
  text-align: center;
  color: var(--wp--custom--color--rose-dunkel);
  overflow: hidden;
  z-index: 1;
}
.bl-quote .wp-block-cover__image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  will-change: transform;
}
.bl-quote .wp-block-cover__background { display: none; }
.bl-quote .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 850px;
  width: auto;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: inherit;
}
.bl-content .bl-quote .bl-quote-title {
  font-size: clamp(0.9rem, 3vw, 1.8rem);
  line-height: 1.4;
  margin: 0 auto 1rem auto;
  max-width: 800px;
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 700;
  color: var(--wp--preset--color--bordeaux);
  text-align: center;
  padding: 0 1rem;
}
.bl-content .bl-quote .bl-quote-sub {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 300;
  font-size: clamp(0.65rem, 1.3vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--custom--color--rose-dunkel);
  padding: 0 1rem;
  margin-top: 0.5rem;
  text-align: center;
}
@media (max-width: 480px) {
  .bl-content .wp-block-cover.bl-quote { padding: 3rem 1rem; }
  .bl-content .bl-quote .bl-quote-sub { font-size: 0.6rem; letter-spacing: 0.08em; }
}
@media (max-width: 375px) {
  .bl-content .bl-quote .bl-quote-title { font-size: 0.75rem; }
  .bl-content .bl-quote .bl-quote-sub { font-size: 0.5rem; }
}
@media (max-width: 425px) {
  .bl-content .bl-quote .bl-quote-title { font-size: 0.8rem; }
  .bl-content .bl-quote .bl-quote-sub { font-size: 0.45rem; }
}
@media (max-width: 320px) {
  .bl-content .bl-quote .bl-quote-title { font-size: 0.6rem; line-height: 1.3; }
  .bl-content .bl-quote .bl-quote-sub { font-size: 0.4rem; }
}
/* main.js setzt den Zitat-Text in <span id="title"> für die Buchstaben-Animation */
#title {
  display: inline;
}

.bl-quote.fade-up.active .wp-block-cover__inner-container {
  animation: fadeInUp 1s ease forwards;
}

/* ---------- Galerie-Slider (Galerie-Block .bl-slider) und Lightbox ---------- */
/* main.js baut den Galerie-Block in einen Slider mit Pfeilen und Lightbox um. */
.gallery-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--custom--color--slider-button);
  font-size: 20px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
}

.gallery-btn:focus,
.gallery-btn:active {
  outline: none;
  background-color: var(--wp--custom--color--slider-button);
  box-shadow: none;
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

@media (min-width: 768px) {
  .gallery-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--wp--preset--color--weiss);
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

.bl-content .wp-block-gallery.bl-slider {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: var(--wp--preset--color--weiss);
  user-select: none;
}
.bl-content .wp-block-gallery.bl-slider.is-slider {
  display: block;
}
.bl-slider .gallery-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.bl-slider .gallery-track img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 900px;
  max-height: 600px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.bl-slider .gallery-track img:hover { transform: scale(1.02); }
@media (max-width: 1024px) {
  .bl-slider .gallery-track img { max-width: 100%; max-height: 400px; }
}
@media (max-width: 992px) {
  .bl-slider .gallery-track img { width: 45%; }
}
@media (max-width: 768px) {
  .bl-slider .gallery-track img { max-width: 100%; max-height: 300px; width: 90%; }
}

/* ---------- Über uns (Medien & Text .bl-person) ---------- */
.bl-content .bl-about { padding: 100px 20px; }
.bl-content .wp-block-media-text.bl-person {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 100px;
}
/* Bild rechts: im Block steht der Text zuerst im HTML, darum normale Reihenfolge */
.bl-content .wp-block-media-text.bl-person.has-media-on-the-right { flex-direction: row; }
.bl-content .bl-person .wp-block-media-text__media {
  width: 340px;
  height: 410px;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.bl-content .bl-person .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bl-content .bl-person .wp-block-media-text__content {
  max-width: 600px;
  padding: 0;
  text-align: left;
}
.bl-content .bl-person p {
  max-width: 600px;
  font-size: 1rem;
}
.bl-content .bl-person p + p:not(.bl-name):not(.bl-role) { margin-top: 1.37em; }
.bl-content .bl-person .bl-person-name {
  margin-bottom: 10px;
  font-size: 3rem;
  color: var(--wp--preset--color--bordeaux);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bl-content .bl-person .bl-name {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--wp--preset--color--bordeaux);
  font-weight: 600;
  font-family: var(--wp--preset--font-family--cormorant);
}
.bl-content .bl-person .bl-role {
  font-size: 1rem;
  color: var(--wp--preset--color--bordeaux);
  font-family: var(--wp--preset--font-family--cormorant);
}
@media (max-width: 767px) {
  .bl-content .wp-block-media-text.bl-person {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .bl-content .wp-block-media-text.bl-person.has-media-on-the-right { flex-direction: column-reverse; }
  .bl-content .bl-person .wp-block-media-text__media {
    width: auto;
    height: clamp(200px, 30vw, 410px);
    aspect-ratio: 340 / 410;
  }
  .bl-content .bl-person .wp-block-media-text__content { max-width: 80%; text-align: center; }
  .bl-content .bl-person .bl-person-name { font-size: 2.2rem; }
  .bl-content .bl-person .bl-name { font-size: 1.3rem; }
  .bl-content .bl-person .bl-role { font-size: 0.95rem; }
  .bl-content .bl-person p { font-size: 0.85rem; }
}
@media (max-width: 320px) {
  .bl-content .bl-person p { font-size: 0.7rem; line-height: 1.5; }
  .bl-content .bl-person .bl-person-name { font-size: 2rem; margin-bottom: 0.5rem; }
  .bl-content .bl-person .bl-name { font-size: 1.2rem; }
}

/* ---------- Instagram (Gruppe .bl-contact) ---------- */
.bl-content .bl-contact {
  text-align: center;
  padding: 40px 30px;
  background-color: var(--wp--preset--color--creme);
  color: var(--wp--custom--color--text-warm);
  box-shadow: 0 -4px 25px rgba(49, 18, 18, 0.016);
}
.bl-content .bl-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}
.bl-content .bl-contact p {
  font-size: 1.2rem;
  text-align: center;
}
.bl-contact a {
  color: var(--wp--preset--color--altrosa);
  text-decoration: none;
  border-bottom: 2px solid var(--wp--preset--color--altrosa);
  transition: color 0.3s, border-color 0.3s;
}
.bl-contact a:hover {
  color: var(--wp--custom--color--text-warm);
  border-color: var(--wp--custom--color--text-warm);
}
@media (max-width: 480px) {
  .bl-content .bl-contact h2 { font-size: 1.2rem; }
}

/* ---------- Kontakt und Adresse (Spalten .bl-footer) ---------- */
.bl-content .wp-block-columns.bl-footer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 320px;
  padding-left: 5%;
  background: var(--wp--preset--color--weiss);
  flex-wrap: wrap !important;
  gap: 0;
}
.bl-content .bl-footer > .bl-footer-contact {
  flex: 1;
  max-width: 50%;
  color: var(--wp--preset--color--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2%;
}
.bl-content .bl-footer-contact p {
  margin-bottom: 10px;
  font-size: 1rem;
}
.bl-footer-contact a {
  color: var(--wp--custom--color--kupfer);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}
.bl-footer-contact a:hover { color: var(--wp--custom--color--kupfer-hover); }
.bl-content .bl-footer > .bl-footer-image {
  flex: 1;
  max-width: 50%;
}
.bl-content .bl-footer-image .bl-footer-img,
.bl-content .bl-footer-image .bl-footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-content .bl-footer-contact .bl-sgmk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: nowrap;
}
.bl-content .bl-sgmk .bl-sgmk-logo {
  width: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bl-sgmk .bl-sgmk-logo img {
  width: 40px;
  height: auto;
  object-fit: contain;
}
.bl-content .bl-footer-contact .bl-sgmk p {
  font-size: 0.7rem;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 0;
}
.bl-content .bl-footer-contact .bl-zert {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 15px;
}
@media (max-width: 770px) {
  .bl-content .bl-footer > .bl-footer-image { height: 340px; }
}
@media (max-width: 768px) {
  .bl-content .wp-block-columns.bl-footer { background: var(--wp--custom--color--flaeche-grau); padding: 40px; }
  .bl-content .bl-footer > .bl-footer-contact { flex: 1 1 50%; padding: 20px; }
  .bl-content .bl-footer > .bl-footer-image { flex: 1 1 50%; overflow: hidden; }
}
@media (max-width: 480px) {
  .bl-content .wp-block-columns.bl-footer { flex-direction: column; padding: 20px; }
  .bl-content .bl-footer > .bl-footer-contact,
  .bl-content .bl-footer > .bl-footer-image { max-width: 100%; flex: 1 1 100%; padding: 10px 0; }
  .bl-content .bl-footer-contact p { font-size: 0.8rem; }
  .bl-content .bl-footer-contact .bl-zert { font-size: 0.6rem; }
  .bl-content .bl-footer-contact .bl-sgmk p { font-size: 0.5rem; }
}

/* ==================================================================
   5. Unterseiten
   Preisliste, Impressum, Datenschutz, 404 (body.bl-subpage).
   ================================================================== */
body.bl-subpage {
  color: var(--wp--preset--color--text);
  font-size: 16px !important;
}

.bl-subpage .bl-page {
  padding: 8rem 8%;
}

.bl-subpage .bl-page h2 {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 700;
  font-size: 1.5em;
  margin: 0.83em 0;
  color: var(--wp--preset--color--text);
}

.bl-subpage .bl-page p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .bl-subpage .bl-page { padding: 7rem 6%; }
}

@media (max-width: 768px) {
  .bl-subpage .bl-page { padding: 7rem 4%; }
}

@media (max-width: 480px) {
  .bl-subpage .bl-page { padding: 6rem 3%; }
}

/* ---------- Preistabellen (Tabellen-Block .price-table) ---------- */
.price-table {
  width: 100%;
  margin: 0 auto 4rem auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--wp--custom--color--linie);
}

.price-table th {
  background-color: var(--wp--preset--color--sand);
  color: var(--wp--preset--color--weiss);
  font-weight: 600;
}

.price-table th:nth-child(1),
.price-table td:nth-child(1) {
  width: 55%;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  width: 20%;
  text-align: center;
}

.price-table th:nth-child(3),
.price-table td:nth-child(3) {
  width: 25%;
  text-align: right;
}

.price-table .description {
  display: block;
  font-size: 0.8rem;
  color: var(--wp--custom--color--text-grau);
  font-style: italic;
  margin-top: 0.3rem;
}

@media (max-width: 1024px) {
  .price-table th,
  .price-table td {
    font-size: 0.95rem;
    padding: 0.8rem 0.75rem;
  }
  .price-table .description { font-size: 0.75rem; }
}

@media (max-width: 768px) {
  .price-table th,
  .price-table td {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
  .price-table .description { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .price-table th,
  .price-table td {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  .price-table .description { font-size: 0.65rem; }
}

.bl-subpage .wp-block-table.price-table {
  margin: 0 auto 4rem auto;
  overflow-x: visible;
}
.bl-subpage .wp-block-table.price-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.bl-subpage .wp-block-table.price-table thead { border-bottom: 0; }
.bl-subpage .wp-block-table.price-table th,
.bl-subpage .wp-block-table.price-table td {
  border: 0;
  border-bottom: 1px solid var(--wp--custom--color--linie);
}
.bl-subpage .wp-block-table.price-table td strong ~ em {
  display: block;
  font-size: 0.8rem;
  color: var(--wp--custom--color--text-grau);
  font-style: italic;
  margin-top: 0.3rem;
}
@media (max-width: 1024px) { .bl-subpage .wp-block-table.price-table td strong ~ em { font-size: 0.75rem; } }
@media (max-width: 768px)  { .bl-subpage .wp-block-table.price-table td strong ~ em { font-size: 0.7rem; } }
@media (max-width: 480px)  { .bl-subpage .wp-block-table.price-table td strong ~ em { font-size: 0.65rem; } }

/* ---------- Fehlerseite 404 ---------- */
.bl-subpage .bl-404 { text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bl-404-code { font-family: var(--wp--preset--font-family--cormorant); font-size: 6rem; line-height: 1; color: var(--wp--preset--color--taupe); margin: 0 0 .5rem; }
.bl-404-title { font-family: var(--wp--preset--font-family--cormorant); font-weight: 700; font-size: 2.6rem; color: var(--wp--preset--color--bordeaux); margin: 0 0 1rem; }
.bl-subpage .bl-404 .bl-404-text { max-width: 34rem; margin: 0 auto 2rem; }
.bl-404-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.5rem; }
.bl-404-btn { padding: .7rem 1.8rem; border: 1px solid var(--wp--preset--color--bordeaux); border-radius: 5px; color: var(--wp--preset--color--bordeaux); text-decoration: none; font-family: var(--wp--preset--font-family--manrope); transition: background-color .3s ease, color .3s ease; }
.bl-404-btn:hover { background: var(--wp--preset--color--bordeaux); color: var(--wp--preset--color--weiss); }
.bl-404-btn-main { background: var(--wp--preset--color--bordeaux); color: var(--wp--preset--color--weiss); }
.bl-404-btn-main:hover { background: var(--wp--preset--color--bordeaux-hell); }
.bl-subpage .bl-404 .bl-404-contact { font-size: .9rem; color: var(--wp--custom--color--rose-dunkel); }
.bl-404-contact a { color: inherit; }
@media (max-width: 600px) { .bl-404-code { font-size: 4rem; } .bl-404-title { font-size: 2rem; } }

/* ==================================================================
   6. Fussbereich
   ================================================================== */
.copyright {
  width: 100%;
  padding: 1%;
  text-align: center;
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 0.85rem;
  color: var(--wp--custom--color--text-neutral);
  background-color: var(--wp--custom--color--flaeche-grau);
}

/* Footer-Links (Impressum, Datenschutz) dezent wie der Fliesstext */
.copyright a {
  padding-top: 0;
  min-width: 0;
  min-height: 0;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.copyright a:hover {
  color: var(--wp--custom--color--kupfer-hover);
}

@media (max-width: 480px) {
  .copyright {
    font-size: 0.5rem;
    margin-bottom: 20px;
  }
}

/* ---------- Parallax: auf Handy/Tablet und bei reduzierter Bewegung aus (22.11.2026) ---------- */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .bl-hero .wp-block-cover__image-background,
  .bl-quote .wp-block-cover__image-background {
    transform: none !important;
    will-change: auto;
  }
  .bl-hero .wp-block-cover__image-background { height: 100%; }
}
