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

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #1e90ff;
    color: #fff;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    min-height: 100vh;
}

header {
    margin-bottom: 20px;
    animation: fadeIn 2s;
    position: relative;
}

header .profile-icon {
    font-size: 4rem;
    margin-bottom: 5px;
    margin-top: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    opacity: 0.8;
}

header .dark-mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 45px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contact-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    display: inline-block;
}

.contact-section li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-section a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-section a span,
.contact-section a img {
    margin-right: 10px;
}

.contact-section a:hover {
    color: #ffd700;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 15px 0;
    font-size: 0.8rem;
    opacity: 0.7;
    width: 100%;
    text-align: center;
    margin-top: auto;
    position: relative;
}

body.dark-mode {
    background: #003a86;
    color: #fff;
}

body.dark-mode header h1,
body.dark-mode header p {
    color: #fff;
    text-shadow: 1px 1px 2px #000928;
}

body.dark-mode .contact-section {
    background: rgba(0, 34, 82, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dark-mode-toggle {
    filter: brightness(0) invert(1);
}

body.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .modal-content {
    background-color: rgba(0, 34, 82, 1);
    color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

body.dark-mode .modal-thumbnail {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .modal-btn {
    background-color: var(--btn-bg-color-dark, #00509e);
    color: var(--btn-text-color-dark, #fff);
}

body.dark-mode .modal-btn:hover {
    background-color: var(--btn-hover-bg-color-dark, #003a73);
    color: var(--btn-hover-text-color-dark, #ffffff);
    transform: scale(1.05);
}

body.dark-mode .close-btn {
    color: var(--close-btn-color-dark, #ffffff);
}

body.dark-mode .close-btn:hover {
    color: var(--close-btn-hover-color-dark, crimson);
    transform: scale(1.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 160%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #359bff;
    color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    max-width: 500px;
    width: 80%;
    position: relative;
    text-align: center;
}

.modal-thumbnail {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.modal-btn {
    background-color: var(--btn-bg-color, #007bff);
    color: var(--btn-text-color, rgb(255, 255, 255));
}

.modal-btn:hover {
    background-color: var(--btn-hover-bg-color, #0056b3);
    color: var(--btn-hover-text-color, #ffffff);
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    color: var(--close-btn-color, #ffffff);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: var(--close-btn-hover-color, red);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    header .profile-icon {
        margin-top: 75px;
    }
    header .dark-mode-toggle {
        top: 80px;
    }
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 15px;
    }

    .contact-section a {
        font-size: 1rem;
    }
    
    .modal {
        width: 100%;
    }
    .modal-content {
        font-size: 15px;
    }
    .modal-buttons {
        margin-top: 10px;
    }
    .modal-btn {
        padding: 2px 5px;
        width: 45%;
        font-size: 15px;
        align-items: center; /* Vertikale und horizontale Zentrierung */
        text-align: center;
    }
    .close-btn {
        top: 0px;
    }
    footer {
        font-size: 0.6rem;
    }
}

@media (max-height: 940px) and (min-width: 940px) {
    header .profile-icon {
        margin-top: 85px;
    }

    header .dark-mode-toggle {
        top: 90px;
    }
    .modal {
        width: 145%;
    }
}