/*
Theme Name: Kadence Child
Theme URI: https://www.liquidweb.com/software/kadence/
Description: Child Theme for Kadence
Author: Zencoder
Author URI: https://docs.zencoder.ai/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* --- Document Button Styling (PDF, Word, Excel, PowerPoint) --- */

/* Selektoren für direkte Links und WordPress-Anhangsseiten */
.entry-content a[href*=".pdf"],
.entry-content a[href*="/pdf/"],
.entry-content a[href*=".doc"],
.entry-content a[href*=".docx"],
.entry-content a[href*="/docx/"],
.entry-content a[href*="/doc/"],
.entry-content a[href*=".xls"],
.entry-content a[href*=".xlsx"],
.entry-content a[href*=".ppt"],
.entry-content a[href*=".pptx"] {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.8em;
    margin: 0.2em 0.2em 0.2em 0;
    background-color: #E51E3A;
    color: var(--global-palette9, #ffffff) !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    line-height: 1.2;
}

/* Gemeinsame Icon-Basis */
.entry-content a[href*=".pdf"]:before,
.entry-content a[href*="/pdf/"]:before,
.entry-content a[href*=".doc"]:before,
.entry-content a[href*=".docx"]:before,
.entry-content a[href*="/docx/"]:before,
.entry-content a[href*="/doc/"]:before,
.entry-content a[href*=".xls"]:before,
.entry-content a[href*=".xlsx"]:before,
.entry-content a[href*=".ppt"]:before,
.entry-content a[href*=".pptx"]:before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Icons nach Typ */
.entry-content a[href*="pdf"]:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9h1v-1H9v1zm5.5 3h1v-3.5h-1V12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9h1v-1H9v1zm5.5 3h1v-3.5h-1V12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z'/%3E%3C/svg%3E");
}
.entry-content a[href*="doc"]:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}
.entry-content a[href*="xls"]:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.entry-content a[href*="pdf"]:hover,
.entry-content a[href*="doc"]:hover,
.entry-content a[href*="xls"]:hover {
    background-color: #C41932;
    color: var(--global-palette9, #ffffff) !important;
}

/* --- Listen-Styling --- */

/* Entfernt Bullets, wenn ein Dokument-Button das EINZIGE Element im LI ist */
.entry-content li:has(> a[href*=".pdf"]),
.entry-content li:has(> a[href*="/pdf/"]),
.entry-content li:has(> a[href*=".doc"]),
.entry-content li:has(> a[href*=".docx"]),
.entry-content li:has(> a[href*="/doc"]),
.entry-content li:has(> a[href*=".xls"]),
.entry-content li:has(> a[href*=".xlsx"]),
.entry-content li:has(> a[href*=".ppt"]),
.entry-content li:has(> a[href*=".pptx"]) {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.entry-content ul:has(> li > a[href*=".pdf"]),
.entry-content ul:has(> li > a[href*=".doc"]) {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* --- Vorschau-Karten (unverändert) --- */
.pdf-preview-card {
    display: inline-flex;
    flex-direction: column;
    width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    margin: 1rem 1rem 1rem 0;
    vertical-align: top;
}
.pdf-preview-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdf-preview-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #E51E3A;
    color: #fff !important;
    text-align: center;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none !important;
}

/* --- Überschriften (analog vilshofen.de) --- */
h2 {
    color: #4A4A4A; /* Dunkelgrau für Haupt-Überschriften */
    text-transform: none;
}
h3, h4 {
    color: #E51E3A; /* Corporate Red für Beitrags-Titel/Unter-Überschriften */
}

/* --- Hero/Titel Hintergrund (Rosa entfernen) --- */
.entry-hero-container-inner {
    background-color: #F7FAFC !important; /* Hellgrau analog vilshofen.de */
}
