/*
Theme Name: hello-child
Description: custom WP-styles
Author: tp
Author URI: https://angenehme-gestaltung.de
Author Email: tp@angenehme-gestaltung.de
Version: 1.0.0
Text Domain: hello-elementor-child
Template: hello-elementor
*/


/*
custom styles
*/

.pdfemb-viewer .pdfemb-pagescontainer.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
    cursor: initial!important;
}

.letter-categories h5 {display: none;}
.letter-categories ul {
    padding: 1rem 0;
    margin-left: -2px;    
}
.letter-categories li  {
    list-style: none;
    display: inline-block;
    margin: 4px;
    border-radius: 8px;
    background-color: #b7b6b6;
    padding: 5px 12px;
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: 1rem;   
    color: white; 
    }

.elementor-widget-taxonomy-filter .e-filter-item,  .elementor-kit-10 button:focus {
    margin:0px;
    border-radius: 8px;
    background-color: #b7b6b6;
    padding: 5px 12px;
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: 1rem; 
    color: white;
}

.elementor-widget-taxonomy-filter .e-filter-item:hover
{
    background-color: #5f5f5f;    
    color: white;
    border-radius: 8px;
}
.elementor-widget-taxonomy-filter .e-filter-item:hover:not([aria-pressed=true]) {
    border-color: #0c0d0e;
    color: #f3f6f8;
    }

.elementor-widget-taxonomy-filter .e-filter-item[aria-pressed=true]
{
    background-color: #ca5d19;    
    color: white;
    border-radius: 8px;
}


.letter-categories li a {color: white;}

.letter-list-item:hover p,
.letter-list-item:hover .letter-list-date
{color: var( --e-global-color-accent );}

.letter-fileformat::before {
    content: "original fileformat:";
    font-weight: 400;
}

.letter-sender::before {
    content: "from";
    font-weight: 400;
}

.letter-recipient::before {
    content: "to";
    font-weight: 400;
}

.list-sender::before {
    content: "Letter from";
    color:#919090;
}

.letter-postnav-top .elementor-post-navigation {
    display: inline;
}

.letter-postnav-top .elementor-post-navigation .elementor-post-navigation__prev{
    padding-bottom: 0.5rem;
    right: 8px;
    position: relative;
}

.letter-postnav-top .elementor-post-navigation__prev,
.letter-postnav-top .elementor-post-navigation__next {
    width: max-content;
    text-align: right;
}

.elementor-post-navigation .elementor-post-navigation__next a
Specificity: (0,2,1)
 {
    justify-content: flex-end;
    padding-left: 37px;
    right: 0;
}

.elementor-post-navigation .elementor-post-navigation__next a {
        padding-left: 37px;   
}

.elementor-kit-10 p {
    margin-block-end: 0;
}

.pdfemb-viewer {border-radius: 10px!important;}

/* Txa Annotations-switch-positionierung */


#txa-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 8px;
  position: absolute;
  right: 10px;
  top: -39px;
}

#txa-toolbar button.txa-type-btn[data-type="register"] {
    display: none;
}

.txa-mark {
  border-bottom: 0;  
}

#txa-popup[data-type="kommentar"] {
    border-left: 0;
}

#txa-popup {
    width: 400px;
}



#txa-popup-title {
    font-size: 14px;
    font-weight: 600;
   font-family: "DMsans", Sans-serif;   
}

#txa-btn-edit-ann, 
#txa-btn-delete-ann,
#txa-edit-cancel,
#txa-edit-save {
    font-family:"DMsans", Sans-serif;
}

#txa-popup-body {
    padding: 1.2rem;
}

.txa-toggle input:checked ~ .txa-toggle-track {
    background: #a6a1a1;
}

.txa-toggle-label {
    font-family:"DMsans", Sans-serif;
}

/* ── Toggle Basis (geteilt zwischen Annotation-Switch und Filter-Switch) ── */

.txa-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.txa-toggle input[type="checkbox"] { display: none; }
.txa-toggle-track {
  width: 34px; height: 18px; border-radius: 9px;
  background: #c8c7c0; position: relative; transition: background 0.2s; flex-shrink: 0;
}
.txa-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.txa-toggle input:checked ~ .txa-toggle-track { background: #1a1a1a; }
.txa-toggle input:checked ~ .txa-toggle-track::after { transform: translateX(16px); }
.txa-toggle-label { font-size: 12px; color: #555; }

/* ── Annotation-Switch (überschreibt Basis via ID-Spezifität) ── */

#txa-toggle-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 0 0 8px;
  position: absolute;
  right: 10px;
  top: -39px;
}

#txa-toggle-wrap .txa-toggle input:checked ~ .txa-toggle-track {
  background: #a6a1a1;
}

#txa-toggle-wrap .txa-toggle-label {
  font-family: "DMsans", Sans-serif;
}

/* ── Filter-Switch ── */

#txa-filter-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 8px;
}



/* ── Fußnotenliste [tx_fussnoten]  ── */

.txa-fussnoten {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  width: 90%;
}

.txa-fussnoten li {
  display: block;
  padding: 4px 0;
  border-bottom: 0.5px solid #eeeee8;
}

.txa-fussnoten li:last-child {
  border-bottom: none;
}

/* Ziffer als hochgestellter Inline-Block, klar vom Text abgegrenzt */
.txa-fn-num {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  color: #5a4520;
  vertical-align: super;
  line-height: 1;
  min-width: 18px;
  margin: 4px 0 0 -17px;
}

/* Links inline */
.txa-fussnoten a {
  color: #2e6092;
  text-decoration: underline;
}

.txa-fussnoten strong,
.txa-fussnoten b { font-weight: 600; }

.txa-fussnoten em,
.txa-fussnoten i { font-style: italic; }



/* Toggle Fuctions */

/* ── Filter-List Toggle — in Child-Theme style.css einfügen ── */

#txa-filter-toggle-wrap {
    display: flex;
    justify-content: flex-start;
    padding: 18px 0 30px;
    margin: -30px 15px 0 0;
}

/* Wiederverwendet die Toggle-Styles des Annotation-Switches */
#txa-filter-toggle-wrap .txa-toggle input:checked ~ .txa-toggle-track {
  background: #a6a1a1;
}

/* Filter-List: smooth ein-/ausblenden */
.filter-list {
  overflow: hidden;
  max-height: 1000px; /* groß genug für den Inhalt */
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.filter-list--hidden {
  max-height: 0;
  opacity: 0;
}


/* ========== RESPONSIVE ============== */


@media (max-width: 1024px) {
    .post-navigation__next--label,
    .post-navigation__prev--label {
        display: none;
    }
}

@media (max-width: 767px) {
    #txa-popup {
        width: calc(100% - 32px);
        max-width: 400px;
    }

    #txa-toggle-wrap {
        right: 4px;    
    }

    #txa-filter-toggle-wrap {
    order: 1;
    }

    #txa-toggle-wrap .txa-toggle-label {
        display: none;
    }

    #txa-filter-toggle-wrap .txa-toggle {
    flex-direction: row;
    align-items: center;
    }

    #txa-filter-toggle-wrap .txa-toggle-label {
    order: 1;
    }

    #txa-filter-toggle-wrap .txa-toggle-track {
    order: 0;
    }

    .filter-list--hidden {
    display: none;
    }

    #txa-filter-toggle-wrap .txa-toggle {
    flex-direction: row;
    align-items: center;
    opacity: 0.5;
    margin-bottom: -50px;
    transition: opacity 0.2s;
    }

    #txa-filter-toggle-wrap .txa-toggle:has(input:checked) {
    opacity: 0.5;
    margin-bottom: 0;
    }
    .letter-postnav-top .elementor-post-navigation {
        display: flex;
        justify-content: space-between;
    }
    .letter-postnav-top .elementor-post-navigation .elementor-post-navigation__prev {
      right: 0px;
    }

    .letter-postnav-top {display: none;}

}