/* space-grotesk-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* space-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/space-grotesk-v22-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* === GRUNDEINSTELLUNGEN & VARIABLEN === */
:root {
    --bg-color: #10101a; /* Ein sehr dunkles Blau/Schwarz */
    --primary-color: #ffffff;
    --accent-color: #00f2ff; /* Ein leuchtendes Cyan als Akzent */
    --font-main: 'Space Grotesk', sans-serif;
}

/* Ein einfacher Reset, damit alle Browser gleich starten */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BODY & LAYOUT === */
body {
    background-color: var(--bg-color); /* Nur noch eine simple Hintergrundfarbe */
    color: var(--primary-color);
    font-family: var(--font-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* === PARTIKEL-HINTERGRUND === */
#particles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* <<< WICHTIG: von -1 auf 1 ändern */
    pointer-events: none; /* <<< WICHTIG: Diese Zeile hinzufügen */
}



.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    position: relative; /* <<< WICHTIG: Diese Zeile hinzufügen */
    z-index: 2;         /* <<< WICHTIG: Diese Zeile hinzufügen */
}


main {
    flex-grow: 1; /* Sorgt dafür, dass der Footer unten bleibt */
}

/* === DEIN CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00b8c2; /* Etwas dunkler beim Hover */
}


/* === STYLING DER ELEMENTE === */
header, section, footer {
    margin-bottom: 3rem;
}

h1, h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    filter: brightness(1.2); /* Lässt die Farbe beim Hovern leuchten */
}

footer {
    text-align: center;
    opacity: 0.6;
    margin-top: auto; /* Drückt den Footer nach unten */
}

ul {
    list-style: none; /* Entfernt die Aufzählungspunkte */
}

/* === ANIMATIONEN FÜR MEHR LEBEN === */

/* Wir definieren eine Animation namens 'fadeInUp' */
@keyframes fadeInUp {
    from {
        opacity: 0; /* Startet komplett unsichtbar */
        transform: translateY(20px); /* Startet 20px weiter unten */
    }
    to {
        opacity: 1; /* Endet komplett sichtbar */
        transform: translateY(0); /* Endet an der finalen Position */
    }
}

/* Wir weisen die Animation den Elementen zu, die wir animieren wollen */
header, section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Wichtig: Startet unsichtbar, bevor die Animation beginnt */
}

/* Optional: Eine kleine Verzögerung für die zweite Sektion für einen Staffeleffekt */
section#projects {
    animation-delay: 0.2s;
}

/* === INTERAKTIVER CURSOR GLOW === */


.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten */
    gap: 1.5rem; /* Abstand zwischen den Karten */
}

.project-card {
    background: rgba(255, 255, 255, 0.05); /* Leicht durchsichtiger Hintergrund */
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none; /* Unterstreichung vom Link entfernen */
    color: var(--primary-color);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03); /* Hebt die Karte an und vergrößert sie */
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
    border-color: var(--accent-color);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-card .project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
}


/* === FIX FÜR MAUS-INTERAKTIVITÄT (KOMBINIERTE VERSION) === */

/* 1. Mache den Haupt-Container für die Maus "unsichtbar" */
.container,
.container header,
.container main,
.container section,
.container footer {
    pointer-events: none;
}

/* 2. Mache NUR die interaktiven Elemente darin wieder "sichtbar" für die Maus */
.container a,
.container p,
.container h1,
.container h2,
.container h3 {
    pointer-events: all;
}


.breadcrumb a {
    font-size: 0.9rem;
    opacity: 0.7;
    text-decoration: none;
}

.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.2);
    text-decoration: none;
}


.legal-text h2 {
    margin-top: 2.5rem; /* Mehr Abstand zwischen den Abschnitten */
    margin-bottom: 0.8rem;
    font-size: 1.5rem; /* Etwas kleiner als die Haupt-Überschriften */
    border-bottom: 1px solid rgba(0, 242, 255, 0.2); /* Dezente Trennlinie */
    padding-bottom: 0.5rem;
}

.legal-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color); /* Normale Textfarbe für untergeordnete Überschriften */
    font-size: 1.2rem;
    opacity: 0.9;
}

.legal-text h4 {
    margin-top: 2.5rem;   /* Guter Abstand nach oben */
    margin-bottom: 1rem;
    font-size: 1.2rem;    /* Etwas kleiner als h3 */
    color: var(--accent-color); /* Hebt die Überschrift hervor */
    border-bottom: 1px solid rgba(0, 242, 255, 0.15); /* Dezente Trennlinie */
    padding-bottom: 0.5rem;
    font-weight: 700;     /* Fett gedruckt für bessere Lesbarkeit */
}

.legal-text p {
    color: rgba(255, 255, 255, 0.8); /* Text leicht abgegraut, um die Lesbarkeit zu verbessern */
}

.container {
    text-align: center;
}

.project-card {
    text-align: left;
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-align: center; /* <<< DIESE ZEILE HINZUFÜGEN */
}

.home-link {
    display: block; /* Sorgt für einen sauberen Zeilenumbruch */
    font-size: 3rem; /* <<< HIER IST DEINE SCHRIFTGRÖSSE */
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem; /* Etwas Abstand zur Überschrift darunter */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.home-link:hover {
    opacity: 1;
    text-decoration: none;
    filter: none;
}

@media (max-width: 700px) {

    /* Schriftgrößen anpassen für bessere Lesbarkeit auf kleinen Schirmen */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* WICHTIG: Projekt-Grid auf eine Spalte umstellen */
    .project-grid {
        grid-template-columns: 1fr; /* Nur noch eine Spalte */
        gap: 1.5rem; /* Abstand bleibt gleich */
    }

    /* Abstand des Hauptcontainers an den Seiten reduzieren */
    .container {
        padding: 1rem;
    }
}