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

html {
  scroll-behavior: smooth;
}

/* Typography and color scheme */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Angepasste Höhe nach Design */
    z-index: -2; /* Hinter dem Spiders-Canvas */
    overflow: hidden;
    transition: transform 0.5s ease-out;
}

.portrait-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Screenshot 2024-04-13 035938.png');
    background-size: cover;
    background-position: 50% 6%;
    background-repeat: no-repeat;
    transform: translate(43vw, 9vh);
    mix-blend-mode: soft-light; 
    opacity: 0.25;
    filter: grayscale(90%) brightness(110%) contrast(105%) sepia(2%) blur(0.2px);
    transition: opacity 0.7s ease, filter 0.7s ease;
}

.background-container:hover .portrait-overlay {
    opacity: 0.3;
    filter: grayscale(80%) brightness(115%) contrast(110%) sepia(3%) blur(0px);
}

.portrait-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%; /* Verändere die Höhe nach Bedarf für die gewünschte Verblendungsstärke */
    background: linear-gradient(to top, rgba(255, 255, 255, 5.5), transparent);
    pointer-events: none;
}

.portrait-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%; /* Verändere die Breite nach Bedarf für die gewünschte Verblendungsstärke */
    background: linear-gradient(to right, rgba(255, 255, 255, 5.5), transparent);
    pointer-events: none;
}

/* Header und Navigationsleiste - minimalistisches Design */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent !important; /* Immer transparent */
    box-shadow: none; /* Kein Schatten */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

header.scrolled {
    padding: 10px 30px;
    /* Keine Hintergrundfarbe oder Schatten beim Scrollen */
    background-color: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Header bleibt oben fixiert */
    position: fixed;
    top: 0;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
}

.logo img {
    width: 65px;
    height: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    width: 40px; /* Kleineres Logo beim Scrollen */
}

/* Moderne Navigationsleiste - minimalistisch */
.navbar_menu {
    transition: all 0.3s ease;
    display: flex;
}

/* Beim Scrollen Desktop-Menu ausblenden, mobiles Menu einblenden */
header.scrolled .navbar_menu {
    display: none !important;
}

/* Mobile Menu Button - minimalistisch */
.mobile-menu-btn {
    display: none; /* Standardmäßig ausgeblendet */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

/* Explizit display: block für mobile-menu-btn im scrolled state */
header.scrolled .mobile-menu-btn {
    display: block !important; /* !important hinzugefügt, um sicherzustellen, dass es andere Regeln überschreibt */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3); /* Leicht sichtbare Buttons, aber transparent */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 16px;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: #333;
    color: white;
}

.menu-icon {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s, top 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.mobile-menu-open .menu-icon {
    background-color: transparent;
}

.mobile-menu-open .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-open .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Kompaktes mobiles Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.5); /* Sehr transparent */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-open .mobile-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-links a {
    padding: 10px 15px;
    border-radius: 0;
    background-color: transparent;
    width: 100%;
}

.mobile-menu .nav-links a:hover {
    background-color: rgba(245, 245, 245, 0.5);
    transform: none;
}

/* Main content layout */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 30px; /* Zusätzlicher Platz am Ende für den Verlauf */
}

main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px; /* Höhe des Gradients */
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(249,249,249,1) 100%);
    pointer-events: none; /* Stellt sicher, dass Benutzerinteraktionen durchgelassen werden */
}

/* Hero section styling */
.hero {
    width: 100%;
    max-width: 45em;
    grid-column-gap: 4.5em;
    grid-row-gap: 4.5em;
    flex-direction: column;
    align-items: stretch;
    display: flex;
}

.info {
    font-size: 20px;
    margin-top: 20px;
}

/* Projects section styling */
.projects {
    width: 22.5em;
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
    flex-direction: column;
    align-items: stretch;
    display: flex;
}

.projects h2 {
    margin-bottom: 10px;
}

.projects ul {
    list-style-type: none;
    padding: 0;
}

.projects ul li a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.projects ul li a:hover {
    background-color: #ddd;
}

/* Verbesserte Projektabschnitte */
.project-wrapper {
    padding: 10px 20px; /* Reduzierter Top/Bottom Padding */
    background-color: #f9f9f9;
}

.project-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    padding: 40px;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px auto; /* Reduzierter Abstand zwischen Projekten */
    max-width: 1200px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.project-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Projektübersicht */
.project-overview {
    flex: 3;
    padding-right: 40px;
}

.project-overview h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #111;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.project-overview h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #333;
}

.project-overview p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.project-overview ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-overview li {
    margin-bottom: 8px;
    position: relative;
}

.project-overview h4 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #222;
}

/* Projektbild */
.project-image {
    flex: 2;
    max-width: 400px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #eee;
}

.project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image.protruding {
    position: relative;
    z-index: 1;
}

/* Responsive Design für Projektabschnitte */
@media (max-width: 900px) {
    .project-section {
        flex-direction: column;
        padding: 30px;
    }
    
    .project-overview {
        padding-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .project-image {
        max-width: 100%;
        width: 100%;
        margin-top: 20px;
    }
}

/* Weicher Übergang vom Hauptbereich zur Projektsektion */
#works {
    position: relative;
}

#works::before {
    display: none; /* Deaktiviere den bisherigen Übergang */
}

/* Footer styling */
footer {
    background: linear-gradient(to right, #222, #333, #222);
    color: #fff;
    padding: 40px 20px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    margin-top: 50px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71, #3498db);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.footer-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-info p:first-child {
    font-weight: bold;
    letter-spacing: 0.5px;
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: #3498db;
}

.footer-links a:hover::after {
    width: 70%;
}

.footer-links a i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Media queries for responsiveness */
@media (min-width: 898px) {
    .hero h1 {
        letter-spacing: -.02em;
        padding-bottom: 10px; 
        font-size: 8.5em;
        font-weight: 700;
        line-height: .98;
    }

    .hero p {
        font-size: 2em;
        font-weight: 400;
        line-height: 1.375;
    }

    .info span {
        font-size: 24px;
    }

    .projects ul li a {
        font-size: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 898px) {
    main {
        flex-direction: column;
    }

    .hero,
    .projects {
        text-align: center;
        padding: 20px;
        max-width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding-bottom: 30px;
    }

    .projects {
        padding-top: 30px;
    }
    
    /* Scrollbar für längere Projektlisten in der mobilen Ansicht */
    .projects ul {
        max-height: 200px;
        overflow-y: auto;
        padding: 5px;
        /* Styling der Scrollbar für bessere Sichtbarkeit */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
    }
    
    /* Scrollbar-Styling für Webkit-Browser (Chrome, Safari) */
    .projects ul::-webkit-scrollbar {
        width: 8px;
    }
    
    .projects ul::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
    
    .projects ul::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }
}

/* Stile für das Sticky-Menü */
header {
    position: sticky;
    top: 0;
   /* background-color: rgba(255, 255, 255, 0.9);*/
    z-index: 10;
}

header.scrolling {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

/* Stile für den Übergangseffekt beim Scrollen */
main {
    position: relative;
    z-index: 1;
}

/* Stile für die Kreise um die Menüpunkte */
nav ul li a {
    border-radius: 50%;
    transition: background-color 0.3s, padding 0.3s;
}

/* Sichtbare Kreise, wenn gescrollt wird - ALT */
body.scrolled nav ul li a {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Stile für die Kreise um die Menüpunkte */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333; /* Standardfarbe für die Links */
    transition: background-color 0.3s, padding 0.3s;
    border-radius: 20px;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Hintergrundfarbe bei Hover */
}

/* Hier wird die Animationsdefinition hinzugefügt */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 100%, 0); }
    to { opacity: 1; transform: none; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    right: 0;
    top: 90px;
    width: 50%;
    max-width: calc(100% - 20px);
    height: calc(100% - 50px);
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 40px;
    border: 1px solid #ccc;
    border-radius: 0 10px 10px 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Füge die Scrollanimation zu den Abschnitten hinzu, die animiert werden sollen */
.modal.fadeInRight {
    animation-name: fadeInRightModal;
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInRightModal {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.modal.fadeOutRight {
    animation-name: fadeOutRightModal;
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeOutRightModal {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.about-info {
  text-align: center;
}

.about-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.about-info p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.avatar {
  text-align: center;
  margin-bottom: 20px;
}

.avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

/* Footer Links */
footer ul {
    list-style: none;
    padding: 0;
    font-size: 10px;
}

footer ul li {
    display: inline;
    margin-right: 20px;
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
}

footer ul li a:hover {
    color: #fff;
}

/* Stelle sicher, dass .hidden das Element vollständig unsichtbar macht */
/* Initialzustand für das Kontaktformular versteckt */
.hidden {
    display: none;
}

.faded-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0s linear 0.5s; /* Verzögert die Unsichtbarkeit bis die Opazität Transition fertig ist */
}

.faded-in {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s;
}

.contactForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 550px;
    color: #333;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.form-header .close-contact {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.form-header .close-contact:hover {
    color: #333;
}

.form-intro {
    margin-bottom: 28px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 16px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.input-container:focus-within {
    border-color: #4e73df;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.1);
}

.input-container i {
    padding: 0 15px;
    color: #777;
    font-size: 16px;
}

.input-container input,
.input-container textarea {
    flex-grow: 1;
    padding: 14px 10px;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    line-height: 1.4;
    color: #555;
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.input-container input:focus,
.input-container textarea:focus {
    outline: none;
}

.textarea-container {
    align-items: flex-start;
}

.textarea-container i {
    padding-top: 16px;
}

.textarea-container textarea {
    min-height: 140px;
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    margin-top: 28px;
    margin-bottom: 30px;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 12px;
    min-width: 20px;
    min-height: 20px;
    accent-color: #4e73df;
}

.form-consent label {
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
    color: #666;
}

.form-consent a {
    color: #4e73df;
    text-decoration: underline;
}

.form-actions {
    text-align: right;
    margin-top: 25px;
}

.submit-button {
    padding: 12px 24px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.submit-button i {
    margin-right: 8px;
}

.submit-button:hover {
    background-color: #3b5bdb;
}

.form-status-messages {
    margin-top: 20px;
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error-message {
    background-color: #fdecea;
    color: #c62828;
}

.success-message i,
.error-message i {
    font-size: 20px;
    margin-right: 10px;
}

.social-media-links {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
}

.social-media-links p {
    margin-bottom: 15px;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #4e73df;
    color: white;
}

.social-icons i {
    font-size: 20px;
}

/* Admin-Bereich Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-header h1 {
    font-size: 2.2rem;
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.admin-btn.secondary {
    background-color: #607D8B;
}

.admin-btn.danger {
    background-color: #f44336;
}

.admin-btn:hover {
    opacity: 0.9;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.admin-form textarea {
    min-height: 150px;
}

.admin-form .form-actions {
    text-align: center;
    margin-top: 30px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-container h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-form .login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-form .login-btn:hover {
    background-color: #45a049;
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Verbesserte Projektabschnitte */
.project-wrapper {
    padding: 10px 20px;
    background-color: #f9f9f9;
}

.project-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    padding: 40px;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 50px auto; /* Reduzierter Abstand zwischen Projekten */
    max-width: 1200px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.project-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Projektübersicht */
.project-overview {
    flex: 3;
    padding-right: 40px;
}

.project-overview h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #111;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.project-overview h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #333;
}

.project-excerpt {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.project-link:hover {
    color: #000;
}

.project-link:hover::after {
    width: 100%;
}

.project-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Projektbild */
.project-image-link {
    flex: 2;
    display: block;
    transition: transform 0.3s ease;
}

.project-image {
    max-width: 400px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #eee;
    width: 100%;
}

.project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image.protruding {
    position: relative;
    z-index: 1;
}

/* Projektdetailseite */
.project-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-detail-header {
    margin-bottom: 30px;
    position: relative;
}

.back-link {
    margin-bottom: 15px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link i {
    margin-right: 8px;
}

.back-link a:hover {
    color: #000;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    color: #222;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 15px;
}

.project-detail-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #333;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.project-detail-image {
    width: 100%;
    margin-bottom: 20px;
}

.project-detail-image .featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-detail-description {
    line-height: 1.7;
    color: #333;
}

.project-detail-description h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #222;
}

.project-detail-description h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #333;
}

.project-detail-description h4 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: #444;
}

.project-detail-description p {
    margin-bottom: 15px;
}

.project-detail-description ul,
.project-detail-description ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.project-detail-description li {
    margin-bottom: 10px;
}

.project-gallery {
    margin-top: 40px;
}

/* Responsive Anpassungen für Projektseiten */
@media (max-width: 900px) {
    .project-section {
        flex-direction: column;
        padding: 30px;
    }
    
    .project-overview {
        padding-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .project-image-link {
        width: 100%;
    }
    
    .project-image {
        max-width: 100%;
        width: 100%;
        margin-top: 20px;
    }
    
    .project-detail-content {
        flex-direction: column;
    }
    
    .project-detail-header h1 {
        font-size: 2rem;
    }
    
    .project-detail-image {
        margin-right: 0;
    }
}

/* Fehlermeldung und Erfolgsmeldung */
.error-message,
.success-message {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.error-message {
    background-color: #fff3f3;
    border: 1px solid #ffe0e0;
    color: #d32f2f;
}

.error-message h2 {
    color: #c62828;
    margin-bottom: 15px;
}

.success-message {
    background-color: #f1f8e9;
    border: 1px solid #dcedc8;
    color: #33691e;
}

.success-message h2 {
    color: #558b2f;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #555;
}

/* Animation Styles - Minimalistische Hintergrund-Partikel */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s ease;
}

/* Hintergrund-Container mit sanfter Transition */
.background-container {
    transition: transform 0.5s ease-out;
}

/* Projektanimationen beim Scrollen */
.hidden-project {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Anpassung der Animationen */
@media (max-width: 768px) {
    .particle {
        display: none; /* Deaktiviere Partikel auf mobilen Geräten für bessere Performance */
    }
    
    .background-container {
        transform: none !important; /* Keine Parallax-Bewegung auf Mobilgeräten */
    }
}

/* Spider Animation Styles */
#spiders {
  position: fixed; /* Fixed statt absolute damit es immer sichtbar ist */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  z-index: -1;
  pointer-events: none; /* Verhindert Klicks auf Canvas */
}

@media (max-width: 768px) {
  .hidden-xs {
    display: none;
  }
}

/* Mobile Responsive Styles - Nur Hamburger-Menu */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .navbar_menu {
        display: none; /* Versteckt das Menu komplett auf mobilen Geräten */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hidden-xs {
        display: none;
    }
  
    .background-container {
        transform: none !important; /* Keine Parallax-Bewegung auf Mobilgeräten */
    }
}

/* Kontaktformular Styling */
.contactForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 550px;
    color: #333;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.form-header .close-contact {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.form-header .close-contact:hover {
    color: #333;
}

.form-intro {
    margin-bottom: 28px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 16px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.input-container:focus-within {
    border-color: #4e73df;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.1);
}

.input-container i {
    padding: 0 15px;
    color: #777;
    font-size: 16px;
}

.input-container input,
.input-container textarea {
    flex-grow: 1;
    padding: 14px 10px;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    line-height: 1.4;
    color: #555;
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.input-container input:focus,
.input-container textarea:focus {
    outline: none;
}

.textarea-container {
    align-items: flex-start;
}

.textarea-container i {
    padding-top: 16px;
}

.textarea-container textarea {
    min-height: 140px;
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    margin-top: 28px;
    margin-bottom: 30px;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 12px;
    min-width: 20px;
    min-height: 20px;
    accent-color: #4e73df;
}

.form-consent label {
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
    color: #666;
}

.form-consent a {
    color: #4e73df;
    text-decoration: underline;
}

.form-actions {
    text-align: right;
    margin-top: 25px;
}

.submit-button {
    padding: 12px 24px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.submit-button i {
    margin-right: 8px;
}

.submit-button:hover {
    background-color: #3b5bdb;
}

.form-status-messages {
    margin-top: 20px;
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error-message {
    background-color: #fdecea;
    color: #c62828;
}

.success-message i,
.error-message i {
    font-size: 20px;
    margin-right: 10px;
}

.social-media-links {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
}

.social-media-links p {
    margin-bottom: 15px;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #4e73df;
    color: white;
}

.social-icons i {
    font-size: 20px;
}

/* reCAPTCHA Validierungsstil */
#g-recaptcha-response {
    display: block !important;
    position: absolute;
    margin: -50px 0 0 0 !important;
    z-index: -999999;
    opacity: 0;
}

/* Highlight-Effekt für Projektnavigation */
.highlight-section {
    animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
    50% { box-shadow: 0 5px 30px rgba(52, 152, 219, 0.3); }
    100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
}

/* Verbesserte Projektdarstellung */
.project-section {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Aktiver Projektlink in der Liste */
.projects ul li a.active {
    font-weight: bold;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Verbesserte Projekttitel */
.project-overview h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.project-overview h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.project-section:hover .project-overview h3::after {
    width: 60px;
}
