/*
 * Meistergürtel – Template-Styles (Joomla 6 / Bootstrap 5)
 * Portiert aus nagel.werbeagentur.css (2018) – NAGEL Werbeagentur, Marco Marchese
 */

/* ---------------------------------------------------------------- Fonts (lokal) */
@font-face {
  font-family: 'Italianno';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/italianno-v16-latin-regular.woff2') format('woff2'),
       url('../fonts/italianno-v16-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Abel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abel-v18-latin-regular.woff2') format('woff2'),
       url('../fonts/abel-v18-latin-regular.woff') format('woff');
}

/* ---------------------------------------------------------------- Variablen */
:root {
  --mg-bg: #dadad2;
  --mg-bg-light: #f9f9f9;
  --mg-text: #666;
  --mg-dark: #35342e;
  --mg-footer: #373735;
  --mg-accent: #ccccc8;
  --mg-script: 'Italianno', cursive;
  --mg-sans: 'Abel', sans-serif;

  /* Bootstrap 5 an das Design anpassen */
  --bs-body-font-family: var(--mg-sans);
  --bs-body-color: var(--mg-text);
  --bs-body-bg: var(--mg-bg);
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color-rgb: 153, 153, 153;

  /* Swiper */
  --swiper-navigation-color: #fff;
  --swiper-navigation-size: 32px;

  /* Kopf */
  --mg-header-bg: rgba(249, 249, 247, .97);
  --mg-header-h: 132px;
  --mg-header-h-small: 84px;
  --mg-logo: 116px;
  --mg-logo-small: 68px;
  --mg-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- Basis */
* { margin: 0; padding: 0; }

html,
body {
  font: 17px/19px var(--mg-sans);
  letter-spacing: 0;
  color: var(--mg-text);
  background: var(--mg-bg);
  width: 100%;
  min-height: 100%;
}

body { overflow-x: hidden; }

table { font: 17px/19px var(--mg-sans); color: var(--mg-text); }

h1, h2, h3, h4, h6 {
  font-family: var(--mg-script);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  color: var(--mg-dark);
}
h1 { font-size: 64px; line-height: 68px; }
h2 { font-size: 48px; line-height: 52px; }
h3 { font-size: 32px; line-height: 36px; }
h4 { font-size: 42px; line-height: 46px; }
h6 { font-size: 48px; line-height: 52px; color: var(--mg-bg); }

p { margin: 5px 0; }
strong { color: #000; font-weight: 700; }

a { color: #000; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
a:hover,
a:focus { color: #999; text-decoration: none; }

:focus-visible { outline: 2px solid var(--mg-dark); outline-offset: 2px; }

blockquote { margin-left: 15px; }

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
  padding: .5rem 1rem;
  background: #fff;
}

/* ---------------------------------------------------------------- Hilfsklassen */
.bordertop { border-top: 5px solid var(--mg-text); }
.borderbottom { border-bottom: 5px solid var(--mg-text); }
.floatRight { float: right !important; }
.floatLeft { float: left !important; }
.bgDark { background: var(--mg-dark); color: var(--mg-bg); }
.trans80 { background: var(--mg-bg); opacity: .8; }
.schatten { box-shadow: 0 0 25px #5d5d5d; }
.daten ul { margin: 10px 0 10px 25px; }

/* Responsive Maps / iframes */
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.embed-container iframe,
.embed-container object,
.embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Toprow (Telefon / E-Mail) */
.toprow {
  background: var(--mg-footer);
  color: #e9e9e4;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
}
.toprow .container-xxl { min-height: 36px; }
.toprow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 0;
  color: #e9e9e4;
  text-decoration: none;
}
.toprow-link svg { flex: none; opacity: .85; transition: transform .3s var(--mg-ease); }
.toprow-link:hover,
.toprow-link:focus { color: #fff; text-decoration: none; }
.toprow-link:hover svg { transform: scale(1.15); }

/* ---------------------------------------------------------------- Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--mg-header-bg);
  box-shadow: 0 1px 0 rgba(53, 52, 46, .08);
  transition: box-shadow .35s var(--mg-ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(53, 52, 46, .14); }

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--mg-header-h);
  transition: min-height .35s var(--mg-ease);
}
.site-header.is-scrolled .header-inner { min-height: var(--mg-header-h-small); }

.brand { display: block; flex: none; line-height: 0; }
.brand img {
  width: var(--mg-logo);
  height: auto;
  transition: width .35s var(--mg-ease), transform .35s var(--mg-ease);
}
.site-header.is-scrolled .brand img { width: var(--mg-logo-small); }
.brand:hover img { transform: rotate(-4deg) scale(1.03); }

/* Desktop: links – Logo – rechts */
.mainnav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}
.mainnav {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mainnav-left { justify-content: flex-end; }
.mainnav-right { justify-content: flex-start; }

.mainnav .nav-item { position: relative; display: flex; align-items: center; }
.mainnav .nav-link {
  position: relative;
  padding: .75rem 0;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mg-dark);
  white-space: nowrap;
}
.mainnav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--mg-ease);
}
.mainnav .nav-item:hover > .nav-link::after,
.mainnav .nav-link:focus-visible::after,
.mainnav .nav-item.active > .nav-link::after { transform: scaleX(1); }
.mainnav .nav-link:hover { color: var(--mg-dark); }

/* Pfeil für Untermenü */
.dd-toggle {
  width: 22px;
  height: 22px;
  margin-left: .2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--mg-dark);
}
.dd-toggle::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: 4px auto 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--mg-ease);
}
.has-dropdown:hover .dd-toggle::before,
.has-dropdown.is-open .dd-toggle::before { transform: rotate(225deg) translate(-2px, -2px); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 250px;
  padding-top: .9rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--mg-ease), transform .3s var(--mg-ease), visibility 0s linear .3s;
}
.dropdown-panel ul {
  margin: 0;
  padding: .75rem 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--mg-dark);
  box-shadow: 0 18px 40px rgba(53, 52, 46, .18);
}
.dropdown-panel a,
.dropdown-panel span {
  display: block;
  padding: .55rem 1.5rem;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--mg-text);
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .25s var(--mg-ease);
}
.dropdown-panel a:hover,
.dropdown-panel a:focus-visible { background: var(--mg-bg-light); color: #000; padding-left: 1.85rem; }
.dropdown-panel .current > a { color: #000; }
.dropdown-panel .dd-overview a {
  margin-bottom: .35rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #ecece7;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mg-dark);
}
.has-dropdown:hover > .dropdown-panel,
.has-dropdown:focus-within > .dropdown-panel,
.has-dropdown.is-open > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

/* Mobil: Logo links, Burger rechts */
.mobilebar { align-items: center; justify-content: space-between; width: 100%; }
@media (max-width: 991.98px) {
  :root {
    --mg-header-h: 84px;
    --mg-header-h-small: 66px;
    --mg-logo: 68px;
    --mg-logo-small: 52px;
  }
}

.burger {
  position: relative;
  z-index: 1060;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mg-dark);
  cursor: pointer;
}
.burger-lines { position: relative; display: block; width: 26px; height: 18px; }
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--mg-ease), opacity .2s, top .35s var(--mg-ease);
}
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 8px; width: 70%; left: 30%; }
.burger-lines span:nth-child(3) { top: 16px; }
.overlay-close {
  position: absolute;
  top: 18px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: rotate(-90deg);
  transition: transform .5s .1s var(--mg-ease), background .2s;
}
.nav-overlay.is-open .overlay-close { transform: none; }
.overlay-close:hover { background: rgba(255, 255, 255, .08); }
.overlay-close::before,
.overlay-close::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 11px;
  width: 26px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.overlay-close::after { transform: rotate(-45deg); }

/* Overlay-Navigation */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  overflow-y: auto;
  background: #2b2a25;
  color: #fff;
  opacity: 0;
  clip-path: circle(0 at calc(100% - 36px) 40px);
  transition: opacity .35s var(--mg-ease), clip-path .6s var(--mg-ease);
}
.nav-overlay[hidden] { display: none; }
.nav-overlay.is-open { opacity: 1; clip-path: circle(150% at calc(100% - 36px) 40px); }
.overlay-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 5.5rem 2rem 2.5rem;
}
.overlay-home,
.overlay-list > li > a,
.ov-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .55rem 0;
  border: 0;
  background: none;
  font-family: var(--mg-script);
  font-size: 44px;
  line-height: 1.15;
  color: #fff;
  text-align: left;
  text-decoration: none;
}
.overlay-home,
.overlay-list > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--mg-ease), transform .45s var(--mg-ease);
  transition-delay: calc(.12s + var(--i, 0) * .05s);
}
.overlay-list > li { transition-delay: calc(.17s + var(--i, 0) * .05s); }
.nav-overlay.is-open .overlay-home,
.nav-overlay.is-open .overlay-list > li { opacity: 1; transform: none; }
.overlay-home { font-family: var(--mg-sans); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--mg-accent); }
.overlay-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.overlay-list > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.overlay-list a:hover,
.overlay-list a:focus,
.ov-toggle:hover,
.overlay-home:hover { color: var(--mg-accent); }
.overlay-list .current > a { color: var(--mg-accent); }
.ov-caret {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--mg-ease);
}
.ov-toggle[aria-expanded="true"] .ov-caret { transform: rotate(225deg); }
.ov-sub { margin: 0 0 .75rem; padding: 0 0 0 .25rem; list-style: none; }
.ov-sub a,
.ov-sub span {
  display: block;
  padding: .4rem 0;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d6d6cf;
  text-decoration: none;
}
.overlay-foot {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 2rem;
  font-size: 16px;
  opacity: 0;
  transition: opacity .5s .45s;
}
.nav-open .overlay-foot { opacity: 1; }
.overlay-foot a { display: inline-flex; align-items: center; gap: .6rem; color: #e9e9e4; text-decoration: none; }
.overlay-foot a:hover { color: #fff; }
.overlay-legal { margin-top: 1rem; font-size: 14px; color: #aaa; }
.overlay-legal a { display: inline; color: #aaa; }
html.nav-open,
html.nav-open body { overflow: hidden; }

/* ---------------------------------------------------------------- Kopfbild mit Seitentitel (Unterseiten) */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(220px, 30vw, 360px);
  padding: 3rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.page-hero--produkt { min-height: clamp(200px, 22vw, 280px); }
.page-hero-bg {
  position: absolute;
  inset: -2%;
  z-index: -2;
  background-position: center;
  background-size: cover;
  animation: heroZoom 14s var(--mg-ease) both;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(43, 42, 37, .45) 0%, rgba(43, 42, 37, .65) 100%);
}
.page-hero .container { width: 100%; }
.page-hero-title {
  margin: 0;
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  animation: fadeUp .9s .1s var(--mg-ease) both;
}
.page-hero-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  margin: 1.1rem auto 0;
  background: rgba(255, 255, 255, .8);
  transform-origin: center;
  animation: lineGrow .8s .5s var(--mg-ease) both;
}
.page-hero-breadcrumbs { margin-top: 1rem; animation: fadeUp .9s .3s var(--mg-ease) both; }
.page-hero-breadcrumbs .breadcrumb,
.page-hero-breadcrumbs ol {
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: .08em;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85);
}
.page-hero-breadcrumbs a { color: #fff; text-decoration: none; }
.page-hero-breadcrumbs a:hover { color: var(--mg-accent); }
.page-hero-breadcrumbs .mod-breadcrumbs__here,
.page-hero-breadcrumbs .float-start { display: none; }

/* Inhalt rückt leicht in das Kopfbild */
.is-subpage main > .com-content-article { margin-top: -2.5rem; position: relative; z-index: 2; }
.is-subpage main > .com-content-category-blog { padding-top: 3rem; }
.is-produkt main > .com-content-article { margin-top: 0; padding-top: 2.5rem; }

.content-card {
  background: var(--mg-bg-light);
  box-shadow: 0 20px 50px rgba(53, 52, 46, .14);
  border-top: 3px solid var(--mg-dark);
}
.content-card h3 { margin-bottom: .5rem; }
.content-card p,
.content-card li { line-height: 1.55; }

.article-figure img,
.produkt-figure img { box-shadow: 0 16px 40px rgba(53, 52, 46, .18); }

/* ---------------------------------------------------------------- Bilder in Inhalten */
.mg-figure {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(53, 52, 46, .18);
}
.mg-figure img { display: block; width: 100%; height: auto; transition: transform .8s var(--mg-ease); }
.mg-figure a:hover img,
.mg-figure:hover img { transform: scale(1.04); }
.mg-figure figcaption { padding: .6rem .9rem; font-size: 14px; background: #fff; color: var(--mg-text); }

/* Galerie (Materialien) – Klick öffnet die Lightbox */
.mg-galerie {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 2.5rem;
}
.mg-galerie a {
  position: relative;
  display: block;
  overflow: hidden;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  background: #e9e9e4;
}
.mg-galerie a:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 3 / 2; }
.mg-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mg-ease), filter .5s; }
.mg-galerie a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 42, 37, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") no-repeat center / 44px;
  opacity: 0;
  transition: opacity .4s var(--mg-ease);
}
.mg-galerie a:hover img,
.mg-galerie a:focus-visible img { transform: scale(1.07); }
.mg-galerie a:hover::after,
.mg-galerie a:focus-visible::after { opacity: 1; }
@media (max-width: 767.98px) {
  .mg-galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mg-galerie a,
  .mg-galerie a:nth-child(-n+2) { grid-column: span 1; aspect-ratio: 1; }
  .mg-galerie a:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* Lederfarben */
.lederfarben-intro { max-width: 46rem; margin: 0 auto 2.5rem; font-size: 19px; line-height: 1.6; text-align: center; }
.lederfarben .row + .row { margin-top: .75rem; }
.lederfarben img { transition: transform .5s var(--mg-ease), box-shadow .5s; }
.lederfarben .row:hover img { transform: translateX(6px); box-shadow: 0 10px 24px rgba(53, 52, 46, .2); }

/* Infoblock (Ledergürtel: Breite, Länge, Befestigung) */
.mg-infoblock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e4e4de;
}
.mg-info {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(53, 52, 46, .08);
  transition: transform .4s var(--mg-ease), box-shadow .4s var(--mg-ease);
}
.mg-info:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(53, 52, 46, .14); }
.mg-info::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--mg-dark) no-repeat center / 24px;
}
.mg-info--breite::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M8 7l4-4 4 4M8 17l4 4 4-4'/%3E%3Cpath d='M4 9h3M4 15h3M17 9h3M17 15h3'/%3E%3C/svg%3E"); }
.mg-info--laenge::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E"); }
.mg-info--befestigung::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.mg-info h3 { margin: 0 0 .4rem; }
.mg-info p { margin: 0 0 .5rem; }
.mg-info a { white-space: nowrap; }
.mg-cta { margin-top: 2.5rem; text-align: center; }
.mg-cta a {
  display: inline-block;
  padding: .7rem 1.75rem;
  background: var(--mg-dark);
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, transform .3s var(--mg-ease);
}
.mg-cta a:hover { background: #000; color: #fff; transform: translateY(-2px); }
@media (max-width: 991.98px) {
  .mg-infoblock { grid-template-columns: 1fr; }
}

/* Kontakt */
.kontakt-daten { font-size: 18px; line-height: 1.6; }
.kontakt-daten a { white-space: nowrap; }

/* ---------------------------------------------------------------- Startseite: Traditionsgeschäft */
.home-shop .shop-bild { box-shadow: 0 20px 50px rgba(53, 52, 46, .2); }

/* ---------------------------------------------------------------- Footer-Logo */
.footer-logo { display: inline-block; margin-bottom: 1.25rem; line-height: 0; }
.footer-logo img { width: 140px; height: auto; opacity: .92; transition: opacity .3s, transform .5s var(--mg-ease); }
.footer-logo:hover img { opacity: 1; transform: rotate(-4deg); }
.footer-kontakt figure { display: none; } /* altes Logo im Modul, falls noch vorhanden */

/* ---------------------------------------------------------------- Animationen */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Scroll-Einblendung: Klasse .reveal setzt template.js, ohne JS bleibt alles sichtbar */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--mg-ease), transform .9s var(--mg-ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.reveal-zoom { transform: scale(.96); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Produktkacheln: sanfter Zoom */
.produkt-kachel figure a { display: block; overflow: hidden; }
.produkt-kachel figure img { transition: transform .8s var(--mg-ease); }
.produkt-kachel:hover figure img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .nav-overlay { clip-path: none; }
}

/* ---------------------------------------------------------------- Startseite: Slider + Slogan */
.mainimage { position: relative; }

.slogan {
  position: absolute;
  top: 30%;
  left: max(2rem, calc(50% - 640px));
  z-index: 10;
  width: 700px;
  animation: fadeUp 1.1s .2s var(--mg-ease) both;
  text-align: center;
  pointer-events: none;
}
.slogan p { margin: 0; font-family: var(--mg-script); font-weight: 400; }
.slogan-1 { font-size: 64px; line-height: 78px; margin-bottom: 10px !important; }
.slogan-2 { font-size: 34px; line-height: 48px; }
.slogan span { background: rgba(53, 52, 46, .8); color: #fff; padding: 3px 15px; }

.slider-one .swiper-slide img { width: 100%; height: auto; display: block; }

.produkte-home .swiper { padding: 0 0 10px; }
.produkte-home figure { margin: 0; }
.produkte-home .swiper-button-prev,
.produkte-home .swiper-button-next { text-shadow: 0 0 6px rgba(0, 0, 0, .6); }

/* Platzhalter, solange ein Produktbild noch fehlt */
.produkt-platzhalter {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9e9e4 url(../images/meisterguertel-garmisch-logo-sm.png) no-repeat center / 40%;
  opacity: .6;
}

/* ---------------------------------------------------------------- Produkte */
.produktbeschreibung { background: var(--mg-bg-light); text-align: left; padding: 10px; }
.preis { font-size: 18px; padding: 10px 0; display: block; margin: 0; }
.preis table { width: 100%; }

a.detailLinks,
a.detailLinks:focus {
  display: block;
  background: var(--mg-text);
  color: #f2f2f2 !important;
  padding: 5px;
  text-decoration: none;
}
a.detailLinks:hover { background: var(--mg-dark); }

.catdetails {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #000;
}

.produkt-kachel figure { margin: 0 0 .5rem; }
.produkt-kachel figcaption h3 { margin-top: .5rem; }
.produkt-kachel h3 a,
.produkte-home h3 a { text-decoration: none; }

/* ---------------------------------------------------------------- Formulare (RSForm!Pro) */
label,
select { font-size: 20px; color: var(--mg-text); }

.rsform .form-control,
.rsform .form-select {
  padding: 8px;
  background-color: #fff;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 0;
  /*box-shadow: 0 0 4px #aaa;*/
  transition: background .3s linear;
}
.rsform .form-control:hover,
.rsform .form-select:hover { background-color: #eee; }
.rsform .form-select { padding-right: 2.25rem; }
.rsform textarea.form-control { min-height: 200px; }
.rsform .form-check-label { font-size: 14px; }
.rsform .formDescription,
.rsform .form-text { font-size: 14px; }

.rsform .btn-primary,
.rsform button[type="submit"] {
  margin-top: 10px;
  padding: .5rem 1.5rem;
  color: #eee;
  text-transform: uppercase;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(#373735, #535350);
  transition: box-shadow .3s linear;
}
.rsform .btn-primary:hover,
.rsform button[type="submit"]:hover { box-shadow: 0 0 20px #555; }


.ts-bild { display: flex; align-items: center; gap: 10px; }
.ts-bild img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.ts-dropdown .option { padding: 6px 10px; }

.form-check-input:checked {
    background-color: var(--mg-footer);
    border-color: var(--mg-footer);
}

/* ---------------------------------------------------------------- Footer */
footer { background-color: var(--mg-footer); color: #fff; }
footer strong { color: #fff; }
footer a { color: var(--mg-bg); text-decoration: none; }
footer a:hover,
footer a:focus { color: #fff; text-decoration: underline; }
footer ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- Popups (tmpl=component in GLightbox) */
.tmpl-component { background: #fff; }
.tmpl-component .produktbeschreibung { margin-top: 0 !important; }
.glightbox-clean .gslide-external { background: #fff; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 991.98px) {
  .slogan { display: none; }
  h1,
  h2 { font-size: 36px; line-height: 40px; }
}

/* ---------------------------------------------------------------- Cookiebot */
#CybotCookiebotDialog { background-color: #fff !important; }
#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyButtonAccept,
#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonAccept,
#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
  background-color: var(--mg-footer) !important;
  border-color: var(--mg-footer) !important;
}
#CybotCookiebotDialogFooter .CybotCookiebotDialogBodyButton { border: 2px solid var(--mg-footer) !important; }
#CybotCookiebotDialogHeader,
#CybotCookiebotDialogPoweredbyCybot,
#CybotCookiebotDialogPoweredbyLink { width: 0 !important; overflow: hidden !important; border-bottom: 0 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetails a,
#CybotCookiebotDialog #CybotCookiebotDialogBodyContentText a,
#CybotCookiebotDialog .CybotCookiebotDialogDetailBodyContentCookieLink,
#CybotCookiebotDialogDetailBodyContentTextAbout a,
#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink:hover { color: var(--mg-footer) !important; }
#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive {
  border-bottom: 1px solid var(--mg-footer) !important;
  color: var(--mg-footer) !important;
}
#CybotCookiebotDialogTabContent input:checked + .CybotCookiebotDialogBodyLevelButtonSlider { background-color: var(--mg-footer) !important; }

/* ---------------------------------------------------------------- Sanftes Scrollen (ersetzt jQuery-Animation) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
