/* --- PUNK VARIABLES --- */
:root {
    --pop-yellow: #FFE900;
    --pop-cyan: #00F0FF;
    --pop-magenta: #FF00AA;
    --pop-black: #111111;
    --pop-white: #ffffff;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #eee; border-left: 2px solid black; }
::-webkit-scrollbar-thumb { background: black; border: 2px solid #eee; }
::-webkit-scrollbar-thumb:hover { background: var(--pop-magenta); }

/* --- GLOBAL SETTINGS & OVERFLOW FIXES --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* FIX: Verhindert, dass Elemente den Viewport sprengen */
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--pop-white);
    color: var(--pop-black);
    /* FIX: Doppelte Absicherung gegen horizontales Scrollen */
    max-width: 100vw;
    overflow-x: hidden; 
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    line-height: 1.0;
}

.font-comic { font-family: 'Bangers', cursive; letter-spacing: 1.5px; }
.font-marker { font-family: 'Permanent Marker', cursive; }
.font-digital { font-family: 'VT323', monospace; }

/* --- TEXTURES & BACKGROUNDS --- */
.bg-halftone {
    background-image: radial-gradient(var(--pop-black) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pitch {
    background-color: #008f39;
    background-image: 
        linear-gradient(rgba(0,0,0,0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0,0,0,0.1) 2px, transparent 2px);
    background-size: 20px 20px;
}

.bg-pattern-dots {
    background-image: radial-gradient(#ccc 2px, transparent 2px);
    background-size: 20px 20px;
}

.bg-carbon {
    background-image: url('../pics/carbon-fibre.png'); 
}

/* --- REUSABLE COMPONENT CLASSES --- */

/* Standard Punk Card (White) */
.punk-card {
    background: white;
    border: 4px solid black;
    padding: 2rem;
    box-shadow: 8px 8px 0px 0px var(--pop-black);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.punk-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px var(--pop-black);
}

/* Yellow Punk Card */
.punk-card-yellow {
    background: var(--pop-yellow);
    border: 4px solid black;
    padding: 2rem;
    box-shadow: 8px 8px 0px 0px var(--pop-black);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.punk-card-yellow:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px var(--pop-black);
}

/* Method/Feature Card (Dark) */
.method-card {
    background-color: #1a1a1a;
    border: 4px solid; 
    padding: 2rem;
    position: relative;
    transition: background-color 0.3s;
}
.method-card:hover .method-icon { opacity: 0.2; }
.method-card h3 { color: white; transition: color 0.3s; }
.method-card:hover h3 { color: black; }
.method-card p { color: #d1d5db; transition: color 0.3s; }
.method-card:hover p { color: black; }
.method-card ul { color: white; transition: color 0.3s; }
.method-card:hover ul { color: black; }
.method-card .method-number {
    position: absolute; top: -1.5rem; right: -1.5rem; width: 5rem; height: 5rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Archivo Black', sans-serif; font-size: 2.25rem;
    border: 4px solid; box-shadow: 8px 8px 0px 0px black;
    background: black; z-index: 20; transition: all 0.3s;
}
.method-card.left-number .method-number { right: auto; left: -1.5rem; }

/* Massive Button */
.btn-massive { 
    border: 4px solid black; 
    box-shadow: 6px 6px 0px 0px black; 
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s; 
    font-family: 'Archivo Black', sans-serif; 
    text-transform: uppercase; 
}
.btn-massive:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0px 0px black; }
.btn-massive:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px black; }

/* Social Icons / Features List Items */
.feature-list-item {
    display: flex; align-items: center; gap: 0.75rem; 
    padding: 0.5rem; border: 1px solid black; 
    transition: background-color 0.2s;
    font-weight: bold;
}

/* --- GLITCH EFFECT --- */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--pop-magenta);
}
.punk-future.glitch-hover:hover { color: var(--pop-black); }

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* --- WALKMAN PLAYER STYLE --- */
.walkman-case {
    background: #facc15;
    border-radius: 24px;
    box-shadow: inset 4px 4px 10px rgba(255,255,255,0.4), inset -4px -4px 10px rgba(0,0,0,0.2), 12px 12px 0px black;
    position: relative; border: 4px solid #111; overflow: hidden;
}
.walkman-texture {
    background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 4px 4px;
    position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
}
.walkman-window {
    background: #222; border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
    border: 3px solid #111; position: relative; overflow: hidden;
}
.tape-wheel {
    width: 45px; height: 45px; border-radius: 50%; border: 4px solid #ddd;
    position: relative; background: #333;
}
.tape-wheel::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 14px; height: 14px; background: #111;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.tape-wheel::before {
    content: ''; position: absolute; inset: 0;
    border: 3px dashed #666; border-radius: 50%;
}
.walkman-case.playing .tape-wheel { animation: spinTape 2s linear infinite; }
@keyframes spinTape { 100% { transform: rotate(360deg); } }

.walkman-btn {
    background: #111; color: white; border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 0 #555, 0 6px 5px rgba(0,0,0,0.4);
    transition: all 0.1s; border: 2px solid #444;
}
.walkman-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #555, inset 0 2px 5px rgba(0,0,0,0.8); }

/* --- HERO TYPOGRAPHY & ELEMENTS --- */
.punk-word-block {
    display: inline-block; padding: 0.1em 0.2em; border: 6px solid white;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8); line-height: 0.9;
}
.punk-no { background-color: var(--pop-black); color: var(--pop-white); transform: rotate(-3deg); z-index: 10; position: relative; }
.punk-future { background-color: var(--pop-magenta); color: var(--pop-yellow); transform: rotate(2deg); border: 6px solid black; box-shadow: 16px 16px 0px var(--pop-black); z-index: 20; position: relative; }

/* Default Sticker (Desktop) */
.tape-sticker {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%) rotate(-6deg);
    background-color: rgba(255, 255, 255, 0.95); border: 3px solid rgba(0,0,0,0.8);
    color: black; font-family: 'Courier New', monospace; font-weight: 900; text-transform: uppercase;
    padding: 8px 22px; font-size: 1.6rem; z-index: 50;
    box-shadow: 4px 6px 10px rgba(0,0,0,0.4); pointer-events: none; white-space: nowrap;
}
.tape-sticker::before, .tape-sticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10px; background: rgba(255,255,255,0.5); border-left: 1px dotted #ccc; border-right: 1px dotted #ccc; }
.tape-sticker::before { left: -8px; }
.tape-sticker::after { right: -8px; }

/* MOBILE FIX STICKER */
@media (max-width: 640px) {
    .tape-sticker {
        white-space: normal !important; /* Zeilenumbruch erlauben */
        width: 250px; /* Kompakte Breite */
        font-size: 0.9rem !important;
        line-height: 1.1;
        text-align: center;
        
        /* Positionierung anpassen */
        bottom: -60px !important;
        
        /* Trick: Wir verankern ihn links am Wort 'FUTURE' und ziehen ihn optisch mittig unter NO FUTURE */
        left: 0 !important; 
        margin-left: -60px !important; 
        
        /* Nur Rotation, kein TranslateX mehr nötig durch margin-left */
        transform: rotate(-3deg) !important; 
    }
}

/* --- MARQUEE --- */
.marquee-wrapper {
    position: relative; background: var(--pop-yellow); border-top: 6px solid black; border-bottom: 6px solid black;
    transform: rotate(-2deg) scale(1.02); z-index: 40; margin-top: -30px; margin-bottom: -30px;
    padding: 15px 0; box-shadow: 0px 10px 20px rgba(0,0,0,0.4); overflow: hidden; width: 100%;
}
.marquee-content { display: flex; width: max-content; animation: scroll 80s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-item {
    font-family: 'Archivo Black', sans-serif; font-size: 2.5rem; padding: 0 40px;
    text-transform: uppercase; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CLIPBOARD --- */
.clipboard-container { background-color: #3d3d3d; border-radius: 4px; padding: 12px; position: relative; box-shadow: 20px 20px 0px 0px black; border: 4px solid black; }
.clipboard-paper { background: #fdfbf7; padding: 40px; position: relative; box-shadow: 0px 4px 10px rgba(0,0,0,0.2); min-height: 550px; background-image: linear-gradient(#e5e5e5 1px, transparent 1px); background-size: 100% 2rem; }
.clipboard-clip { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 180px; height: 60px; background: linear-gradient(135deg, #ccc 0%, #fff 50%, #999 100%); border: 4px solid black; border-radius: 10px; z-index: 20; box-shadow: 0px 5px 0px rgba(0,0,0,0.3); display: flex; justify-content: center; align-items: center; }
.clipboard-clip::after { content: 'MH SYSTEM'; font-weight: bold; font-size: 10px; margin-top: 35px; opacity: 0.5; }

/* --- PHONE MOCKUP --- */
.phone-frame { border: 10px solid black; border-radius: 2.5rem; background: black; overflow: hidden; max-width: 320px; margin: 0 auto; box-shadow: 16px 16px 0px rgba(0,0,0,0.4); }
.phone-screen { width: 100%; height: 100%; background: #333; display: flex; align-items: center; justify-content: center; min-height: 600px; position: relative; overflow: hidden; }
.phone-screen img { width: 100%; height: auto; display: block; object-fit: cover; }
.phone-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; padding: 20px; background: linear-gradient(45deg, #222, #111); }

/* --- ANIMATIONS & UTILS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.social-card { background: white; border: 3px solid black; box-shadow: 6px 6px 0px rgba(0,0,0,1); transition: transform 0.3s; }
.social-card:hover { transform: scale(1.05) rotate(2deg); z-index: 50; }

/* --- MOBILE MENU --- */
#mobile-menu { clip-path: circle(0% at 100% 0); transition: clip-path 0.5s ease-in-out; }
#mobile-menu.open { clip-path: circle(150% at 100% 0); }

/* --- SAFEGUARDS --- */
/* Sicherstellen, dass die Navigation nicht abgeschnitten wird */
nav .max-w-7xl {
    overflow: visible; 
}

@media (max-width: 640px) {
    /* App-Container volle Breite ohne Beschneidung */
    header#start .relative.z-10.transform {
        margin-left: -10px;
        margin-right: -10px;
    }
}

/* TABLET FIX STICKER (iPad & kleine Laptops) */
@media (min-width: 641px) and (max-width: 1200px) {
    .tape-sticker {
        /* 1. Schrift verkleinern (Original ist 1.6rem -> zu groß für Tablet) */
        font-size: 1.1rem !important; 
        padding: 6px 12px;
        line-height: 1.2;
        
        /* 2. Umbruch erlauben, aber Breite begrenzen */
        white-space: normal !important;
        width: 320px; /* Kompakter, damit es nicht zu breit läuft */
        
        /* 3. Positionierung: Links am Wort FUTURE verankern und zurückziehen */
        left: 0 !important; 
        margin-left: -60px !important; /* Zieht den Sticker stark nach links in den Leerraum */
        
        /* 4. Tiefer setzen, um Überlappung zu vermeiden */
        bottom: -70px !important; 
        
        /* 5. Rotation beibehalten, Zentrierung (TranslateX) entfernen */
        transform: rotate(-4deg) !important;
        
        text-align: center;
    }
}
