/* =========================================
   THERAPIETERMIN FINDEN
   22g - Veranstaltungsbild CSS
   Version 1.0
   ========================================= */

/* 01 - Bildbereich */

.ttf-event-formular .ttf-event-bildupload {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* 02 - Dekorative Uploadflaeche */

.ttf-event-uploadflaeche {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 320px;
    padding: 55px 25px;

    background:
        repeating-radial-gradient(
            circle at 105% 0%,
            transparent 0,
            transparent 28px,
            rgba(119,143,121,0.17) 29px,
            transparent 30px,
            transparent 45px
        ),
        linear-gradient(
            135deg,
            #F5F8F3,
            #E5EDE1
        );

    border: 2px dashed #B5C8B0;
    border-radius: 18px;

    text-align: center;
    transition: border-color 0.2s ease;
}

.ttf-event-uploadflaeche:hover {
    border-color: #778F79;
}

/* 03 - Typografische Wasserzeichen */

.ttf-event-uploadflaeche::before {
    content: "Wissen teilen." / "";

    position: absolute;
    z-index: -1;
    top: 12px;
    left: 18px;

    color: rgba(82,109,84,0.14);
    font-size: clamp(22px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;

    pointer-events: none;
    user-select: none;
}

.ttf-event-uploadflaeche::after {
    content: "Menschen erreichen." / "";

    position: absolute;
    z-index: -1;
    right: 18px;
    bottom: 12px;

    color: rgba(82,109,84,0.14);
    font-size: clamp(20px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;

    pointer-events: none;
    user-select: none;
}

/* 04 - Uploadsymbol */

.ttf-event-uploadsymbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 85px;
    height: 85px;

    background: #DCE8D8;
    border: 1px solid #B5C8B0;
    border-radius: 50%;

    color: #526D54;
}

.ttf-event-uploadsymbol svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.5;
}

/* 05 - Texte */

.ttf-event-uploadtitel {
    color: #526D54;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
}

.ttf-event-uploadinfo {
    color: #68756A;
    font-size: 13px;
    line-height: 1.7;
}

/* 06 - Dateiauswahl */

.ttf-event-formular .ttf-event-dateifeld {
    width: 100%;
    max-width: 400px;
    padding: 12px;

    background: rgba(255,255,255,0.85);
    border: 1px solid #D8E4D5;
    border-radius: 10px;

    color: #526D54;
    font-size: 13px;
    cursor: pointer;
}

.ttf-event-dateifeld::file-selector-button {
    margin-right: 12px;
    padding: 12px 16px;

    background: #526D54;
    border: 0;
    border-radius: 8px;

    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
}

.ttf-event-dateifeld::file-selector-button:hover {
    background: #405842;
}

/* 07 - Bildvorschau */

.ttf-event-bildvorschau {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 20px auto 0;

    overflow: hidden;

    background: #EDF3EB;
    border: 1px solid #D8E4D5;
    border-radius: 15px;
}

.ttf-event-bildvorschau[hidden] {
    display: none !important;
}

.ttf-event-bildvorschau img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    object-fit: cover;
    object-position: center;
}

/* 08 - Bild entfernen */

.ttf-event-bild-entfernen {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 12px;
    padding: 10px 16px;

    background: #FFFFFF;
    border: 1px solid #B5C8B0;
    border-radius: 8px;

    color: #526D54;
    font-family: inherit;
    font-size: 13px;

    cursor: pointer;
}

.ttf-event-bild-entfernen:hover {
    background: #DCE8D8;
}

/* 09 - Nutzungsrechte */

.ttf-event-bildrechte {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 18px;
    padding: 17px 20px;

    background: #EDF3EB;
    border-left: 3px solid #778F79;
    border-radius: 9px;

    color: #526D54;
    font-size: 13px;
    line-height: 1.8;
}

/* 10 - Fehlermeldungen */

.ttf-event-bildfehler {
    margin-top: 15px;
    padding: 12px 16px;

    background: #FAEEEE;
    border: 1px solid #E4CACA;
    border-radius: 8px;

    color: #924646;
    font-size: 14px;
}

/* 11 - Smartphone */

@media (max-width: 600px) {

    .ttf-event-uploadflaeche {
        min-height: 290px;
        padding: 45px 14px;
        border-radius: 13px;
    }

    .ttf-event-uploadflaeche::before {
        top: 10px;
        left: 10px;
        font-size: 24px;
    }

    .ttf-event-uploadflaeche::after {
        bottom: 10px;
        right: 10px;
        font-size: 21px;
    }

    .ttf-event-uploadsymbol {
        width: 65px;
        height: 65px;
    }

    .ttf-event-uploadtitel {
        font-size: 17px;
    }

    .ttf-event-bildrechte {
        padding: 14px;
    }
}

/* 12 - Reduzierte Animationen */

@media (prefers-reduced-motion: reduce) {

    .ttf-event-uploadflaeche {
        transition: none;
    }
}

/* =========================================
   ENDE - SNIPPET 22g
   Version 1.0
   ========================================= */