/* =========================================================
   WUP Mechanik GmbH – 1:1 Nachbau
   Werbeagentur Hoffmann
   ---------------------------------------------------------
   Schrift-Hinweis: Das Original deklariert 'Open Sans',
   laedt die Webfont aber nicht. Gerendert wird daher der
   Fallback (Arial bzw. Georgia/Serif). Fuer pixelgenaue
   Treue wird dieses Rendering hier exakt nachgebildet.
   ========================================================= */

/* ---------- Custom Properties ---------- */
:root {
  --c-blue:          #0a267d;
  --c-blue-active:   #1e1265;
  --c-blue-sub:      #a4c4f5;
  --c-blue-link:     #034da3;
  --c-text:          #5a5757;
  --c-dark:          #333333;
  --c-footer:        #2d2c2e;
  --c-footer-bar:    #4a4a4a;
  --c-footer-note:   #dbdee9;
  --c-grey-bg:       #f7f7f7;
  --c-box-grey:      #343434;
  --c-btn-border:    #f80000;
  --c-border:        #dddddd;
  --c-white:         #ffffff;

  --font-sans:  'Open Sans', Arial, Helvetica, sans-serif;
  --font-serif: 'Open Sans Serif', Georgia, 'Times New Roman', serif;
  --font-nav:   'Catamaran', Arial, Helvetica, sans-serif;

  --container:  1200px;
  --gutter:     15px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Joomla-WYSIWYG macht aus <i> gern <em> – Icons duerfen nicht kursiv werden */
em[class*="fa-"] { font-style: normal; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 25px;
  color: var(--c-text);
  background: #fefefe;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a,
a:link,
a:active,
a:visited {
  color: var(--c-text);
  text-decoration: underline;
  transition: color .2s ease, opacity .2s ease;
}

a:hover { opacity: .8; }

p { margin: 0 0 10px; }

ul { margin: 0 0 10px 1.25rem; padding: 0; }
li { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 20px 0;
  clear: both;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--c-blue);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Headings ---------- */
h1 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-blue);
  line-height: 41px;
  margin: 0 0 5px;
  padding-bottom: 5px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--c-dark);
  line-height: 1.3;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-dark);
}

h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-blue);
  line-height: 1.3;
  margin: 0 0 5px;
  padding-bottom: 5px;
}

h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  color: var(--c-blue);
  line-height: 30px;
  margin: 0 0 27px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--c-white);
}

/* ---------- Layout / Grid (Quix-Aequivalent) ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.container--narrow {
  max-width: 1170px;
  padding: 0 var(--gutter);
}

.grid {
  display: flex;
  flex-wrap: wrap;
}

.col {
  padding: 0 var(--gutter);
  width: 100%;
  min-width: 0;
}

.col-1  { width: 8.3333%; }
.col-2  { width: 16.6667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.3333%; }
.col-5  { width: 41.6667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.3333%; }
.col-8  { width: 66.6667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.3333%; }
.col-12 { width: 100%; }

.grid--equal > .col { display: flex; flex-direction: column; }

/* ---------- Kopfleiste / Navigation ---------- */
.topbar {
  background-color: var(--c-blue);
  position: relative;
  z-index: 900;
}

.mainnav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-nav);
}

.mainnav-list > li { margin: 0; }

.mainnav-list > li > a {
  display: block;
  height: 82px;
  padding: 0 20px;
  color: var(--c-white);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 57px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease;
}

.mainnav-list > li > a:hover,
.mainnav-list > li > a:focus-visible {
  background-color: var(--c-blue-active);
  opacity: 1;
}

.mainnav-list > li > a.is-active {
  background-color: var(--c-blue-active);
  font-weight: 700;
}

.mainnav-list .subtitle {
  display: block;
  margin-top: -12px;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--c-blue-sub);
}

/* Burger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin: 6px var(--gutter);
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  color: var(--c-dark);
  background: #dddddd;
  border: 0;
  cursor: pointer;
}

/* Offcanvas-Menue (mobil) */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #333333;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1200;
  overflow-y: auto;
  padding-top: 60px;
}

.offcanvas.is-open { transform: translateX(0); }

.offcanvas ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas li { border-bottom: 1px solid #555555; }

.offcanvas a {
  display: block;
  padding: 14px 20px;
  min-height: 44px;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.offcanvas a:hover,
.offcanvas a.is-active {
  background-color: #444343;
  text-decoration: none;
}

.offcanvas-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1100;
}
.offcanvas-backdrop.is-visible { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ---------- Weisser Kopfbereich ---------- */
.brandbar {
  background: var(--c-white);
  padding-bottom: 20px;
}

.brandbar .grid { padding-top: 13px; align-items: flex-start; }

.brandbar-logo img {
  width: 406px;
  max-width: 100%;
}

.brandbar-title { padding-top: 10px; }

.brandbar-name {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 700;
  line-height: 41px;
  color: var(--c-blue);
  margin: 0;
  padding: 0;
}

.brandbar-contact { padding-top: 8px; }

/* Blurb (Icon + Text) */
.blurb {
  display: flex;
  align-items: flex-start;
  margin: 0;
}

.blurb + .blurb { margin-top: 0; }

.blurb .blurb-icon {
  flex: 0 0 auto;
  padding-right: 10px;
  margin-top: 10px;
  font-size: 24px;
  line-height: 24px;
  color: var(--c-text);
}

.blurb .blurb-body p {
  margin: 0;
  font-size: 19px;
  line-height: 30.4px;
}

/* ---------- Inhalt ---------- */
.inhalt { padding-top: 45px; }

.section { padding: 0; }
.section--pb35 { padding-bottom: 35px; }

/* Full-Width: bewusst OHNE 100vw (das schliesst die Scrollbar-Breite ein und
   erzeugt einen horizontalen Scrollbalken). Der aeussere Wrapper ist bereits
   100 % breit, die Sektion laeuft als normales Block-Element voll durch. */
.section--stretch { width: 100%; }

/* ---------- Startseite: Hero ---------- */
.hero-image img {
  width: 100%;
  height: auto;
}

.hero-row { margin-bottom: 100px; }

.start-box {
  background-color: var(--c-blue);
  margin-top: -250px;
  padding: 35px;
  color: var(--c-white);
}

.start-box h1,
.start-box h2 {
  color: var(--c-white);
  margin-top: 0;
  margin-bottom: 25px;
}

.start-box h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 41px;
  padding-bottom: 5px;
}

.start-box h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.35;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.start-box p,
.start-box li { color: var(--c-white); }

.start-box ul { margin-bottom: 25px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: normal;
  line-height: 25px;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 1px;
  background-image: none;
  transition: all .15s ease-in-out;
}

.btn--outline {
  color: var(--c-white);
  background: transparent;
  border-color: var(--c-btn-border);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--c-white);
  background: var(--c-btn-border);
  opacity: 1;
}

.section a.btn, .section a.btn--light, .section a.btn--outline,
.zert-box a.btn, .start-box a.btn, .error-page a.btn {
  text-decoration: none !important;
}

.btn--light {
  color: var(--c-dark);
  background-color: var(--c-white);
  border-color: #cccccc;
}
.btn--light:hover,
.btn--light:focus-visible {
  color: var(--c-dark);
  background-color: #e6e6e6;
  border-color: #adadad;
  opacity: 1;
}

.btn i { margin-right: 6px; }

/* ---------- Zertifikate ---------- */
.zert-heading { margin-bottom: 20px; }

.zert-heading h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: #000000;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-dark);
}

.zert-box {
  background-color: var(--c-blue);
  margin-bottom: 50px;
  padding: 35px var(--gutter);
  text-align: center;
}

.zert-box h3 {
  color: var(--c-white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 25px;
  padding-bottom: 0;
}

/* ---------- Info-Streifen (Kontakt / Ueber uns) ---------- */
.infostrip {
  background-color: var(--c-grey-bg);
  padding-top: 75px;
}

.infostrip .icon-img { margin-bottom: 20px; }
.infostrip .icon-img img { width: 109px; }

.infostrip h3 {
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: bold;
  color: var(--c-blue-link);
  margin: 0 0 25px;
  padding-bottom: 0;
}

.infostrip .infostrip-text { padding-bottom: 20px; }

/* ---------- Icon-Kacheln (Fertigung) ---------- */
.icon-tile { text-align: center; }

.icon-tile > i {
  font-size: 46px;
  color: var(--c-blue);
  margin-bottom: 25px;
  display: inline-block;
}

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

/* ---------- Bildkacheln ---------- */
.media-figure { margin: 0 0 20px; }
.media-figure img { margin: 0 auto; }
.media-figure figcaption { font-size: 14px; font-style: italic; }

.image-stack > * + * { margin-top: 20px; }

/* ---------- Kontaktseite ---------- */
/* Border liegt – wie im Original – direkt auf der Spalte,
   damit die beiden Boxen bündig aneinanderstoßen. */
.col.contact-box {
  border: 1px solid var(--c-border);
  border-radius: 1px;
  padding: 20px;
}

.contact-box .tel-nowrap { white-space: nowrap; }

.contact-box h1,
.contact-box .as-h1 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 600;
  line-height: 41px;
  color: var(--c-blue);
  border-bottom: 0;
  margin: 0 0 25px;
  padding-bottom: 0;
}

.map-embed {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.form-section { padding-top: 5vh; }

.contact-form { max-width: 640px; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 12px;
}

.form-row label.form-label {
  flex: 0 0 105px;
  padding-top: 6px;
  font-size: 17px;
  color: var(--c-text);
}

.form-control-wrap { flex: 1 1 260px; min-width: 0; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 6px 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--c-text);
  background: #f7f7f7;
  border: 1px solid #cccccc;
  border-radius: 0;
  min-height: 34px;
}

.contact-form textarea { height: 100px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--c-blue);
  outline-offset: 1px;
  background: #fff;
}

.req { color: #cc0000; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 6px; width: 18px; height: 18px; }
.checkbox-row label { font-size: 15px; line-height: 22px; }

.form-error {
  display: block;
  margin-top: 4px;
  color: #cc0000;
  font-size: 14px;
  line-height: 20px;
}

.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: #e7f3e7;
  border: 1px solid #4a9c4a;
  color: #24601f;
  font-size: 16px;
}

.btn--send {
  min-height: 44px;
  padding: 10px 24px;
  color: #fff;
  background: #000000;
  border-color: #000000;
  font-size: 17px;
}
.btn--send:hover { background: #262626; color: #fff; opacity: 1; }

.form-note {
  padding: 12px 14px;
  border: 1px dashed #cccccc;
  background: #fafafa;
  font-size: 14px;
  line-height: 21px;
}

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.textpage h4 {
  color: var(--c-blue);
  border-bottom: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  margin: 24px 0 8px;
}

.textpage ul { margin-left: 1.25rem; }
.textpage ul ul { margin-top: 8px; }
.textpage .list-plain { list-style: none; margin-left: 0; }

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 60px 15px 90px;
}
.error-page .error-code {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  color: var(--c-blue);
  margin: 0 0 16px;
  font-weight: 300;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 40px;
  margin-top: 50px;
  padding-bottom: 50px;
  background-color: var(--c-footer);
  color: var(--c-white);
  font-weight: 300;
}

.site-footer a,
.site-footer a:link,
.site-footer a:active,
.site-footer a:visited,
.site-footer a:hover {
  color: var(--c-white);
  text-decoration: none;
}

.site-footer .blurb .blurb-icon { color: var(--c-white); font-size: 25px; }
.site-footer .blurb .blurb-body p { font-size: 18px; line-height: 1.5; }

.footer-divider {
  border-top: 1px solid transparent;
  margin: 20px 0;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-nav);
}

.footer-nav li { border-bottom: 1px solid var(--c-white); }

.footer-nav a {
  display: block;
  height: 55px;
  line-height: 55px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
}

.footer-nav a.is-active { font-weight: 700; }

.footer-closing {
  margin-top: 50px;
  padding: 16px 10px;
  background-color: var(--c-box-grey);
  color: var(--c-white);
  text-align: center;
}

.footer-closing p { margin: 0; }
.footer-closing .closing-head { font-size: 14pt; font-weight: 700; }
.footer-closing .closing-head i { margin-right: 6px; }
.footer-closing .closing-dates { font-weight: 700; }

.footerlinks {
  background-color: var(--c-footer-bar);
  color: var(--c-white);
  padding-top: 5px;
  font-size: 14px;
  text-align: center;
}

.footerlinks .container { padding: 0 15px; }

.footerlinks a,
.footerlinks a:link,
.footerlinks a:active,
.footerlinks a:visited,
.footerlinks a:hover {
  color: var(--c-white);
  text-decoration: none;
  font-size: 14px;
}

.footerlinks .made {
  color: var(--c-footer-note);
  line-height: 44px;
  font-size: 14px;
  margin-left: 30px;
}
.footerlinks .made a,
.footerlinks .made a:hover { color: var(--c-footer-note); }

.agency-branding {
  background-color: var(--c-footer-bar);
  color: var(--c-footer-note);
  font-size: 14px;
}
.agency-branding p { margin: 0; }
.agency-branding i { color: #d0021b; }
.agency-branding a { color: var(--c-footer-note); text-decoration: underline; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: var(--c-footer);
  color: #fff;
  padding: 18px var(--gutter);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .25);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.cookie-text { font-size: 15px; line-height: 22px; margin: 0; flex: 1 1 320px; }
.cookie-text a { color: #fff; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; font-size: 16px; padding: 10px 18px; }

.btn--accept { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.btn--accept:hover { background: #0d2f9a; color: #fff; opacity: 1; }
.btn--decline { background: transparent; color: #fff; border-color: #999999; }
.btn--decline:hover { background: rgba(255, 255, 255, .12); color: #fff; opacity: 1; }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* =========================================================
   Responsive
   ========================================================= */

/* --- bis 1023px: Tablet --- */
@media (max-width: 1023px) {
  .col-lg-only { display: none; }

  .brandbar-logo,
  .brandbar-title { text-align: center; }
  .brandbar-logo img { margin: 0 auto; }

  .start-box { margin-top: -140px; }
  .hero-row { margin-bottom: 60px; }
}

/* --- bis 991px --- */
@media (max-width: 991px) {
  .col-md-6  { width: 50%; }
  .col-md-12 { width: 100%; }

  .start-box { margin-top: -80px; }
}

/* --- bis 767px: Mobile --- */
@media (max-width: 767px) {
  body { font-size: 17px; }

  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-12,
  .col-md-6, .col-md-12 { width: 100%; }

  .col-sm-6 { width: 50%; }

  h1 { font-size: 26px; line-height: 34px; }
  .brandbar-title h1 { font-size: 27px; }
  .start-box h1 { font-size: 24px; line-height: 32px; }
  .start-box h2 { font-size: 21px; }

  .start-box {
    margin-top: 0;
    padding: 24px 20px;
  }

  .hero-row { margin-bottom: 40px; }

  .zert-box { margin-bottom: 20px; padding: 24px 16px; }

  .infostrip { padding-top: 45px; text-align: center; }
  .infostrip .icon-img img { margin: 0 auto; }

  .icon-tile { margin-bottom: 32px; }

  .contact-box { margin-bottom: 20px; }

  .form-row { display: block; }
  .form-row label.form-label { display: block; margin-bottom: 4px; }

  .footerlinks .made { display: block; margin-left: 0; line-height: 26px; padding-bottom: 8px; }

  .cookie-inner { justify-content: flex-start; }
}

/* --- Mobile-Navigation ab 600px abwaerts (wie Original) --- */
@media (max-width: 600px) {
  .mainnav { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 601px) {
  .offcanvas,
  .offcanvas-backdrop { display: none; }
}

/* --- Grosse Screens --- */
@media (min-width: 1440px) {
  .brandbar .grid { padding-top: 13px; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .nav-toggle, .offcanvas, .cookie-banner, .site-footer, .footerlinks { display: none !important; }
  body { color: #000; font-size: 12pt; }
}

/* =========================================================
   Joomla-spezifische Ergaenzungen (nach dem Projekt-CSS geladen)
   ========================================================= */

/* Wrapper: Sektionen laufen voll breit, ohne 100vw und ohne Scrollbalken */
#container { width: 100%; overflow-x: hidden; }

.header-row { display: block; }

/* Joomla-Artikelwrapper neutralisieren (sonst eigene Abstaende/Ueberschrift) */
.item-page,
.com-content-article,
.content-item,
.blog,
.blog-featured { margin: 0; padding: 0; }

.item-page > .page-header,
.com-content-article > .page-header { display: none; }

/* Systemmeldungen dezent einpassen */
#system-message-container { padding: 15px; }
#system-message-container .alert {
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  background: #f7f7f7;
  font-size: 16px;
}

/* Google-Maps-Platzhalter (das <iframe> setzt main.js clientseitig) */
.gmap-container {
  width: 100%;
  height: 400px;
  background: #eaeaea;
  overflow: hidden;
}
.gmap-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lb-overlay.is-open { opacity: 1; visibility: visible; }
.lb-overlay img { max-width: 100%; max-height: 90vh; width: auto; height: auto; }
.lb-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Zurueck-nach-oben-Button des Templates */
.cd-top {
  display: block;
  height: 44px;
  width: 44px;
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 1000;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  border-radius: 2px;
  background: var(--c-blue) url(../images/cd-top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.cd-top.cd-is-visible { visibility: visible; opacity: .85; }
.cd-top:hover { opacity: 1; }

@media (min-width: 1024px) {
  .cd-top { height: 52px; width: 52px; right: 28px; bottom: 28px; }
}

/* Der WYSIWYG-Editor macht aus <i> gern <em> – Icons duerfen nicht kursiv werden */
em[class*="fa-"] { font-style: normal; }

/* Buttons muessen spezifischer sein als generische Link-Regeln im Content */
.item-page a.btn,
.com-content-article a.btn,
#container a.btn,
.section a.btn { text-decoration: none !important; }

#container a.btn--outline,
.item-page a.btn--outline {
  color: var(--c-white);
  background: transparent;
  border: 1px solid var(--c-btn-border);
}
#container a.btn--outline:hover,
.item-page a.btn--outline:hover {
  color: var(--c-white);
  background: var(--c-btn-border);
}

#container a.btn--light,
.item-page a.btn--light {
  color: var(--c-dark);
  background-color: var(--c-white);
  border: 1px solid #cccccc;
}
#container a.btn--light:hover,
.item-page a.btn--light:hover {
  color: var(--c-dark);
  background-color: #e6e6e6;
  border-color: #adadad;
}

/* =========================================================
   Nachtrag: Joomla-Beiwerk ausblenden, Buttons statt Anker
   ========================================================= */

/* Joomlas eigener Artikelkopf. Die Menuepunkt-Parameter erledigen das
   ebenfalls; diese Regeln sind die Absicherung. */
.item-page > .page-header,
.com-content-article > .page-header,
#container .page-header,
#container .article-info,
#container .icons,
#container .pagenavigation,
#container .content_rating,
#container .article-index,
#container .tags { display: none; }

/* Sprunglink und Zurueck-nach-oben sind jetzt Buttons */
button.skip-link { font: inherit; cursor: pointer; border: 0; }
button.cd-top { padding: 0; cursor: pointer; border: 0; }
