/*
Theme Name: Muenchenbits - Astra Child
Theme URI: https://muenchen-edv.de
Description: Child-Theme für muenchen-edv.de - EDV-Beratung & Energievermittlung in München. Modernisiertes Design mit guter Lesbarkeit für alle Altersgruppen.
Author: München EDV
Author URI: https://muenchen-edv.de
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ==========================================================================
   Muenchenbits Design System
   Farbschema inspiriert vom Logo: Münchner Skyline + Binärcode
   Optimiert für Lesbarkeit (ältere Zielgruppe)
   ========================================================================== */

:root {
    /* Primärfarben */
    --mb-primary: #1a5276;         /* Tiefes Blau - Vertrauen & Professionalität */
    --mb-primary-light: #2980b9;   /* Helles Blau - Akzente */
    --mb-primary-dark: #0e2f44;    /* Dunkles Blau - Header/Footer */

    /* Sekundärfarben */
    --mb-accent: #e67e22;          /* Warmes Orange - Energie/Strom/Gas */
    --mb-accent-light: #f39c12;    /* Helles Orange - Hover */

    /* Neutraltöne */
    --mb-text: #2c3e50;            /* Dunkler Text - sehr gut lesbar */
    --mb-text-light: #566573;      /* Sekundärer Text */
    --mb-bg: #ffffff;              /* Weißer Hintergrund */
    --mb-bg-light: #f8f9fa;        /* Leichtes Grau für Sektionen */
    --mb-bg-warm: #fef9f3;         /* Warmer Hintergrund für Energie-Bereich */
    --mb-border: #dee2e6;          /* Dezente Trennlinien */

    /* Erfolg/Info */
    --mb-success: #27ae60;         /* Grün */
    --mb-info: #3498db;            /* Info-Blau */
}


/* ==========================================================================
   Typografie - Gut lesbar, auch auf kleinen Bildschirmen
   ========================================================================== */

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--mb-text);
    background-color: var(--mb-bg);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Roboto Slab', 'Georgia', serif !important;
    color: var(--mb-primary-dark) !important;
    line-height: 1.3;
    margin-bottom: 0.6em;
    font-weight: 700;
}

h1, .entry-title { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Untertitel / Tagline / Beschreibungstext unter Überschriften */
.ast-site-identity .site-description,
.site-header .site-description {
    color: var(--mb-text-light) !important;
    font-size: 1rem !important;
}

/* Elementor Untertitel & Textwidgets unter Überschriften */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.entry-content p,
.ast-archive-description p {
    color: var(--mb-text) !important;
    font-size: 18px;
    line-height: 1.7;
}

/* Seitentitel die evtl. über Elementor weiß gefärbt wurden */
.elementor-widget-heading .elementor-heading-title[style*="color"],
.elementor-element .elementor-heading-title {
    color: var(--mb-primary-dark) !important;
}

p {
    margin-bottom: 1.2em;
}


/* ==========================================================================
   Obere Header-Leiste (E-Mail, Telefon)
   ========================================================================== */

.ast-above-header-bar,
.ast-above-header-wrap,
.ast-above-header {
    background-color: var(--mb-primary) !important;
}

.ast-above-header-bar *,
.ast-above-header-bar a,
.ast-above-header-bar .ast-builder-html-element,
.ast-above-header-bar .ast-builder-html-element a,
.ast-above-header-bar span,
.ast-above-header-bar p,
.site-above-header-wrap * {
    color: #ffffff !important;
}

.ast-above-header-bar a:hover {
    color: var(--mb-accent-light) !important;
}

/* Telefon/E-Mail in oberer Leiste gut lesbar */
.ast-above-header-bar a[href^="tel:"],
.ast-above-header-bar a[href^="mailto:"] {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
}

.ast-above-header-bar a[href^="tel:"]:hover,
.ast-above-header-bar a[href^="mailto:"]:hover {
    color: var(--mb-accent-light) !important;
}


/* ==========================================================================
   Header - Professionell & modern
   ========================================================================== */

.ast-primary-header-bar,
.ast-main-header-bar-alignment {
    background-color: var(--mb-primary-dark) !important;
}

/* Navigation */
.ast-header-break-point .ast-primary-header-bar {
    background-color: var(--mb-primary-dark) !important;
}

.main-header-menu > .menu-item > .menu-link,
.ast-header-break-point .main-header-menu > .menu-item > .menu-link,
.main-navigation > ul > li > a {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link,
.main-navigation > ul > li > a:hover {
    color: var(--mb-accent-light) !important;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* ==========================================================================
   Dropdown/Untermenü - Gut sichtbar auch ohne Hover
   ========================================================================== */

/* Dropdown-Hintergrund */
.main-header-menu .sub-menu,
.ast-builder-menu .sub-menu,
.ast-desktop .main-header-menu .sub-menu,
.main-navigation .sub-menu {
    background-color: #ffffff !important;
    border: 1px solid var(--mb-border);
    border-top: 3px solid var(--mb-accent) !important;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}

/* Dropdown-Einträge: Dunkle Schrift auf weißem Hintergrund */
.main-header-menu .sub-menu .menu-link,
.main-header-menu .sub-menu .menu-item > .menu-link,
.ast-builder-menu .sub-menu .menu-link,
.ast-desktop .main-header-menu .sub-menu .menu-link,
.main-navigation .sub-menu a {
    color: var(--mb-text) !important;
    background-color: #ffffff !important;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px;
    border-bottom: 1px solid var(--mb-bg-light);
    transition: all 0.2s ease;
}

/* Dropdown-Einträge: Hover */
.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-item > .menu-link:hover,
.main-header-menu .sub-menu .current-menu-item > .menu-link,
.ast-builder-menu .sub-menu .menu-link:hover,
.main-navigation .sub-menu a:hover {
    color: var(--mb-primary) !important;
    background-color: var(--mb-bg-light) !important;
    padding-left: 24px;
}

/* Hamburger-Menü auf Mobilgeräten */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .ast-mobile-menu-buttons-minimal,
.ast-mobile-menu-trigger-fill,
.menu-toggle {
    color: #ffffff !important;
}

/* Mobiles Dropdown-Menü */
.ast-header-break-point .main-header-menu .sub-menu,
.ast-header-break-point .main-navigation .sub-menu {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    box-shadow: none;
}

.ast-header-break-point .main-header-menu .sub-menu .menu-link,
.ast-header-break-point .main-navigation .sub-menu a {
    color: #ffffff !important;
    background-color: transparent !important;
    padding-left: 30px;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   Buttons - Groß, deutlich, gut klickbar
   ========================================================================== */

.wp-block-button__link,
.elementor-button,
.ast-custom-button,
a.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background-color: var(--mb-primary) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 48px; /* Touch-freundlich */
}

.wp-block-button__link:hover,
.elementor-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--mb-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sekundärer Button-Stil */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--mb-primary) !important;
    border: 2px solid var(--mb-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--mb-primary) !important;
    color: #ffffff !important;
}


/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--mb-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--mb-accent);
    text-decoration: underline;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--mb-accent);
}


/* ==========================================================================
   Content & Sektionen
   ========================================================================== */

.site-content {
    padding-top: 0;
}

/* Abwechselnde Hintergrundfarben für Sektionen */
.elementor-section:nth-child(even),
.wp-block-group.has-background {
    background-color: var(--mb-bg-light);
}

/* Karten-Design für Dienste */
.elementor-widget-icon-box,
.elementor-widget-image-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.elementor-widget-icon-box:hover,
.elementor-widget-image-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--mb-accent);
}

/* Icons in den Karten */
.elementor-icon {
    color: var(--mb-primary) !important;
    transition: color 0.3s ease;
}

.elementor-widget-icon-box:hover .elementor-icon {
    color: var(--mb-accent) !important;
}


/* ==========================================================================
   Energie-Bereich (Gas & Strom) - Besonderer Akzent
   ========================================================================== */

.energie-section,
.strom-gas-section {
    background: linear-gradient(135deg, var(--mb-bg-warm) 0%, #fff5eb 100%);
    border-left: 4px solid var(--mb-accent);
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}


/* ==========================================================================
   Footer - Klar & informativ
   ========================================================================== */

.ast-footer-overlay,
.site-footer,
footer.site-footer,
.ast-small-footer {
    background-color: var(--mb-primary-dark) !important;
    color: #d5d8dc !important;
}

.site-footer a,
.ast-small-footer a,
footer a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.site-footer a:hover,
footer a:hover {
    color: var(--mb-accent-light) !important;
}

.site-footer h4,
.site-footer .widget-title {
    color: #ffffff !important;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--mb-accent);
    padding-bottom: 8px;
    margin-bottom: 15px;
}


/* ==========================================================================
   Logo - Responsive Optimierung
   ========================================================================== */

/* Desktop: Logo schön groß */
.ast-site-identity .custom-logo-link img,
.site-logo-img .custom-logo,
.custom-logo {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.85;
}

/* Site-Titel neben Logo */
.ast-site-identity .site-title a {
    color: #ffffff !important;
    font-family: 'Roboto Slab', serif !important;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Site-Beschreibung im Header - gut sichtbar */
.ast-site-identity .site-description {
    color: #d5dbe0 !important;
    font-size: 0.95rem !important;
}

/* Tablet */
@media (max-width: 992px) {
    .ast-site-identity .custom-logo-link img,
    .site-logo-img .custom-logo,
    .custom-logo {
        max-height: 70px;
    }

    .ast-site-identity .site-title a {
        font-size: 1.2rem;
    }
}

/* Smartphone */
@media (max-width: 544px) {
    .ast-site-identity .custom-logo-link img,
    .site-logo-img .custom-logo,
    .custom-logo {
        max-height: 55px;
    }

    .ast-site-identity .site-title a {
        font-size: 1rem;
    }

    .ast-site-identity .site-description {
        display: none;
    }
}


/* ==========================================================================
   Responsive Design - Mobile First für ältere Nutzer
   ========================================================================== */

/* Größere Schrift auf Mobilgeräten für bessere Lesbarkeit */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.75;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    /* Mehr Abstand zwischen klickbaren Elementen */
    .main-header-menu .menu-link {
        padding: 14px 20px;
        font-size: 17px;
    }

    /* Breitere Buttons auf Mobil */
    .wp-block-button__link,
    .elementor-button {
        width: 100%;
        text-align: center;
        padding: 16px 24px !important;
    }

    /* Karten untereinander statt nebeneinander */
    .elementor-widget-icon-box,
    .elementor-widget-image-box {
        margin-bottom: 20px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 375px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
}


/* ==========================================================================
   Kontakt-Bereich - Gut sichtbar
   ========================================================================== */

.kontakt-box,
.elementor-widget-text-editor a[href^="tel:"],
a[href^="tel:"] {
    color: var(--mb-primary) !important;
    font-weight: 600;
    font-size: 1.1em;
}

a[href^="tel:"]:hover {
    color: var(--mb-accent) !important;
}

a[href^="mailto:"] {
    color: var(--mb-primary) !important;
    font-weight: 500;
}

a[href^="mailto:"]:hover {
    color: var(--mb-accent) !important;
}


/* ==========================================================================
   Barrierefreiheit & Komfort
   ========================================================================== */

/* Bessere Fokus-Markierung für Tastatur-Navigation */
*:focus-visible {
    outline: 3px solid var(--mb-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Bilder abgerundet */
.entry-content img,
.elementor-image img {
    border-radius: 8px;
}

/* Scroll-to-Top Button */
#ast-scroll-top {
    background-color: var(--mb-primary) !important;
    color: #ffffff !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#ast-scroll-top:hover {
    background-color: var(--mb-accent) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Bessere Auswahl-Farbe */
::selection {
    background-color: var(--mb-primary-light);
    color: #ffffff;
}
