/*
Theme Name: BMC beauty meets care
Description: Eigenes, schlankes Theme fuer das Kosmetikstudio "beauty meets care" nach PDF-Layoutvorlage.
Author: astrid + Claude
Version: 1.0
*/

/* ==========================================================================
   Lokale Schrift: Jost
   ========================================================================== */

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('fonts/Jost-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bmc-teal: #0b6174;
  --bmc-teal-dark: #084b5a;
  --bmc-white: #ffffff;
  --bmc-offwhite: #fafafa;
  --bmc-pink: #ed196b;
  --bmc-text: #0b6174;
  --bmc-max-width: 1180px;
  --bmc-gap: 48px;
  /* Feste Quadrat-Groesse, von allen quadratischen Elementen (Bilder + Textboxen) gemeinsam genutzt,
     damit sie garantiert exakt gleich gross sind. min() sorgt dafuer, dass es auf schmalen Screens schrumpft. */
  --bmc-square: min(357px, 100%);
  --bmc-font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--bmc-font);
  font-weight: 300;
  color: var(--bmc-text);
  background: var(--bmc-white);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.bmc-container {
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-weight: 300;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: 44px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

p { margin: 0 0 1em; }

/* Small uppercase "kicker" label, underlined - used throughout the PDF design */
.bmc-kicker {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 24px;
}

.bmc-divider {
  width: 120px;
  height: 1px;
  background: currentColor;
  border: 0;
  margin: 32px auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-button__link,
.bmc-btn {
  display: inline-block;
  background: var(--bmc-teal);
  color: var(--bmc-white);
  border: none;
  border-radius: 0;
  padding: 16px 40px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wp-block-button__link:hover,
.bmc-btn:hover { opacity: 0.85; }

/* Button auf petrolfarbenem Untergrund: umgekehrte Farben, damit er sichtbar bleibt */
.bmc-columns--boxed .wp-block-button__link {
  background: var(--bmc-white);
  color: var(--bmc-teal);
}

/* ==========================================================================
   Header
   ========================================================================== */
.bmc-header {
  background: var(--bmc-teal);
  color: var(--bmc-white);
}

.bmc-header-inner {
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.bmc-logo {
  font-size: 26px;
  font-weight: 600;
  color: var(--bmc-white);
  letter-spacing: 0.01em;
}

.bmc-nav ul {
  list-style: none;
  display: flex !important;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.bmc-nav a {
  color: var(--bmc-white);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.bmc-nav .current-menu-item > a,
.bmc-nav a:hover {
  border-bottom: 1px solid var(--bmc-white);
}

.bmc-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bmc-white);
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bmc-hero {
  position: relative;
  min-height: 560px;
  display: flex !important;
  align-items: center;
  background: var(--bmc-pink);
  overflow: hidden;
}

.bmc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 32px;
  width: 100%;
  min-height: 496px;
}

.bmc-hero-inner > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  min-height: 432px;
}

.bmc-hero-text {
  position: absolute !important;
  right: 32px;
  bottom: 32px;
  max-width: 340px;
  width: 340px;
  text-align: center;
  color: var(--bmc-white);
}

.bmc-hero-text h1 {
  font-size: 30px;
  font-weight: 300;
  line-height: 1.5;
}

.bmc-hero-rule {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  border: 0;
  margin: 24px 0;
}

.bmc-hero-logo-img {
  margin: 0;
  align-self: flex-start;
}

.bmc-hero-logo-img img {
  max-width: 760px;
  width: 100%;
}

.bmc-hero-logo {
  font-size: 64px;
  font-weight: 700;
  color: var(--bmc-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin-bottom: 8px;
}

/* ==========================================================================
   Platzhalter fuer Fotos (rosa Flaeche statt Bild - spaeter im Backend ersetzen)
   ========================================================================== */
.bmc-placeholder {
  background: var(--bmc-pink);
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

.bmc-band-media .bmc-placeholder {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}

/* Quadratisch, gleiche Groesse wie die Bilder in der 3er-Reihe darunter */
.bmc-columns .bmc-placeholder {
  aspect-ratio: 1 / 1;
}

/* Variante mit petrolfarbener Textbox: beide Elemente quadratisch, gleich gross wie das Bild bei "Geschenkgutschein" */
.bmc-columns--boxed {
  align-items: flex-start;
}

.bmc-columns--boxed > .wp-block-column:first-child,
.bmc-columns--boxed > .wp-block-column:last-child {
  flex: 0 0 var(--bmc-square) !important;
  width: var(--bmc-square);
  height: var(--bmc-square);
}

.bmc-columns--boxed > .wp-block-column:first-child .bmc-placeholder {
  width: 100%;
  height: 100%;
}

.bmc-columns--boxed > .wp-block-column:last-child {
  background: var(--bmc-teal);
  color: var(--bmc-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

.bmc-columns--boxed > .wp-block-column:last-child p,
.bmc-columns--boxed > .wp-block-column:last-child .bmc-kicker {
  font-size: 15px;
  line-height: 1.45;
}

.bmc-columns--boxed > .wp-block-column:last-child .bmc-kicker,
.bmc-columns--boxed > .wp-block-column:last-child h2 {
  color: var(--bmc-white);
}

/* ==========================================================================
   Sections / bands
   ========================================================================== */
.bmc-section {
  padding: 96px 0;
}

.bmc-section--tight { padding: 64px 0; }

.bmc-columns {
  display: flex !important;
  align-items: center;
  gap: var(--bmc-gap);
}

.bmc-columns > * { flex: 1; min-width: 0; }
.bmc-columns > *:first-child { flex: 0 0 32%; }
.bmc-columns > *:last-child { flex: 1 1 0%; }
.bmc-columns.reverse { flex-direction: row-reverse; }
.bmc-columns img { width: 100%; height: 100%; object-fit: cover; }

.bmc-centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.bmc-row-3 {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 8px;
}

.bmc-band {
  margin-bottom: 48px;
}

.bmc-band,
.bmc-band > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

.bmc-band.reverse { direction: rtl; }
.bmc-band.reverse > * { direction: ltr; }

.bmc-band-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.bmc-band-content {
  background: var(--bmc-teal);
  color: var(--bmc-white);
  padding: 64px 64px;
}

.bmc-band-content > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.bmc-band-content .bmc-kicker { color: var(--bmc-white); }
.bmc-band-content p { opacity: 0.95; }

.bmc-band-content h2,
.has-bmc-white-color { color: var(--bmc-white) !important; }

/* ==========================================================================
   Accordion (Preisliste) - native <details>/<summary>, no plugin
   ========================================================================== */
.bmc-accordion {
  border-top: 1px solid var(--bmc-teal);
  margin: 32px 0;
}

.bmc-accordion details {
  border-bottom: 1px solid var(--bmc-teal);
}

.bmc-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bmc-accordion summary::-webkit-details-marker { display: none; }

.bmc-accordion summary::after {
  content: "\25BE";
  font-size: 18px;
  transition: transform 0.2s ease;
  margin-left: 16px;
}

.bmc-accordion details[open] summary::after {
  transform: rotate(180deg);
}

.bmc-accordion .bmc-accordion-body {
  padding: 0 4px 24px;
}

.bmc-accordion-group-title {
  margin: 56px 0 16px;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bmc-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #e2e2e2;
}

.bmc-footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .bmc-band,
  .bmc-band > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  .bmc-band-media img {
    min-height: 280px;
  }

  .bmc-columns {
    flex-direction: column !important;
  }

  .bmc-columns > * {
    flex: none !important;
    width: 100% !important;
  }

  .bmc-columns.reverse {
    flex-direction: column !important;
  }

  .bmc-row-3 {
    grid-template-columns: 1fr !important;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .bmc-hero-inner {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .bmc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bmc-teal);
    padding: 16px 32px;
    z-index: 10;
  }

  .bmc-nav.is-open {
    display: block;
  }

  .bmc-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .bmc-nav-toggle {
    display: block;
  }

  .bmc-header-inner {
    position: relative;
  }
}

@media (max-width: 700px) {
  .bmc-band-content {
    padding: 40px 28px;
  }

  .bmc-columns--boxed > .wp-block-column:first-child,
  .bmc-columns--boxed > .wp-block-column:last-child {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .bmc-columns--boxed > .wp-block-column:last-child {
    padding: 32px 24px;
  }

  .bmc-hero-inner {
    min-height: 380px;
  }

  .bmc-hero-inner > .wp-block-group__inner-container {
    min-height: 316px;
    align-items: center;
  }

  .bmc-hero-text {
    position: static !important;
    width: 100%;
    max-width: 100%;
  }

  .bmc-hero-logo-img {
    align-self: center;
  }
}