/* styles.css */

/* --- 3D WÜRFEL STYLES --- */
.cube-container {
    width: 120px;
    height: 120px;
    margin: 40px auto 20px; /* Abstand oben/unten */
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 10s infinite linear;
    transition: transform 0.3s ease;
}

.cube-container:hover .cube {
    animation-duration: 2s;
}

.cube-container:hover .cube-face {
    border-color: var(--link-color);
    box-shadow: 0 0 20px var(--link-color);
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../logo.png'); /* Pfad relativ zum CSS-Ordner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: visible;
    opacity: 0.95;
    border: 1px solid rgba(0,0,0,0.1);
}

/* translateZ = 60px (Hälfte von 120px) */
.front  { transform: translateZ(60px); }
.back   { transform: rotateY(180deg) translateZ(60px); }
.right  { transform: rotateY(90deg) translateZ(60px); }
.left   { transform: rotateY(-90deg) translateZ(60px); }
.top    { transform: rotateX(90deg) translateZ(60px); }
.bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes spin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* --- BASIS STYLES & DARK MODE --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #222222;
    --link-color: #0056b3;
    --link-hover: #003d80;
    --border-color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --heading-color: #ffffff;
        --link-color: #4da6ff;
        --link-hover: #80c1ff;
        --border-color: #333333;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;

    /* SCHWERT CURSOR */
    cursor: url('sword.cur'), auto;
}

/* Typografie */
h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.links a {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--link-color);
    border-radius: 6px;
    color: var(--link-color);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.links a:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
    text-decoration: none;


/* Responsive Anpassung */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .cube-container { width: 100px; height: 100px; }
    /* Bei 100px muss translateZ 50px sein (müsste man im CSS oben anpassen,
     *      wenn man responsive Größen will, oder einfach den Container fix lassen) */
}
/* Emoticon für 404 */
.emoji {
    font-size: 4rem;
    display: block;
    margin: 20px 0;
    line-height: 1;
}
