/* ========================================================================
   1. STANDARD TEMPLATE STYLES (Grundstruktur)
   ======================================================================== */

.utopia-themenblock-standard {
    display: flex;
    flex-direction: column;
    padding: var(--padding-standard);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.utopia-themenblock-standard-inner {
    position: relative;
}

.utopia-themenblock-standard .utopia-themenblock-content {
    padding: 0;
}

.utopia-themenblock-standard .utopia-themenblock-content-wrapper {
    position: relative;
}

/* Rahmen und Schatten */
.utopia-themenblock-standard.has-border-shadow {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--box-shadow-normal);
}

/* ========================================================================
   2. ICON STYLES
   ======================================================================== */

/* Icon-Position und -Größe */
.utopia-themenblock-standard .utopia-themenblock-icon {
    float: left;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 60px;
    line-height: 1;
    position: relative;
    top: 0;
    left: -10px;
    margin-top: -20px;
    padding: 5px;
}

/* Spezielle Icons: margin-top zurücksetzen */
.utopia-themenblock-standard .utopia-themenblock-icon.icon-lightbulb,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-speech-bubble,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-question{
    margin-top: 0;
}

    /* Icon-spezifische Anpassungen */
.utopia-themenblock-standard .utopia-themenblock-icon.icon-check {
    margin-top: -20px;
}

.utopia-themenblock-standard .utopia-themenblock-icon.icon-alarmclock,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-info,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-calendar,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-star,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-notification,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-heart,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-clock,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-warning,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-gear,
.utopia-themenblock-standard .utopia-themenblock-icon.icon-shopping-cart{
    margin-top: -10px;
}

.utopia-themenblock-standard .icon-lightbulb::before {
    font-size: 70px;
}

.utopia-themenblock-standard .icon-arrow::before {
    color: #4caf50;
}

/* Spezielle Anpassungen für Icons und Titel */
.utopia-themenblock-standard.has-icon .utopia-themenblock-titel {
    clear: none;
    margin-bottom: 15px;
}

/* Clearfix für den Inhalt nach dem Icon */
.utopia-themenblock-standard .utopia-themenblock-content:after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================================================
   3. BACKGROUND COLORS
   ======================================================================== */

/* Hintergrundfarben für das Standard-Template */
.utopia-themenblock-standard.bg-gray {
    background-color: var(--color-gray);
    color: var(--color-black);
}

.utopia-themenblock-standard.bg-green {
    background-color: #dff0d8;
}

.utopia-themenblock-standard.bg-yellow {
    background-color: #fff3cd;
}

.utopia-themenblock-standard.bg-red {
    background-color: #f8d7da;
}

.utopia-themenblock-standard.bg-white {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Figcaption-Farben nach Hintergrund */
#main_content .utopia-themenblock.bg-green figcaption {
    color: #3c763d;
}

#main_content .utopia-themenblock.bg-yellow figcaption {
    color: #644b02;
}

#main_content .utopia-themenblock.bg-red figcaption {
    color: #721c24;
}

/* Icon-Farben nach Hintergrund */
.utopia-themenblock-standard.bg-yellow .icon-info::before,
.utopia-themenblock-standard.bg-yellow .icon-alarmclock::before,
.utopia-themenblock-standard.bg-yellow .icon-speech-bubble::before,
.utopia-themenblock-standard.bg-yellow .icon-check::before,
.utopia-themenblock-standard.bg-yellow .icon-clock::before,
.utopia-themenblock-standard.bg-yellow .icon-gear::before,
.utopia-themenblock-standard.bg-yellow .icon-heart::before,
.utopia-themenblock-standard.bg-yellow .icon-lightbulb::before,
.utopia-themenblock-standard.bg-yellow .icon-notification::before,
.utopia-themenblock-standard.bg-yellow .icon-warning::before,
.utopia-themenblock-standard.bg-yellow .icon-question::before,
.utopia-themenblock-standard.bg-yellow .icon-star::before,
.utopia-themenblock-standard.bg-yellow .icon-calendar::before,
.utopia-themenblock-standard.bg-yellow .icon-shopping-cart::before{
    color: #b75501;
}

.utopia-themenblock-standard.bg-gray .icon-info::before,
.utopia-themenblock-standard.bg-gray .icon-alarmclock::before,
.utopia-themenblock-standard.bg-gray .icon-speech-bubble::before,
.utopia-themenblock-standard.bg-gray .icon-check::before,
.utopia-themenblock-standard.bg-gray .icon-clock::before,
.utopia-themenblock-standard.bg-gray .icon-gear::before,
.utopia-themenblock-standard.bg-gray .icon-heart::before,
.utopia-themenblock-standard.bg-gray .icon-lightbulb::before,
.utopia-themenblock-standard.bg-gray .icon-notification::before,
.utopia-themenblock-standard.bg-gray .icon-warning::before,
.utopia-themenblock-standard.bg-gray .icon-question::before,
.utopia-themenblock-standard.bg-gray .icon-star::before,
.utopia-themenblock-standard.bg-gray .icon-calendar::before,
.utopia-themenblock-standard.bg-gray .icon-shopping-cart::before{
    color: #aaa;
}

.utopia-themenblock-standard.bg-white .icon-info::before,
.utopia-themenblock-standard.bg-white .icon-alarmclock::before,
.utopia-themenblock-standard.bg-white .icon-speech-bubble::before,
.utopia-themenblock-standard.bg-white .icon-check::before,
.utopia-themenblock-standard.bg-white .icon-clock::before,
.utopia-themenblock-standard.bg-white .icon-gear::before,
.utopia-themenblock-standard.bg-white .icon-heart::before,
.utopia-themenblock-standard.bg-white .icon-lightbulb::before,
.utopia-themenblock-standard.bg-white .icon-notification::before,
.utopia-themenblock-standard.bg-white .icon-warning::before,
.utopia-themenblock-standard.bg-white .icon-question::before,
.utopia-themenblock-standard.bg-white .icon-star::before,
.utopia-themenblock-standard.bg-white .icon-calendar::before,
.utopia-themenblock-standard.bg-white .icon-shopping-cart::before {
    color: #b91e27;
}

/* Textfarben und Links nach Hintergrund */
.utopia-themenblock-standard.bg-green,
.utopia-themenblock-standard.bg-green h3 {
    color: #3c763d;
}

.entry-content .utopia-themenblock-standard.bg-green a {
    border-bottom-color: #3c763d;
    color: #3c763d;
}

.entry-content .utopia-themenblock-standard.bg-green a:hover {
    filter: brightness(0.7);
}

.entry-content .utopia-themenblock-standard.bg-green a.button:hover {
    filter: brightness(1);
}

.utopia-themenblock-standard.bg-yellow,
.utopia-themenblock-standard.bg-yellow h3,
.entry-content .utopia-themenblock-standard.bg-yellow a {
    color: #644b02;
}

.entry-content .utopia-themenblock-standard.bg-yellow a {
    border-bottom-color: #644b02;
}

.entry-content .utopia-themenblock-standard.bg-yellow a:hover {
    filter: brightness(0.7);
}

.entry-content .utopia-themenblock-standard.bg-yellow a.button:hover {
    filter: brightness(1);
}

.utopia-themenblock-standard.bg-red,
.utopia-themenblock-standard.bg-red h3,
.entry-content .utopia-themenblock-standard.bg-red a {
    color: #721c24;
}

.entry-content .utopia-themenblock-standard.bg-red a {
    border-bottom-color: #721c24;
}

.entry-content .utopia-themenblock-standard.bg-red a:hover {
    filter: brightness(0.7);
}
.entry-content .utopia-themenblock-standard.bg-red a.button:hover {
    filter: brightness(1);
}

/* ========================================================================
   4. ALIGNMENT STYLES
   ======================================================================== */

/* Text-Ausrichtungen */
.utopia-themenblock-standard.text-align-left .utopia-themenblock-content,
.utopia-themenblock-standard.text-align-left .utopia-themenblock-inhalt {
    text-align: left;
}

.utopia-themenblock-standard.text-align-center .utopia-themenblock-content,
.utopia-themenblock-standard.text-align-center .utopia-themenblock-inhalt {
    text-align: center;
}

.utopia-themenblock-standard.text-align-right .utopia-themenblock-content,
.utopia-themenblock-standard.text-align-right .utopia-themenblock-inhalt {
    text-align: right;
}

.utopia-themenblock-standard .utopia-themenblock-titel {
    font-weight: 700;
    padding-bottom: 5px;
}

.utopia-themenblock-standard .utopia-themenblock-titel h3 a {
    font-weight: 700;
}
/* Titel-Ausrichtungen */
.utopia-themenblock-standard.title-align-left .utopia-themenblock-titel {
    text-align: left;
}

.utopia-themenblock-standard.title-align-center .utopia-themenblock-titel {
    text-align: center;
}

.utopia-themenblock-standard.title-align-right .utopia-themenblock-titel {
    text-align: right;
}

/* Button-Ausrichtungen */
.utopia-themenblock-standard.buttons-align-left .utopia-themenblock-buttons {
    justify-content: flex-start;
}

.utopia-themenblock-standard.buttons-align-center .utopia-themenblock-buttons {
    justify-content: center;
}

.utopia-themenblock-standard.buttons-align-right .utopia-themenblock-buttons {
    justify-content: flex-end;
}

/* ========================================================================
   5. MOBILE ANPASSUNGEN
   ======================================================================== */

@media (max-width: 768px) {
    .utopia-themenblock-standard {
        padding: var(--padding-standard-mobile);
    }
    .utopia-themenblock-standard .utopia-themenblock-icon {
        top:5px;
    }
}
