/*
Theme Name: SMG Corporate
Description: Hochmodernes WordPress-Theme mit Custom Elementor Widgets für SMG Digital
Version: 1.0.0
Author: SMG Digital Team
Text Domain: smg-corporate
*/

/* ========================================================================
   MODERNE CSS RESET & GRUNDLAGEN
   ======================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* SMG Brand Colors */
    --primary-red: #dc2626;
    --primary-dark: #1f2937;
    --primary-light: #f8fafc;
    --accent-blue: #3b82f6;
    
    /* Typography */
    --font-primary: 'The Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'The Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --container-padding: 2rem;
    --section-padding: 4rem 0;
    
    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--primary-light);
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================================================
   ALTES MENÜ ENTFERNT - NUR NOCH MODERNE SIDEBAR NAVIGATION
   ======================================================================== */

/* ========================================================================
   CONTAINER & LAYOUT UTILITIES
   ======================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

/* ========================================================================
   SITE HEADER & NAVIGATION - DEAKTIVIERT (Moderne Sidebar wird verwendet)
   ======================================================================== */

.site-header {
    display: none; /* Header durch moderne Sidebar ersetzt */
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.site-branding {
    text-align: center;
    padding: 1rem 0;
}

.site-title a {
    color: var(--primary-dark);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.8rem;
}

.main-navigation {
    background: var(--primary-red);
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all var(--transition-base);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   ELEMENTOR OVERRIDES
   ======================================================================== */

.elementor-section-wrap {
    overflow: visible;
}

.elementor-widget-smg-hero,
.elementor-widget-smg-solutions,
.elementor-widget-smg-cases,
.elementor-widget-smg-spotlight,
.elementor-widget-smg-testimonials,
.elementor-widget-smg-stats,
.elementor-widget-smg-contact {
    position: relative;
}

/* ========================================================================
   CONTENT STYLING
   ======================================================================== */

.content-area {
    padding: 0 !important; /* Alle Paddings entfernt */
    margin: 0 !important;
}

/* Entferne alle oberen Abstände die durch WordPress/Elementor hinzugefügt werden könnten */
#content,
#primary,
.site-main,
#main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Elementor Container Anpassungen */
.elementor-section.elementor-top-section:first-child {
    margin-top: 0 !important;
}

.elementor-section.elementor-top-section:last-child {
    margin-bottom: 0 !important;
}

.elementor-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* WordPress Body Classes - Entferne Standardabstände */
.site {
    margin: 0 !important;
    padding: 0 !important;
}

/* Entferne Abstände von WordPress-Admin-Bar */
body.admin-bar {
    margin-top: 0 !important;
}

/* Page Wrapper ohne Abstände */
#page {
    margin: 0 !important;
    padding: 0 !important;
}

.entry-header {
    margin-bottom: 2rem;
}

/* Global H1 Styling - Extra Bold für maximale Wirkung */
h1,
.entry-title {
    font-family: var(--font-secondary);
    font-weight: 800; /* Extra Bold von "The Sans" */
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-red);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-secondary);
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
}

/* H1 in Content ist Extra Bold */
.entry-content h1 {
    font-weight: 800;
}

/* H2-H6 bleiben SemiBold */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.entry-content a:hover {
    border-bottom-color: var(--primary-red);
}

.read-more {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    margin-top: 1rem;
}

.read-more:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    color: white;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

/* ========================================================================
   MODERNE EFFEKTE & ANIMATIONEN
   ======================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================================================
   WEITERE SPACING-KORREKTUREN
   ======================================================================== */

/* Entferne alle WordPress-Standard-Margins */
.wp-site-blocks {
    margin: 0 !important;
    padding: 0 !important;
}

/* Elementor-spezifische Korrekturen */
.elementor-section-wrap {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
}

.elementor-section {
    margin: 0 !important;
}

.elementor-section:last-child {
    margin-bottom: 0 !important;
}

/* WordPress Content-Wrapper */
.site-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Template-spezifische Korrekturen */
.singular .site-main,
.home .site-main,
.page .site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer-Wrapper ohne Abstand zum Content */
.site-footer,
#colophon {
    margin-top: 0 !important;
}

/* Verhindere Lücken zwischen Body und ersten/letzten Elementen */
body > *:first-child {
    margin-top: 0 !important;
}

body > *:last-child {
    margin-bottom: 0 !important;
} 