/*
Theme Name: Marcus Theme
Author: Marcus
Description: Individuelles Theme mit Schwarz-Orange Design und Logo-Vorhang-Animation.
Version: 1.1
*/

:root {
    --bg-color: #101010;
    --accent-orange: #ff6600;
    --text-light: #ffffff;
    --footer-gray: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Verhindert Scrollen während der Animation */
}

/* Navigationsleiste */
nav {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
	height: 65px;
    background-color: var(--accent-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 100; /* Muss über dem Vorhang liegen */
	box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
}

.nav-left {
    font-weight: 900;
    font-size: 1.6rem;
    color: #000;
}

.nav-right a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    margin-left: 20px;
}

.login-btn {
    border: 2px solid #000;
    padding: 6px 15px;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #000;
    color: var(--accent-orange) !important;
}

/* Hauptbereich */
main {
    flex-grow: 1;
	margin-top: 65px;    /* Platz für den fixierten Header */
    margin-bottom: 60px; /* Platz für den fixierten Footer (je nach Höhe) */
    overflow-y: auto;    /* Erlaubt vertikales Scrollen im Hauptbereich */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 125px); /* Berechnet Restplatz: 100vh minus Header & Footer */
}

/* Vorhang-Container */
.logo-curtain {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    z-index: 10;
}

/* Die beiden Hälften des Logos */
.logo-half {
    width: 50%;
    height: 100%;
    background-image: url('img/Logo_Marcus.png'); /* Pfad muss in index.php angepasst werden */
    background-size: 350px 350px;
    background-repeat: no-repeat;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.left { 
    background-position: left; 
    border-radius: 175px 0 0 175px; /* Behält die Kreisform bei der Teilung */
}

.right { 
    background-position: right; 
    border-radius: 0 175px 175px 0;
}

/* Animations-Klassen (werden per JS ausgelöst) */
.logo-curtain.open .left {
    transform: translateX(-150%);
}

.logo-curtain.open .right {
    transform: translateX(150%);
}

/* Login-Formular hinter dem Logo */
.login-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    text-align: center;
}

.logo-curtain.open .login-overlay {
    opacity: 1;
}

/* Styling für das WordPress Standard-Login-Formular */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#loginform input {
    padding: 8px;
    border-radius: 4px;
    border: none;
}

/* Pi-Symbol */
.pi-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 5;
}

.pi-symbol {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 3rem;
    color: var(--bg-color); /* Hier lag der Fehler: Jetzt wieder Hintergrundfarbe */
    transition: color 0.5s ease;
    user-select: none;
}

.pi-box:hover .pi-symbol {
    color: var(--accent-orange);
}

/* Footer */
footer {
	position: fixed;
	bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-gray);
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    z-index: 5;
	box-sizing: border-box;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
    margin: 0 15px;
}