:root {
    --primary: #0a84ff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #1a1a1a;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.pexels.com/photos/2881229/pexels-photo-2881229.jpeg?cs=srgb&dl=pexels-brett-sayles-2881229.jpg&fm=jpg") no-repeat center center/cover;
    filter: blur(5px) brightness(0.5);
    z-index: -1;
}


header {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 0.5rem 2rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    width: 100%;
}

.logo {
    font-size: 2rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary);
}

.logo strong {
    font-weight: 700;
}

.logo span {
    font-weight: 300;
}

/* Sub Header */
nav {
    margin-top: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    border-bottom: solid 2px transparent;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    transition: all 0.3s;
}

nav ul li a:hover {
    border-bottom: solid 2px var(--primary);
}

/* Hamburger menu */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.hamburger:hover {
    color: var(--primary);
}

.hamburger.active i {
    content: "\f00d"; /* FontAwesome X */
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 1rem;
    }
    nav ul {
        flex-direction: column;
        background: #1a1a1a;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 0.3s;
        align-items: center;
        text-align: center;
    }
    nav ul.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    nav ul li {
        margin: 0.8rem 0;
        text-align: center;
    }
    nav ul li a {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    .hamburger {
        display: block;
    }
    nav {
        flex: 1;
    }
    nav ul {
        width: 100%;
    }
}


section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #eee;
}

#about img {
    background: #fff;
    border: solid 5px #006fdd;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

#about p {
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.6;
}

button {
    font-family: "Poppins", sans-serif;
    margin-top: 1.5rem;
    padding: 0.5rem 1.0rem;
    font-size: 1rem;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #006fdd;
}

.portfolio-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.portfolio-item h3 {
    border-bottom: #0A84FF 2px solid;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.portfolio-item p {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 1rem;
}

.portfolio-icons {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.portfolio-icons i {
    padding: 0.2rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Farben für Icons */
.fa-html5 {
    background-color: #E34F26;
    color: #fff;
}

.fa-css3-alt {
    background-color: #1572B6;
    color: #fff;
}

.fa-js {
    background-color: #F7DF1E;
    color: #000;
}

.fa-php {
    background-color: #777BB4;
    color: #fff;
}

.fa-icons {
    background-color: #0A84FF;
    color: #fff;
}

.fa-figma {
    background-color: #F24E1E;
    color: #fff;
}

.fa-adobe {
    background-color: #FF0000;
    color: #fff;
}

.fa-pencil-ruler {
    background-color: #4CAF50;
    color: #fff;
}

.fa-facebook-f {
    background-color: #1877F2;
    color: #fff;
}

.fa-x-twitter {
    background-color: #ffffff;
    color: #000;
}

.fa-instagram {
    background-color: #E1306C;
    color: #fff;
}

footer {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

footer a {
    color: #fff;
    border-bottom: solid 2px transparent;
    margin: 0 0.6rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

footer a:hover {
    border-bottom: solid 2px var(--primary);
}

/* Vergleichssektion */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.compare-box {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    position: relative;
}

.compare-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.compare-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.bestseller-badge {
    position: absolute;
    top: -18px;
    right: -18px;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    letter-spacing: 1px;
}

.compare-features {
    text-align: left;
    margin: 0 0 1.5rem 0;
    color: #eee;
    font-size: 1.05rem;
    list-style: none;
    /* entfernt die Punkte */
    padding-left: 0;
}

.compare-features li {
    margin-bottom: 0.7rem;
    padding-left: 2em;
    position: relative;
}

.compare-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    font-weight: 900;
    color: var(--primary);
    font-size: 1.1em;
}

.compare-features li .fa-check {
    position: absolute;
    left: 0;
    top: 0.08em;
    color: var(--primary);
    font-size: 1.1em;
    width: 1.5em;
    text-align: center;
}

@media (max-width: 768px) {
    .compare-section {
        padding: 1rem;
    }

    .compare-grid {
        gap: 1rem;
    }
}

/* Projekte Sektion */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    align-items: start;
}

.project-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-img {
    width: 100%;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 1.2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.project-desc {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 1.2rem;
}

.project-btn {
    font-family: "Poppins", sans-serif;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.project-btn:hover {
    background-color: #006fdd;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 500;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    font-family: "Poppins", sans-serif;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form button[type="submit"] {
    font-family: "Poppins", sans-serif;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form button[type="submit"]:hover {
    background-color: #006fdd;
}

/* Switch Styles */
.switch-group {
    margin-top: 0.5rem;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.98rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-slider {
    min-width: 40px;
    width: 40px;
    height: 22px;
    background: #444;
    border-radius: 14px;
    position: relative;
    transition: background 0.3s;
    margin-right: 0;
    flex-shrink: 0;
}

.switch-slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background: var(--primary);
}

.switch-label input[type="checkbox"]:checked + .switch-slider:before {
    transform: translateX(18px);
}

.switch-text {
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.4;
    margin-left: 0.5rem;
    word-break: break-word;
}

.switch-text a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.switch-text a:hover {
    color: #006fdd;
}