/* Ausgelagerte Styles für den Home/Hero-Bereich */
/* Basis Hero-Container */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 50px 0 0px;
    margin-top: 20px;
    min-height: 50vh;
    overflow: hidden;
    
}

/* 2-Column Hero Layout */
.hero-two-columns {
    display: flex;
    width: 100%;
    height: 580px;
    align-items: center;
    gap: 0rem;
    padding: 0rem;
    z-index: 4;
    position: relative;
}

.hero-slideshow.hero-left {
    flex: 1;
    height: 580px;
    min-height: 580px;
    width: calc(100% - 200px);
    display: flex;
}

.hero-content-right {
    flex: 0 0 450px;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    background: rgba(41, 128, 185, 0.8);
    border:5px solid rgba(255, 255, 255, 0.2);
    margin-right: 20px;

    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 580px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 580px;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Special height adjustment for Java slide (Slide 2) with complex flowchart */
.hero-slide[data-language="java"] {
    height: calc(100% + 150px);
    min-height: 650px;
}

.hero-slide[data-language="java"] .hero-split-content {
    height: calc(100% + 150px);
    min-height: 650px;
}

/* Hero Split Layout */
.hero-split-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* Code Visualization Backgrounds */
.code-visualization {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 1rem);
    height: auto;
    min-height: 300px;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    padding: 1.5rem;
    overflow: visible;
    border-radius: 15px;
    z-index: 2;
}

/* Diagram Visualization */
.diagram-visualization {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 1rem);
    height: auto;
    min-height: 300px;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}





/* Specific positioning adjustments for individual slides */

.home-welcome-boxImages {
    position: relative;
    height: 520px;
    width: 770px;
    transform: translateX(-20%);
    padding: 0;
    margin: 0;
    float:right;

    justify-content: center;
    border:10px solid #eeeeee;
    border-radius: 5px;
    z-index: 2; /* hinter der Logo-Sektion bleiben */
    transition: transform .25s ease;
}


.home-welcome-boxImages:hover { cursor: pointer; }

.home-welcome-image {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 500px;
    pointer-events: auto;
}


.home-welcome-image[part="wolke2"]:hover {filter: drop-shadow(5px 5px 5px rgba(50,100,150,0.65)); transform: scale(0.8); transition: transform .50s ease;}
.home-welcome-image[part="wolke1"]:hover {filter: drop-shadow(5px 5px 5px rgba(50,100,150,0.65)); }
.home-welcome-image[part="coffee"]:hover { transform: translate(5px, 5px); transition: transform .50s ease;}
.home-welcome-image[part="laptop"]:hover {transform: translate(-5px, -5px); transform: rotate(5deg);transition: transform 0.75s ease; }
.home-welcome-image[part="brille"]:hover {transform: translate(-5px, -5px); transform: rotate(-180deg);transition: transform 1.75s ease; }
.home-welcome-image[part="symb1"]:hover {transform:scale(1.2) translate(-10px, -10px); transition: transform 1.75s ease; }
.home-welcome-image[part="symb2"]:hover {
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: hue-rotate(280deg) saturate(2) brightness(1.05) drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

/* Reaktions-Element (z. B. Brille) soll über anderen Layern liegen und weich animieren */
.home-welcome-image.imageReaction { transition: transform .25s ease; z-index: 100; pointer-events: auto; }

.home-welcome-image[part="back"] {
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid white;
    z-index: 0;
}


.home-welcome-image[part="skyline"] {
    z-index: 1; /* über Hintergrundebenen liegen */
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="skyline"]:hover {
    filter: drop-shadow(5px 5px 5px rgba(100,80,50,0.95));
}

.home-welcome-image[part="wolke1"] {
    z-index: 1;
    height: 50px;
    left: 50px;
    top: 10px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="wolke2"] {
    z-index: 1;
    height: 60px;
    left: 300px;
    top: 60px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="coffee"] {
    z-index: 1;
    height: 90px;
    left: 10px;
    top: 360px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}


.home-welcome-image[part="laptop"] {
    z-index: 1;
    height: 300px;
    left: 170px;
    top: 180px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="brille"] {
    z-index: 1;
    height: 50px;
    left: 600px;
    top: 400px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="symb1"] {
    z-index: 1;
    height: 70px;
    left: 90px;
    top: 90px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.home-welcome-image[part="symb2"] {
    z-index: 2; /* über Hintergrund, unter Skyline */
    height: 80px;
    left: 610px;
    top: 40px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.app-headline {
    position: absolute;
    top: 15%;
    left: 20%;
    z-index: 10;
    text-align: left;
    font-size: 2.0rem;
    line-height: 1.2;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));

}   

.app-boxImages {
    position: relative;
    height: 520px;
    width: 100%;

    padding: 0;
    margin: 0;
    float:right;
    transform: translateX(-10%);

    justify-content: center;
    z-index: 1; /* hinter der Logo-Sektion bleiben */
    transition: transform .25s ease;
}

.app-image {
    position: absolute;
    padding: 0;
    margin: 0;
    transition: transform .25s ease;
}

.app-image[part="back"] {
    height: 100%;
    bottom:0%;
    right:0%;
    z-index: 0;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.app-image[part="laptop"] {
    height: 40%;
    bottom:20%;
    right:20%;
    z-index: 3;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.app-image[part="mobile"] {
    height: 30%;
    bottom:23%;
    right:44%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}
.app-image[part="tablet"] {
    height: 30%;
    bottom:0%;
    right:0%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}
.app-image[part="cloud"] {
    height: 20%;
    top:10%;
    right:4%;
    z-index: 1;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}
.app-image[part="database"] {
    height: 20%;
    bottom:45%;
    right:5%;
    z-index: 2;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

/* Slider Webanwendungen - Headline */
.web-image {
    position: relative;
    float: right;
    margin: 0;
    height:580px;
    padding: 0;
    z-index: 0; /* hinter der Logo-Sektion bleiben */
}

.web-boxImages{
    position: relative;
    height: 520px;
    width: 100%;
    max-width:1200px;
    overflow:hidden;
    padding: 0;
    margin: 0;
    float:right;
    transform: translateX(0%);
    z-index: 1; /* hinter der Logo-Sektion bleiben */
    transition: transform .25s ease;
    
}

.web-image[part="back"] {
    position: absolute;
    height:90%;
    right:0%;
    top:10%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-image[part="html"] {
    position: absolute;
    height:50%;
    left:18%;
    top:30%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-image[part="front"] {
    position: absolute;
    height:40%;
    left:15%;
    top:53%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-image[part="login2"] {
    position: absolute;
    height:30%;
    left:32%;
    top:40%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-image[part="register"] {
    position: absolute;
    height:15%;
    left:21%;
    top:80%;
    z-index: 4;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-image[part="checkout"] {
    position: absolute;
    height:30%;
    left:28%;
    top:60%;
    z-index: 5;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-headline {
    position: absolute;
    top: 4%;
    left: 15%;
    z-index: 10;
    text-align: left;
    line-height: 1.2;
}   

.web-headline h1 {
    font-size: 3.0rem;
    font-family: 'Calibri', sans-serif !important;
    color: #ffffff;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

.web-headline h3 {
    font-size: 1.5rem;
    font-family: 'Calibri', sans-serif !important;
    margin-bottom: 15px;
    color: #ffffff;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.65));
}


.database-image[part="back"] {
    position: absolute;
    height:85%;
    right:0%;
    top:15%;
    z-index: 1;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}
.database-image[part="server"] {
    position: absolute;
    height:45%;
    left:15%;
    bottom:2%;
    z-index: 2;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.65));
}

/* C# .NET Slide - 100px down, 50px right */
.hero-slide[data-language="csharp"] .code-visualization {
    transform: translate(50px, calc(-50% + 100px)) !important;
    top: 35% !important;
    left: 2rem !important;
}


/* Java Enterprise Slide - 200px up */
.hero-slide[data-language="java"] .code-visualization {
    transform: translate(50px,calc(-50% - 200px)) !important;
    top: 50% !important;
}

/* JavaScript Slide - 100px up, 50px right */
.hero-slide[data-language="javascript"] .code-visualization {
    transform: translate(50px, calc(-40% - 100px)) !important;
    top: 50% !important;
    left: 2rem !important;
}



/* PHP Backend Slide - 150px up */
.hero-slide[data-language="php"] .code-visualization {
    transform: translateY(calc(-50% - 10px)) !important;
    top: 50% !important;
}

/* Process Flow (Java) Diagram - 100px up */
.hero-slide[data-language="java"] .diagram-visualization {
    /* Kombinierte Transformation: Position + Skalierung */
    transform: translateY(calc(-55% - 100px)) scale(0.9) !important;
    transform-origin: top center;
    top: 50% !important;
    max-height: 550px !important;
    /* Inhalt innerhalb der dunkelblauen Fläche halten */
    overflow: hidden;
}

/* SQL Queries Slide - 50px right */
.hero-slide[data-language="database"] .code-visualization {
    transform: translate(50px, -50%) !important;
    top: 50% !important;
    left: 2rem !important;
}

/* JavaScript Architecture Slide - Larger window, moved down */
.hero-slide[data-language="javascript"] .diagram-visualization {
    max-height: 480px !important;
    min-height: 480px !important;
    height: auto !important;
    overflow: hidden !important;
    transform: translateY(calc(-50% + 10px)) !important;
    top: 50% !important;
}

/* Quality Detail Slide - begrenzte Höhe und saubere Darstellung */
.hero-slide[data-language="quality-detail"] .diagram-visualization {
    left: 1rem !important;
    right: 1rem !important;
    width: calc(100% - 2rem) !important;
    max-height: 520px !important;
    min-height: 520px !important;
    height: auto !important;
    overflow: hidden !important; /* Scrollen unterbinden */
    transform: translateY(-50%) !important;
    top: 50% !important;
}

/* Code-Bereich auf der Qualitätsdetail-Folie ausblenden, um volle Breite zu nutzen */
.hero-slide[data-language="quality-detail"] .code-visualization {
    display: none !important;
}

.hero-slide[data-language="quality-detail"] .diagram-visualization .qd-grid {
    transform: none;
    transform-origin: top center;
}

/* Scale down Process Flow (Java) diagram by 20% */
.hero-slide[data-language="java"] .diagram-visualization .flowchart {
    transform: scale(0.85);
    transform-origin: top center;
    padding-top: 50px;

}

/* Scale down JavaScript Architecture diagram by 20% */
.hero-slide[data-language="javascript"] .diagram-visualization .component-architecture {
    transform: scale(0.9);
    transform-origin: top center;
}

.code-lines {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-line {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1.0s; }
.code-line:nth-child(6) { animation-delay: 1.2s; }
.code-line:nth-child(7) { animation-delay: 1.4s; }
.code-line:nth-child(8) { animation-delay: 1.6s; }
.code-line:nth-child(9) { animation-delay: 1.8s; }
.code-line:nth-child(10) { animation-delay: 2.0s; }
.code-line:nth-child(11) { animation-delay: 2.2s; }
.code-line:nth-child(12) { animation-delay: 2.4s; }

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.diagram-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== UML CLASS DIAGRAM ===== */
.uml-class-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uml-class, .uml-interface {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4ec9b0;
    border-radius: 8px;
    margin: 10px 0;
    min-width: 250px;
    backdrop-filter: blur(5px);
}

.uml-class-header, .uml-interface-header {
    background: #4ec9b0;
    color: #000;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

.uml-class-attributes, .uml-class-methods, .uml-interface-methods {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.uml-class-attributes div, .uml-class-methods div, .uml-interface-methods div {
    margin: 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.uml-arrow {
    color: #4ec9b0;
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
}

/* ===== FLOWCHART ===== */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-height: 600px;
    justify-content: center;
}

.flowchart-node {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    min-width: 150px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.flowchart-node.start, .flowchart-node.end {
    border-radius: 50px;
    background: rgba(231, 76, 60, 0.3);
}

.flowchart-node.decision {
    transform: rotate(45deg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flowchart-node.decision div {
    transform: rotate(-45deg);
}

.flowchart-arrow {
    color: #e74c3c;
    font-size: 1.2rem;
    margin: 3px 0;
}

.flowchart-branches {
    display: flex;
    gap: 30px;
    margin: 12px 0;
}

.flowchart-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-label {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ===== COMPONENT ARCHITECTURE ===== */
.component-architecture {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
    max-height: 500px;
    justify-content: center;
    overflow: visible;
}

.arch-layer {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid;
    border-radius: 8px;
    margin: 6px 0;
    width: 100%;
    max-width: 250px;
    backdrop-filter: blur(5px);
}

.arch-layer.frontend {
    border-color: #f39c12;
}

.arch-layer.backend {
    border-color: #3498db;
}

.arch-layer.database {
    border-color: #9b59b6;
}

.layer-title {
    padding: 8px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.arch-layer.frontend .layer-title {
    background: rgba(243, 156, 18, 0.3);
}

.arch-layer.backend .layer-title {
    background: rgba(52, 152, 219, 0.3);
}

.arch-layer.database .layer-title {
    background: rgba(155, 89, 182, 0.3);
}

.components {
    padding: 10px;
}

.component {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    margin: 3px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
}

.arch-connector {
    color: #ecf0f1;
    font-weight: bold;
    margin: 6px 0;
    font-size: 0.9rem;
}

/* ===== ERP SYSTEM ===== */
.erp-system {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
}

.erp-center {
    margin-bottom: 20px;
}

.erp-core {
    background: rgba(142, 68, 173, 0.4);
    border: 3px solid #8e44ad;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.erp-modules {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.erp-module {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid;
    border-radius: 10px;
    padding: 15px;
    min-width: 120px;
    backdrop-filter: blur(5px);
}

.erp-module.crm {
    border-color: #e74c3c;
}

.erp-module.inventory {
    border-color: #3498db;
}

.erp-module.finance {
    border-color: #f39c12;
}

.module-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.module-items {
    font-size: 0.8rem;
}

.module-items div {
    margin: 3px 0;
}

/* ===== DATABASE SCHEMA ===== */
.database-schema {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    gap: 15px;
    max-height: 400px;
    justify-content: center;
}

.database-schema.compact {
    gap: 8px;
    max-height: 300px;
}

.db-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.db-connector {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.db-spacer {
    min-width: 150px;
}

.db-table {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #3498db;
    border-radius: 8px;
    min-width: 160px;
    max-width: 180px;
    backdrop-filter: blur(5px);
}

.table-header {
    background: #3498db;
    color: #000;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    border-radius: 6px 6px 0 0;
    font-size: 0.9rem;
}

.table-fields {
    padding: 8px;
}

.field {
    margin: 3px 0;
    padding: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border-radius: 3px;
    line-height: 1.2;
}

.field.primary {
    background: rgba(241, 196, 15, 0.3);
    border-left: 3px solid #f1c40f;
}

.field.foreign {
    background: rgba(231, 76, 60, 0.3);
    border-left: 3px solid #e74c3c;
}

.db-relation {
    color: #3498db;
    font-weight: bold;
    text-align: center;
}

/* Language-specific backgrounds */
.csharp-bg {
    background: linear-gradient(135deg, #239b56 0%, #27ae60 100%);
}

.java-bg {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.js-bg {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.php-bg {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.sql-bg {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Syntax highlighting for code visualizations */
.keyword {
    color: #569cd6;
    font-weight: bold;
}

.classname {
    color: #4ec9b0;
    font-weight: bold;
}

.method {
    color: #dcdcaa;
}

.string {
    color: #ce9178;
}

.variable {
    color: #9cdcfe;
}

.type {
    color: #4ec9b0;
}

.comment {
    color: #6a9955;
    font-style: italic;
}

.php-tag {
    color: #f92672;
    font-weight: bold;
}

/* Responsive code visualization */
@media (max-width: 1024px) {
    .hero-split-content {
        padding: 1rem;
    }
    
    .code-visualization {
        position: absolute;
        left: 1rem;
        top: 10%;
        width: calc(100% - 2rem);
        height: 250px;
        transform: none;
    }
    
    .diagram-visualization {
        position: absolute;
        right: 1rem;
        top: 60%;
        width: calc(100% - 2rem);
        height: 250px;
        transform: none;
    }
}

@media (max-width: 1024px) {
    /* Hero-Bereich auf Tablets und Smartphones verbergen */
    #home,
    .hero,
    .hero-two-columns,
    .hero-slideshow,
    .hero-content-right,
    .hero-info-bar,
    .hero-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Gesamte Hero-Section auf Mobile ausblenden */
    .hero {
        display: none !important;
    }
    
    .hero-two-columns {
        display: none !important;
    }
    
    .hero-slideshow.hero-left,
    .hero-slideshow {
        display: none !important;
    }
    
    .hero-content-right {
        display: none !important;
    }
    
    .hero-split-content {
        padding: 1rem;
    }
    
    .code-visualization {
        position: absolute;
        left: 1rem;
        top: 5%;
        width: calc(100% - 2rem);
        height: 200px;
        padding: 1rem;
        transform: none;
    }
    
    .diagram-visualization {
        position: absolute;
        right: 1rem;
        top: 55%;
        width: calc(100% - 2rem);
        height: 200px;
        padding: 1rem;
        transform: none;
    }
    
    .code-lines {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .code-line {
        font-size: 0.7rem;
        margin: 0.3rem 0;
    }
    
    .language-badge, .diagram-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    /* Responsive diagram adjustments */
    .uml-class, .uml-interface {
        min-width: 180px;
    }
    
    .flowchart-branches {
        flex-direction: column;
        gap: 20px;
    }
    
    .erp-modules {
        flex-direction: column;
        gap: 10px;
    }
    
    .arch-layer {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-split-content {
        padding: 0.5rem;
    }
    
    .code-visualization {
        position: absolute;
        left: 0.5rem;
        top: 2%;
        width: calc(100% - 1rem);
        height: 180px;
        padding: 0.8rem;
        transform: none;
    }
    
    .diagram-visualization {
        position: absolute;
        right: 0.5rem;
        top: 52%;
        width: calc(100% - 1rem);
        height: 180px;
        padding: 0.8rem;
        transform: none;
    }
    
    .code-lines {
        padding: 0.8rem;
    }
    
    .code-line {
        font-size: 0.6rem;
        margin: 0.2rem 0;
    }
    
    /* Ultra-compact diagrams for mobile */
    .uml-class, .uml-interface {
        min-width: 150px;
    }
    
    .uml-class-attributes div, .uml-class-methods div, .uml-interface-methods div {
        font-size: 0.7rem;
    }
    
    .flowchart-node {
        padding: 10px 15px;
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .erp-core {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }
    
    .erp-module {
        min-width: 100px;
        padding: 10px;
    }
    
    .module-items {
        font-size: 0.7rem;
    }
    
    .db-table {
        min-width: 150px;
    }
    
    .field {
        font-size: 0.7rem;
        padding: 3px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(18, 75, 162, 0.8) 100%);
    z-index: 0; /* unter Content, aber oberhalb des Seitenhintergrunds */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
    text-align: center;
}

.hero-logo {
    height: 200px;
    width: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Slider Controls (in rechter Box) */
.hero-slide-controls { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.btn-small { font-size: .85rem; padding: .35rem .6rem; border-radius: 6px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; }
.btn-small:hover { background: rgba(255,255,255,0.25); }
.hero-slide-indicators { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 420px; }
.hero-slide-indicators .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.hero-slide-indicators .dot.active { background: #fff; transform: scale(1.2); }

/* (entfernt) Slideshow aus-/einblenden: Hidden-Klasse wird nicht mehr genutzt */

/* Projekt-Elemente Diagramm */
.project-elements { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; }
.project-elements .pe-row { display: flex; gap: 12px; }
.project-elements .pe-card { background: rgba(255,255,255,0.1); border: 2px solid #4ec9b0; border-radius: 10px; padding: 12px 16px; min-width: 110px; text-align: center; backdrop-filter: blur(5px); font-weight: 600; }
.project-elements .pe-connector { color: #4ec9b0; font-size: 1.2rem; font-weight: 700; }

/* Qualitäts-Diagramm */
.quality-diagram { display: flex; flex-direction: column; gap: 12px; align-items: center; color: #fff; }
.quality-diagram .qd-grid { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 14px; width: 100%; }
.quality-diagram .qd-box { background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 30px 14px; backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgba(0,0,0,0.15);background:#2980b9; margin-top: 40%; }
.quality-diagram .qd-title { font-weight: 800; margin-bottom: 10px; padding: 8px 20px; border-radius: 999px; display: inline-block; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25); min-width: 120px; }
.quality-diagram .qd-title.success { border-color: #207050; background:#47ce80; }
.quality-diagram .qd-title.info { border-color: #206080; background-color: #3498db; }
.quality-diagram .qd-title.warning { border-color: #aa6000; background-color: #f39c12;}
.quality-diagram .qd-title.ci-cd { border-color: #aa0030; background-color: #aa2672;}
.quality-diagram .qd-title.neutral { border-color: #7090aa; background-color: #9cdcfe;}
.quality-diagram .qd-list { margin: 0; padding-left: 18px; line-height: 1.4; font-size: .92rem; }
.quality-diagram .qd-list li { margin: 4px 0; }

@media (max-width: 1200px) {
    .quality-diagram .qd-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}
@media (max-width: 860px) {
    .quality-diagram .qd-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 520px) {
    .quality-diagram .qd-grid { grid-template-columns: 1fr; }
}

/* Infoleiste unter dem Slider */
.hero-info-bar {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 150, 150, 0.65);
    color: #fff;
    padding: 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25) inset;
    position: relative; /* über Overlay anzeigen */
    z-index: 99;
}

.hero-info-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    font-size: 2.05rem;
    line-height: 1.5;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-info-content { font-size: 0.95rem; }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: Calibri, sans-serif;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
}
