/* ================================
   DIE BLÜHENDEN LANDSCHAFTEN
   Hauptstylesheet
   ================================ */

:root {
    --black: #0a0a0a;
    --dark: #111;
    --brown: #1a1410;
    --earth: #2a1f1a;
    --moss: #1a2a1a;
    --rust: #3a2a1a;
    --gold: #c4a35a;
    --cream: #e8e4dc;
    --mold: #3a4a3a;
    --blood: #4a1a1a;
    --fog: rgba(232, 228, 220, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--black);
    color: var(--cream);
    overflow-x: hidden;
}

/* Grain */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 10000;
}

/* ================================
   ANIMATIONEN
   ================================ */

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    97% { opacity: 0.85; }
}

@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes breathe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes rot {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(10deg); }
}

/* ================================
   FLOOR INDICATOR (Aufzug)
   ================================ */

.floor-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floor-dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--cream);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.floor-dot:hover {
    opacity: 0.7;
}

.floor-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    opacity: 1;
}

.floor-dot::before {
    content: attr(data-floor);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--cream);
}

.floor-dot:hover::before {
    opacity: 0.5;
}

/* ================================
   FLOORS (Etagen)
   ================================ */

.floor {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* FASSADE */
.fassade {
    background: var(--black);
    position: relative;
}

.fassade::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    border: 1px solid rgba(196, 163, 90, 0.1);
    pointer-events: none;
}

.fassade-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.fassade-pre {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--mold);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.fassade-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 0.9;
    margin-bottom: 2rem;
    animation: drift 10s ease-in-out infinite;
}

.fassade-identity {
    font-size: 1rem;
    opacity: 0.4;
    margin-bottom: 3rem;
    font-style: italic;
}

.identity-current {
    color: var(--gold);
    opacity: 0.7;
}

.fassade-enter {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.3;
    margin-top: 4rem;
    animation: breathe 3s infinite;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    color: var(--cream);
    opacity: 0.15;
    animation: breathe 2s infinite;
}

/* ERDGESCHOSS - Restaurant */
.eg {
    background: 
        linear-gradient(to bottom, var(--black), var(--brown)),
        var(--dark);
}

.eg-content {
    text-align: center;
    max-width: 600px;
}

.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.restaurant-fragment {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.4;
    font-style: italic;
}

.eg-music {
    margin-top: 3rem;
    opacity: 0.8;
}

.eg-music iframe {
    opacity: 0.9;
    transition: opacity 0.3s;
}

.eg-music iframe:hover {
    opacity: 1;
}

/* OG1 - Die WG / Die Band */
.og1 {
    background: 
        radial-gradient(ellipse at 30% 70%, var(--moss) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, var(--blood) 0%, transparent 30%),
        var(--black);
}

.og1-content {
    width: 100%;
    max-width: 1200px;
}

.wg-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
    animation: flicker 8s infinite;
}

.wg-subtitle {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--mold);
    margin-bottom: 4rem;
}

.bewohner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(196, 163, 90, 0.1);
}

.bewohner {
    background: var(--black);
    padding: 2rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.bewohner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--moss) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.bewohner:hover::before {
    opacity: 0.1;
}

.bewohner:hover {
    background: var(--brown);
}

.bewohner-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.bewohner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.tag {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--mold);
    opacity: 0.6;
}

.bewohner.kompost {
    animation: rot 20s infinite alternate;
}

.bewohner.kompost .bewohner-name {
    color: var(--mold);
}

.kompost-link {
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.kompost-link:hover {
    opacity: 1;
}

/* OG2 - Mittelstand */
.og2 {
    background: var(--dark);
}

.og2-content {
    max-width: 700px;
}

.dialog {
    font-size: 1rem;
    line-height: 2.2;
    opacity: 0.4;
}

.dialog-line {
    margin-bottom: 0.5rem;
}

.dialog-speaker {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: var(--mold);
    margin-right: 0.5rem;
}

.dialog-note {
    font-style: italic;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* OG3 - Dekadenz */
.og3 {
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(196, 163, 90, 0.05) 0%, transparent 50%),
        var(--dark);
}

.og3-content {
    max-width: 600px;
    text-align: center;
}

.silberfisch {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.4;
    margin-bottom: 2rem;
}

.og3-fragment {
    font-size: 1.1rem;
    line-height: 2;
    opacity: 0.5;
}

.og3-fragment em {
    color: var(--gold);
    font-style: normal;
    opacity: 0.7;
}

/* DACH */
.dach {
    background: linear-gradient(to bottom, #0a0a0a, #0f0f0f);
}

.dach-content {
    text-align: center;
    opacity: 0.15;
}

.dach-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
}

.dach-whisper {
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

/* KELLER - Das Verdrängte */
.keller {
    background: var(--black);
    min-height: 150vh;
}

.keller-content {
    text-align: center;
    max-width: 800px;
}

.keller-void {
    font-size: 0.8rem;
    opacity: 0.1;
    margin-bottom: 4rem;
    font-family: 'VT323', monospace;
    letter-spacing: 0.5em;
}

.keller-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    opacity: 0.5;
    margin-bottom: 2rem;
}

.keller-fragment {
    font-size: 1rem;
    line-height: 2.5;
    opacity: 0.3;
    margin-bottom: 3rem;
}

.keller-music {
    margin: 3rem 0;
}

.keller-door {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(196, 163, 90, 0.1);
}

.door-text {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: var(--mold);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.hotel-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.5s;
    display: inline-block;
}

.hotel-link:hover {
    opacity: 0.8;
    text-shadow: 0 0 30px var(--gold);
    letter-spacing: 0.1em;
}

/* ================================
   MANIFEST
   ================================ */

.manifest-section {
    background: var(--black);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(196, 163, 90, 0.05);
}

.manifest-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 2.2;
    opacity: 0.4;
    font-style: italic;
}

.manifest-text strong {
    color: var(--gold);
    font-weight: 400;
    opacity: 0.8;
}

/* ================================
   FOOTER
   ================================ */

footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--black);
}

.footer-line {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: var(--mold);
    opacity: 0.3;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
    .bewohner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .floor-indicator {
        right: 0.5rem;
    }
    
    .floor {
        padding: 1rem;
    }
    
    .bewohner {
        padding: 1.5rem;
        min-height: 180px;
    }
}

@media (max-width: 500px) {
    .bewohner-grid {
        grid-template-columns: 1fr;
    }
}
