/* Allgemeines Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: #00e676;
}

/* Particles.js Hintergrund (nur in der Home-Section sichtbar) */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95); /* Leicht transparenter Hintergrund für bessere Sichtbarkeit */
    z-index: 999;
    transition: background-color 0.3s ease;
}

nav .logo {
    float: left;
    padding: 15px 30px;
}

nav .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff; /* Weiß für das Logo */
    transition: color 0.3s ease;
}

nav .logo a:hover {
    color: #00e676; /* Grün beim Hover */
}

nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    float: right;
}

nav .nav-list li {
    display: inline-block;
    padding: 15px 20px;
}

nav .nav-list li a {
    color: #fff;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav .nav-list li a:hover,
nav .nav-list li a.active {
    color: #00e676;
    border-bottom: 2px solid #00e676;
}

nav .menu-toggle {
    display: none;
    float: right;
    padding: 15px 20px;
}

nav .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Scroll Indikator */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, #00e676, #6c63ff); /* Grüner Farbverlauf */
    width: 0%;
    z-index: 1000;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    background-color: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 200px;
    text-align: center;
    background-color: transparent; /* Entfernt den Hintergrundkasten */
    border-radius: 0; /* Entfernt abgerundete Ecken */
    box-shadow: none; /* Entfernt den Schatten */
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 80px;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: #00e676;
}

.hero-content h3 {
    font-size: 32px;
    margin-bottom: 40px;
    height: 40px;
    overflow: hidden;
}

.hero-content .btn {
    padding: 12px 24px;
    background-color: #00e676;
    color: #121212; /* Dunkler Text für besseren Kontrast */
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.5); /* Schatten für 3D-Effekt */
    font-size: 16px;
    font-weight: 600;
}

.hero-content .btn:hover {
    background-color: #00c853;
    color: #fff; /* Weißer Text beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6);
}

/* Größerer, prominenterer Hero-Button */
.hero-content .btn-hero {
    padding: 18px 42px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 35px;
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.6);
}

.hero-content .btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(0, 230, 118, 0.7);
}

/* Scroll-Indikator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    color: #00e676; /* Grüner Pfeil */
    font-size: 32px;
    animation: bounce 2s infinite;
}

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

/* Section Divider */
.section-divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #00e676, #6c63ff); /* Grüner Farbverlauf */
    margin: 0 auto;
}

/* Über mich Section */
.about-section {
    padding: 100px 20px;
    background-color: rgba(18, 18, 18, 0.8);
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image, .about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    text-align: center;
}

.about-image img {
    border-radius: 16px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.about-text {
    padding: 20px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #00e676;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8; /* Erhöhter Zeilenabstand */
}

/* Skills Section */
.skills-section {
    padding: 100px 20px;
    background-color: transparent; /* Grauer Bereich entfernt */
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: #00e676;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.skill-card {
    background-color: rgba(42, 42, 42, 0.8); /* Transparenter Hintergrund */
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    width: 200px;
    height: 180px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.skill-card:hover {
    transform: translateY(-10px);
    background-color: #00e676;
}

.skill-card .icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.skill-card img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Fix for icons with transparent backgrounds (TypeScript, Node.js) */
.skill-card img[src*="typescript"],
.skill-card img[src*="nodejs"] {
    background-color: #fff;
    border-radius: 8px;
    padding: 4px;
}

.skill-card h3 {
    font-size: 20px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.skill-card:hover h3 {
    color: #121212;
}

/* Projekte Section */
.projects-section {
    padding: 100px 20px;
    background-color: rgba(18, 18, 18, 0.8);
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: #00e676;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 32px; /* etwas kompakteres Gap, wirkt moderner */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.project-card {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 220px; /* etwas größer für prominenteres Visual */
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00e676; /* Grüner Titel */
}

.project-info p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Project Links Container */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-info .btn {
    padding: 8px 14px;
    background-color: #00e676;
    color: #121212; /* Dunkler Text für besseren Kontrast */
    border-radius: 22px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 230, 118, 0.45); /* Leichterer Schatten */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;            /* etwas kleiner */
    min-width: 130px;        /* kompaktere Mindestbreite */
    white-space: nowrap;     /* keine Zeilenumbrüche in Buttons */
    font-weight: 600;
    font-size: 13px;
}

.project-info .btn i { font-size: 16px; }

.project-info .btn:focus-visible {
    outline: 2px solid #6c63ff;
    outline-offset: 2px;
}

.project-info .btn:hover {
    background-color: #00c853;
    color: #fff; /* Weißer Text beim Hover */
    transform: translateY(-2px);
}

.project-info .btn-primary {
    background-color: #667eea; /* Primär: Purple passend zum Branding */
    color: #fff;
}

.project-info .btn-primary:hover {
    background-color: #6f65f0; /* etwas heller für Hover */
}

/* Coming Soon Card */
.project-card.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(42, 42, 42, 0.8);
}

.project-card.coming-soon .project-info {
    text-align: center;
}

.project-card.coming-soon h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00e676;
}

.project-card.coming-soon p {
    font-size: 16px;
    color: #fff;
}

@media (max-width: 480px) {
    /* Buttons sollen mobil die ganze Breite nutzen und einheitlich bleiben */
    .project-info .btn { width: 100%; min-width: 0; }
}

/* Footer */
footer {
    background-color: #1e1e1e;
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

footer .social-media {
    margin-bottom: 20px;
}

footer .social-media a {
    color: #00e676; /* Grüner Farbton für Icons */
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #fff; /* Weiß beim Hover */
}

footer p {
    font-size: 14px;
}

footer .footer-link {
    color: #00e676;
    margin: 0 5px;
    transition: color 0.3s ease;
}

footer .footer-link:hover {
    color: #fff;
}

/* Back-to-Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00e676;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.5); /* Schatten für 3D-Effekt */
}

#back-to-top:hover {
    background-color: #00c853;
    transform: scale(1.1); /* Leichte Vergrößerung beim Hover */
}

#back-to-top.show {
    display: block;
}

/* Responsives Design */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    nav .nav-list {
        display: none;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.95);
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        padding: 20px;
    }

    nav .nav-list.active {
        display: flex;
    }

    nav .menu-toggle {
        display: block;
    }

    nav .logo {
        float: none;
        text-align: center;
    }

    .about-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-text {
        padding: 0;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        padding-top: 150px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-content h3 {
        font-size: 28px;
        height: 32px;
    }

    .hero-content .btn-hero {
        padding: 16px 36px;
        font-size: 18px;
    }

    /* Zusätzliche Anpassungen für albert.html */
    .albert-main .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-detail-section .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .hero-content {
        padding-top: 100px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h3 {
        font-size: 24px;
        height: 28px;
    }

    .hero-content .btn-hero {
        padding: 14px 30px;
        font-size: 16px;
    }

    /* Zusätzliche Anpassungen für albert.html */
    .project-detail-section .container {
        padding: 10px;
    }

    .project-detail-section h1,
    .project-detail-section h2 {
        font-size: 28px;
    }

    .project-detail-section p {
        font-size: 16px;
    }

    .project-detail-section .images h2 {
        font-size: 20px;
    }
}

/* Responsive Grid Breakpoints for Projects */
@media (min-width: 600px) {
    .projects-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .projects-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    /* exakt 4 Karten pro Reihe auf großen Screens */
    .projects-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Spezifische Styles für albert.html */
.albert-headline {
    color: #00e676; /* Grüner Farbton */
    line-height: 1.8; /* Erhöhter Zeilenabstand */
    text-align: center; /* Zentrierung der Headlines */
}

.albert-main .project-detail-section {
    background: url('../res/magical-background.jpg') no-repeat center center / cover; /* Magischer Hintergrund */
    padding: 60px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.albert-main .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.albert-main .images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.albert-main .imgContainer {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.albert-main .imgContainer:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 230, 118, 0.7);
}

.albert-main .imgContainer img {
    width: 100%;
    height: auto;
}

/* Animation für magische Effekte */
@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.project-detail-section {
    position: relative;
    overflow: hidden;
}

.project-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 230, 118, 0.2), rgba(108, 99, 255, 0.2), rgba(0, 230, 118, 0.2));
    animation: shimmer 5s linear infinite;
}

/* Spezifische Styles für Impressum und Datenschutz */
.impressum-section,
.datenschutz-section {
    max-width: 800px; /* Begrenze die maximale Breite für bessere Lesbarkeit */
    margin: 0 auto; /* Zentriere den Inhalt */
    padding: 40px 20px; /* Innenabstand */
    background-color: rgba(18, 18, 18, 0.9); /* Hintergrundfarbe, passend zum Rest der Seite */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Schatten für 3D-Effekt */
}

.impressum-headline,
.datenschutz-headline {
    text-align: center; /* Zentriere die Überschrift */
    color: #00e676; /* Grüner Farbton für die Überschrift */
    margin-bottom: 30px; /* Abstand nach unten */
    font-size: 32px; /* Schriftgröße der Überschrift */
}

.impressum-section h2,
.datenschutz-section h2 {
    color: #00e676; /* Grüner Farbton für Unterüberschriften */
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 24px;
}

.impressum-section p,
.datenschutz-section p {
    text-align: justify; /* Blocksatz für bessere Lesbarkeit */
    line-height: 1.8; /* Erhöhter Zeilenabstand */
    font-size: 18px; /* Schriftgröße für den Fließtext */
    margin-bottom: 20px; /* Abstand zwischen den Absätzen */
}

.impressum-section a,
.datenschutz-section a {
    color: #00e676; /* Grüner Farbton für Links */
    text-decoration: underline; /* Unterstrich für Links */
    transition: color 0.3s ease;
}

.impressum-section a:hover,
.datenschutz-section a:hover {
    color: #6c63ff; /* Farbwechsel beim Hover */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-content:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.9);
}

.close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #6c63ff;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Spezifische Styles für albert.html - Hover- und Schatteneffekte */
.albert-main .project-detail-section h1.albert-headline {
    font-size: 48px; /* Größere Schriftgröße für das Haupttitel */
    font-weight: 700; /* Fettgedruckt */
    color: #00e676; /* Grüner Farbton */
    margin-bottom: 40px; /* Abstand nach unten */
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease; /* Übergangseffekt für Transformation, Farbe und Schatten */
    display: inline-block; /* Ermöglicht die Transformation */
}

.albert-main .project-detail-section h1.albert-headline:hover {
    transform: scale(1.05); /* Vergrößerung beim Hover */
    color: #6c63ff; /* Farbwechsel beim Hover */
    text-shadow: 2px 2px 10px rgba(0, 230, 118, 0.7); /* Schatteneffekt beim Hover */
}

.albert-main .project-detail-section h2.albert-headline {
    font-size: 28px; /* Angepasste Schriftgröße für Unterüberschriften */
    margin-top: 30px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease; /* Übergangseffekt für Transformation, Farbe und Schatten */
    display: inline-block; /* Ermöglicht die Transformation */
}

.albert-main .project-detail-section h2.albert-headline:hover {
    transform: scale(1.02); /* Leichte Vergrößerung beim Hover */
    color: #6c63ff; /* Farbwechsel beim Hover */
    text-shadow: 1px 1px 5px rgba(0, 230, 118, 0.5); /* Schatteneffekt beim Hover */
}

/* Consent Banner */
.consent-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(30, 30, 30, 0.98);
    color: #fff;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1002;
    display: none;
}

.consent-banner.show { display: block; }

.consent-banner h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #00e676;
}

.consent-banner p { margin: 0 0 12px 0; font-size: 14px; line-height: 1.6; }

.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.consent-btn {
    background-color: #00e676;
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.consent-btn.secondary {
    background-color: #333;
    color: #fff;
}

.consent-link { color: #00e676; text-decoration: underline; }
