/* --- 1. GRUNDLEGENDE EINSTELLUNGEN --- */
body {
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 80px; 
    background-color: #050505;
}

.Background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5);
}

/* --- 2. GEMEINSAME CONTAINER-STILE (Glassmorphism) --- */
.content-links, 
.center-content,
.content-center,
.Content-aufzählung,
.content-anschreiben,
.zeugnis-container,
.zeugnis-container-main {
    display: flex;
    justify-content: center;
    background: rgba(10, 15, 25, 0.8); 
    backdrop-filter: blur(10px);
    color: white;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

/* --- 3. NAVIGATION --- */
.content-links, .center-content {
    font-family: 'Times New Roman', Times, serif, sans-serif;
    padding: 10px 25px;
    align-items: center;
    width: fit-content;      
    margin: 30px auto;       
}

.content-links { font-size: 30px; gap: 30px; }
.center-content { font-size: 18px; gap: 20px; }

.content-links a, .center-content a {
    color: #00d4ff; 
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
    padding: 5px 10px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.content-links a:hover, .center-content a:hover {
    color: #ff8c00;          
    transform: scale(1.2);    
    text-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
}

/* --- 4. SPEZIELLE INHALTS-BEREICHE --- */
.content-overlay {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 20px;
}

.content-overlay h1 {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    margin: 0;
}

.content-Foto {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;    
    width: 100%;            
    margin: 30px 0;
}

.content-Foto img {
    max-width: 15%;
    height: auto;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* --- 5. ZEUGNISSE & ZERTIFIKATE (Modal-Design) --- */
.zeugnis-container-main {
    flex-direction: column;   
    align-items: center;      
    gap: 50px;                
    max-width: 900px;         
    margin: 30px auto;        
    padding: 40px 20px;
    text-transform: none;     
}

.zeugnis-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.zeugnis-item img {
    max-width: 100%;
    height: auto;
    width: 500px;             
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer; 
    user-select: none;           
    -webkit-user-drag: none;     
}

.zeugnis-item img:hover {
    border-color: #00d4ff;
    transform: scale(1.02);
}

/* --- WASSERZEICHEN SCHUTZ --- */
.ausklapp-content, .modal {
    position: relative;
}

/* Wasserzeichen in der Liste und im Modal */
.ausklapp-content::after, .modal::after {
    content: "KOPIE - PIERRO KUMMER";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: clamp(20px, 4vw, 40px); /* Passt sich der Größe an */
    color: rgba(255, 255, 255, 0.15); 
    font-weight: bold;
    pointer-events: none; /* Klick geht durch das Wasserzeichen hindurch zum Bild */
    white-space: nowrap;
    z-index: 2001; /* Liegt über dem Modal-Inhalt */
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}

/* MODAL POP-UP STYLE */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border: 2px solid #00d4ff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 2100; /* Höher als Wasserzeichen */
}

.close-button:hover {
    color: #ff8c00;
    transform: scale(1.2);
}

/* --- 6. ANSCHREIBEN & BUTTONS --- */
.content-anschreiben {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 900px;
    text-transform: none;
}

.zurueck-button {
    position: fixed;
    bottom: 100px; 
    left: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #007BFF, #00d4ff);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    z-index: 150; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.zurueck-button:hover {
    transform: translateY(-2px);
}

/* --- 7. FOOTER --- */
.footer-bottom {
    display: flex;
    justify-content: center; 
    align-items: center;
    background: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 20px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    z-index: 100;
    border-top: 1px solid rgba(0, 212, 255, 0.4);
}

.footer-bottom a {
    color: #00d4ff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-bottom a:hover { color: #ff8c00; }

/* --- 8. PROJEKT-KARTEN --- */
.project-card {
    background-color: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin: 15px;
    width: 280px;
    transition: all 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

/* --- 9. AUSKLAPPBARE ZERTIFIKATE (ACCORDION) --- */
details.zeugnis-item {
    width: fit-content;       
    min-width: 400px;         
    max-width: 100%;          
    background: rgba(10, 15, 25, 0.8); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 auto 15px auto;           
}

details.zeugnis-item[open] {
    width: 600px;             
}

summary {
    padding: 15px 30px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: center;  
    align-items: center;
    gap: 15px;                
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
}

summary::after {
    content: '▼';
    font-size: 10px;
    color: #00d4ff;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
    color: #ff8c00;
}

.ausklapp-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    animation: slideDown 0.4s ease-out;
}

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

/* Mobile Anpassung */
@media (max-width: 768px) {
    .zeugnis-container-main, .content-center { width: 95%; }
    .zeugnis-item img { width: 100%; }
    details.zeugnis-item { min-width: 90%; }
    details.zeugnis-item[open] { width: 95%; }
    .content-links { font-size: 20px; gap: 15px; flex-wrap: wrap; }
    .footer-bottom { font-size: 12px; }
    .close-button { top: 10px; right: 20px; font-size: 45px; }
}