/* ========================= */
/* Allgemein */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: url("background.jpg") center center/cover no-repeat fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ========================= */
/* Hauptkarte */
/* ========================= */

.main {
    width: min(1000px, 95vw);
    max-height: 95vh;
    overflow-y: auto;
    padding: 24px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main::-webkit-scrollbar {
    display: none;
}

/* ========================= */
/* Profil */
/* ========================= */

.profile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.avatar {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .2);
}

.status {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f04747;
    border: 3px solid #222;
}

.profile-text {
    flex: 1;
    min-width: 150px;
}

.profile-text h1 {
    font-size: 32px;
}

.profile-text p {
    opacity: .8;
    margin-top: 4px;
    font-size: 15px;
}

/* Uhr & Besucher Widgets im Profil */
.clock-card, .visitor-card {
    flex: 1;
    min-width: 130px;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clock-title, .visitor-title {
    color: #7ed3ff;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
}

#clock {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.visitor-count {
    font-size: 24px;
    font-weight: 700;
}

/* ========================= */
/* Infos */
/* ========================= */

.infos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    transition: .2s;
    font-size: 15px;
}

.info-item:hover {
    background: rgba(255, 255, 255, .08);
}

.label {
    color: #7ed3ff;
    font-weight: 600;
}

/* ========================= */
/* Extra Grid (About Me) */
/* ========================= */

.extra-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========================= */
/* Über mich */
/* ========================= */

.about-widget {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    transition: .3s;
    overflow: hidden;
}

.about-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(126, 211, 255, .10), transparent 60%);
    pointer-events: none;
}

.about-widget:hover {
    transform: translateY(-4px);
    border-color: rgba(126, 211, 255, .25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
}

.about-widget h2, .social-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-widget h2::after, .social-section h2::after {
    content: "";
    flex: 1;
    height: 2px;
    margin-left: 12px;
    background: linear-gradient(to right, #7ed3ff, transparent);
}

.about-widget p {
    color: #d9d9d9;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-widget strong {
    color: #7ed3ff;
    font-weight: 700;
}

/* ========================= */
/* Social Links */
/* ========================= */

.social-section {
    margin-top: 5px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.social-card {
    position: relative;
    overflow: hidden;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
    transition: .3s;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(126, 211, 255, .12), transparent 70%);
    opacity: 0;
    transition: .3s;
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #7ed3ff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .30);
}

.social-card img {
    width: 36px;
    height: 36px;
    transition: .3s;
}

.social-card:hover img {
    transform: scale(1.12) rotate(4deg);
}

.social-card span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .4px;
    transition: .3s;
}

.social-card:hover span {
    color: #7ed3ff;
}

/* ========================= */
/* Footer & Lautstärke */
/* ========================= */

.footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.footer button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: .2s;
}

.footer button:hover {
    text-decoration: underline;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transition: .25s;
    max-width: 100%;
}

.volume-control:hover {
    background: rgba(255, 255, 255, .12);
}

#volumeIcon {
    font-size: 18px;
}

#volume {
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .25);
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7ed3ff;
    box-shadow: 0 0 8px rgba(126, 211, 255, .8);
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7ed3ff;
    border: none;
    cursor: pointer;
}

/* ========================= */
/* Popup / Modal */
/* ========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.modal-content {
    width: min(700px, 90vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 20px;
    background: rgba(30, 30, 30, .95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
    position: relative;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #8ec5ff;
}

.modal-content p {
    line-height: 1.6;
    color: #e2e2e2;
    font-size: 15px;
    margin-bottom: 14px;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: .25s;
}

.close:hover {
    color: #8ec5ff;
    transform: rotate(90deg);
}

/* ========================= */
/* Entry Screen */
/* ========================= */

body.enter-blur .main,
body.enter-blur .volume-control {
    filter: blur(15px);
    transform: scale(1.03);
}

.entry-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(25px);
    transition: .8s;
}

#enterButton {
    position: relative;
    padding: 16px 40px;
    border-radius: 20px;
    border: 1px solid rgba(126, 211, 255, .35);
    background: linear-gradient(135deg, rgba(126, 211, 255, .25), rgba(255, 255, 255, .08));
    color: white;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 25px rgba(126, 211, 255, .35), 0 15px 40px rgba(0, 0, 0, .45);
    animation: buttonFloat 3s ease-in-out infinite;
    transition: .35s ease;
    overflow: hidden;
}

#enterButton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-25deg);
    animation: shine 3.5s infinite;
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shine {
    0% { left: -120%; }
    50%, 100% { left: 150%; }
}

#enterButton:hover {
    transform: scale(1.05);
    border-color: #7ed3ff;
    box-shadow: 0 0 45px rgba(126, 211, 255, .7), 0 20px 55px rgba(0, 0, 0, .5);
}

#enterButton:active {
    transform: scale(.96);
}

.entry-screen.hide {
    opacity: 0;
    pointer-events: none;
}

/* ========================= */
/* Responsive Anpassungen (Mobile / Tablet) */
/* ========================= */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main {
        padding: 16px;
        max-height: 98vh;
    }

    .profile {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .avatar {
        margin: 0 auto;
    }

    .profile-text h1 {
        font-size: 26px;
    }

    .clock-card, .visitor-card {
        width: 100%;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .volume-control {
        width: 100%;
        justify-content: center;
    }

    #volume {
        width: 150px;
    }
}