/* ===================================
   CSS VARIABLES - Zentrale Farbdefinitionen
   =================================== */
:root {
    /* SCS Hauptfarben - nur für Akzente */
    --scs-red: #e31e24;
    --scs-red-dark: #c41e3a;
    --scs-red-light: #ff3842;
    
    /* epiLoom Farben - nur für Akzente */
    --epiloom-teal: #5db4c4;
    --epiloom-teal-dark: #4a97a8;
    --epiloom-teal-light: #6fc8d7;
    
    /* Clarivio Farben - nur für Akzente */
    --clarivio-cyan: #4ebdc6;
    --clarivio-cyan-dark: #3a9daa;
    --clarivio-cyan-light: #62d4de;
    
    /* Neutrale Farben - Hauptdesign */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f5f5f5;
    --bg-ultra-light: #fafbfc;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Neutrale Grautöne für Hero-Sections */
    --neutral-dark: #2c3e50;
    --neutral-medium: #34495e;
    --neutral-light: #95a5a6;
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===================================
   RESET & BASIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-ultra-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

.logo img {
    height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background-color: var(--bg-light);
    color: var(--scs-red);
}

.main-nav a.active {
    background-color: var(--text-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   BURGER MENU (Mobile)
   =================================== */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Desktop: Verstecke Burger-Menu und zeige normale Navigation */
@media (min-width: 769px) {
    .burger-menu {
        display: none !important;
    }
    
    .main-nav {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===================================
   HERO SECTIONS - NEUTRALES DESIGN
   =================================== */
.hero {
    background: linear-gradient(165deg, var(--bg-white) 0%, var(--bg-ultra-light) 50%, #ffffff 100%);
    color: var(--text-dark);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(227, 30, 36, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.85;
    position: relative;
    color: var(--text-medium);
}

.hero-logo {
    max-width: 450px;
    margin: 0 auto 50px;
    position: relative;
    animation: fadeInUp 0.8s ease;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.hero-logo img {
    width: 100%;
    height: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PROJECT HERO SECTIONS - WEISSE BOXEN
   =================================== */
.project-hero {
    background: linear-gradient(165deg, var(--bg-ultra-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    color: var(--text-dark);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.project-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(93, 180, 196, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.project-hero.epiloom::before {
    background: radial-gradient(ellipse at center, rgba(93, 180, 196, 0.05) 0%, transparent 70%);
}

.project-hero.clarivio::before {
    background: radial-gradient(ellipse at center, rgba(78, 189, 198, 0.05) 0%, transparent 70%);
}

.project-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    color: var(--text-dark);
}

.project-hero .tagline {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.8;
    position: relative;
    color: var(--text-medium);
}

.project-hero .project-logo-large {
    max-width: 550px;
    margin: 0 auto 50px;
    position: relative;
    animation: fadeInUp 0.8s ease;
    padding: 50px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.project-hero.epiloom .project-logo-large {
    border-top: 4px solid var(--epiloom-teal);
}

.project-hero.clarivio .project-logo-large {
    border-top: 4px solid var(--clarivio-cyan);
}

.project-hero .project-logo-large img {
    width: 100%;
    height: auto;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.content-section:nth-child(even) {
    background-color: var(--bg-ultra-light);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2.2em;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-wrapper p {
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid var(--border-light);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-dark);
}

.project-logo {
    padding: 70px 40px;
    background-color: white;
    text-align: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.project-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-logo img {
    transform: scale(1.05);
}

.project-info {
    padding: 35px;
}

.project-info h3 {
    font-size: 1.9em;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.project-info p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05em;
}

/* ===================================
   FEATURES GRID
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-dark);
}

/* epiLoom Seite - spezifische Hover-Farbe */
.epiloom ~ .content-section .feature-box:hover,
.project-hero.epiloom ~ .content-section .feature-box:hover {
    border-color: var(--epiloom-teal);
}

/* Clarivio Seite - spezifische Hover-Farbe */
.clarivio ~ .content-section .feature-box:hover,
.project-hero.clarivio ~ .content-section .feature-box:hover {
    border-color: var(--clarivio-cyan);
}

.feature-box h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 600;
}

.feature-box p {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.6;
}

/* ===================================
   BUTTONS
   =================================== */
.cta-button {
    display: inline-block;
    padding: 16px 42px;
    background-color: var(--text-dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: var(--scs-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

/* Spezielle Button-Farben für Projektseiten */
.project-hero.epiloom ~ section .cta-button {
    background-color: var(--epiloom-teal);
    box-shadow: 0 4px 15px rgba(93, 180, 196, 0.3);
}

.project-hero.epiloom ~ section .cta-button:hover {
    background-color: var(--epiloom-teal-dark);
    box-shadow: 0 6px 20px rgba(93, 180, 196, 0.4);
}

.project-hero.clarivio ~ section .cta-button {
    background-color: var(--clarivio-cyan);
    box-shadow: 0 4px 15px rgba(78, 189, 198, 0.3);
}

.project-hero.clarivio ~ section .cta-button:hover {
    background-color: var(--clarivio-cyan-dark);
    box-shadow: 0 6px 20px rgba(78, 189, 198, 0.4);
}

/* ===================================
   FOOTER
   =================================== */
.main-footer {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, #1a252f 100%);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.3em;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.95em;
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-button {
    cursor: pointer;
    border: none;
    background-color: var(--text-dark);
    color: white;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.form-button:hover {
    background-color: var(--scs-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.25);
}

.form-button:active {
    transform: translateY(0);
}

.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 20px;
    }
    
    .burger-menu {
        display: flex !important;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    /* Verstecke die Navigation komplett auf Mobile */
    .main-nav {
        display: none;
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    /* Zeige die Navigation nur wenn active */
    .main-nav.active {
        display: block !important;
        right: 0 !important;
    }
    
    .logo img {
        height: 150px;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        width: 100%;
        list-style: none;
    }
    
    .main-nav a {
        display: block !important;
        width: 100%;
        padding: 18px 30px;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--border-light);
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    .main-nav a:hover {
        background-color: var(--bg-light) !important;
        padding-left: 35px;
        color: var(--text-dark) !important;
    }
    
    .main-nav a.active {
        background-color: var(--bg-light) !important;
        border-left: 4px solid var(--text-dark);
        color: var(--text-dark) !important;
        box-shadow: none !important;
    }
    
    .hero,
    .project-hero {
        padding: 60px 20px;
    }
    
    .hero h1,
    .project-hero h1 {
        font-size: 2.2em;
    }
    
    .hero p,
    .project-hero .tagline {
        font-size: 1.15em;
    }
    
    .hero-logo,
    .project-hero .project-logo-large {
        max-width: 300px;
        padding: 30px;
    }
    
    .content-section {
        padding: 50px 20px;
    }
    
    .content-wrapper h2 {
        font-size: 1.8em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .project-hero h1 {
        font-size: 1.8em;
    }
    
    .cta-button,
    .form-button {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }
