/*
Theme Name: Theme1
Theme URI: 
Author: 
Author URI: 
Description: Ein modernes WordPress-Theme mit Gutenberg-Block-Unterstützung und globalen Stilen.
Requires at least: WordPress 5.9
Version: 1.0
Text Domain: theme1
Tags: gutenberg, blocks, custom-blocks, modern
*/

/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

/* Globale Stilregeln werden durch theme.json definiert */

/* Grundlegende Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e3a32;
    background-color: #ffffff;
}

a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e3a32;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typografie */
h1, h3, h5 {
    font-family: 'Oswald', sans-serif;
    color: #1e3a32; /* Dunkelgrün */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2, h4, h6 {
    font-family: 'Oswald', sans-serif;
    color: #ffffff; /* Weiß */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    background-color: #1e3a32; /* Hintergrund für bessere Sichtbarkeit */
    padding: 0.5rem;
}

/* Ausnahme für Seiten, die eigene Stile haben */
.post-impressum h2,
.post-impressum h4,
.post-impressum h6,
.post-datenschutz h2,
.post-datenschutz h4,
.post-datenschutz h6 {
    color: #1e3a32; /* Dunkelgrün für Impressum und Datenschutz */
    background-color: transparent;
    padding: 0;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Gleiche Größen für h1/h2 */
h1, h2 {
    font-size: 4rem;
    font-weight: 700;
}

/* Gleiche Größen für h3/h4 */
h3, h4 {
    font-size: 1.5rem;
}

/* Gleiche Größen für h5/h6 */
h5, h6 {
    font-size: 1rem;
}

p, ul, ol {
    margin-bottom: 1rem;
}

/* Helper-Klassen */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* Header-Stile */
.site-header {
    background-color: #1e3a32;
    color: #ffffff;
    padding: 0;
    margin: 0;
    width: 100%;
}

.site-branding {
    margin-bottom: 1rem;
}

.site-title a {
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Source Sans Pro', sans-serif;
    font-style: italic;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-right: 1.5rem;
}

.main-navigation a {
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.main-navigation a:hover {
    color: #d4af37;
    text-decoration: none;
}

/* Footer-Stile */
.site-footer {
    background-color: var(--wp--preset--color--primary, #1e3a32);
    color: var(--wp--preset--color--white, #ffffff);
    padding: 2rem 0;
}

.footer-widget-area {
    margin-bottom: 2rem;
}

.site-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--wp--preset--color--white, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    position: relative;
}

.footer-links a:hover {
    color: var(--wp--preset--color--accent, #d4af37);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

#footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 0;
}

#footer-menu li {
    margin-right: 1.5rem;
}

#footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.875rem;
}

#footer-menu a:hover {
    color: #d4af37;
}

.widget-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 50px;
    height: 2px;
    background-color: #d4af37;
}

/* Content-Bereich */
.site-main {
    padding: 2rem 0;
}

/* Responsive */
@media (min-width: 768px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        margin-bottom: 0;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Überschriften auf dunklen Hintergründen */
.has-dark-background h1,
.has-dark-background h3,
.has-dark-background h5,
[class*="has-primary-background-color"] h1,
[class*="has-primary-background-color"] h3,
[class*="has-primary-background-color"] h5,
[class*="has-dark-background-color"] h1,
[class*="has-dark-background-color"] h3,
[class*="has-dark-background-color"] h5 {
    color: #ffffff; /* Weiß auf dunklem Hintergrund */
}

/* Entferne Hintergrund bei weißen Überschriften auf dunklen Hintergründen */
.has-dark-background h2,
.has-dark-background h4,
.has-dark-background h6,
[class*="has-primary-background-color"] h2,
[class*="has-primary-background-color"] h4,
[class*="has-primary-background-color"] h6,
[class*="has-dark-background-color"] h2,
[class*="has-dark-background-color"] h4,
[class*="has-dark-background-color"] h6 {
    background-color: transparent;
    padding: 0;
}

/* Spezielle Behandlung für den Banner-Countdown-Block */
.theme1-banner-title {
    font-family: 'Oswald', sans-serif;
    background-color: transparent !important;
    padding: 0 !important;
    color: #ffffff !important;
}

/* Anpassungen für den Banner im Header */
.site-header .wp-block-theme1-banner-countdown {
    margin-top: 0;
}

/* Seitentitel ausblenden */
.entry-title,
.page-title,
.entry-header h1.entry-title,
.page-header h1.page-title {
    display: none !important;
}

/* Responsive Anpassungen */
@media (min-width: 768px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        margin-bottom: 0;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Spezielle Regeln für die Impressumsseite */
.post-impressum h1, 
.post-impressum .entry-title,
.post-datenschutz h1,
.post-datenschutz .entry-title {
    font-size: 2.5rem;
    color: #1e3a32;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.post-impressum h2,
.post-datenschutz h2 {
    font-size: 1.5rem;
    color: #1e3a32;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-impressum h3,
.post-datenschutz h3 {
    font-size: 1.5rem;
    color: #1e3a32;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-impressum h4,
.post-datenschutz h4 {
    font-size: 1.5rem;
    color: #1e3a32;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-impressum h5,
.post-datenschutz h5 {
    font-size: 1.5rem;
    color: #1e3a32;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-impressum h6,
.post-datenschutz h6 {
    font-size: 1.5rem;
    color: #1e3a32;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/**
 * MailPoet Integration Styles
 */
.theme1-mailpoet-success-message {
    background-color: #b89b30;
    color: #ffffff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .theme1-mailpoet-success-message {
        width: 90%;
        left: 5%;
        right: auto;
    }
}

/* Newsletter-Block Styles werden in der inc/mailpoet-integration.php definiert */ 