/**
 * Theme – Atomic-Utilities (portiert aus dem Vorgänger-Theme, atomic.css)
 *
 * Diese Klassen (fcolor--*, bgcolor--* …) werden in Gutenberg-Inhalten der
 * Datenbank verwendet — Namen unverändert lassen (Ausnahme zur Konvention).
 */

/* Atomic Styles */

/* ///////////////////// */

/* ***** Font Colors */

/* --- Default */

.fcolor--dark {
  color: var(--wp--preset--color--foreground);
}

.fcolor--light {
  color: var(--wp--preset--color--background);
}

/* --- Corporate */

.fcolor--primary {
  color: var(--wp--preset--color--primary);
}

.fcolor--secondary {
  color: var(--wp--preset--color--secondary);
}

/* --- System */

.fcolor--success {
  color: var(--wp--preset--color--success);
}

.fcolor--warning {
  color: var(--wp--preset--color--warning);
}

.fcolor--error {
  color: var(--wp--preset--color--error);
}

/* ***** Background Colors*/

/* --- Default */

.bg--dark {
  background-color: var(--wp--preset--color--foreground);
}

.bg--light {
  background-color: var(--wp--preset--color--background);
}

/* --- Corporate */

.bg--primary {
  background-color: var(--wp--preset--color--primary);
}

.bg--secondary {
  background-color: var(--wp--preset--color--secondary);
}

/* --- System */

.bg--success {
  background-color: var(--wp--preset--color--success);
}

.bg--warning {
  background-color: var(--wp--preset--color--warning);
}

.bg--error {
  background-color: var(--wp--preset--color--error);
}

/* ***** Fill Colors */

.fill--primary {
  fill: var(--wp--preset--color--primary);
}

.fill--secondary {
  fill: var(--wp--preset--color--secondary);
}

/* ***** Rounded Corners */

[class*="rounded-"] {
  overflow: hidden;
}

.rounded-sm {
  border-radius: var(--wp--custom--border-radius--small);
}

.rounded-md {
  border-radius: var(--wp--custom--border-radius--regular);
}

.rounded-lg {
  border-radius: var(--wp--custom--border-radius--large);
}

/* ***** Borders */

.border-b {
  border-bottom: 0.0625em solid var(--wp--preset--color--primary);
}

/* ***** White Space */

.whitespace-nowrap {
  white-space: nowrap;
}

/* ***** Text Align */

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ***** Overflows */

.overflow-hidden {
  overflow: hidden;
}

/* ***** Display */

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* ***** Position */

.relative {
  position: relative;
}

/* ***** Width */

.w-full {
  width: 100%;
}

.w-fit {
  width: fit-content;
}

/* ***** Height */

.h-full {
  height: 100%;
}

/* ***** Cursor */

.cursor-pointer {
  cursor: pointer;
}

/* ***** Fixed Ratios */

[class*="ratio--"] {
  position: relative;
  height: auto;
}

[class*="ratio--"]::before {
  display: block;
  content: "";
  width: 100%;
}

[class*="ratio--"] > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio--1_1::before {
  padding-top: calc(1 / 1 * 100%);
}

.ratio--3_2::before {
  padding-top: calc(2 / 3 * 100%);
}

.ratio--2_3::before {
  padding-top: calc(3 / 2 * 100%);
}

.ratio--3_4::before {
  padding-top: calc(4 / 3 * 100%);
}

.ratio--4_3::before {
  padding-top: calc(3 / 4 * 100%);
}

.ratio--5_2::before {
  padding-top: calc(2 / 5 * 100%);
}

.ratio--2_5::before {
  padding-top: calc(5 / 2 * 100%);
}

.ratio--16_9::before {
  padding-top: calc(9 / 16 * 100%);
}

.ratio--9_16::before {
  padding-top: calc(16 / 9 * 100%);
}

.ratio--16_10::before {
  padding-top: calc(10 / 16 * 100%);
}

.ratio--10_16::before {
  padding-top: calc(16 / 10 * 100%);
}

.ratio--14_9 {
  padding-top: calc(9 / 14 * 100%);
}

/* ***** Max Width */

.max-w-none {
  max-width: none;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

/* ***** Flex Stuff */

.grow-1 {
  flex-grow: 1;
}

@media (max-width: 55rem) {
  .md\:bg--secondary {
    background-color: var(--wp--preset--color--secondary);
  }

  .max-w-5xl {
    max-width: 46rem;
  }

  .max-w-4xl {
    max-width: 40rem;
  }

  .max-w-6xl {
    max-width: 46rem;
  }

  .max-w-xs {
    max-width: 13rem;
  }
}

@media (max-width: 36rem) {
  .max-w-xs {
    max-width: 8rem;
  }
}
