/* ============================
   📁 1. Hauptmenü / Submenüs
============================ */

/* Submenü öffnen per .hover (via JS oder Maus) */
nav.mainmenu li.hover > ul.vlist.level_2 {
  display: block;
  /* ggf. erweitern mit visibility, opacity, z-index */
}

/* Sichtbarkeit & Layout der Submenüeinträge */
.mainmenu ul li:hover .level_2 li,
.mainmenu ul li.hover .level_2 li {
  display: inline-block;
  padding: 4em 2em 3em 2em;
  min-width: 200px;
  font-size: 1em;
  background: #efefef;
}

/* Hintergrundbereich des Submenüs */
.mainmenu ul li:hover .level_2,
.mainmenu ul li.hover .level_2 {
  background: #efefef;
}

/* Spezialfall: Produkte-Menü weiter nach links verschieben */
.mainmenu ul li.produkte-seite:hover .level_2,
.mainmenu ul li.produkte-seite.hover .level_2 {
  margin-left: -160px;
}

/* Link-Farben bei Hover, Fokus oder aktivem Zustand */
#header.header .mainmenu ul li ul li a:hover:not(.menuheader):not(.megamenu),
#header.header .mainmenu ul li.hover ul li a:hover:not(.menuheader):not(.megamenu),
#header.header .mainmenu ul ul li a:hover:not(.menuheader):not(.megamenu),
#header.header .mainmenu ul ul li a:focus:not(.menuheader):not(.megamenu),
#header.header .mainmenu ul ul li a.active,
#header.header .mainmenu ul ul li a.trail:not(.megamenu) {
  color: #000 !important;
}

/* Border-Stil für aktive/hover/fokussierte Submenü-Links */
.new-menu .mainmenu ul li .level_2 li:hover a,
.new-menu .mainmenu ul li.hover .level_2 li a:focus,
.new-menu .mainmenu ul li.hover .level_2 li a:hover {
  border-bottom: 5px solid #af8538;
  transition: none;
}

/* Fokus-Style für alle Hauptmenü-Links */
.mainmenu ul li a:focus-visible {
  background: #b0843987;
  outline: 2px solid #af8538;
  outline-offset: -2px;
}


/* ============================
   📱 2. Social Media Icons
============================ */

/* Facebook: Hover & Fokus */
.mod_socials.color i.fa-facebook,
.mod_socials .social-icons.color i.fa-facebook,
.mod_socials a:hover i.fa-facebook,
.mod_socials a:focus-visible i.fa-facebook {
  background: rgb(67, 96, 152) !important;
  color: rgb(255, 255, 255) !important;
}

/* Instagram: Hover & Fokus */
.mod_socials.color i.fa-instagram,
.mod_socials .social-icons.color i.fa-instagram,
.mod_socials a:hover i.fa-instagram,
.mod_socials a:focus-visible i.fa-instagram {
  background: rgb(167, 124, 98) !important;
  color: rgb(255, 255, 255) !important;
}

/* YouTube: Hover & Fokus */
.mod_socials.color i.fa-youtube,
.mod_socials .social-icons.color i.fa-youtube,
.mod_socials a:hover i.fa-youtube,
.mod_socials a:focus-visible i.fa-youtube {
  background: rgb(220, 33, 48) !important;
  color: rgb(255, 255, 255) !important;
}


/* ============================
   🔒 3. Login-Bereich Fokus
============================ */

/* Händler-Login hervorheben bei Tastaturfokus */
.mod_login_top:focus-within {
  background: #b0843987;
  outline: 2px solid #af8538;
  outline-offset: -2px;
}


/* ============================
   🎯 4. Top-Bar Layout (Flexbox statt Float)
============================ */

#top .inside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1em;
  flex-wrap: wrap;
}

/* Reihenfolge und Verhalten der Top-Bar-Elemente */
.mod_top_phone {
  order: 1;
  flex-grow: 1;
}

.mod_login_top {
  order: 2;
}

.mod_socials {
  order: 3;
}


.logo a:focus-visible {
  outline: 2px solid #af8538;
  outline-offset: 4px;
  border-radius: 4px; /* optional: leicht abgerundet */
  background-color: #b0843987; /* optional: dezenter Hintergrund */
}
.button-produkt .button-link:focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
 
  border-radius: 2px; /* optional, für weichere Ecken */
}

.newsteaser a:not(.teaser-link),
.newsteaser [tabindex]:not(.teaser-link) {
  pointer-events: none;
  tabindex: -1; /* nur deklarativ – nicht wirksam im CSS, aber zeigt Absicht */
}

.teaser-link:focus-visible {
  background-color: rgba(175, 133, 56, 1) !important; /* gold transparent overlay */
  box-shadow: inset 0 0 0 5px #af8538; /* goldener Innenrahmen */
  outline: none;
  
}
.hyperlink_txt.default:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #e30613; /* innerer roter Rahmen */
  border-radius: 2px; /* falls du abgerundete Ecken möchtest */
}
.footer-links a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  color: #af8538; /* Gold, passend zum Stil */
}

/* Overlay wie bei Hover auch zeigen, wenn etwas in der Karte fokussiert ist */
.newsteaser_v8:focus-within .item-overlay {
  opacity: 1;
  transform: none;
}

/* Fokussierte Links klar sichtbar */
.newsteaser_v8 a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* 0) Make the card a positioning context for the overlay */
.content_page .newsteaser_v8 {
  position: relative; /* if not already */
}

/* 1) Base (non-hover) image: define the transition here, not on :hover */
.content_page .newsteaser_v8 > .image_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* your visual baseline */
  filter: grayscale(90%) brightness(0.7);
  opacity: 0.2;

  /* put the transition on the base so both hover and focus-within animate */
  transition: filter .5s ease, opacity .5s ease;
}

/* 2) Mirror hover effect for keyboard focus */
.content_page .newsteaser_v8:hover > .image_container img,
.content_page .newsteaser_v8:focus-within > .image_container img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* 3) Overlay: make sure it’s absolutely positioned and keyboard-visible */
.content_page .newsteaser_v8 .item-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity .3s ease, transform .3s ease;
}

/* Show overlay on hover AND when any child has focus */
.content_page .newsteaser_v8:hover .item-overlay,
.content_page .newsteaser_v8:focus-within .item-overlay {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* Optional: focus ring for links inside the card */
.content_page .newsteaser_v8 a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.newsteaser_v8:focus-within .newsteaser_v8_content {
    top: -150%;
}

#bottom .inside .right a:focus-within, #footer a:focus-within {
    text-decoration: underline;
    color: var(--abkgold);
    background: rgb(255 0 0 / 10%);
    padding: 10px;
}

#footer figure a:focus-within {
padding: 0px;

}
#footer figure a:focus-within img {
    border:2px solid red;
    border-radius: 5px;
    padding: 5px;
}
#footer .mod_socials a:focus-within i {
    border: 1px solid red;
}

