@charset "UTF-8";
/**
 * Block "Bild" - block styles.
 *
 * Declared as "style" in block.json, so WordPress loads it on the front end and
 * inside the editor canvas iframe. Compiled to style.css by the SCSS watcher.
 *
 * Taken from css/parts/blocks/_image.scss and rehung on the native selector.
 * The legacy ACF block carries nuevo--block-image as well; nuevo--native is
 * what keeps the two stylesheets apart. Where the legacy block held one class
 * per five per cent step, the width is a factor on the container now - it
 * applies to the content width in one layout and to the full width of the
 * section in the other.
 *
 * @package nuevo
 * @subpackage blocks
 */
/**
 * nuevo Wordpress Theme
 *
 * @abstract
 * @author 	Bastian Schröder <bastian@creative-feat.com>
 * @author 	Marvin Landau <marvin@creative-feat.com>
 * @copyright Copyright (c) 2024, creative feat GmbH
 * @package cf-wp-theme-template
 * @version 2024-04-18
 */
/* Der Seitenrand des Content-Containers - die einzige Stelle, an der die Zahl
   steht. %container setzt ihn, und wer bis an die Fensterkante laufen will,
   nimmt ihn mit @include nuevo-bleed wieder zurück. */
/**
 * nuevo Wordpress Theme - breakpoints for the front end and the editor canvas.
 *
 * Since WordPress 7.0 the editor renders inside an iframe, so a media query in
 * the canvas measures that iframe: the browser window minus the admin menu and
 * the editor sidebar. On the very same screen a block therefore reaches a
 * breakpoint in the canvas that the front end never reaches, and the editor
 * shows a narrower layout than the visitor will get - two columns where the
 * page has four, stacked fields where the form has a row.
 *
 * These mixins write the rule twice: once for the front end at the real
 * breakpoint, once for the canvas at the shifted one. The body class is the
 * switch - only the iframe body carries .editor-styles-wrapper - so neither
 * branch can reach the other side, and both carry the same specificity.
 *
 * Use them for every top level breakpoint of a block stylesheet:
 *
 *     @include nuevo-bp-max( $std_middle_large_width ) { ... }
 *     @include nuevo-bp-min( $std_small_width )        { ... }
 *
 * css/editor-blocks.scss takes the other route. It is loaded in the canvas
 * only, so it shifts the breakpoint variables themselves and sets the chrome to
 * zero afterwards - that covers the theme wide grid classes without writing a
 * second set of rules.
 *
 * @package nuevo
 */
/* Was neben dem Canvas steht, und zwar je nach Fensterbreite verschieden:
   WordPress klappt das Adminmenü unterhalb von 960 px selbst auf 36 px ein und
   blendet es unterhalb von 782 px ganz aus. Die Editor-Seitenleiste ist 280 px
   breit.

   Eine einzige Zahl kann deshalb nicht stimmen. Vorher stand hier 280 - nur die
   Seitenleiste, ohne das Menü -, und in der voreingestellten Ansicht (Menü
   ausgeklappt, Seitenleiste offen) schaltete der Canvas 160 px zu früh um: er
   zeigte zwei Spalten, wo die Seite noch vier hat. Genau das war im Backend zu
   sehen.

   Jetzt bekommt jeder Breakpoint das Chrom, das bei seiner Fensterbreite
   wirklich daneben steht. */
/* Floor for the shifted value. Without it the smallest breakpoint would land
   near 200 px and WordPress' own mobile preview (360 px) would no longer reach
   it - the canvas would show the tablet layout on a phone. */
/**
 * Das Abstract eines Blocks - ein Absatz hinter der Überschrift.
 *
 * Nur ein Mixin, keine Ausgabe: die Datei wird von den Stylesheets der neun
 * Blöcke eingebunden, die ein Abstract tragen können, und jedes von ihnen
 * landet in einer eigenen style.css.
 *
 * Der Absatz sieht aus wie Fließtext überall sonst im Theme - hier steht nur,
 * wo er steht: zwischen Überschrift und Inhalt des Blocks, über die volle
 * Inhaltsbreite. Im Canvas zeichnet der Editor dasselbe Element an derselben
 * Stelle, eine eigene Regel für die Bearbeitung braucht es deshalb nicht.
 *
 * @package nuevo
 * @subpackage css
 */
/* Aufzurufen im Inhaltscontainer des Blocks. $slug ist der Blockname, wie ihn
   der Customizer für seinen Rasterabstand führt (--block_<slug>__gridSpace). */
/**
 * nuevo Wordpress Theme - shared SCSS placeholders.
 *
 * Nothing in here emits CSS on its own, so a block stylesheet can import it
 * without pulling unrelated rules into its own file.
 *
 * @package nuevo
 */
section.block.nuevo--native.nuevo--block-image > .image-container.content {
  width: inherit;
  /* Die Contentbreite aus Einstellungen → NUEVO → Darstellung - dieselbe
     Variable, gegen die die neuen Blöcke rechnen (css/parts/_content-width.scss).
     Daran hängen die Fußzeile und die älteren Blockteile; bis 11.11. stand
     hier die feste Zahl aus den Variablen. */
  max-width: var(--nuevo-content-max, 1598px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/**
 * Die Ausrichtung der Abschnittsüberschrift - und des Abstracts darunter.
 *
 * Nur ein Mixin, keine Ausgabe: die Datei wird von den Stylesheets der Blöcke
 * eingebunden, die eine Überschrift mit Ausrichtung tragen, und jedes von ihnen
 * landet in einer eigenen style.css.
 *
 * Warum die Überschriften unmittelbar angesprochen werden: css/parts/_block.scss
 * zentriert jedes .block_headline, und der Customizer schreibt sein eigenes
 * "body h2 { text-align: … }" in den Kopf der Seite - eine Angabe an der
 * Überschrift selbst, die kein geerbter Wert schlägt. Deshalb h1-h6 mit
 * !important, so wie es der Bannerblock schon immer tat.
 *
 * Der Absatz darunter braucht das nicht: an ihn schreibt der Customizer nichts
 * Eigenes, der geerbte Wert genügt.
 *
 * Die Regeln standen wortgleich in zehn Blöcken; ein elfter (Buttons) schrieb
 * die Klasse, hatte aber gar keine Regel dazu - dort blieb die Einstellung ohne
 * Wirkung.
 *
 * @package nuevo
 * @subpackage css
 */
/* Aufzurufen im Abschnitt des Blocks. */
/**
 * Die Breite eines Abschnitts - und die Breite, auf die sie sich bezieht.
 *
 * Zwei Dinge stecken hier drin:
 *
 * 1. --nuevo-content-max: die Breite des Contentbereichs. Auf der Seite sind
 *    das die $std_extra_large_width des Themes; im Canvas des Editors ist der
 *    Contentbereich schmaler, weil Adminmenü und Seitenleiste danebenstehen -
 *    dort gilt der verschobene Wert, derselbe, den auch %container und die
 *    Breakpoints im Canvas benutzen (siehe css/parts/_breakpoints.scss).
 *
 *    Gesetzt wird sie je einmal pro Welt: in css/default.scss für die Seite, in
 *    css/editor-blocks.scss für den Canvas. Ein Blockstylesheet wird nur einmal
 *    kompiliert und in beiden Welten geladen; es kann den Unterschied deshalb
 *    nicht selbst kennen und liest ihn hier ab.
 *
 *    Ohne diese Variable rechnete jeder Block im Canvas gegen die 1598 px der
 *    Seite, während der Container daneben schon bei 1158 px endete: eine Breite
 *    von 70 % sah dort aus wie 97 %, und ab einem gewissen Fenster gar nicht
 *    mehr. Genau das war im Backend zu sehen.
 *
 * 2. --nuevo-content-width: der Anteil, den der Regler "Breite (%)" schreibt -
 *    siehe nuevo_content_width_style() in src/functions/helpers.php und
 *    contentWidthStyle() in js/nuevo-block-editor.js. Nicht gesetzt heißt volle
 *    Breite.
 *
 * @package nuevo
 */
/* Die Breite des Contentbereichs, wie sie in dieser Welt gilt. Der zweite Wert
   ist der Rückfall für den Fall, dass keine der beiden Dateien geladen ist. */
/**
 * Die max-width eines Abschnitts.
 *
 * @param {Number} $fallback Anteil ohne eigene Wahl - 1, außer wo ein Block
 *                           von Haus aus schmaler ist (ein einzelnes Video).
 */
section.block.nuevo--native.nuevo--block-image {
  display: flex;
  flex-flow: column;
  align-items: center;
  /*
   * The section is a flex column, so the container would shrink to the width of
   * its text - a left or right aligned headline would not move at all.
   *
   * Die Überschrift hält dieselbe Breite wie das Bild (Bastian, 23.09.): Bei
   * „Breite 25 %“ stand sie vorher über die ganze Contentbreite, während das
   * Bild darunter ein Viertel breit war. Es ist die Breite **des Blocks**, und
   * der Kopf gehört dazu - deshalb dieselbe Rechnung wie beim Bild eine Regel
   * weiter unten.
   */
  /*
   * Über die volle Fensterbreite gibt es keine Contentbreite, auf die sich der
   * Anteil beziehen könnte - dann zählt die Breite des Abschnitts, genau wie
   * beim Bild (.image-container.viewport). Die Regel steht gegen
   * `.nuevo--fullWidth > .content-container { max-width: none }` aus
   * css/parts/_block.scss und gewinnt über die Spezifität.
   */
  /* Die Ausrichtung der Überschrift - siehe css/parts/_headline-align.scss. */
}
section.block.nuevo--native.nuevo--block-image > .content-container {
  width: 100%;
  max-width: calc(var(--nuevo-content-max, 1598px) * var(--nuevo-content-width, 1));
}
section.block.nuevo--native.nuevo--block-image.nuevo--fullWidth > .content-container {
  max-width: none;
  width: calc(100% * var(--nuevo-content-width, 1));
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-left {
  text-align: left;
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-left h1, section.block.nuevo--native.nuevo--block-image .block_headline.align-left h2, section.block.nuevo--native.nuevo--block-image .block_headline.align-left h3, section.block.nuevo--native.nuevo--block-image .block_headline.align-left h4, section.block.nuevo--native.nuevo--block-image .block_headline.align-left h5, section.block.nuevo--native.nuevo--block-image .block_headline.align-left h6 {
  text-align: left !important;
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-center {
  text-align: center;
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-center h1, section.block.nuevo--native.nuevo--block-image .block_headline.align-center h2, section.block.nuevo--native.nuevo--block-image .block_headline.align-center h3, section.block.nuevo--native.nuevo--block-image .block_headline.align-center h4, section.block.nuevo--native.nuevo--block-image .block_headline.align-center h5, section.block.nuevo--native.nuevo--block-image .block_headline.align-center h6 {
  text-align: center !important;
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-right {
  text-align: right;
}
section.block.nuevo--native.nuevo--block-image .block_headline.align-right h1, section.block.nuevo--native.nuevo--block-image .block_headline.align-right h2, section.block.nuevo--native.nuevo--block-image .block_headline.align-right h3, section.block.nuevo--native.nuevo--block-image .block_headline.align-right h4, section.block.nuevo--native.nuevo--block-image .block_headline.align-right h5, section.block.nuevo--native.nuevo--block-image .block_headline.align-right h6 {
  text-align: right !important;
}
section.block.nuevo--native.nuevo--block-image > .image-container {
  position: relative;
  /*
   * Über die Overlay-Ebene des Hintergrundbildes (z-index 1, siehe
   * css/parts/_block.scss), nicht darunter. Der Content-Container bekommt
   * seine 2 dort; das Bild dieses Blocks ist ein eigenes Kind der Section
   * und hatte gar keine - die Ebene legte sich deshalb auch über das Bild,
   * obwohl sie dem Hintergrund gilt (Bastian, 23.09.).
   */
  z-index: 2;
  /* Full width of the section, not 100vw: the viewport unit includes the
     scrollbar and, in the editor canvas, the whole iframe - in both cases the
     image would reach past the box it sits in. The section is a top level
     block and spans the full width anyway. */
  /* A chosen aspect ratio crops the image: the box follows the ratio, the
     focal point decides which part of the file stays visible. */
  /* The editor places the media picker where the image goes. Without a width
     of its own the placeholder collapses inside the centred column. */
}
section.block.nuevo--native.nuevo--block-image > .image-container.content {
  /*
   * Der Abschnitt ist eine Flexspalte mit align-items:center - darin ist
   * dieser Container ein Flexitem, und das `width: inherit` aus %container
   * fällt auf `auto` zurück: der Kasten schrumpfte auf die Eigenbreite der
   * Bilddatei. Ein Bild, das kleiner ist als der eingestellte Anteil,
   * stand damit schmaler als ein FAQ-Block daneben, der auf denselben
   * Prozentwert steht (Bastian, 13.10.). Dieselbe Zeile wie am
   * Kopf-Container darüber.
   */
  width: 100%;
  max-width: calc(var(--nuevo-content-max, 1598px) * var(--nuevo-content-width, 1));
}
section.block.nuevo--native.nuevo--block-image > .image-container.viewport {
  width: calc(100% * var(--nuevo-content-width, 1));
}
section.block.nuevo--native.nuevo--block-image > .image-container .image {
  /*
   * Ein <img> ist von Haus aus inline und steht damit auf der Grundlinie -
   * darunter blieben vier Pixel Luft für die Unterlängen. Bei „Abstand
   * oben und unten: 0“ sah man sie als Abstand, den niemand gesetzt hat
   * (Bastian, 23.09.).
   */
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
section.block.nuevo--native.nuevo--block-image > .image-container.hasRatio .image {
  aspect-ratio: var(--nuevo-image-ratio, auto);
  object-fit: cover;
  object-position: var(--nuevo-focal-x, 50%) var(--nuevo-focal-y, 50%);
}
section.block.nuevo--native.nuevo--block-image > .image-container > .components-placeholder {
  width: 100%;
}

/* ---------------------------------------- Abstract -------------------------------------------- */
/* Ein Absatz hinter der Überschrift, aus dem Attribut nuevo_abstract. Er steht im
   Frontend und im Canvas an derselben Stelle im selben Element - deshalb
   genügt eine Regel für beide Welten. */
section.block.nuevo--native.nuevo--block-image .content-container > .block_abstract {
  margin-top: 0;
  /*
   * Der Abstand nach unten folgt dem Rasterabstand des Blocks - aber nicht
   * bis auf null.
   *
   * Eine Galerie ohne Abstand zwischen den Bildern ist eine gültige Wahl;
   * ein Vorspann, der die Bilder darunter berührt, ist keine. Der
   * Rasterabstand meint den Abstand der Kacheln zueinander, nicht den des
   * Textes zum Bildblock, und teilte sich hier nur die Variable. Deshalb ein
   * Mindestmaß.
   */
  margin-bottom: max(20px, var(--block_image__gridSpace, var(--blocks__gridSpace, 30px)));
  /*
   * Die Ausrichtung folgt der Überschrift: derselbe Wert, dieselbe Klasse.
   * Der Absatz gehört zur Überschrift, und eine linksbündige Überschrift über
   * einem mittigen Vorspann sieht nach Versehen aus.
   *
   * Nur eine ausdrückliche Wahl schreibt die Klasse - siehe
   * nuevo_abstract_paragraph() in src/functions/helpers.php. Ohne sie bleibt
   * es bei der Ausrichtung des Fließtexts aus dem Customizer, denn welche das
   * für die Überschrift ist, weiss hier niemand.
   */
}
section.block.nuevo--native.nuevo--block-image .content-container > .block_abstract.align-left {
  text-align: left;
}
section.block.nuevo--native.nuevo--block-image .content-container > .block_abstract.align-center {
  text-align: center;
}
section.block.nuevo--native.nuevo--block-image .content-container > .block_abstract.align-right {
  text-align: right;
}

/*# sourceMappingURL=style.css.map */
