/* ================================
   MathMoms Akkordeon Styling
   ================================ */

/* Standard: Balkenschrift rot (#a00000) */
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a {
  color: #a00000 !important;
  transition: background-color 200ms ease, color 200ms ease;
}

/* Hover/Fokus: Balken rot, Schrift weiß */
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a:hover,
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a:focus {
  background-color: #a00000 !important;
  color: #ffffff !important;
}

/* Aktives Panel: Balken rot, Schrift weiß */
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel.vc_active .vc_tta-panel-title > a {
  background-color: #a00000 !important;
  color: #ffffff !important;
}

/* Icon-Linien: Hover & aktiv weiß */
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a:hover .vc_tta-controls-icon:before,
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a:hover .vc_tta-controls-icon:after,
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:before,
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:after {
  border-color: #ffffff !important;
  transition: border-color 200ms ease;
}

/* Optional: Icon selbst transitionen */
.mathmoms_akkordion.vc_tta-color-grey.vc_tta-style-classic 
  .vc_tta-panel .vc_tta-panel-title > a .vc_tta-controls-icon {
  transition: color 200ms ease, fill 200ms ease, stroke 200ms ease;
}

/* ================================
   MathMoms 3D-Button
   ================================ */


.mathmoms_3dbutton {
    position: relative; /* für pseudo-element */
    background: linear-gradient(to bottom, #e17a00 0%, #c86700 100%) !important;
    border: 1px solid #b75f00 !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3) !important; /* Schatten unten rechts */
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    overflow: visible; /* wichtig, damit pseudo-element sichtbar ist */
}

/* Helle Kante oben/links mit ::before */
.mathmoms_3dbutton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: rgba(255,255,255,0.3); /* helle Kante */
    pointer-events: none; /* blockiert keine Klicks */
}

/* Button gedrückt */
.mathmoms_3dbutton:active {
    box-shadow: 1px 1px 4px rgba(0,0,0,0.3) !important;
    transform: translateY(2px) !important;
}

/* Hover */
.mathmoms_3dbutton:hover {
    background: linear-gradient(to bottom, #e78f00 0%, #d46a00 100%) !important;
}