/*
 * Block-Stile für das Stadt Dorsten Theme
 * Diese Datei enthält spezielle Stile für die registrierten Block-Stile
 */

/* Dorsten Button-Stil */
.wp-block-button.is-style-dorsten-button .wp-block-button__link {
    background: linear-gradient(90deg, 
        var(--farbe-dorsten-gruen, #80B022) 0%, 
        var(--farbe-dorsten-gruen, #80B022) 85%, 
        var(--farbe-dorsten-grau, #575756) 85%);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0;
    padding: 0.8em 3em 0.8em 1.5em;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-dorsten-button .wp-block-button__link::after {
    content: "\f101";
    font-family: var(--dorsten-font-fallback, "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif);
    font-weight: 600;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--farbe-dorsten-grau, #575756);
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50%;
    right: 0;
}

.wp-block-button.is-style-dorsten-button .wp-block-button__link:hover {
    background: linear-gradient(90deg, 
        var(--farbe-dorsten-blau, #007DBF) 0%, 
        var(--farbe-dorsten-blau, #007DBF) 85%, 
        var(--farbe-dorsten-grau, #575756) 85%);
    box-shadow: 0 4px 15px rgba(128, 176, 34, 0.3);
}

/* Dorsten Zitat-Stil */
.wp-block-quote.is-style-dorsten-quote {
    background-color: var(--farbe-dorsten-sehrhellgrau, #fafafa);
    padding: 2em;
    border-left: 6px solid var(--farbe-dorsten-gruen, #80B022);
    border-radius: 0 8px 8px 0;
    margin: 2em 0;
    position: relative;
    font-style: italic;
}

.wp-block-quote.is-style-dorsten-quote::before {
    content: "\f10d";
    font-family: var(--dorsten-font-fallback, "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif);
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--farbe-dorsten-gruen, #80B022);
    font-size: 1.5em;
    opacity: 0.5;
}

.wp-block-quote.is-style-dorsten-quote p {
    margin-bottom: 1em;
    font-size: 1.1em;
    line-height: 1.6;
}

.wp-block-quote.is-style-dorsten-quote cite {
    color: var(--farbe-dorsten-grau, #575756);
    font-weight: 600;
    font-style: normal;
}

/* Dorsten Hervorhebung-Stil für Gruppen */
.wp-block-group.is-style-dorsten-highlight {
    background-color: var(--farbe-dorsten-hellgrau, #f5f5f5);
    border: 2px solid var(--farbe-dorsten-gruen, #80B022);
    border-radius: 8px;
    padding: 2em;
    margin: 2em 0;
    position: relative;
}

.wp-block-group.is-style-dorsten-highlight::before {
    content: "\f06a";
    font-family: var(--dorsten-font-fallback, "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif);
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--farbe-dorsten-gruen, #80B022);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 0.9em;
}

.wp-block-group.is-style-dorsten-highlight h1,
.wp-block-group.is-style-dorsten-highlight h2,
.wp-block-group.is-style-dorsten-highlight h3,
.wp-block-group.is-style-dorsten-highlight h4,
.wp-block-group.is-style-dorsten-highlight h5,
.wp-block-group.is-style-dorsten-highlight h6 {
    color: var(--farbe-dorsten-gruen, #80B022);
    margin-top: 0.5em;
}

.wp-block-group.is-style-dorsten-highlight p:first-of-type {
    margin-top: 0;
}

.wp-block-group.is-style-dorsten-highlight p:last-of-type {
    margin-bottom: 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .wp-block-button.is-style-dorsten-button .wp-block-button__link {
        padding: 0.8em 2.5em 0.8em 1.2em;
        font-size: 0.9em;
    }
    
    .wp-block-quote.is-style-dorsten-quote {
        padding: 1.5em;
        margin: 1.5em 0;
    }
    
    .wp-block-group.is-style-dorsten-highlight {
        padding: 1.5em;
        margin: 1.5em 0;
    }
}
