/* splash.css */

/* ==========================================================================
   SPLASH-PAGE STYLES (index.html)
   ========================================================================== */
/* ==========================================================================
   LOKALE SCHRIFTARTEN (Aus Ihrem fonts-Ordner geladen)
   ========================================================================== */
@font-face {
    font-family: 'Volkhov';
    src: url('fonts/volkhof-regular.woff2') format('woff2'),
         url('fonts/volkhof-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Volkhov';
    src: url('fonts/volkhof-bold.woff2') format('woff2'),
         url('fonts/volkhof-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/lato-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Lato', Arial, sans-serif;
    background-color: #305049;
    background-image: url(images/redox-01.png);
    background-repeat: repeat;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh; /* Auf ein gesundes Maß korrigiert (war 1000vh) */
    padding: 100px 20px 20px 20px;
    overflow-x: hidden;
}

.main-wrapper {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

h1 { 
    font-family: 'Volkhov', Georgia, serif; /* Auf deine lokale Schriftart angepasst */
    font-weight: 700;
    font-size: 6rem;
    margin-bottom: 5px;
    margin-top: 0px;
    letter-spacing: 2px;
    color: #ffffff;
}

.slogan {
    font-size: 1.2rem;
    color: #ffbd59; /* Dottergelb */
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* 3D-Raum für die Drehung */
.split-container {
    display: flex;
    flex-direction: column; /* Mobil untereinander */
    gap: 25px;
    perspective: 1500px;
    width: 100%;
}

/* Die "Tür"-Box */
.door-card {
    position: relative;
    width: 100%;
    height: 180px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); /* wie schnell sich die Tür öffnet */
    transform-origin: center center; 
}

/* Horizontale Drehung exakt auf der Stelle */
.door-card:hover, .door-card:focus, .door-card:active {
    transform: rotateY(180deg) rotateX(0deg) rotateZ(0deg);
}

/* Gemeinsame Eigenschaften für Vorder- und Rückseite */
.door-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* VORDERSEITE (Nadelwaldgrün mit Ihren Hintergrundbildern) */
.door-front {
    background-color: #305049;
    background-size: cover;
    background-position: center;
    border: 2px solid #ffbd59; /* Rahmen in Dottergelb */
    z-index: 2;
    transform: rotateY(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Dunkler Schleier über den Bildern */
.door-front::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(48, 80, 73, 0.5); 
    border-radius: 10px;
    z-index: 1;
}

/* Zuweisung Ihrer Bilder aus dem images-Ordner */
.pic-01 { background-image: url(images/pic01.jpg); }
.pic-02 { background-image: url(images/pic02.jpg); }
.pic-03 { background-image: url(images/pic03.jpg); }

.door-front h2, .door-front .hint {
    position: relative;
    z-index: 3;
}

.door-front h2 {
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #ffbd59; /* Dottergelb */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.door-front .hint {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* RÜCKSEITE - FIXIERT FÜR HORIZONTALES LAYOUT */
.door-back {            
    background-size: cover;     /* Zwingt das Bild, die Tür komplett auszufüllen */
    background-position: center; /* Zentriert das Bild, damit das Wichtigste sichtbar bleibt */
    background-repeat: no-repeat; /* Verhindert, dass sich das Bild kachelt */            
    color: #305049;
    border: 2px solid #305049;
    transform: rotateY(180deg);
    position: relative; /* Schleier orientiert sich an der Tür) */
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Der Effekt-Schleier auf der Rückseite (Nadelwaldgrün + SW-Filter) */
.door-back::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 1. DER FARBSCHLEIER: Das Nadelwaldgrün, leicht transparent */ 
    background: rgba(48, 80, 73, 0.65); 
    /* 2. DER SW-FILTER: Macht das Hintergrundbild darunter schwarz-weiß */
    filter: grayscale(100%) contrast(80%) brightness(110%);
    backdrop-filter: grayscale(100%) contrast(80%) brightness(110%); 
    border-radius: 10px;
    transform: translateZ(1px);
}

.door-back-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    transform: translateZ(2px);
}

.btn-title {
	font-family: 'Volkhov', Georgia, serif;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffbd59; /* Dottergelb für den Haupttitel */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.btn-sub {
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    color: #ffffff; /* Weiß für den Untertext */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* DESKTOP-OPTIMIERUNG: 3 Spalten nebeneinander */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    .split-container {
        flex-direction: row; /* Zwingt die Türen nebeneinander */
        justify-content: center;
        gap: 20px;
    }
    .door-card {
        flex: 1;
        max-width: 340px; 
        height: 350px; /* Schönes Hochformat am PC */
    }
    .filter-sw-kontrast {
        filter: grayscale(100%) contrast(40%);
    }
}
