/* ==========================================================================
   INTERAKTIVE MATERIAL-VISUALISIERUNGEN (APP COLORS)
   ========================================================================== */

/* Basis Container für die Visuals */
.mat-visual {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-color); /* Fallback */
    transition: transform 0.3s ease;
    perspective: 1000px;
}

/* --- 1. HOLZ (WOOD) -> Primary Color (Gelb) --- */
.mat-wood {
    /* Helles Gelb für das Holz */
    background-color: var(--primary-color);
    position: relative;
}

.wood-texture {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* Maserung in der dunklen App-Farbe (subtil) */
    background: 
        repeating-radial-gradient(
            circle at 50% 50%, 
            rgba(69, 53, 50, 0.08) 0, 
            rgba(69, 53, 50, 0.08) 2px, 
            transparent 3px, 
            transparent 8px
        ),
        linear-gradient(to bottom right, #ffc934, #e6b42d);
    background-size: 100% 100%;
    transition: transform 0.1s ease-out;
    transform: translate(calc(var(--mouse-x) * -10px), calc(var(--mouse-y) * -10px));
}

.mat-wood .light-reflection {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255,255,255,0.4) 0%, transparent 40%);
    pointer-events: none;
    mix-blend-mode: overlay;
}


/* --- 2. ACRYL (GLASS) -> Secondary Color (Rot/Transparent) --- */
.mat-acrylic {
    /* Ein sehr helles Grau als Basis für Transparenz */
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.acrylic-glass {
    position: absolute;
    inset: 10px;
    /* Rotes Glas (Secondary Color), semi-transparent */
    background: rgba(218, 71, 50, 0.25); 
    backdrop-filter: blur(2px);
    border: 1px solid rgba(218, 71, 50, 0.4);
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 0 20px rgba(255,255,255,0.2);
    border-radius: 8px;
    /* 3D Tilt Effekt */
    transform: rotateX(calc(var(--mouse-y) * 5deg)) rotateY(calc(var(--mouse-x) * -5deg));
    transition: transform 0.1s ease-out;
}

/* Spiegelung/Glanz */
.acrylic-glare {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 100%;
    background: linear-gradient(
        110deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.6) 45%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 55%
    );
    transform: translateX(calc(var(--mouse-x) * -50px - 150px)) skewX(-20deg);
    transition: transform 0.1s ease-out;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Leuchtende Kante in Rot */
.acrylic-edge {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px; height: 5px;
    background: var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(218, 71, 50, 0.6);
    opacity: 0.9;
}


/* --- 3. LEDER (LEATHER) -> Dark Color (Braun) --- */
.mat-leather {
    background-color: var(--dark-color);
    position: relative;
}

.leather-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Rausch-Textur für Leder-Look */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    background-color: var(--dark-color); /* #453532 */
    transition: background-position 0.1s;
}

/* Lichtspot */
.mat-leather::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        circle at var(--cursor-x, 50%) var(--cursor-y, 50%), 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
    mix-blend-mode: soft-light;
}


/* --- 4. PAPIER (PAPER) -> Light Color --- */
.mat-paper {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.paper-layer {
    position: absolute;
    width: 60%;
    height: 70%;
    background-color: var(--light-color);
    box-shadow: 0 5px 15px rgba(69, 53, 50, 0.1); /* Brauner Schatten */
    border-radius: 4px;
    transition: transform 0.2s ease-out;
}

/* Stapel-Effekt */
.layer-1 {
    z-index: 1;
    background-color: #e9e5e3;
    transform: 
        translate(calc(var(--mouse-x) * 10px), calc(var(--mouse-y) * 10px)) 
        rotate(-5deg);
}

.layer-2 {
    z-index: 2;
    background-color: #faf7f6;
    transform: 
        translate(calc(var(--mouse-x) * 20px), calc(var(--mouse-y) * 20px)) 
        rotate(2deg);
}

.layer-3 {
    z-index: 3;
    background-color: #ffffff;
    /* Subtiles Raster in Primary Color */
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: center;
    
    transform: 
        translate(calc(var(--mouse-x) * 35px), calc(var(--mouse-y) * 35px)) 
        rotate(5deg);
    box-shadow: 0 15px 35px rgba(69, 53, 50, 0.15);
}

/* ==========================================================================
   NEU: PLOTTER MATERIALIEN
   ========================================================================== */

/* --- 5. VINYL (FOLIE) -> Primary (Gelb), Hochglanz --- */
.mat-vinyl {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* Starke Spiegelung für Plastik-Look */
.vinyl-reflection {
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 60%
    );
    /* Bewegt sich entgegengesetzt zur Maus für Tiefe */
    transform: translateX(calc(var(--mouse-x) * -30px));
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

/* Kleiner "Aufkleber-Rand" Effekt */
.mat-vinyl::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    opacity: 0.6;
}

/* --- 6. TEXTIL (FLEX) -> Secondary (Rot), Stoff-Struktur --- */
.mat-textil {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.textil-weave {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Simuliert Gewebe mit CSS Pattern */
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.1) 50%, transparent 50%),
        linear-gradient(rgba(0,0,0,0.1) 50%, transparent 50%);
    background-size: 4px 4px;
    opacity: 0.4;
    transition: background-position 0.1s;
    /* Bewegt sich leicht mit der Maus */
    transform: scale(1.1) translate(calc(var(--mouse-x) * 5px), calc(var(--mouse-y) * 5px));
}

/* Weicher Schattenwurf wie bei Stofffalten */
.mat-textil::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        circle at var(--cursor-x, 50%) var(--cursor-y, 50%), 
        rgba(255,255,255,0.2) 0%, 
        transparent 60%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* --- 7. SCHABLONE (STENCIL) -> Dark (Braun), Technisch --- */
.mat-stencil {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Das Raster / Cut-Out Muster */
.stencil-grid {
    position: absolute;
    top: -10%; left: -10%; 
    width: 120%; height: 120%;
    /* Punkt-Raster das "durchsichtig" wirkt */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    
    transform: perspective(500px) rotateX(calc(var(--mouse-y) * 5deg)) rotateY(calc(var(--mouse-x) * -5deg));
    transition: transform 0.1s ease-out;
}

/* Ein Vektor-Pfad "Cutout" in der Mitte */
.stencil-cutout {
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(255, 201, 52, 0.3); /* Primary color dash */
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stencil-cutout::after {
    content: '';
    width: 60%; height: 60%;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}


/* ==========================================================================
   NEU: GRAFIK SERVICES
   ========================================================================== */

/* --- 8. VEKTOR (VECTOR) -> Primary (Gelb), Digitales Grid --- */
.mat-vector {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pixel-Raster im Hintergrund */
.vector-grid {
    position: absolute;
    inset: -20px;
    background-image: 
        linear-gradient(rgba(69, 53, 50, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 53, 50, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Parallax Effekt */
    transform: translate(calc(var(--mouse-x) * 5px), calc(var(--mouse-y) * 5px));
}

/* Vektor-Knotenpunkte (Pfade) */
.vector-path {
    width: 120px; height: 120px;
    position: relative;
    border: 2px solid var(--dark-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organische Form */
    transform: rotate(45deg);
    transition: border-radius 0.3s ease;
    /* Morphing Effekt durch Maus */
    animation: morphShape 5s infinite ease-in-out;
}

/* Die "Nodes" (Quadrate an den Ecken) */
.vector-path::before, .vector-path::after {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    background: var(--dark-color);
    border: 1px solid #fff;
}
.vector-path::before { top: -4px; left: 50%; }
.vector-path::after { bottom: -4px; right: 50%; }

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}


/* --- 9. DESIGN -> Secondary (Rot), Geometrie --- */
.mat-design {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

/* Schwebende Geometrie */
.design-shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.2s ease-out;
}
.shape-circle {
    width: 60px; height: 60px; border-radius: 50%; top: 20%; left: 20%;
    transform: translate(calc(var(--mouse-x) * 20px), calc(var(--mouse-y) * 20px));
}
.shape-square {
    width: 40px; height: 40px; bottom: 30%; right: 25%;
    transform: rotate(15deg) translate(calc(var(--mouse-x) * -15px), calc(var(--mouse-y) * -15px));
    background: rgba(255,255,255,0.1);
}
.shape-tri {
    width: 0; height: 0; 
    border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 35px solid rgba(255,255,255,0.2);
    top: 40%; left: 50%;
    transform: translate(calc(var(--mouse-x) * 5px), calc(var(--mouse-y) * 5px));
}

/* --- 10. TYPO (LAYOUT) -> Dark (Braun), Abstrakte Blöcke --- */
.mat-typo {
    background-color: var(--dark-color);
    perspective: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.typo-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* 3D Effekt */
    transform: rotateY(calc(var(--mouse-x) * 20deg)) rotateX(calc(var(--mouse-y) * -10deg));
    transition: transform 0.1s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.block-img { width: 60px; height: 80px; border: 1px dashed rgba(255,201,52,0.3); } /* Bild Platzhalter */
.block-txt-col { display: flex; flex-direction: column; gap: 8px; }
.block-line { height: 8px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.line-long { width: 80px; }
.line-short { width: 50px; }


/* --- 11. CHECK (PRÜFUNG) -> Light (Hell), Scanline --- */
.mat-check {
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
}

/* Technisches Raster */
.check-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, #e0e0e0 1px, transparent 1px),
        linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
}

/* Scan-Linie die der Maus folgt (nur vertikal) */
.check-scanline {
    position: absolute;
    left: 0; width: 100%;
    height: 2px;
    background-color: var(--secondary-color); /* Rot für "Check" */
    top: 50%;
    /* Bewegt sich mit Maus Y */
    transform: translateY(calc(var(--mouse-y) * 80px)); 
    box-shadow: 0 0 10px rgba(218, 71, 50, 0.5);
}

.check-scanline::after {
    content: 'CHECK';
    position: absolute; right: 20px; bottom: 5px;
    font-size: 0.6rem; color: var(--secondary-color); font-weight: 700; letter-spacing: 2px;
}