/* ==========================================================================
   Eschberger - Cassiopeia child template (cassiopeia_eschberger)
   Recreates the former JYAML "esch" design.

   Module positions:
     menu          -> Hauptmenü (mod_menu, layout collapse-metismenu)
     sidebar-right -> Ausg'steckt is (mod_articles_news, class "ausgsteckt")
     footer        -> Fußzeile (mod_custom, partner logos + impressum)
   Logo: template style parameter "Logo" (images/template/eschberger-logo.png)
   ========================================================================== */

/* --- Fonts (self hosted, no Google request) ------------------------------ */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Variables ----------------------------------------------------------- */
:root {
  --esch-red: #dd0031;
  --esch-text: #444;
  --esch-footer-height: 90px;
  --cassiopeia-color-primary: #dd0031;
  --cassiopeia-color-link: #444;
  --cassiopeia-color-hover: #fff;
  --cassiopeia-font-family-body: "Open Sans", Arial, Helvetica, sans-serif;
  --cassiopeia-font-family-headings: "Open Sans", Arial, Helvetica, sans-serif;
  --body-font-family: "Open Sans", Arial, Helvetica, sans-serif;
  --body-font-size: 0.875rem;
  --body-color: #444;
  --body-bg: #fff;
  --link-color: #444;
  --link-color-rgb: 68, 68, 68;
  --link-hover-color: #fff;
  --link-hover-color-rgb: 255, 255, 255;
}

/* --- Page background (per menu item, formerly JYAML header image) -------- */
/* The image sits on a fixed pseudo element so it also works on iOS. */
html { background: #fff; }
body.site {
  --esch-bg: url("../../../../../images/hintergrund/IMG_4304_SW-2560.webp");
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 0.875rem; /* 14px */
  color: var(--esch-text);
  background: transparent;
}
body.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--esch-bg) no-repeat top center / cover;
}
@media (max-width: 991.98px) {
  body.site { --esch-bg: url("../../../../../images/hintergrund/IMG_4304_SW-1280.webp"); }
}
body.itemid-109 { --esch-bg: url("../../../../../images/hintergrund/familie.jpg"); }
body.itemid-110 { --esch-bg: url("../../../../../images/hintergrund/weinbau_IMG_3250_SW.jpg"); }
body.itemid-111 { --esch-bg: url("../../../../../images/hintergrund/buschenschank.jpg"); }
body.itemid-128 { --esch-bg: url("../../../../../images/hintergrund/wein_glaeser.jpg"); }
body.itemid-130 { --esch-bg: url("../../../../../images/hintergrund/aktuelles_IMG_7160_SW.jpg"); }
body.itemid-159 { --esch-bg: url("../../../../../images/hintergrund/bestell_IMG_7881_SW.jpg"); }
body.itemid-112,
body.itemid-129 { --esch-bg: url("../../../../../images/hintergrund/kontakt_DSCF4862_SW.jpg"); }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--esch-red);
  margin: 0;
}
h1 { font-size: 171.43%; line-height: 1.2; margin: 0 0 .4375em; }
h2 { font-size: 150%; line-height: 1.3125; margin: 0 0 1em; }
h3 { font-size: 120%; line-height: 1.2; margin: 1em 0; color: var(--esch-text); text-transform: uppercase; }
h4 { font-size: 100%; line-height: 1.2; margin: 1em 0; }
h5, h6 { font-size: 100%; line-height: 1.5; margin: 0 0 1.5em; }

p, ul, ol, dl { line-height: 1.5; margin: 0 0 1.5em; }
li { line-height: 1.5; }

a {
  color: var(--esch-text);
  background: transparent;
  text-decoration: underline;
  transition: background-color .5s ease;
}
a:hover,
a:focus {
  background-color: #800;
  color: #fff;
}
a:has(> img):hover,
a:has(> img):focus { background-color: transparent; }

.rot { color: var(--esch-red); }
.com-content-article__body strong,
.category-desc p { color: var(--esch-red); }
/* old template: red <strong> only on pages without page class suffix */
body.weine .com-content-article__body strong,
body.kontakt .com-content-article__body strong,
body.impressum .com-content-article__body strong { color: inherit; }
.category-desc p { margin: 0; padding: 0; font-weight: 700; }
.category-desc { margin-bottom: 3em; }

/* --- Header: logo + main navigation ------------------------------------- */
.container-header {
  background: transparent;
  background-image: none;
  box-shadow: none;
}
.container-header .grid-child { padding: 0; }

.container-header .navbar-brand { margin: 0; padding: 0; }
.container-header .brand-logo:hover,
.container-header .brand-logo:focus { background: none; }
.container-header .brand-logo img {
  width: 500px;
  max-width: 100%;
  height: auto;
}

.container-nav { padding: 0; }
.container-header .navbar { padding: 0; }

.container-header .mod-menu.metismenu {
  margin: 0 0 0 30px;
  padding: 0;
  flex-wrap: wrap;
  color: var(--esch-text);
}
.container-header .metismenu > li.level-1 {
  margin: 40px 16px 0 0;
  padding: 0;
}
.container-header .metismenu > li.level-1 > a {
  display: block;
  padding: .8em 1em;
  font-size: 14px;
  line-height: 1;
  color: var(--esch-text);
  background: #fff;
  text-decoration: none;
  text-transform: uppercase;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  opacity: 1;
}
.container-header .metismenu > li.level-1 > a:hover,
.container-header .metismenu > li.level-1 > a:focus {
  background: var(--esch-red);
  color: #fff;
  text-decoration: none;
}
.container-header .metismenu > li.level-1.active > a,
.container-header .metismenu > li.level-1.current > a {
  background: var(--esch-red);
  color: #fff;
  text-decoration: none;
  border-top-left-radius: 0;
}
.container-header .metismenu > li.level-1.current {
  border-top: 40px solid var(--esch-red);
  margin-top: 0;
}
.container-header .metismenu > li.level-1::after { display: none; }

/* --- Main column --------------------------------------------------------- */
.site-grid {
  padding: 0;
  margin: 0;
}
.container-component { padding: 2em 0 0; }
.container-component > main { margin-bottom: 0; }

.page-header,
.com-content-article__body,
.com-content-category-blog,
.com-content-article .article-info,
#system-message-container {
  padding-left: 30px;
  padding-right: 30px;
}
.page-header {
  margin: 0;
  border: 0;
}
.page-header h1,
.page-header h2 {
  padding: 0;
  font-size: 150%;
  line-height: 1.3125;
  margin: 0 0 1em;
  color: var(--esch-red);
  text-transform: uppercase;
}
.com-content-category-blog .page-header { padding: 0; }

/* Blog (Aktuelles) */
.com-content-category-blog > .page-header { padding: 0; }
.com-content-category-blog > .page-header h1 { text-transform: none; }
.com-content-category-blog__item,
.blog-item {
  display: flow-root;
  border-bottom: 1px solid #b9b9b9;
  margin: 2em 0 0;
  padding: 0;
  background: transparent;
}
.blog-item .page-header { padding: 0; }
.blog-item .page-header h2 {
  color: var(--esch-text);
  margin: 0 0 .3em;
  font-size: 100%;
  line-height: 1.5;
  text-transform: none;
}
.blog-item p { margin-bottom: 0; }
.blog-item figure.item-image.left,
.blog-item figure.item-image {
  float: left;
  max-width: 45%;
  margin: 0 30px 30px 0;
}
.blog-items { display: block; }
.blog-items > * { width: auto; }
/* category info was removed in the old template override */
.com-content-category-blog .article-info { display: none; }
.com-content-article .item-image.float-start,
.com-content-article figure.item-image.left { float: left; margin: 0 30px 30px; }

/* Home: quote box */
.titel-zitat {
  width: 45%;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 150%;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  position: fixed;
  bottom: 120px;
  left: 30px;
}
.titel-zitat h3 {
  background: var(--esch-red);
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #fff;
  padding: .3em 1em;
  margin: 0;
  font-size: 114%;
}
.titel-zitat p { padding: 1em; margin: 0; }
.titel-zitat .zitat-autor { font-size: .8em; }

/* YAML grid classes still used in article content (Kontakt, Weine) */
.ym-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.ym-grid > .ym-g50 { width: 50%; }
.ym-gl .ym-gbox { padding-right: 10px; }
.ym-gr .ym-gbox { padding-left: 10px; }

/* Kontakt / Impressum */
.itemid-129 .com-content-article__body p,
.itemid-112 .com-content-article__body p { margin: 0; padding: 0; }

.moduletable-galerie,
.moduletable.esch-galerie,
.moduletable.esch-impressum,
ul.sige {
  background: rgba(0, 0, 0, .5);
  padding: 1em 30px 3em;
  margin: 1em -30px 85px;
}
/* SIGE galleries ({gallery}…{/gallery}) get the dark band of the old BT gallery */
.com-content-article__body [class^="sige_masonry"],
.com-content-article__body [class^="sige_normal"],
.com-content-article__body [class^="sige_slideshow"] {
  background: rgba(0, 0, 0, .5);
  padding: 1em 30px;
  margin: 1em -30px 40px;
}
.com-content-article__body [class^="sige"] a:hover,
.com-content-article__body [class^="sige"] a:focus { background: transparent; }

/* SIGE type "normal": even grid instead of fixed-height floats
   (overrides the inline width/height SIGE writes per gallery) */
.com-content-article__body ul.sige {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: auto;
  list-style: none;
  padding: 1.5em 30px;
  margin: 1em -30px 40px;
}
.com-content-article__body ul.sige > li {
  width: auto;
  height: auto;
  float: none;
  display: block;
  margin: 0;
  padding: 0;
}
.com-content-article__body ul.sige > li img {
  display: block;
  width: 100%;
  height: auto;
}
.com-content-article__body ul.sige .sige_clr { display: none; }

.moduletable-galerie,
.moduletable.esch-galerie {
  padding: 1em 30px;
  margin-bottom: 40px;
  clear: both;
}
.moduletable.esch-impressum,
.moduletable.esch-impressum a,
.moduletable.esch-impressum h3,
.moduletable.esch-impressum h4,
.moduletable.esch-impressum p { color: #fff; }
.moduletable.esch-impressum h3,
.moduletable.esch-impressum h4 { margin-bottom: 0; font-weight: 700; }

/* Weine */
.weinnavi { width: 100%; margin-bottom: 0; background: #e3e2e2; border: none; }
.weinnavi td { width: 25%; text-align: center; }
.weinnavi a { text-decoration: none; }
.weinliste { width: 100%; border: none; border-bottom: 1px solid #6b6b6b; }
.weinliste td { border-top: 1px solid #6b6b6b; }
.weinliste p { margin: 0; padding: 0; }
.wein-heading td,
.wein-heading td * { background: rgba(0, 0, 0, .5); color: #fff; }
.wein-heading td * { background: transparent; }

/* Tables (as in the old template) */
.com-content-article__body table {
  border-collapse: collapse;
  color: var(--esch-text);
  margin: 0 0 1.35714em;
}
.com-content-article__body th,
.com-content-article__body td {
  line-height: 1.5em;
  vertical-align: top;
  padding: .71429em .5em;
}

/* Google Maps responsive */
.google-maps {
  height: 0;
  overflow: hidden;
  padding-bottom: 40%;
  position: relative;
}
.google-maps iframe {
  height: 100% !important;
  left: 0;
  position: absolute;
  top: 0;
  width: 100% !important;
}

/* Buttons */
.btn-primary,
.mcSignupSubmit,
#bfSubmitButton {
  background-color: var(--esch-red) !important;
  background-image: linear-gradient(to bottom, #f00035, #cf002e) !important;
  border: none;
  color: #fff;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
}
.acysubbuttons { text-align: left; }
p.small { margin: 0; padding: 0; font-size: 75%; }

/* --- "Ausg'steckt is" box ----------------------------------------------- */
.container-sidebar-right { padding: 0; }
.moduletable.ausgsteckt {
  position: relative;
  background: #fff;
  color: var(--esch-red);
  padding: 1.5em;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.moduletable.ausgsteckt::before {
  content: "";
  display: block;
  width: 170px;
  height: 54px;
  margin: -50px 0 0 -30px;
  background: url("../../../../../images/template/ausgsteckt-is.png") no-repeat left top / contain;
}
.moduletable.ausgsteckt h4 {
  color: var(--esch-red);
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4;
}
.moduletable.ausgsteckt p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
.moduletable.ausgsteckt .mod-articlesnews { margin: 0; padding: 0; list-style: none; }
.moduletable.ausgsteckt .mod-articlesnews__item { margin: 0; }
/* the intro image is replaced by the ::before graphic */
.moduletable.ausgsteckt .newsflash-image,
.moduletable.ausgsteckt figure { display: none; }

/* --- Footer -------------------------------------------------------------- */
.container-footer {
  background: var(--esch-red);
  background-image: none;
  color: #fff;
  margin: 0;
}
.container-footer .grid-child {
  display: block;
  max-width: none;
  padding: 10px;
}
.container-footer .partner-logos { float: left; }
.container-footer .partner-logos p { margin: 0; }
.container-footer .partner-logos img {
  margin: 5px 5px 0;
  vertical-align: middle;
}
.container-footer .impressum {
  float: right;
  text-align: right;
  margin-top: 12px;
}
.container-footer .impressum p { margin: 0; padding: 0; }
.container-footer .impressum a { color: #fff; text-decoration: none; }
.container-footer .impressum a:hover,
.container-footer .impressum a:focus {
  color: #fff;
  background: transparent;
  text-decoration: underline;
}
.container-footer .grid-child::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   Desktop: two halves (content left, logo right), fixed footer + aside
   ========================================================================== */
@media (min-width: 992px) {
  /* translucent white panel behind the left half (not on the homepage) */
  body.site::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background: rgba(255, 255, 255, .6);
    z-index: -1;
  }
  body.site.home::after { display: none; }

  .container-header,
  .site-grid {
    width: 50%;
    margin: 0;
  }
  .container-header {
    display: block;
    position: static;
  }
  .container-header .navbar-brand {
    position: fixed;
    top: 30px;
    left: calc(50% + 20px);
    z-index: 1;
  }
  .container-header .navbar-collapse { display: block !important; }

  .site-grid {
    display: block;
    padding-bottom: calc(var(--esch-footer-height) + 5em);
  }
  .site-grid > .grid-child { max-width: none; }

  .site-grid > .container-sidebar-right {
    position: fixed;
    left: auto;
    right: 0;
    bottom: var(--esch-footer-height);
    width: 209px;
    max-width: 209px;
    z-index: 2;
  }

  .container-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--esch-footer-height);
    z-index: 3;
  }
}

/* ==========================================================================
   Tablet / mobile: stacked layout
   ========================================================================== */
@media (max-width: 991.98px) {

  .container-header {
    display: flex;
    flex-direction: column;
  }
  /* menu bar on top, logo below */
  .container-header .container-nav {
    order: -1;
    width: 100%;
    max-width: none;
  }
  .container-header .navbar {
    width: 100%;
    background: linear-gradient(to bottom, #45484d 0%, #000 100%);
    padding: 5px 8px;
    justify-content: flex-start;
  }
  .container-header .navbar-toggler {
    color: #fff;
    border: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
  }
  .container-header .navbar-toggler::after { content: " Menu"; }
  .container-header .navbar-toggler:focus { box-shadow: none; }
  .container-header .navbar-collapse { width: 100%; }
  .container-header .mod-menu.metismenu {
    flex-direction: column;
    align-items: stretch;
    margin: 8px 0 0;
  }
  .container-header .metismenu > li.level-1,
  .container-header .metismenu > li.level-1.current {
    width: 100%;
    margin: 0;
    border: 0;
  }
  .container-header .metismenu > li.level-1 > a {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #45484d;
    padding: 8px;
  }

  .container-header .navbar-brand {
    display: block;
    text-align: center;
    margin: 20px auto 10px;
  }
  .container-header .brand-logo img { width: 80%; }

  .site-grid {
    display: flex;
    flex-direction: column;
  }
  .site-grid > .container-sidebar-right {
    order: -1;
    width: auto;
    max-width: 420px;
    margin: 50px 16px 20px;
  }
  @media (min-width: 452px) {
    .site-grid > .container-sidebar-right { margin-left: auto; margin-right: auto; width: 100%; }
  }
  .moduletable.ausgsteckt { font-size: 14px; }
  .moduletable.ausgsteckt::before { margin-left: -24px; }
  .com-content-article__body ul.sige {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1em 16px;
    margin-left: -30px;
    margin-right: -30px;
  }
  .container-component {
    background: rgba(255, 255, 255, .6);
    padding: 2em 0 3em;
  }
  .home .container-component { background: transparent; }

  .titel-zitat {
    position: static;
    width: 90%;
    font-size: 110%;
  }
  .container-footer .partner-logos,
  .container-footer .impressum {
    float: none;
    text-align: center;
  }
  .com-content-article .item-image.float-start { float: none !important; }
  .ym-grid > .ym-g50 { width: 100%; }
  .ym-gl .ym-gbox,
  .ym-gr .ym-gbox { padding: 0; }
}

/* ==========================================================================
   Bestellformular (BreezingForms, menu item "BESTELLEN", page class bestellform)
   Interim solution until the online shop goes live.
   ========================================================================== */
body.com_breezingforms .container-component > main { padding: 0 30px; }
body.com_breezingforms main > h1 {
  font-size: 150%;
  line-height: 1.3125;
  margin: 0 0 1em;
  color: var(--esch-red);
  text-transform: uppercase;
}

form.bfQuickMode,
form.bfQuickMode fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  color: var(--esch-text);
}
form.bfQuickMode .bfSectionDescription { padding: 0; }
form.bfQuickMode .bfSectionDescription p { margin: 0 0 1em; }
form.bfQuickMode .bfSectionDescription p.small { font-size: 12px; color: #666; }

/* generic field rows */
form.bfQuickMode .bfElemWrap {
  float: none !important;
  margin: 0 0 10px;
  padding: 0;
}
form.bfQuickMode .bfElemWrap > label {
  float: none !important;
  width: auto !important;
  display: block;
  margin: 0 0 3px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--esch-text);
}
form.bfQuickMode .bfRequired { color: var(--esch-red); margin-left: 2px; }

/* inputs, selects, textarea */
form.bfQuickMode input[type="text"],
form.bfQuickMode select,
form.bfQuickMode textarea {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--esch-text);
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 0;
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: none;
}
form.bfQuickMode select { padding-right: 28px; height: auto; }
form.bfQuickMode textarea { min-height: 120px; resize: vertical; }
form.bfQuickMode input[type="text"]:focus,
form.bfQuickMode select:focus,
form.bfQuickMode textarea:focus {
  outline: 2px solid var(--esch-red);
  outline-offset: 0;
  border-color: var(--esch-red);
}
form.bfQuickMode input::placeholder,
form.bfQuickMode textarea::placeholder { color: #777; opacity: 1; }

/* calculated (readonly) fields: plain text look, right aligned */
form.bfQuickMode input[readonly] {
  background: rgba(255, 255, 255, .5) !important;
  border: 1px dashed #bbb !important;
  text-align: right;
}

/* PLZ + Ort in one row */
#bfQuickModeSection16817 {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 10px;
}

/* delivery radios */
form.bfQuickMode .bfElementGroup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  float: none !important;
  width: 100% !important;
  gap: 4px 8px;
  margin: 5px 0 10px;
}
form.bfQuickMode .bfElementGroup br { display: none; }
form.bfQuickMode .bfElementGroup input { margin: 0; accent-color: var(--esch-red); }
form.bfQuickMode .bfGroupLabel { margin: 0; font-weight: 400; cursor: pointer; }

/* wine rows S1-S6: wine | quantity | price | total */
form.bfQuickMode [id^="S"].bfNoSection > .bfClearfix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 80px 90px;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}
form.bfQuickMode [id^="S"].bfNoSection .bfElemWrap { margin: 0; }
form.bfQuickMode [id^="S"].bfNoSection { margin: 0; padding: 0; border: 0; }
#S1.bfNoSection { margin-top: 1.5em; }

/* add / remove row buttons */
#Buttons.bfNoSection {
  display: flex;
  gap: 10px;
  margin: 4px 0 1.5em;
}
#Buttons .bfElemWrap { margin: 0; }
#ff_elem846,
#ff_elem847 {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 36px;
  border-radius: 50% !important;
}

/* totals: label left, value right */
#berechnung.bfNoSection {
  margin: 0 0 1.5em;
  padding: 1em 0 0;
  border-top: 1px solid #999;
}
#berechnung .bfElemWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: center;
}
#berechnung .bfElemWrap > label { margin: 0; font-weight: 400; }
#bfElemWrap659 > label,
#bfElemWrap659 input { font-weight: 700; }

/* terms text */
#bfQuickModeSection9980 .bfSectionDescription { font-size: 13px; }

/* checkboxes: box first, then text */
form.bfQuickMode .bfLabelRight:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
form.bfQuickMode .bfLabelRight > input[type="checkbox"] {
  order: -1;
  flex: 0 0 auto;
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--esch-red);
}
form.bfQuickMode .bfLabelRight:has(> input[type="checkbox"]) > label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
}

/* submit */
form.bfQuickMode .bfSubmitButton {
  display: block;
  margin: 1.5em 0 0 auto;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  body.com_breezingforms .container-component > main { padding: 0 16px; }
  form.bfQuickMode [id^="S"].bfNoSection > .bfClearfix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }
  form.bfQuickMode [id^="S"].bfNoSection > .bfClearfix > .bfElemWrap:first-of-type { grid-column: 1 / -1; }
  #berechnung .bfElemWrap { grid-template-columns: minmax(0, 1fr) 110px; }
}
