/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
.custom-button-container {
    display: flex; /* Zentriert den Button */
    justify-content: center;
    align-items: center;
}

.custom-button {
    display: inline-block !important;
    padding: 0.5em 1em !important; /* Polsterung wie bei badbirnbach.de */
    background-color: #51a026 !important; /* Grüner Hintergrund */
    color: #ffffff !important; /* Weißer Text */
    text-decoration: none !important; /* Keine Unterstreichung */
    font-size: 16px !important; /* Exakte Schriftgröße */
    font-weight: normal !important; /* Normalgewichtige Schrift */
    border: 1px solid #51a026 !important; /* Passende Umrandung */
    border-radius: 2px !important; /* Dezente Abrundung */
    transition: background-color 0.2s ease, color 0.2s ease !important; /* Sanfter Hover-Effekt */
	text-transform: uppercase !important; /* Großbuchstaben wie in BB CI */
}

.custom-button:hover {
    background-color: #40851f !important; /* Dunkleres Grün beim Hover */
    border-color: #40851f !important; /* Angepasste Umrandung beim Hover */
    color: #ffffff !important; /* Weißer Text bleibt gleich */
}


h1, h2, h3, h4, h5, h6 {
    color: #0066a1 !important;
}
h2.has-text-align-center.has-link-color.wp-block-post-title.has-text-color.has-x-large-font-size.has-bb-font-family {
    text-transform: uppercase !important;
}
.wp-block-columns {
    gap: 10px !important; /* Abstand zwischen den Spalten */
}

h2 {
    margin-bottom: 10px !important; /* Abstand unter Überschrift */
}

.entry-content p {
    margin-bottom: 5px !important; /* Abstand zwischen Absätzen */
}

.custom-button-container {
    margin-top: 10px !important; /* Abstand über dem Button */
    margin-bottom: 10px !important; /* Abstand unter dem Button */
}
/*.wp-block-group.alignfull.is-style-default.has-global-padding.is-content-justification-center.is-layout-constrained.wp-container-core-group-is-layout-1.wp-block-group-is-layout-constrained {
    padding: 10px !important;
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
}*/
:root {
    --wp--preset--spacing--70: 20px !important; /* Neuer Wert */
}
.wp-block-post-featured-image a,
.wp-block-post-title a {
    pointer-events: none !important; /* Verhindert das Anklicken */
    cursor: default !important; /* Ändert den Cursor auf Standard */
    text-decoration: none !important; /* Entfernt die Unterstreichung */
    color: inherit !important; /* Behält die ursprüngliche Farbe */
}
/* Standard: Linie verstecken */
.post-separator {
    display: none;
}
@media (min-width: 768px) {
    .wp-block-post + .wp-block-post {
        border-top: 1px solid #ddd !important; /* Farbe der Linie */
        margin-top: 20px !important; /* Abstand oberhalb */
        padding-top: 20px !important; /* Abstand unterhalb */
    }
}
/* Breite und Abstände für alle Inhalte */
.entry-content {
    font-size: 16px !important; /* Einheitliche Schriftgröße */
    padding: 0 !important; /* Keine Innenabstände */
    margin: 0 !important; /* Keine Außenabstände */
    line-height: 1.5 !important; /* Lesbare Zeilenhöhe */
    width: 100% !important; /* Volle Breite nutzen */
    max-width: none !important; /* Begrenzung der Breite aufheben */
    text-align: left !important; /* Linksbündig */
}

/* Mobile-spezifische Regeln */
@media (max-width: 768px) {
    .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Anpassung für Buttons */
    .custom-button {
        /*width: 100% !important; /* Button nimmt die volle Breite ein */
        font-size: 16px !important; /* Einheitliche Schriftgröße */
    }

    /*img {
        width: 100% !important; /* Bilder nehmen volle Breite ein
        height: auto !important; /* Seitenverhältnis beibehalten 
    }*/
}
