@import url("style.css");



/* ==========================================================================
    Produktseiten
   ========================================================================== */


/* --- 1. GLOBAL & RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--white);
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- 2. LAYOUT FRAMEWORK --- */
.detail-module {
    padding: clamp(80px, 12vw, 200px) 0;
    position: relative;
    background: var(--white);
}

.module-container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- 3. HEADER DESIGN --- */
.tech-header-group {
    margin-bottom: clamp(30px, 2vw, 50px);
    border-left: 3px solid var(--accent);
    padding-left: clamp(20px, 4vw, 50px);
   
}

.tech-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5em;
    margin-bottom: 15px;
    display: block;
}

.main-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 8.5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--gray-900);
}

.main-h1 span {
    display: inline;
    color: var(--dark-green);
    
}

/* --- 4. THE GRID (Optimized Layout) --- */

.detail-grid {
    display: grid;
   
    grid-template-columns: 1fr 1fr; 
    gap: 40px 60px;
    margin-bottom: 100px;
    
}

/* 1. Bild links oben */
.visual-stack {
    grid-column: 1;
    grid-row: 1;
}


.content-stack {
    display: contents; 
}

/* 3. Der Einleitungstext bleibt rechts neben dem Bild */
.info-block {
    grid-column: 2;
    grid-row: 1;
}

/* 4. DIE 4 ELEMENTE: Brechen aus auf volle Breite */
.feature-grid {
    grid-column: 1 / -1; 
    display: grid;
  
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}


.tech-specs, 
.action-zone {
    grid-column: 1 / -1;
}

/* --- Responsive Anpassung --- */

@media (max-width: 1200px) {
    .feature-grid {
        /* Auf Tablets 2 Spalten oben, 2 unten */
        grid-template-columns: repeat(2, 1fr);
    }
     .tech-header-group{
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {

    .tech-header-group{
        margin-top: 5rem;
       
    }
    .detail-grid {
        grid-template-columns: 1fr; /* Alles untereinander auf dem Handy */
       
    }
    
    .visual-stack, .info-block, .feature-grid, .tech-specs, .action-zone {
        grid-column: 1;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 5. VISUAL STACK - BILDER SICHTBAR MACHEN --- */
.visual-stack {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .visual-stack {
        position: sticky;
        top: 40px;
    }
}

/* Haupt-Bild Container */
.img-wrapper {
    position: relative;
    background: var(--gray-100); 
    overflow: hidden;
    width: 100%;
    display: block; 
}

.primary-wrap {
    aspect-ratio: 16 / 10;
   
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Zweites Bild (Detailansicht) */
.secondary-wrap {
    position: absolute;
    width: 45%;
    aspect-ratio: 1 / 1;
    right: -5%;
    bottom: -10%;
    z-index: 10;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-xl);
    display: none; /* Erst ab Tablet sichtbar */
}

@media (min-width: 768px) {
    .secondary-wrap { display: block; }
}

/* BILD-STYLING: Keine Unsichtbarkeit mehr */
.tech-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  
    filter: grayscale(0.3) contrast(1.1); 
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrapper:hover .tech-img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.05);
}

.img-tag {
    position: absolute;
    top: 30px;
    left: 0;
    background: var(--gray-900);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 8px 20px;
    letter-spacing: 3px;
    z-index: 5;
}

/* --- 6. CONTENT STACK --- */
.content-stack {
    padding-top: 10px;
}

.lead-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem) !important;
    line-height: 1.2 !important;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 40px;
}

.info-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.feature-grid {
    grid-column: 1 / -1; 
    display: flex;
    flex-direction: column; 
    gap: 80px; 
    margin: 100px 0;
    padding: 100px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    width: 100%;
    background: transparent !important;
}

.feat-item {
    background: none !important;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
    transition: none !important;
    transform: none !important;
    pointer-events: none;
    text-align: left; 
}

.feat-head {
    font-family: var(--font-display)!important;
    font-size: clamp(0.5rem, 1rem, 1.5rem)!important;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.4em; 
    margin-bottom: 30px;
    display: block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    width: fit-content; 
}

.feat-item p {
   
    font-size: 1.6rem; 
    line-height: 1.8;
    color: var(--muted-clr);
    margin: 0;
    font-weight: 400;
    hyphens: auto;
}


.feat-item:hover {
    background: none !important;
    transform: none !important;
}

/* --- Responsive Anpassung für Mobile --- */
@media (max-width: 768px) {
    .feature-grid {
        gap: 60px;
        padding: 60px 0;
        margin: 60px 0;
    }
    
    .feat-item p {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .feat-head {
        font-size: 11px;
        margin-bottom: 20px;
    }
}

/* --- 8. SPECS & ACTION --- */
.tech-specs {
    width: 100%;
    margin-bottom: 60px;
    border-collapse: collapse;
}

.tech-specs td {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.spec-label {
    font-family: var(--font-mono);
    color: var(--gray-400);
    
    width: 40%;
}

.action-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.peak-link {
    text-decoration: none;
    background: var(--gray-900);
    color: var(--white);
    padding: 22px 45px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    
    transition: background 0.3s ease;
}

.peak-link:hover {
    background: var(--accent);
}

.secondary-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-500);
    
    text-decoration: underline;
}

/* --- 9. RESPONSIVE FINESSE --- */
@media (max-width: 768px) {
    .module-container { width: 92%; }
    .primary-wrap { clip-path: none; aspect-ratio: 1 / 1; }
    .main-h1 { font-size: 2.3rem; }
    .action-zone { flex-direction: column; align-items: stretch; }
}


.detail-module {
    padding: clamp(60px, 10vw, 150px) 0;
    background: var(--bg-clr);
    font-family: var(--font-main);
  
}


.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px 80px;
    align-items: start;
    width: 100%;
}

/* --- 1. VISUAL STACK (BILD) --- */
.visual-stack {
    grid-column: 1;
    position: relative;
    z-index: 5;
}

.primary-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    background: #f4f4f4;
}

.tech-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 2. INFO-BLOCK (INTRO RECHTS) --- */
.info-block {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Info-Block Schrift an unteren Teil (feat-item p) anpassen */
.info-block p {
    font-size: 1.6rem; 
    line-height: 1.8;
    color: var(--muted-clr);
    margin-bottom: 25px;
}

.lead-text {
    font-size: 2.5rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin-bottom: 30px;
}

/* --- 3. FEATURE-GRID (DIE 4 BLÖCKE MITTIG UNTEREINANDER) --- */
.feature-grid {
    grid-column: 1 / -1; /* Bricht aus dem 2-Spalten-Grid aus */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Blöcke horizontal */
    gap: 80px;
    margin: 80px 0;
    padding: 100px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feat-item {
    width: 100%;
    max-width: 1100px; 
    text-align: left;
}

.feat-item p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--muted-clr);
}


/* --- 4. RESPONSIVE DESIGN (< 767px) --- */
@media (max-width: 767px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visual-stack, .info-block {
        grid-column: 1;
    }

    .lead-text {
        font-size: 1.8rem !important;
        
    }

    .info-block p, .feat-item p {
        font-size: 1.25rem; 
        line-height: 1.6;
    }

    .feature-grid {
        padding: 60px 0;
        gap: 50px;
    }
}

/* Spezielle Fix für die Sichtbarkeit */
.content-stack {
    display: contents; 
}
/* --- 4. RESPONSIVE DESIGN (< 767px) --- */
@media (max-width: 767px) {
    .detail-grid {
        grid-template-columns: 1fr !important; 
        display: flex;
        flex-direction: column;
        gap: 30px;
    
    }

  
    .content-stack {
        display: block !important; 
        width: 100%;
    }

    .info-block {
        display: block !important;
        width: 100%;
        padding: 0 5%; 
    }

   
    .info-block .lead-text {
        display: block ;
        visibility: visible ;
        opacity: 1 ;
        font-size: 1.8rem ; 
        line-height: 1.3 ;
        margin-bottom: 20px;
       
     
    }

}


.info-block .lead-text {
 
    font-size: clamp(1.8rem, 2vw, 3rem) !important;
    line-height: 1.3 !important;
    margin-bottom: clamp(10px, 2vh, 20px) !important;
    font-weight: 700;
}

.info-block p {
  
    font-size: clamp(1.5rem, 1.1vw, 1.8rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    color: var(--gray-600);
}














/* --- Addon für info-block & lead-text --- */

.info-block {
    margin-bottom: 4rem;
    max-width: 900px; 
}

/* Versteckte SEO-Überschrift (Screenreader only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Die sichtbare Unterüberschrift */
.info-block h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem); /* Dynamische Größe */
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.1;
}


.info-block .lead-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 2rem;
    
 
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
    

    transition: var(--transition-mid);
}

/* Der restliche Fließtext */
.info-block p:not(.lead-text) {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 75ch; 
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .info-block {
        margin-bottom: 3rem;
    }
    
    .info-block .lead-text {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
}





.feat-item h4 {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1vw, 2.25rem); /* Dynamische Größe */
    color: var(--accent);
    font-weight: 700;
    
    margin-bottom: 2rem;
}