/* ==============================
   Grundlegendes Reset & Fonts
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #ededed;
    background: url('bilder/hintergrund.png') no-repeat center center/cover;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* ==============================
   Dark / Light Mode
============================== */
body.light-mode {
    background: #f5f5f5;
    color: #061b29;
}

body.light-mode .btn-box,
body.light-mode .read,
body.light-mode .send {
    background: #061b29;
    color: #fff;
}

body.light-mode .home-sci a,
body.light-mode .contact-icons i {
    border-color: #061b29;
    color: #061b29;
}
/* Light Mode Anpassung */
body.light-mode .top {
    background: #061b29;
    color: #fff;
    box-shadow: 0 0 15px rgba(6,27,41,0.6);
}


/* ==============================
   Header & Navbar
============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #061b29;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s;
}

.header .logo {
    font-size: 25px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.navbar {
    display: flex;
    gap: 35px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #0ef;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.dark-mode-toggle {
    cursor: pointer;
    margin-left: 20px;
}

.dark-mode-toggle i {
    font-size: 22px;
    color: #0ef;
}

/* ==============================
   Home Section
============================== */
.home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding: 0 10%;
}

.home-content h3,
.home-content h1 {
    margin-bottom: 10px;
}

.home-content h1 {
    font-size: 56px;
}

.home-content .text {
    color: #0ef;
    font-weight: 600;
}

.home-content p {
    font-size: 20px;
    margin: 20px 0;
    line-height: 1.5;
}

.btn-box {
    display: inline-block;
    padding: 12px 30px;
    background: #0ef;
    border-radius: 40px;
    color: #061b29;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-box:hover {
    box-shadow: 0 0 20px #0ef;
}

.home-sci {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.home-sci a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border: 2px solid #0ef;
    border-radius: 50%;
    color: #0ef;
    transition: all 0.3s;
}

.home-sci a:hover {
    background: #0ef;
    color: #061b29;
    box-shadow: 0 0 20px #0ef;
}

/* ==============================
   About Section
============================== */
.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 120px 10%;
}

.about-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px #0ef;
}

.about-text h2 {
    font-size: 50px;
}

.about-text h2 span {
    color: #0ef;
}

.about-text h4 {
    font-size: 22px;
    margin: 20px 0;
}

.about-text p {
    line-height: 1.5;
    margin-bottom: 30px;
}

/* ==============================
   Services Section
============================== */
.sub-title {
    text-align: center;
    font-size: 50px;
    margin-bottom: 50px;
}

.sub-title span {
    color: #0ef;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 10%;
}

.services-list div {
    padding: 30px;
    border-radius: 15px;
    background: rgba(0,0,0,0.3);
    text-align: center;
    transition: all 0.3s;
}

.services-list div:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #0ef;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #0ef;
}

.services-list div h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-list div p {
    font-size: 16px;
}

/* ==============================
   Portfolio Section
============================== */
.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10%;
}

.rew {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.rew img {
    width: 100%;
    transition: transform 0.5s;
}

.rew:hover img {
    transform: scale(1.1);
}

.layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.8), #0ef);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: height 0.5s;
}

.rew:hover .layer {
    height: 100%;
}

.layer h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.layer p {
    font-size: 16px;
    text-align: center;
}

/* ==============================
   Contact Section
============================== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 120px 10%;
}

.contact-text h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-text h2 span {
    color: #0ef;
}

.contact-text p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-list li {
    margin-bottom: 10px;
    list-style: none;
}

.contact-icons i {
    margin-right: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0ef;
    border-radius: 50%;
    color: #0ef;
    transition: 0.3s;
}

.contact-icons i:hover {
    background: #0ef;
    color: #061b29;
    box-shadow: 0 0 20px #0ef;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(0,0,0,0.3);
    color: #fff;
}

.contact-form form .send {
    background: #0ef;
    color: #061b29;
    border-radius: 40px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
}

.contact-form form .send:hover {
    box-shadow: 0 0 20px #0ef;
}

/* ==============================
   Footer
============================== */
.last-text {
    text-align: center;
    padding: 25px 0;
    background: #061b29;
    color: #fff;
    font-weight: 300;
}


/* ==============================
   Scroll Animation
============================== */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   Top Button
============================== */
.top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0ef;
    color: #061b29;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    z-index: 1000;
    box-shadow: 0 0 15px #0ef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #0ef;
}
/* Dark Mode (Standard) */
.top {
    background: #0ef;
    color: #061b29;
}

/* Light Mode */
body.light-mode .top {
    background: #061b29;
    color: #fff;
    box-shadow: 0 0 15px rgba(6,27,41,0.6);
}



/* ==============================
   Responsive
============================== */
@media(max-width: 991px){
    .header .navbar {
        position: fixed;
        top: 80px;
        right: -100%;
        background: #061b29;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        width: 200px;
        transition: right 0.3s;
    }

    .header .navbar.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        color: #0ef;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}
