﻿/* Smartphones Portrait */
@media (max-width: 600px) {
    .tile-container {
        flex-direction: column; /* Kacheln untereinander */
        max-width: 100%;
        gap: 15px;
    }

    .tile {
        width: 100%; /* volle Breite */
        height: auto;
    }

    #top {
        height: 100px; /* Header kleiner auf Mobil */
        padding: 10px 0;
    }

    h1 {
        font-size: 1.5rem; /* kleinere Überschriften */
    }

    .text-container {
        margin: 0 20px; /* Abstand vom Rand */
    }
}

html {
    scroll-behavior: smooth;
    pointer-events: auto;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    /*background: #f4f6f8;*/
    background: white;
    pointer-events: auto;
}

form, .aspNetHidden, #form1 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Allgemeine Sektionen */
section {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
}

/* Top-Sektion fixieren */
#top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Höhe 100px */
    background: white;
    color: white;
    text-align: center;
    line-height: 1.2;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 500;
}

    #top img {
        max-width: 80%;
        height: auto;
    }

/* h1 Animation */
h1 {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateX(-15deg); /* stärker verschoben und leicht gekippt */
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* „pop“-artige Kurve */
}

    h1.show {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg); /* zurück in normale Position */
    }


/* Startbereich */
#home {
    position: relative;
    min-height: 100vh;
    /*color: white;*/
    text-align: center;
    /* Hintergrundbild */
    background: url('../images/home.jpg') no-repeat center center;
    background-size: cover;
}

    /* Overlay */
    #home::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.0); /* transparent, 0 = kein Grau */
        z-index: 0;
    }

    /* Damit Texte und Kacheln über dem Overlay liegen */
    #home h1,
    .tile-container {
        position: relative;
        z-index: 1;
    }

/* Hero-Kachel über den normalen Kacheln */
.hero-tile {
    width: 100%; /* volle Breite der Container */
    height: 100px;
    margin-bottom: 30px; /* Abstand zu den normalen Kacheln */
    border-radius: 12px;
    overflow: hidden;
    /*background: url('/images/home_back_2.jpg') no-repeat center center;*/
    background-size:cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    position: relative;
}

    /* Overlay für bessere Lesbarkeit */
    .hero-tile::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.0);
        z-index: 0;
    }

    .hero-tile h1,
    .hero-tile p {
        position: relative;
        z-index: 1; /* über Overlay */
        margin: 0;
        padding: 0 20px;
    }


.hero-tile {
    max-width: 900px; /* gleiche Breite */
    margin: 0 auto 30px auto; /* zentrieren + Abstand unten */
}

/* Kachel-Container */
.tile-container {
    /*display: flex;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* maximal 3 Spalten */
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px; /* gleiche Max-Breite wie Hero-Kachel */
    margin: 0 auto; /* zentrieren */
    width: 100%;
}

.tile {
    /*width: 150px !important;*/
    height: 100px !important;
    /*background: white;*/
    background: rgba(255, 255, 255, 0.75); /* 85% Deckkraft */
    backdrop-filter: blur(4px); /* optional – Glas-Effekt */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box; /* wichtig */
}

    /* Akzentlinie unten */
    /*.tile::before {
        content: "";
        position: absolute;
        bottom: 0;*/ /* unten */
        /*left: 0;
        width: 100%;
        height: 5px;*/ /* Höhe der Linie */
        /*background: #007bff;*/ /* Akzentfarbe */
        /*border-radius: 0 0 12px 12px;*/ /* untere Ecken abrunden */
    /*}*/

    /* Hover-Effekt */
    .tile:hover {
        background: #007bff;
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    }

    /*.tile::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 5px;
        background: black;*/ /* Akzentfarbe */
        /*border-radius: 0 0 12px 12px;
        transition: width 0.4s ease;
    }*/

    .tile:hover::after {
        width: 100%;
    }

/* Über uns */
#about {
    /*background: whitesmoke;*/
    background: url('../images/about.jpg') no-repeat center center;
    position: relative; /* wichtig, damit das Foto absolut innerhalb der Sektion liegt */
    padding: 40px 20px;
}


/* Kontakt */
#contact {
    /*background: white;*/
    background: url('../images/contact.jpg') no-repeat center center;
    background-size: cover;
    background-position: center; /* Bild bleibt mittig */
    background-attachment: scroll; /* optional: fixed für Parallax */
}

/* Formular */
form {
    width: 100%;
    max-width: 400px;
}

/* Impressum */
#impressum {
    background: whitesmoke;
}

/* Impressum */
#project {
    background: url('../images/projects.jpg') no-repeat center center;
    background-size: cover;
    background-position: center; /* Bild bleibt mittig */
    background-attachment: scroll; /* optional: fixed für Parallax */
}

/* Login */
#login {
    /*background: whitesmoke;*/
    background: url('../images/login.jpg') no-repeat center center;
}


/* IDatenschutz */
#datenschutz {
    background: whitesmoke;
}

.text-container {
    max-width: 800px;
    margin-left: auto;
    margin-left: 40px; /* Abstand vom rechten Rand */
    text-align: left;
    width:100%
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

    input[type="submit"] {
        background: #007bff;
        color: white;
        border: none;
        cursor: pointer;
        transition: 0.2s;
    }

        input[type="submit"]:hover {
            background: #0056b3;
        }
/* Nach-oben-Kachel */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
    display: none;
}

    .back-to-top:hover {
        transform: translateY(-4px);
        opacity: 1;
        background: #0056b3;
    }

#cookie-banner {
    position: fixed;
    pointer-events: auto;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    font-size: 0.9rem;
    z-index: 99999 !important;
}

    #cookie-banner button {
        margin-top: 10px;
        margin-right: 10px;
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

        #cookie-banner button:first-of-type {
            background: #007bff;
            color: white;
        }

        #cookie-banner button:last-of-type {
            background: #ddd;
        }

#section-nav {
    display: none; /* Menü standardmäßig verstecken */
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.nav-btn {
    display: block;
    background: #007bff;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transition: opacity 0.3s ease;
}

    .nav-btn:hover {
        background: #0056b3;
        transform: translateX(-3px);
    }


#section-nav.show {
    display: flex;
    opacity: 1;
}

#section-nav.hide {
    opacity: 0;
    pointer-events: none;
}

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column; /* Text + Button untereinander */
    align-items: center; /* horizontal zentriert */
    justify-content: center;
    padding: 20px;
    gap: 15px; /* Abstand zwischen Text und Button */
    z-index: 9999;
}

    #cookieBanner a {
        color: white;
        text-decoration: underline;
    }

        #cookieBanner a:hover {
            opacity: 0.8;
        }
    #cookieBanner button {
        background: #4CAF50;
        border: none;
        padding: 10px 25px;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1rem;
    }

        #cookieBanner button:hover {
            opacity: 0.9;
        }

.skills-cloud {
    margin-top: 40px;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0px);
    }
}

.skills-cloud span {
    padding: 10px 18px;
    background: rgba(255,255,255,0.85);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    animation: float 3.5s ease-in-out infinite;
}

    .skills-cloud span:hover {
        background: #007bff;
        color: white;
        transform: scale(1.1);
    }

    .skills-cloud span:nth-child(odd) {
        animation-duration: 3s;
    }

    .skills-cloud span:nth-child(even) {
        animation-duration: 4s;
    }