/**
 * Core- und Kadence-Blöcke im Hotel-Design
 *
 * Das Tailwind-Reset in dist/public/css/app.css setzt Listen, Abstände und Links zurück; die ACF-Blöcke
 * bringen ihre Styles selbst mit. Diese Datei gibt den übrigen Blöcken Breite, Typografie und Farben.
 * Wird im Frontend (nach app.css) und im Editor geladen, siehe inc/setup.php.
 */

/* Farbpalette für Kadence (Kadence liest diese Variablen als Standardfarben) */
:root {
  --global-palette1: #cab366;
  --global-palette2: #b5a15c;
  --global-palette3: #ffffff;
  --global-palette4: #f5f5f5;
  --global-palette5: #afafaf;
  --global-palette6: #777777;
  --global-palette7: #2a2c33;
  --global-palette8: #191916;
  --global-palette9: #20201d;
  --global-palette-btn-bg: #cab366;
  --global-palette-btn-bg-hover: #b5a15c;
  --global-palette-btn: #20201d;
  --global-palette-btn-hover: #20201d;
  --global-content-width: 904px;
  --global-content-edge-padding: 2rem;
  --pbh-wide-width: 1290px;
}

/* ------------------------------------------------------------------------
 * Breite: Blöcke direkt im Seiteninhalt sitzen in der Containerbreite (wie .container)
 * Kadence-Zeilen (Row Layout) und „volle Breite“ laufen randlos, ihr Inhalt regelt Kadence.
 * --------------------------------------------------------------------- */
.entry-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table, figure, [class*="wp-block-"]):not(.wp-block-kadence-rowlayout, .alignfull, .alignwide) {
  max-width: var(--global-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--global-content-edge-padding);
  padding-right: var(--global-content-edge-padding);
}

.entry-content > .alignwide:not(.wp-block-kadence-rowlayout) {
  max-width: var(--pbh-wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--global-content-edge-padding);
  padding-right: var(--global-content-edge-padding);
}

/* Kadence-Zeilen ohne eigene Inhaltsbreite: 1290px; mit „Theme-Inhaltsbreite“: 904px wie die Textblöcke.
   Eine in der Zeile eingestellte Max-Breite (Kadence setzt sie per ID) hat Vorrang. */
.entry-content > .wp-block-kadence-rowlayout > .kt-row-column-wrap {
  max-width: var(--pbh-wide-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .wp-block-kadence-rowlayout > .kb-theme-content-width {
  max-width: var(--global-content-width);
}

/* ------------------------------------------------------------------------
 * Typografie
 * Gilt für alles außerhalb der ACF-Blöcke: Blöcke direkt im Inhalt und alles in Kadence-/Core-Containern.
 * --------------------------------------------------------------------- */
:where(.entry-content > :not(section, .acf-block), .editor-styles-wrapper) :is(.wp-block-heading, .wp-block-kadence-advancedheading:is(h1, h2, h3, h4, h5, h6)),
:where(.entry-content > :not(section, .acf-block), .editor-styles-wrapper):is(.wp-block-heading, .wp-block-kadence-advancedheading:is(h1, h2, h3, h4, h5, h6)) {
  color: #cab366;
  margin-bottom: 0.6em;
}

:where(.entry-content, .editor-styles-wrapper) :is(h4.wp-block-heading, h4.wp-block-kadence-advancedheading) {
  font-family: Morion, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  line-height: 1.875rem;
}

:where(.entry-content, .editor-styles-wrapper) :is(h5, h6):is(.wp-block-heading, .wp-block-kadence-advancedheading) {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-list {
  margin-bottom: 1em;
  padding-left: 1.5em;
  list-style: disc;
}

:where(.entry-content, .editor-styles-wrapper) ol.wp-block-list {
  list-style: decimal;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-list .wp-block-list {
  margin-bottom: 0;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-list li::marker {
  color: #cab366;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-quote {
  margin-bottom: 1em;
  border-left: 2px solid #cab366;
  padding-left: 1.5em;
  font-family: Morion, "Times New Roman", Times, serif;
  font-size: 1.5em;
  line-height: 1.4;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-quote cite {
  display: block;
  margin-top: 0.5em;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.6em;
  font-style: normal;
  color: #afafaf;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-separator {
  margin-top: 2em;
  margin-bottom: 2em;
  border-top: 1px solid #cab366;
  opacity: 0.6;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-table :is(td, th) {
  border: 1px solid #555555;
  padding: 0.5em 0.75em;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-table th {
  font-weight: 600;
  text-align: left;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.75em;
  color: #afafaf;
}

/* Links im Fließtext (nicht in ACF-Blöcken, nicht bei Buttons) */
:where(.entry-content > :not(section, .acf-block), .editor-styles-wrapper) :is(p, li, td, figcaption) a:not([class*="button"], [class*="btn"]),
.entry-content > p a:not([class*="button"], [class*="btn"]) {
  color: #cab366;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:where(.entry-content > :not(section, .acf-block), .editor-styles-wrapper) :is(p, li, td, figcaption) a:not([class*="button"], [class*="btn"]):hover,
.entry-content > p a:not([class*="button"], [class*="btn"]):hover {
  color: #b5a15c;
}

/* Core-Buttons im Stil der Hotel-CTAs (goldene Kontur, Versalien) */
:where(.entry-content, .editor-styles-wrapper) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0.75rem 2.5rem;
  border: 2px solid #cab366;
  border-radius: 0;
  background-color: transparent;
  color: #cab366;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

:where(.entry-content, .editor-styles-wrapper) .wp-block-button__link:hover,
:where(.entry-content, .editor-styles-wrapper) .is-style-fill .wp-block-button__link {
  background-color: #cab366;
  color: #20201d;
}

/* Kadence-Buttons: Grundstil wie die Hotel-CTAs, Einstellungen am Button haben Vorrang */
:where(.entry-content, .editor-styles-wrapper) .kb-button:is(.kb-btn-global-fill, .kb-btn-global-outline) {
  border-radius: 0;
}

:where(.entry-content, .editor-styles-wrapper) :where(.kb-button) {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------------
 * Editor: dunkle Arbeitsfläche wie im Frontend, damit weiße Schrift sichtbar ist
 * --------------------------------------------------------------------- */
.editor-styles-wrapper {
  background-color: #20201d;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
}

.editor-styles-wrapper :is(h1, h2, h3, h4):is(.wp-block-heading, .wp-block-kadence-advancedheading) {
  font-family: Morion, "Times New Roman", Times, serif;
  font-weight: 300;
}

.editor-styles-wrapper :is(h1, h2):is(.wp-block-heading, .wp-block-kadence-advancedheading) {
  font-size: 2.625rem;
  line-height: 3.4375rem;
}

.editor-styles-wrapper h3:is(.wp-block-heading, .wp-block-kadence-advancedheading) {
  font-size: 1.75rem;
  line-height: 2.25rem;
}

.editor-styles-wrapper :is(p, li) {
  font-size: 1.125rem;
  line-height: 1.8;
}
