/*
-----------------------------------------
Plugin & Tool Custom Styles
Version: 1.0.0
Last Update: 04.03.2026
Description:
Individuelle Anpassungen für Plugins,
Embeds und externe Drittanbieter-Tools.
-----------------------------------------
*/

/* ===========================
   WPFORMS STYLES
   =========================== */

/* Input & Textarea Base Styles */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
    border-radius: var(--wp--custom--border-radius--input-std) !important;
    border: 1px solid var(--wp--preset--color--black-10) !important;
    padding: 12px 20px !important;
    transition: all 0.2s ease-in-out !important;
    min-height: 48px !important;
}

/* Choices specific alignment */
div.wpforms-container-full .wpforms-form .choices__inner {
    display: flex !important;
    align-items: center !important;
}

div.wpforms-container-full .wpforms-form .choices__list--single {
    padding-left: 0 !important;
}

/* Focus State */
div.wpforms-container-full .wpforms-form input[type="text"]:focus,
div.wpforms-container-full .wpforms-form input[type="email"]:focus,
div.wpforms-container-full .wpforms-form input[type="tel"]:focus,
div.wpforms-container-full .wpforms-form input[type="url"]:focus,
div.wpforms-container-full .wpforms-form input[type="number"]:focus,
div.wpforms-container-full .wpforms-form select:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form .choices.is-focused .choices__inner {
    border-color: var(--wp--preset--color--black-10) !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.10), var(--wp--preset--shadow--input-focus) !important;
    outline: none !important;
}

/* Dropdown List Highlights */
div.wpforms-container-full .wpforms-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--wp--preset--color--black-10) !important;
    color: var(--wp--preset--color--text-primary) !important;
}

.wpforms-container .wpforms-form .choices__list--dropdown {
    border: 1px solid var(--wp--preset--color--black-10) !important;
}

.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices .choices__inner {
    min-height: 48px !important;
}

.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices.is-open .choices__list--dropdown {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.10), var(--wp--preset--shadow--input-focus) !important;
}

/* Submit Button */
div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit {
    background-color: var(--wp--preset--color--contrast) !important;
    color: var(--wp--preset--color--surface) !important;
    border-radius: var(--wp--custom--border-radius--pill) !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: var(--wp--preset--shadow--none) !important;
    transition: all 0.2s ease !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:hover {
    background-color: #333333 !important;
    box-shadow: var(--wp--preset--shadow--none) !important;
}


/* ===========================
   HUBSPOT - MEETINGS IFRAME STYLES
   =========================== */

.meetings-iframe-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--none) !important;
    background: #0b0b0b;
    padding: 0;
}

.meetings-iframe-container iframe {
    width: 100%;
    border: none !important;
    overflow: hidden !important;
    /* Höhe ggf. anpassen */
    height: 615px !important;
    max-height: 615px !important;
}

.meetings-iframe-container {
    position: relative !important;
}

/* ===========================
   TRANSLATEPRESS STYLES (Gutenberg & Shortcode)
   =========================== */

/* Main Container Base */
.trp-language-switcher {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Shared Item Base */
.trp-language-switcher .trp-language-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: var(--wp--preset--color--text-primary) !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    border-radius: var(--wp--custom--border-radius--pill) !important;
}

/* --- VARIATION 1: Icon Style (is-style-icon) --- */
.is-style-icon .trp-language-item,
.trp-language-switcher.is-style-icon .trp-language-item {
    gap: 8px !important;
    padding: 0.5rem 0.75rem !important;
    background-color: var(--wp--preset--color--white-50) !important;
    border: 1px solid var(--wp--preset--color--black-05) !important;
    min-width: 2.5em !important;
    min-height: 2.5em !important;
}

.is-style-icon .trp-language-item:hover,
.trp-language-switcher.is-style-icon .trp-language-item:hover {
    background-color: #FFFFFF !important;
}

/* --- VARIATION 2: Icon Only Style (is-style-icon-only) --- */
.is-style-icon-only .trp-language-item,
.trp-language-switcher.is-style-icon-only .trp-language-item {
    min-width: 2.5em !important;
    min-height: 2.5em !important;
    padding: 0.5em !important;
    background-color: var(--wp--preset--color--black-05) !important;
    border: none !important;
}

.is-style-icon-only .trp-language-item:hover,
.trp-language-switcher.is-style-icon-only .trp-language-item:hover {
    background-color: var(--wp--preset--color--black-10) !important;
}

.is-style-icon-only .trp-language-item span,
.trp-language-switcher.is-style-icon-only .trp-language-item span {
    display: none !important;
}

/* Shared Interactions & Alignment */
.trp-language-switcher .trp-language-item:hover {
    transform: none !important;
}

.trp-language-switcher .trp-language-item:active {
    transform: scale(0.96) !important;
}

.trp-language-switcher .trp-flag-image {
    width: 20px !important;
    height: 14px !important;
    margin: 0 !important;
    display: block !important;
    border-radius: 2px !important;
    object-fit: cover !important;
}

.is-style-icon .trp-language-item span,
.trp-language-switcher.is-style-icon .trp-language-item span {
    font-size: var(--wp--preset--font-size--body) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

/* Hide Dropdown Elements */
.trp-ls-shortcode-current-language::after {
    display: none !important;
}

/* ===========================
   CLICKABLE BENTO CARDS
   =========================== */

/* The card must be relative for the stretched link to work */
.is-style-bento-card.is-clickable {
    position: relative !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
    cursor: pointer;
}

/* Hover effect: Lift and shadow */
.is-style-bento-card.is-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp--preset--shadow--card-hover) !important;
}

/* The Stretched Link trick */
/* This "stretches" the first link found inside the card over the entire area */
.is-style-bento-card.is-clickable a::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

/* Ensure the card feels interactive */
.is-style-bento-card.is-clickable:active {
    transform: translateY(-2px);
}

/* ===========================
   LIST MARKER COLORS (Bullets & Checkmarks)
   =========================== */

/* Base Marker Variable */
.wp-block-list {
    --dt-list-marker-color: var(--wp--preset--color--text-body);
    --dt-list-item-gap: 0.3rem;
}

/* Base spacing for all list items */
.wp-block-list li,
.wp-block-list-item {
    padding-left: var(--dt-list-item-gap, 0.3rem) !important;
}

/* Style-specific Gap overrides */
.wp-block-list.is-style-checkmark-list,
.wp-block-list-item.is-style-checkmark {
    --dt-list-item-gap: 1.75rem;
}

/* Update Checkmarks (::before) to use the variable */
.wp-block-list.is-style-checkmark-list li::before,
.wp-block-list-item.is-style-checkmark::before {
    color: var(--dt-list-marker-color) !important;
}

/* Update Standard Bullets (::marker) to use the variable */
.wp-block-list li::marker,
.wp-block-list-item::marker {
    color: var(--dt-list-marker-color) !important;
}

/* Color Variation: Standard (Body) */
.wp-block-list.is-marker-standard,
.wp-block-list-item.is-marker-standard {
    --dt-list-marker-color: var(--wp--preset--color--text-body);
}

/* Color Variation: PIM (Indigo) */
.wp-block-list.is-marker-pim,
.wp-block-list-item.is-marker-pim {
    --dt-list-marker-color: var(--wp--preset--color--pim-indigo);
}

/* Color Variation: DAM (Coral) */
.wp-block-list.is-marker-dam,
.wp-block-list-item.is-marker-dam {
    --dt-list-marker-color: var(--wp--preset--color--dam-coral);
}

/* ===========================
   AIOSEO AUTHOR BIO (COMPACT)
   =========================== */

/* Wrapper gesamt */
.aioseo-author-bio-compact {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--wp--preset--color--surface);
    border-radius: var(--wp--custom--border-radius--card-lg);
    padding: 2rem;
    box-shadow: none;
    margin: 3rem 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0px;
}

.aioseo-author-bio-compact:hover {
    box-shadow: var(--wp--preset--shadow--card-hover);
}

@media (min-width: 768px) {
    .aioseo-author-bio-compact {
        flex-direction: row;
        gap: 2.5rem;
        padding: 2.5rem;
    }
}

/* Linke Spalte (Bild) */
.aioseo-author-bio-compact-left {
    flex-shrink: 0;
    display: flex;
    justify-content: start;
}

/* Avatar / Image */
.aioseo-author-bio-compact-image {
    width: 80px;
    height: 80px;
    border-radius: var(--wp--custom--border-radius--image-std) !important;
    overflow: hidden;
    box-shadow: none;
    border: 0px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .aioseo-author-bio-compact-image {
        width: 120px;
        height: 120px;
    }
}

/* Rechte Spalte */
.aioseo-author-bio-compact-right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header */
.aioseo-author-bio-compact-header {
    margin-bottom: .25rem;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

/* Name */
.aioseo-author-bio-compact-header .author-name {
    font-size: var(--wp--preset--font-size--heading-3, 1.5rem);
    font-weight: 800;
    color: var(--wp--preset--color--text-primary);
    line-height: 1.2;
    margin: 0;
}

/* Job Title */
.aioseo-author-bio-compact-header .author-job-title {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp--preset--color--text-primary);
    margin: 0;
}

/* Hauptbereich (Bio / Text) */
.aioseo-author-bio-compact-main {
    font-size: var(--wp--preset--font-size--body) !important;
    line-height: 1.6;
    color: var(--wp--preset--color--text-body);
    margin-bottom: .25rem;
}

/* Link */
.author-bio-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-bio-link a {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none !important;
    transition: color 0.2s ease;
    text-decoration: underline !important;
}

.author-bio-link:hover a {
    color: var(--wp--preset--color--text-primary);
}

.author-bio-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.author-bio-link:hover svg {
    transform: translateX(4px);
}

/* Stretched Link: Macht die gesamte Box klickbar */
.aioseo-author-bio-compact .author-bio-link a:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

/* Hover-Effekte für interne Links globalisieren (damit der Pfeil wandert, sobald die Box anvisiert wird) */
.aioseo-author-bio-compact:hover .author-bio-link a {
    color: var(--wp--preset--color--text-primary);
}

.aioseo-author-bio-compact:hover .author-bio-link svg {
    transform: translateX(4px);
}

/* Footer (Expertise) */
.aioseo-author-bio-compact-footer {
    margin-top: auto;
    /*padding-top: 1rem;*/
    border-top: 0;
}

.author-expertises {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-expertise {
    background: var(--wp--preset--color--base) !important;
    border: 0;
    color: var(--wp--preset--color--text-primary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--wp--custom--border-radius--pill) !important;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

/* ===========================
   DT MIXED BACKGROUND
   =========================== */

.dt-mix-bg-blog {
    /* Wichtig: Zuerst das Bild (liegt oben), dann der Verlauf (liegt unten), getrennt durch ein Komma */
    background-image: url('/wp-content/uploads/2026/03/dt-pattern-layout.svg'), linear-gradient(135deg, rgb(227, 242, 253) 0%, rgb(255, 255, 255) 51%, rgb(232, 245, 233) 100%) !important;
}

.dt-mix-bg {
    /* Wichtig: Zuerst das Bild (liegt oben), dann der Verlauf (liegt unten), getrennt durch ein Komma */
    background-image: url('/wp-content/uploads/2026/03/dt-pattern-layout.svg'), linear-gradient(135deg, rgb(224, 231, 255) 0%, rgb(255, 255, 255) 53%, rgb(255, 228, 230) 100%) !important;
}

.dt-mix-bg,
.dt-mix-bg-blog {
    /* Desktop: contain für das Bild, cover für den Verlauf */
    background-size: contain,
        cover !important;

    /* Verhindert Kachelung für beide Ebenen */
    background-repeat: no-repeat,
        no-repeat !important;

    /* Desktop Position: Bild rechts mittig, Verlauf zentriert */
    background-position: right center,
        center !important;
}

/* --- Mobile Anpassung (Smartphones bis 768px) --- */
@media (max-width: 768px) {

    .dt-mix-bg,
    .dt-mix-bg-blog {
        /* 1. GRÖSSE: Gib dem Raster eine feste Breite (z.B. 250px oder 70%), damit Platz zum Verschieben entsteht */
        background-size: 250px auto, cover !important;

        /* 2. POSITION: Jetzt kannst du es z.B. nach unten rechts in die Ecke schieben */
        background-position: right bottom, center !important;
    }
}

/* ===========================
   DT GLOSSAR BACK LINK
   =========================== */

/* Layout für den Zurück-Link */
.dynamic-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Definiert den exakten Abstand zwischen Icon und Text */
    font-size: var(--wp--preset--font-size--small) !important;
    color: #4d4d4d99;
    text-decoration: none;
    transition: color 0.2s
}

/* Bereitet dein Icon auf die Hover-Animation vor */
.dynamic-breadcrumb .icon-arrow-left {
    transition: transform 0.2s ease;
    display: inline-flex;
    /* Hilft oft bei Icon-Fonts/SVGs für perfekte Zentrierung */
}

/* Hover-Effekte: Text wird schwarz */
.dynamic-breadcrumb:hover,
.dynamic-breadcrumb:focus {
    color: var(--wp--preset--color--text-primary);
}

/* Hover-Effekt: Dein Icon schiebt sich 4 Pixel nach links */
.dynamic-breadcrumb:hover .icon-arrow-left {
    transform: translateX(-4px);
}

/* ===========================
   DT MEHR LADEN BUTTON
   =========================== */

/* Das Hauptraster für die Glossar-Übersicht */
/* Den Load More Button global anpassen (Secondary Style) */
a.wp-block-button__link.wp-load-more__button {
    background-color: var(--wp--preset--color--white-50);
    border-radius: 9999px;
    border-color: var(--wp--preset--color--black-05)rgba(0, 0, 0, 0.05);
    border-width: 1px;
    border-style: solid;
    color: var(--wp--preset--color--contrast);
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    box-shadow: none;
}

/* Den kleinen Pfeil im Button etwas anpassen */
a.wp-block-button__link.wp-load-more__button .wp-block-query-pagination__arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

/* Normaler Zustand: Pfeil zeigt nach unten */
a.wp-block-button__link.wp-load-more__button .wp-block-query-pagination__arrow {
    display: inline-block;
    /* Wichtig, damit transform bei span-Elementen funktioniert */
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    /* Macht die Bewegung weich */
    margin-left: 8px;
    /* Abstand zum Text beibehalten */
}

/* Hover-Zustand: Pfeil schiebt sich sanft nach unten */
a.wp-block-button__link.wp-load-more__button:hover .wp-block-query-pagination__arrow {
    /* Beide Werte in einer Zeile kombiniert */
    transform: translateY(4px) rotate(90deg);
}

/* ===========================
   DT COUNTER BLOCK
   =========================== */
.wp-block-dt-counter {
    line-height: 1.2;
}

.wp-block-dt-counter .dt-counter__value {
    display: inline;
}

/* ===========================
   DT AUTHOR INFO BLOCK
   =========================== */

/* Container für die automatische Leiste */
.dt-social-list {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Einzelner Icon-Link */
.dt-social-link {
    color: currentColor;
    /* Erbt die Farbe vom Block-Setting im Editor */
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    background: var(--wp--preset--color--surface);
    padding: 10px;
    border-radius: var(--wp--custom--border-radius--pill);
}

.dt-social-link:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

/* Lucide Icon Größe (da sie als SVG gerendert werden) */
.dt-social-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}