/* --- Allgemeines Styling (Unverändert) --- */
body, html {
    margin: 0;
    padding: 0;
    background-color: #0F0F0F;
    color: #f0f0f0;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    scroll-behavior: smooth;
}

/* --- 1. Der Titel-Bereich (Header) --- */
header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(180deg, #1f1f1f 0%, #0F0F0F 100%);
    padding: 0 20px;
    box-sizing: border-box;
}

h1 {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
    font-size: 6vw;
    text-align: center;
    color: #3EA6FF;
    text-shadow:
        0 0 15px rgba(62, 166, 255, 0.7),
        0 0 30px rgba(62, 166, 255, 0.5);

    /* Startzustand für die Titel-Animation */
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Zustand nach dem Laden der Seite */
h1.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Optional: Scroll-Pfeil */
header::after {
    content: 'Scroll ⇩';
    position: absolute;
    bottom: 30px;
    color: #3EA6FF;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- 2. & 3. Die Inhalts-Sektionen ("Über mich" & Links) --- */
.content-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    text-align: center;
}

.content-section h2 {
    font-family: 'Trebuchet MS', sans-serif;
    color: #3EA6FF;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Styling für die Links (Buttons) */
.links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.links-container a {
    display: inline-block;
    background-color: #3EA6FF;
    color: #0F0F0F;
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.links-container a:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* --- 4. KACHEL-SEKTION (ZENTRIERTER BLOCK) --- */
.quad-wrapper {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

#quad-view {
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 0 25px rgba(62, 166, 255, 0.3);
}

.quad-tile {
    width: 50%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid #0F0F0F;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.8s ease, transform 0.8s ease;
    box-sizing: border-box;
    background-color: #2a2a2a;

    /* Basis-Zustand: Unsichtbar */
    opacity: 0;
    transform: translate(0, 0);
}

.quad-tile:hover {
    background-color: #333;
    transform: translateY(-5px);
}

/* --- NEUE ANIMEIRUNGS-KLASSEN --- */

/* Startzustand Kachel 1 (Links Oben) - Fliegt von links herein */
.tile-1 {
    transform: translateX(-100%);
}

/* Startzustand Kachel 2 (Rechts Oben) - Fliegt von rechts herein */
.tile-2 {
    transform: translateX(100%);
}

/* Startzustand Kachel 3 & 4 (Unten) - Fliegen von unten herein */
.tile-3, .tile-4 {
    transform: translateY(100%);
}

/* Endzustand für alle Kacheln: Vollständig sichtbar und an der Zielposition */
.quad-tile.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- 5. Fade-in-beim-Scrollen Logik (CSS) --- */
/* Beibehalten, um die Sektionen sanft erscheinen zu lassen */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
