/* ===========================================================================
 * Enfold Child – eigene Styles
 * Wird nach den Enfold-Styles geladen (Priorität 100 in der functions.php),
 * Überschreibungen brauchen deshalb in der Regel kein !important.
 * ======================================================================== */

/* --- Typografie ---------------------------------------------------------- */

ul {
	font-size: 14px;
}

/* .responsive .container {
	max-width: 1310px;
} */

/* --- Tabellen ------------------------------------------------------------ */

td {
	vertical-align: middle;
}

/* --- Buttons ------------------------------------------------------------- */

/* .avia-button {
	border-radius: var(--ec-radius);
	transition: background-color var(--ec-transition), color var(--ec-transition);
} */

/* --- Header -------------------------------------------------------------- */

/* #header .av-main-nav > li > a {
	letter-spacing: 0.02em;
} */

/* --- WPML Sprachumschalter ------------------------------------------------
 * Nur die Flagge der aktuell aktiven Sprache bleibt farbig, die übrigen werden
 * ausgegraut und beim Hover wieder farbig. Gilt für Flaggen als <img> und als
 * inline eingebundenes <svg>.
 *
 * Voraussetzung: Enfolds eigener Switcher ist deaktiviert (inc/wpml.php), es
 * wird der WPML-Switcher mit seinen .wpml-ls-* Klassen ausgegeben.
 * ---------------------------------------------------------------------- */

.wpml-ls-item:not(.wpml-ls-current-language) img,
.wpml-ls-item:not(.wpml-ls-current-language) svg {
	filter: grayscale(100%);
	opacity: 0.8;
	transition: filter var(--ec-transition), opacity var(--ec-transition);
}

.wpml-ls-current-language img,
.wpml-ls-current-language svg {
	filter: none;
	opacity: 1;
}

.wpml-ls-item:not(.wpml-ls-current-language) a:hover img,
.wpml-ls-item:not(.wpml-ls-current-language) a:hover svg,
.wpml-ls-item:not(.wpml-ls-current-language) a:focus-visible img,
.wpml-ls-item:not(.wpml-ls-current-language) a:focus-visible svg {
	filter: none;
	opacity: 1;
}

/* --- Breakpoints (Enfold-Standard) --------------------------------------
 * Mobile Menü greift ab 989px, Enfold-Grid bricht bei 767px.
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 989px) {
	/* Tablet & mobiles Menü */
}

@media only screen and (max-width: 767px) {
	/* Smartphone */
}

/* --- Removed WPML Nav in Footer --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

.wpml-ls-statics-footer {
    display: none !important;
}

/* --- News --------------------------------------
 * 
 * ---------------------------------------------------------------------- */
.post-entry-type-standard.single-small.has-post-thumbnail .small-preview {
    width: 100%;
    max-width: 180px;
    height: 120px; 
    overflow: hidden;
}

.post-entry-type-standard.single-small.has-post-thumbnail .small-preview img,
.post-entry-type-standard.single-small.has-post-thumbnail .small-preview a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center;
    display: block;
}


/* --- Buttons --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

#top .avia-button,
#top .avia-button-fullwidth {
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

#top a.avia-button {
    min-height: 50px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}

#top .avia_button_background {
    border-radius: 4px;
}

#top .avia-button .avia_iconbox_title {
    line-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
    display: block;
    font-size: 16px;
    font-weight: normal !important;
}

#top .wpcf7-submit,
#top input[type="submit"] {
    border-radius: 4px;
    min-height: 50px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: normal !important;
}

#top .avia-button-fullwidth {
    padding: 5px;
}

.av-menu-button a {
    font-weight: 400 !important;
}

#top a.avia-color-theme-color,
#top .wpcf7-submit,
#top input[type="submit"].wpcf7-submit {
    background-color: var(--enfold-main-color-primary, #0076bf);
    border-color: var(--enfold-main-color-button-border, #00549d);
    color: var(--enfold-main-color-constant-font, #ffffff);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

#top a.avia-color-theme-color .avia_button_background {
    background-color: var(--enfold-main-color-primary, #0076bf) !important;
}

#top a.avia-color-theme-color:hover,
#top .wpcf7-submit:hover,
#top input[type="submit"].wpcf7-submit:hover {
    background-color: #4fb3e8;
    border-color: #4fb3e8;
}

#top a.avia-color-theme-color:hover .avia_button_background {
    background-color: #4fb3e8 !important;
}

/* --- Formular CF7 --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

.wpcf7-form {
  max-width: 100%;
  color: #333333;
}

.wpcf7-form p {
  margin: 0 0 2rem;
}

.wpcf7-form label {
	display: block;
    font-size: 14px !important;
    font-weight: normal !important;
    margin-bottom: 4px;
    line-height: 20px;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#top label span, #top legend span {
    margin-top: 3px;
}

#top .main_color input[type='text'],
#top .main_color select,
#top .main_color input[type='email'],
#top .main_color textarea {
    border-color: #ddd;
    background-color: #ffffff;
    font-family: inherit;
    border-radius: 4px;
}
	
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background-color: #f5f5f5;
  color: #333333;
}

.wpcf7-form .wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23555' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.25rem;
}

.wpcf7-form .wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-select:focus,
.wpcf7-form .wpcf7-textarea:focus {
  outline: 3px solid #1a73e8;
  outline-offset: 1px;
  border-color: #1a73e8;
}

.wpcf7-acceptance {
  display: block;
  margin: 0;
  padding: 0;
}

.wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
  padding: 0;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
  color: #333333;
}

.wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #1a73e8;
}

.wpcf7-acceptance input[type="checkbox"]:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333333;
}

p.small {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333333;
}

p.small a {
  color: #1a73e8;
  text-decoration: underline;
}

.wpcf7-submit {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

span.wpcf7-list-item-label {
    font-size: 14px !important;
}

@media (min-width: 600px) {
  .wpcf7-submit {
    width: auto;
    min-width: 220px;
  }
}

#top #wrap_all #header.header_color .av-menu-button-colored > a .avia-menu-text {
    font-weight: 600;
}

/* --- Searchform --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

form#searchform input#s {
    background-color: #ffffff;
    font-family: inherit;
    border-radius: 4px;
    border: 1px solid #ddd !important;
    min-height: 50px;
}

form#searchform span.av_searchform_search.avia-svg-icon.avia-font-svg_entypo-fontello {
    margin-top: 13px !important;
}

.sidebar form#searchform span.av_searchform_search.avia-svg-icon.avia-font-svg_entypo-fontello {
    margin-top: 16px !important;
}

/* --- News --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

body.archive article.post-entry {
    max-width: calc(100% - 50px);
}

.sidebar_left .template-blog .blog-meta {
    float: right;
    margin-left: 50px;
    margin-right: 0;
    width: 100%;
    max-width: 180px;
    height: 192px;
    overflow: hidden;
}

/* --- Barrierefreiheit --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
summary:focus,
[tabindex]:focus {
    outline: 3px solid #0076bf !important;
    outline-offset: 2px !important;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0076bf !important;
    outline-offset: 2px !important;
}

/* skip to content Link */
.skip-link.screen-reader-text:focus {
    background-color: #0076bf;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 6px;
    width: auto;
    z-index: 100000;
    position: absolute;
}



/* --- Blog --------------------------------------
 * 
 * ---------------------------------------------------------------------- */

.recentcomments a, .widget_recent_entries li a {
    font-style: normal;
    font-family: inherit;
}

.template-blog .thumb-fallback {
  aspect-ratio: 180 / 120;
  width: 100%;
  border-radius: 4px;
  background: transparent;
}

.template-blog .thumb-fallback + .iconfont {
  display: none;
}

.template-blog :has(> .thumb-fallback) {
  width: 180px !important;
  max-width: 100%;
  height: auto !important;
  background: none !important;
}

.small-preview {
  display: block;
  width: 180px;
  max-width: 100%;
}

.small-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* =========================================
   Download-Seiten (WP Download Manager)
   ========================================= */

/* Überflüssige Elemente ausblenden */
.type-wpdmpro .entry-content h1.mt-0,
.type-wpdmpro .blog-categories,
.type-wpdmpro .post-meta-infos .text-sep,
.type-wpdmpro .post-author-format-type,
.type-wpdmpro .wel:empty,
.type-wpdmpro .big-preview,
.type-wpdmpro .av-social-sharing-box {
  display: none;
}

/* Layout */
.type-wpdmpro .col-md-5 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
}
.type-wpdmpro .col-md-7 {
  flex: 0 0 41.667%;
  max-width: 41.667%;
}

/* Tabellen-Zeilen ausblenden
   1 = Download (Zähler), 2 = File Size, 3 = File Count */
.type-wpdmpro .list-group-item:nth-child(1),
.type-wpdmpro .list-group-item:nth-child(2),
.type-wpdmpro .list-group-item:nth-child(3) {
  display: none !important;
}

/* Info-Tabelle im Stil der Produkttabellen */
.type-wpdmpro .list-group {
  border: 1px solid #e1e1e1;
  border-radius: 0 !important;
  overflow: hidden;
}

.type-wpdmpro .list-group-item {
  flex-wrap: wrap;
  row-gap: 4px;
  background-color: #fff !important;
  color: #333 !important;
  border: 0 !important;
  border-top: 1px solid #e1e1e1 !important;
  border-radius: 0 !important;
  padding: 14px 12px;
  margin: 0;
}

/* Erste sichtbare Zeile ohne obere Linie (Rahmen kommt vom ul) */
.type-wpdmpro .list-group-item:nth-child(4) {
  border-top: 0 !important;
}

/* Badges als normalen Text darstellen */
.type-wpdmpro .list-group-item .badge {
  background: none !important;
  color: #333 !important;
  border-radius: 0 !important;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
}

.type-wpdmpro .list-group {
  margin-left: 0 !important;
  padding-left: 0 !important;
}