/* ArcFlow theme – compatibility layer for the content migrated from Drupal (Bootstrap 3 / Corporate+ markup).
   Lets the existing pages and blocks look right without rewriting them. New content should not need these
   classes; once a page is cleaned up, nothing here applies to it any more. */

/* ---------------------------------------------------------------- Grid: .row / .col-md-* (only md is used) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}
.row > [class*="col-md-"] { width: 100%; padding-inline: 0.75rem; min-width: 0; }
@media (min-width: 992px) {
  .row > .col-md-1 { width: 8.3333%; }
  .row > .col-md-2 { width: 16.6667%; }
  .row > .col-md-3 { width: 25%; }
  .row > .col-md-4 { width: 33.3333%; }
  .row > .col-md-5 { width: 41.6667%; }
  .row > .col-md-6 { width: 50%; }
  .row > .col-md-7 { width: 58.3333%; }
  .row > .col-md-8 { width: 66.6667%; }
  .row > .col-md-9 { width: 75%; }
  .row > .col-md-10 { width: 83.3333%; }
  .row > .col-md-11 { width: 91.6667%; }
  .row > .col-md-12 { width: 100%; }
}
.row > .md-col-12 { width: 100%; padding-inline: 0.75rem; } /* typo in the front-page views' "more" links */
.view-footer { margin-top: var(--space-4); }
/* Image + text rows (blog, version history): space between the stacked rows */
.prose .row + .row { margin-top: var(--space-4); }
@media (max-width: 991.98px) {
  .row > .col-md-2.blog-preview-image { width: auto; max-width: 220px; margin-bottom: var(--space-3); }
}
.hidden-lg.hidden-md.hidden-sm { display: none; }

/* Inline widths from the old editor must not overflow narrow screens */
.prose [style*="width"], .block [style*="width"] { max-width: 100%; }
.prose img[style*="width"], .block img[style*="width"] { height: auto !important; }

/* ---------------------------------------------------------------- Icons (Font Awesome 4 class names, drawn without the font) */
.fa { display: inline-block; font-style: normal; line-height: 1; }
.fa-angle-double-right::before { content: "»"; }
.fa-angle-double-left::before { content: "«"; }
.fa-angle-right::before { content: "›"; }
.fa-calendar::before { content: none; }
.fa-check::before, .fa-search-plus::before, .fa-xing-square::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.fa-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.fa-search-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.8-4.8M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E"); }
.fa-xing-square { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.19 0c-.52 0-.74.33-.93.66 0 0-7.46 13.22-7.7 13.66l4.92 9.02c.17.31.44.66.97.66h3.45c.21 0 .38-.08.46-.22.09-.15.09-.35-.01-.54l-4.88-8.92v-.02L22.14.76c.1-.19.1-.39.01-.54C22.06.08 21.89 0 21.69 0h-3.5zM3.65 4.74c-.21 0-.39.07-.47.22-.09.15-.08.34.02.53l2.34 4.05v.02L1.86 16.05c-.1.19-.09.38 0 .53.09.14.24.23.45.23h3.46c.52 0 .77-.35.95-.67l3.73-6.61-2.38-4.15c-.17-.32-.43-.66-.96-.66H3.65z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- Banners (Revolution Slider markup in banner.html) */
.banner--legacy ul { list-style: none; margin: 0; padding: 0; }
.banner--legacy li { margin: 0; }
.banner--legacy .tp-bannertimer, .banner--legacy .tp-caption.transparent-bg { display: none; }
#slideshow-internal img {
  display: block;
  width: 100%;
  height: auto; /* the whole picture: a fixed height cropped its bottom (icons, text) */
}
#slideshow-internal .tp-caption { display: none; }

/* The slides become a scroll-snap carousel (site.js adds autoplay, dots and links); a one-slide banner stays a still image */
#slideshow-fullwidth, #slideshow-internal { position: relative; }
#slideshow-fullwidth ul, #slideshow-internal ul {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#slideshow-fullwidth ul::-webkit-scrollbar, #slideshow-internal ul::-webkit-scrollbar { display: none; }
#slideshow-fullwidth li, #slideshow-internal li {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
#slideshow-fullwidth li::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.72), transparent);
  pointer-events: none;
}
#slideshow-fullwidth img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 540px);
  object-fit: cover;
  object-position: center top;
}
#slideshow-fullwidth .title-teaser-text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 4vw, 3.5rem);
  width: auto;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
#slideshow-fullwidth .title-teaser-text .title {
  color: #fff;
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.15;
  max-width: 40rem;
  text-wrap: balance;
}
#slideshow-fullwidth li[data-link] { cursor: pointer; }
.carousel-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}
.carousel-dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------------------------------------------------------------- Image popups (a.image-popup, site.js lightbox) */
.image-preview, .images-container { margin-bottom: var(--space-3); }
a.image-popup { position: relative; display: inline-block; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; vertical-align: top; }
a.image-popup img { display: block; transition: transform 0.25s; }
a.image-popup .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.35);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.2s;
}
a.image-popup:hover .overlay, a.image-popup:focus-visible .overlay { opacity: 1; }
a.image-popup:hover img { transform: scale(1.03); }
img.blog-preview-image { border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- FAQ (Bootstrap collapse panels, site.js) */
.panel-group { display: grid; gap: var(--space-2); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); overflow: hidden; }
.panel-title { margin: 0; font-size: 1.05rem; }
.prose .panel-title { max-width: none; }
.panel-title a {
  position: relative;
  display: block;
  padding: var(--space-3) 3.5rem var(--space-3) var(--space-4);
  color: var(--ink);
  text-decoration: none;
}
.panel-title a:hover { background: var(--surface-alt); }
.panel-title a .fa { color: var(--brand); margin-right: 0.6em; }
.panel-title a::after {
  content: "";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.panel-title a[aria-expanded="true"]::after { transform: rotate(-135deg); }
.collapse:not(.in) { display: none; }
.panel-body { padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 1.6em); }
/* Phones: the answer uses the full width instead of lining up with the question text */
@media (max-width: 639.98px) {
  .panel-title a { padding: var(--space-3) 3rem var(--space-3) var(--space-3); }
  .panel-title a::after { right: var(--space-3); }
  .panel-body { padding: 0 var(--space-3) var(--space-3); }
}

/* ---------------------------------------------------------------- Listings, pagers, glossary */
.node-teaser { padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.node-teaser h2 { font-size: var(--h3); margin-top: 0; }
.node-teaser h2 a { color: var(--ink); text-decoration: none; }
.node-teaser h2 a:hover { color: var(--brand-strong); }
.post-submitted-info { color: var(--ink-muted); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.post-submitted-info .submitted-date { display: flex; gap: 0.3em; }
.post-submitted-info .day::after { content: "."; }
.term-listing-heading { margin-bottom: var(--space-4); }

ul.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); list-style: none; padding: 0; margin: var(--space-5) 0 0; }
ul.pager li { margin: 0; }
ul.pager a, ul.pager li.pager-current, ul.pager li.pager-ellipsis {
  display: block;
  min-width: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
}
ul.pager li.pager-current { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 650; }
ul.pager li.pager-ellipsis { border-color: transparent; }
ul.pager a:hover { background: var(--surface-alt); }

.lexicon-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-4); }
.lexicon-links a, a.lexicon-item {
  color: var(--brand-strong);
}
.lexicon-links a {
  display: inline-block;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
}
.lexicon-links a:hover { background: var(--brand-soft); }
.lexicon-letter { border-bottom: 1px solid var(--line); padding-bottom: var(--space-1); }

/* Side pager (previous / next page) */
div.side-pager {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
a.side-pager {
  display: inline-flex;
  gap: 0.4em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
a.side-pager:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------------------------------------------------------------- Front-page blocks (News, Kundenmeinungen, Interessante Inhalte) */
.band--featured .view-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.band--featured .view-content + .view-content { margin-top: var(--space-4); }
.band--featured .view-content > [class*="col-md-"] {
  width: auto;
  margin: 0 !important;
  padding: var(--space-4);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.band--featured h5 { margin: 0 0 var(--space-2); font-size: 1.05rem; line-height: 1.35; }
.band--featured h5 a { color: var(--ink); text-decoration: none; }
.band--featured h5 a:hover { color: var(--brand-strong); }
.band--featured .view-content p:last-child { margin-bottom: 0; }
.frontpage.nd, .frontpage.tst { font-size: var(--text-sm); color: var(--ink-muted); }
.frontpage.tst p { margin: 0; }
.frontpage.tb { font-style: italic; }

/* Xing links (block-38) */
.social-bookmarks a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink);
  text-decoration: none;
}
.social-bookmarks a:hover { border-color: var(--brand); }
.social-bookmarks .fa { display: inline-flex; align-items: center; gap: 0.5em; color: var(--xing); }
.social-bookmarks-only { color: var(--ink); font-family: var(--font-sans); }
.band--featured .row:has(.social-bookmarks) { gap: var(--space-3); margin: 0; }
.band--featured .row:has(.social-bookmarks) > [class*="col-md-"] { width: auto; padding: 0; }
.band--featured .row:has(.social-bookmarks) > .col-md-1 { display: none; }
.social-bookmarks.text-right { text-align: left; }

/* Contact addresses (bottom_content) */
.af-contact { margin-bottom: var(--space-4); }
.af-contact-margin-bottom { margin-bottom: 0.75em; }
.af-contact-flag { margin-right: 0.5em; vertical-align: baseline; }
.af-contact-col-2 { float: left; clear: left; width: 5.5rem; color: var(--ink-muted); }
.af-contact-clearer { clear: both; padding-top: 0.5em; }

/* Customer references, info material, press mirror */
.af-customer-col { margin-bottom: var(--space-4); }
.af-customer-img { margin: var(--space-4) 0 var(--space-2); }
.af-infomaterial-img { margin: 0 2px 4px 0; }
.row.pressmirror { padding-block: var(--space-1); border-radius: var(--radius-sm); }
.row.pressmirror:hover { background: var(--surface-alt); }
.filetyp { margin: 0 0 3px 5px; }
img.infomaterial { border: 1px solid var(--line); border-radius: var(--radius-sm); }
p.fotosource { font-size: 0.75rem; color: var(--ink-muted); }
div.highlighted p { background: var(--highlight-bg); color: var(--ink); padding: var(--space-3); border-radius: var(--radius-sm); }
#pdf-download { text-align: center; margin-top: 1em; }
#pdf-download div.box { display: inline-flex; gap: var(--space-3); align-items: center; text-align: left; }
#pdf-download img { height: 50px; width: auto; }

/* Testimonial overview */
.testimonial-top { margin-top: var(--space-4); }
.field-name-field-testimonial-image .small img { max-width: 80px; border-radius: 50%; }

/* Country flags of the contact block (bottom_content); the header has a language menu instead of flags */
.af-contact-flag { width: auto; height: 0.75em; border-radius: 1px; }
.site-header__top [style*="text-align"] { text-align: inherit !important; }

/* Sitemap */
.site-map-box { margin-bottom: var(--space-4); }
.site-map-menu { list-style: none; padding-left: var(--space-3); }

/* Video on the front page (block-7): sized here (the old jQuery player script is gone) */
#player-container { text-align: center; margin: var(--space-4) 0; }
#player { width: 100% !important; max-width: 720px; margin: 0 !important; border: 0 !important; border-radius: var(--radius); background: #000; }

/* Webform leftovers */
.form-item { margin-bottom: var(--space-3); }
.form-required { color: var(--danger); }
.webform-component { margin-bottom: var(--space-3); }

/* ---------------------------------------------------------------- Dark scheme: content made for a white page */
/* Logos and screenshots often have dark text on a transparent background: give them a light backdrop
   (--img-backdrop is transparent in the light scheme). Banners, flags, icons and the logo are not inside these areas. */
:is(.prose, .band--featured, .band--contact, .af-customer-img) img:not(.no-backdrop) {
  background-color: var(--img-backdrop);
}
[data-scheme="dark"] :is(.prose, .band--featured, .band--contact, .af-customer-img) img:not(.no-backdrop):not(.af-contact-flag) {
  padding: 3px;
  border-radius: var(--radius-sm);
}
/* The few inline text colours from the old editor */
[data-scheme="dark"] :is(.prose, .block) [style*="color: rgb(0, 0, 0)"],
[data-scheme="dark"] :is(.prose, .block) [style*="color:#000"],
[data-scheme="dark"] :is(.prose, .block) [style*="color: #000"] { color: var(--ink) !important; }

