/* --- GRUNGE VARIABLES --- */
:root {
    --bg-paper: #d8d0c1;      /* Altes Papier */
    --bg-dark: #1a1a1a;       /* Fast Schwarz */
    --text-main: #000000;     /* Tinte */
    --accent-red: #8a2be2;    /* Lila (Grunge Akzent) oder Rostrot #8b0000 */
    --accent-rust: #8b3a3a;
    
    --font-head: 'Permanent Marker', cursive; /* Marker-Schrift */
    --font-body: 'Special Elite', monospace;  /* Schreibmaschine */
    
    --border-rough: 2px solid #1a1a1a;
    --box-shadow-hard: 5px 5px 0px rgba(0,0,0,0.8);
}

/* --- IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Special+Elite&display=swap');

/* --- RESET & TEXTURE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-paper);
    /* CSS Noise Texture Simulation */
    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");
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Grunge Image Styling */
img { 
    width: 100%; 
    height: auto; 
    display: block; 
    filter: sepia(50%) contrast(1.2) grayscale(30%);
    border: 3px solid #1a1a1a;
    box-shadow: var(--box-shadow-hard);
    transform: rotate(-1deg);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { 
    font-family: var(--font-head); 
    text-transform: uppercase; 
    line-height: 1.1; 
    margin-bottom: 20px;
    color: var(--bg-dark);
    transform: rotate(1deg);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-shadow: 3px 3px 0px rgba(0,0,0,0.2); }
h2 { font-size: 2.5rem; border-bottom: 3px solid var(--accent-rust); display: inline-block; }

/* --- HEADER (Torn Paper Look) --- */
header {
    background: var(--bg-dark);
    color: #f0f0f0;
    padding: 20px 0;
    position: relative;
    /* Jagged edge bottom via clip-path */
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 98% 100%, 96% 90%, 94% 100%, 92% 90%, 90% 100%, 88% 90%, 86% 100%, 84% 90%, 82% 100%, 80% 90%, 78% 100%, 76% 90%, 74% 100%, 72% 90%, 70% 100%, 68% 90%, 66% 100%, 64% 90%, 62% 100%, 60% 90%, 58% 100%, 56% 90%, 54% 100%, 52% 90%, 50% 100%, 48% 90%, 46% 100%, 44% 90%, 42% 100%, 40% 90%, 38% 100%, 36% 90%, 34% 100%, 32% 90%, 30% 100%, 28% 90%, 26% 100%, 24% 90%, 22% 100%, 20% 90%, 18% 100%, 16% 90%, 14% 100%, 12% 90%, 10% 100%, 8% 90%, 6% 100%, 4% 90%, 2% 100%, 0% 90%);
    margin-bottom: 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #fff;
    transform: rotate(-2deg);
    border: 2px solid #fff;
    padding: 5px 15px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    font-weight: bold;
    letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-rust);
    text-decoration: line-through; /* Grunge style hover */
}

/* --- LAYOUT & CARDS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* The "Sticker" or "Tape" Card look */
.grunge-card {
    background: #fdfbf7;
    border: 2px solid #000;
    padding: 30px;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
    transform: rotate(1deg);
    margin-bottom: 20px;
}
.grunge-card:nth-child(even) { transform: rotate(-1deg); }

/* Tape Effect */
.tape {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    width: 100px;
    height: 30px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    border-left: 2px dashed rgba(0,0,0,0.1);
    border-right: 2px dashed rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0.7;
    background-image: linear-gradient(to right, rgba(255,255,255,0.8), rgba(230,230,230,0.5));
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--bg-dark);
    color: white;
    padding: 15px 30px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--accent-rust);
    margin-top: 20px;
    transform: rotate(-1deg);
}
.btn:hover {
    transform: rotate(1deg) scale(1.05);
    background: var(--accent-rust);
    color: black;
    box-shadow: 5px 5px 0 black;
}

/* --- FORMS (Rough Inputs) --- */
input, textarea {
    width: 100%;
    background: transparent;
    border: 3px solid var(--bg-dark);
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: black;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
input:focus, textarea:focus {
    background: #fff;
    outline: none;
    box-shadow: 4px 4px 0 var(--accent-rust);
}

/* --- FOOTER --- */
footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 60px 0;
    margin-top: 80px;
    border-top: 5px solid var(--accent-rust);
    text-align: center;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}
footer a { color: #fff; text-decoration: underline; text-decoration-style: wavy; }
footer h3 { color: #fff; transform: rotate(0deg); margin-bottom: 30px; }

/* --- MOBILE --- */
.burger { display: none; cursor: pointer; font-size: 2rem; border: 2px solid white; padding: 5px; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-dark);
        flex-direction: column; align-items: center; padding: 20px;
        z-index: 100;
        border-bottom: 5px solid var(--accent-rust);
    }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    h1 { font-size: 2.5rem; }
    
    img { transform: rotate(0deg); width: 100%; }
}