/* -----------------------------
   Schriftart global einbinden
----------------------------- */
@font-face {
  font-family: "Opificio";
  src: url("/media/fonts/Opificio.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Standard-Schrift im Template setzen */
:root {
  --cassiopeia-font-family-base: "Opificio", serif;
}

body,
.moduletable,
.article-body {
  font-family: var(--cassiopeia-font-family-base);
}

/* Überschriften erzwingen */
h1, h2, h3, h4, h5, h6 {
  font-family: "Opificio", serif;
}

/* -----------------------------
   Header / Logo-Bereich
----------------------------- */

/* Logo-Container mittig */
.container-header .navbar-brand {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Header-Hintergrund durchsichtig + kein Schatten */
.container-header {
  background: transparent;
  box-shadow: none;
}

/* Logo skalieren */
.container-header .brand-logo img {
  max-width: 550px;
  height: auto;
}

@media (max-width: 600px) {
  .container-header .brand-logo img {
    max-width: 180px;
  }
}

.container {
  max-width: 100% !important; /* Damit es den ganzen Bildschirm nutzt */
  padding-left: 20px !important;  /* eigenen Abstand definieren */
  padding-right: 20px !important;
}


/* -----------------------------
   Slider / Hero-Elemente
----------------------------- */
.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.carousel-caption .btn {
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
}

.hero-image {
  position: relative;
  text-align: center;
  color: white;
}

.hero-image img {
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-text .btn {
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
}

/* -----------------------------
   Buttons (Gold-Farbschema)
----------------------------- */
.btn-primary {
  background-color: #bfa14a; /* helles Gold */
  border-color:   #bfa14a;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #d4af37; /* kräftigeres Gold beim Hover */
  border-color:   #d4af37;
  color: #fff;
}

/* -----------------------------
   Hauptmenü (Top-A, horizontal)
----------------------------- */

/* Hauptmenü horizontal zentrieren */
.container-top-a ul.mod-menu {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menü-Elemente */
.container-top-a ul.mod-menu > li {
  display: inline-block !important;
  position: relative; /* notwendig für Dropdown-Positionierung */
}

/* Links im Menü */
.container-top-a ul.mod-menu > li > a {
  font-family: "Opificio", serif;
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

/* Hover-Effekt in Gold */
.container-top-a ul.mod-menu > li > a:hover {
  color: #bfa14a;
  border-bottom: 2px solid #bfa14a;
}

/* -----------------------------
   Dropdown-Untermenüs
----------------------------- */

/* Untermenü standardmäßig verstecken */
.container-top-a ul.mod-menu li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px); /* 6px Abstand nach unten */
  left: 50%; /* mittig am Parent */
  transform: translateX(-50%);
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  z-index: 1000;
  min-width: 180px;
}

/* Untermenü beim Hover des Parent-Elements anzeigen */
.container-top-a ul.mod-menu > li:hover > ul {
  display: block;
}

/* Untermenü-Links */
.container-top-a ul.mod-menu li ul li a {
  display: block;
  padding: 8px 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
}

/* Hover-Effekt für Untermenü */
.container-top-a ul.mod-menu li ul li a:hover {
  background: rgba(191,161,74,0.08);
  color: #bfa14a;
}

/* -----------------------------
   Container Top-B
----------------------------- */
.container-top-b {
  box-shadow: none;
  border-color: none;
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* -----------------------------
   Footer / Social Icons
----------------------------- */
.footer-social {
  text-align: center;
  margin-top: 20px;
}

.footer-social span {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-social .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-social .social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.footer-social .social-icons img:hover {
  transform: scale(1.1);
}

/* Footer Hintergrund transparent + goldener Schatten */
.container-footer {
  background: transparent !important;
  box-shadow: 0 -1px 2px #bfa14a, 0 1px 2px #bfa14a;
  padding: 20px 0;
  color: black;
}

/* -----------------------------
   Bilder in Top-B Container
----------------------------- */
.site-grid > .container-top-b {
  grid-column: 1 / -1;
  padding: 0 6%;
  box-sizing: border-box;
}

.site-grid > .container-top-b img {
  width: 100%;
  height: auto;
  display: block;
}






