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

html{
    scroll-behavior:smooth;
}

body{
    background:#000;
    color:white;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;

    padding-right:90px;
}

/* HEADER */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 40px;

    z-index:1000;

    background:rgba(0,0,0,.6);
    backdrop-filter:blur(10px);
}

.logo{
    font-size:40px;
    font-weight:900;
}

.navbar{
    display:flex;
    gap:45px;
}

.navbar a{

    position:relative;

    text-decoration:none;
    color:white;

    font-size:13px;
    font-weight:800;
    letter-spacing:1px;

    padding:10px 16px;

    transition:.3s;
}

#Profil {
    width: fit-content;
    height: auto;
    max-width: 600px;   /* Desktop-Größe */
    display: block;
    object-fit: contain;
}

.navbar a::before{

    content:"";

    position:absolute;
    inset:0;

    background:white;

    transform:scaleX(0);

    transform-origin:left;

    transition:.3s;

    z-index:-1;

}

.navbar a:hover{

    color:black;

}

.navbar a:hover::before{

    transform:scaleX(1);

}

.contact-btn{

    color:white;
    text-decoration:none;

    font-size:13px;
    font-weight:800;

    border-bottom:2px solid white;

    padding-bottom:8px;

}

/* HERO */

.hero{

    min-height:100vh;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 80px;

    position:relative;
}

/* LEFT */

.hero-left{

    width:50%;
    z-index:2;
}

.outline-text{

    font-size:9rem;
    font-weight:900;

    color:transparent;

    -webkit-text-stroke:2px white;

    line-height:0.9;
}

.solid-text{

    font-size:9rem;
    font-weight:900;

    line-height:0.9;
}

.hero-left h2{

    margin-top:45px;

    font-size:1.7rem;
    font-weight:800;
}

.hero-left p{

    width:500px;

    margin-top:30px;

    color:#b5b5b5;

    line-height:1.8;
}

.more-btn{

    display:inline-block;

    margin-top:60px;

    text-decoration:none;
    color:white;

    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
}

/* RIGHT */

.hero-right{

    width:50%;
    position:relative;

    display:flex;
    justify-content:center;
    align-items:flex-end;
}

.hero-right img{

    width:650px;
    max-width:100%;

    position:relative;
    z-index:2;
}

.fs-bg{

    position:absolute;

    font-size:35rem;
    font-weight:900;

    color:transparent;

    -webkit-text-stroke:2px rgba(255,255,255,.12);

    z-index:1;
}

/* SCROLL */

.scroll-indicator{

    position:absolute;

    bottom:40px;
    left:50%;

    transform:translateX(-50%);

    display:flex;
    flex-direction:column;
    align-items:center;

    gap:5px;

    font-size:14px;
}

.scroll-indicator span{

    font-size:11px;
    letter-spacing:2px;
}

.social-bar{

    position: fixed;

    right: 0;
    top: 0;

    width: 90px;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 22px;

    border-left: 1px solid #222;
    background: #000;

    z-index: 999;
}

.social-bar a{

    width:24px;
    height:24px;

    display:flex;
    justify-content:center;
    align-items:center;

    color:white;

    font-size:18px;

    transition:.3s;
}

.social-bar a:hover{

    transform:scale(1.15);
}

.social-line{

    width:1px;
    height:42px;

    background:#555;
}

/* RESPONSIVE */

@media(max-width:1200px){

    .outline-text,
    .solid-text{
        font-size:6rem;
    }

    .fs-bg{
        font-size:22rem;
    }
}

@media(max-width:900px){

    .navbar{
        display:none;
    }

    .hero{

        flex-direction:column;

        text-align:center;

        padding-top:140px;
    }

    .hero-left,
    .hero-right{
        width:100%;
    }

    .hero-left p{
        width:100%;
    }

    .outline-text,
    .solid-text{
        font-size:4rem;
    }

    .hero-right img{
        width:350px;
        margin-top:40px;
    }
}

/* ================================================= */
/* ABOUT SECTION */
/* ================================================= */

.about-section{

    display:grid;

    grid-template-columns:
    180px
    300px
    1fr
    40px;

    gap:60px;

    padding:120px 40px;

    border-top:1px solid #1a1a1a;

    background:#000;
}

.section-number h2{

    font-size:2rem;

    line-height:0.95;

    font-weight:300;
}

.number-top{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:30px;
}

.number-top span{

    font-size:24px;

    font-weight:700;
}

.number-top .line{

    width:80px;

    height:2px;

    background:#555;
}

.about-interests{

    display:flex;

    flex-direction:column;

    gap:18px;
}

.interest{

    display:flex;

    align-items:center;

    gap:20px;

    transition:.35s;
}

.big-number{

    font-size:5rem;

    font-weight:900;

    color:transparent;

    -webkit-text-stroke:2px rgba(255,255,255,.15);

    transition:.35s;
}

.interest-content{

    flex:1;
}

.interest-content h3{

    font-size:14px;

    font-weight:800;

    letter-spacing:1px;

    margin-bottom:10px;
}

.interest-line{

    width:100%;

    height:2px;

    background:#333;

    transition:.35s;
}

.interest:hover{

    transform:translateX(8px);
}

.interest:hover .big-number{

    color:white;

    -webkit-text-stroke:0;
}

.interest:hover .interest-line{

    background:white;
}

.about-text{

    max-width:650px;
}

.about-text p{

    color:#d0d0d0;

    line-height:2;

    margin-bottom:28px;

    font-size:15px;
}



/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media(max-width:1200px){

    .about-section{

        grid-template-columns:
        1fr;
    }
}

@media(max-width:900px){

    .about-section{

        padding:80px 30px;
    }

    .section-number h2{

        font-size:3rem;
    }

    .big-number{

        font-size:3.5rem;
    }
}

/* ================================================= */
/* CV SECTION */
/* ================================================= */

.cv-section{

    display:grid;
    grid-template-columns:180px 1fr;

    gap:80px;

    padding:120px 40px;

    border-top:1px solid #1a1a1a;
}

.timeline{

    position:relative;

    display:flex;
    justify-content:space-between;

    padding-top:10px;
}

.timeline-line{

    position:absolute;

    top:16px;
    left:0;
    right:0;

    height:2px;

    background:#3a3a3a;
}

.timeline-item{

    position:relative;

    width:180px;

    z-index:2;
}

.timeline-dot{

    width:20px;
    height:20px;

    border:2px solid white;
    background:black;

    border-radius:50%;

    margin-bottom:22px;

    position:relative;
}

.timeline-dot::after{

    content:"";

    position:absolute;

    width:8px;
    height:8px;

    background:white;

    border-radius:50%;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);
}

.timeline-item h3{

    font-size:2rem;
    font-weight:800;

    margin-bottom:10px;
}

.timeline-item p{

    font-size:14px;
    font-weight:700;

    margin-bottom:8px;
}

.timeline-item span{

    color:#b5b5b5;

    line-height:1.6;

    font-size:14px;
}

/* ================================================= */
/* SKILLS */
/* ================================================= */

.skills-section{

    display:grid;
    grid-template-columns:180px 1fr;

    gap:80px;

    padding:120px 40px;

    border-top:1px solid #1a1a1a;
}

.skills-wrapper{

    max-width:1000px;
}

.skill{

    display:grid;

    grid-template-columns:
    180px
    1fr
    60px;

    align-items:center;

    gap:25px;

    margin-bottom:22px;
}

.skill-name{

    font-size:13px;
    font-weight:800;
}

.skill-bar{

    height:12px;

    background:#1f1f1f;

    overflow:hidden;
}

.skill-fill{

    height:100%;

    background:white;

    transition:.6s;
}

.skill-percent{

    text-align:right;

    font-size:14px;
    font-weight:700;
}

/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media(max-width:1300px){

    .cv-section,
    .skills-section{
        grid-template-columns:1fr;
    }

    .timeline{
        overflow-x:auto;
        gap:50px;
        padding-bottom:20px;
    }

    .timeline-item{
        min-width:180px;
        flex-shrink:0;
    }
}

@media(max-width:768px){

    .skill{

        grid-template-columns:1fr;
        gap:10px;
    }

    .skill-percent{

        text-align:left;
    }
}

/* ================================================= */
/* PORTFOLIO SECTIONS */
/* ================================================= */

.portfolio-section{

    display:grid;

    grid-template-columns:
    140px
    minmax(0,1fr);

    gap:40px;

    padding:100px 30px;

    border-top:1px solid #1a1a1a;
}

.portfolio-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:20px;
}

.projects-grid{

    grid-template-columns:
    repeat(5,1fr);
}

.portfolio-card{

    position:relative;

    overflow:hidden;

    background:#050505;

    border:1px solid #1f1f1f;

    text-decoration:none;

    color:white;

    transition:.4s;
}

.portfolio-card img{

    width:100%;
    height:240px;

    object-fit:cover;

    filter:grayscale(100%);

    transition:.5s;
}

.portfolio-content{

    padding:14px 16px 18px;
}

.portfolio-tag{

    display:inline-block;

    background:white;
    color:black;

    font-size:13px;
    font-weight:800;

    padding:2px 8px;

    margin-bottom:12px;
}

.portfolio-content h3{

    font-size:18px;
    font-weight:700;

    line-height:1.4;
}

.portfolio-content p{

    margin-top:6px;

    color:#cfcfcf;

    font-size:14px;
}

.card-arrow{

    margin-top:18px;

    text-align:right;

    font-size:20px;

    transition:.3s;
}

.portfolio-card:hover{

    transform:translateY(-8px);

    border-color:white;
}

.portfolio-card:hover img{

    transform:scale(1.05);

    filter:grayscale(0%);
}

.portfolio-card:hover .card-arrow{

    transform:translateX(6px);
}

/* PROJEKT KARTEN */

.small-card img{

    height:160px;
}

.small-card .portfolio-content h3{

    font-size:15px;
}

.small-card .portfolio-content p{

    font-size:13px;
}

/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media(max-width:1200px){

    .portfolio-section{

        grid-template-columns:1fr;
    }

    .projects-grid{

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

@media(max-width:900px){

    .portfolio-grid{

        grid-template-columns:1fr;
    }

    .projects-grid{

        grid-template-columns:1fr;
    }
}



   .certificates-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px; 
    margin: 1rem;
    padding: 60px 20px;
    background-color: #000; /* Passend zum dunklen Design */
    color: #fff;
  }
  
  /* Linke Spalte: Nummer und Titel */
  .section-number {
    flex: 0 0 250px; /* Feste Breite für den Titelbereich */
  }
  
  .number-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .number-top span {
    font-size: 24px;
    font-weight: bold;
  }
  
  .number-top .line {
    height: 2px;
    background-color: #fff;
    flex-grow: 1;
  }
  
  .section-number h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0;
  }
  
  /* Rechte Spalte: Das Grid für die Karten */
  .certificate-grid {
    flex: 1;
    display: grid;
    /* Erstellt 5 gleich grosse Spalten nebeneinander */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
  }
  
  /* Einzelne Zertifikats-Karte */
  .certificate-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Inhalte linksbündig */
    justify-content: space-between;
    border: 1px solid #333;
    padding: 20px;
    min-height: 180px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
  }
  
  .certificate-card:hover {
    border-color: #fff;
    background-color: #111;
  }
  
  /* Datei-Icon oben links */
  .certificate-card > i:first-of-type {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .certificate-card h3 {
    font-size: 13px;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
  }
  
  .certificate-card span {
    font-size: 11px;
    color: #888;
  }
  
  /* Download-Icon unten rechts */
  .certificate-card .download-icon {
    align-self: flex-end;
    font-size: 16px;
    margin-top: 15px;
    color: #888;
    transition: color 0.3s ease;
  }
  
  .certificate-card:hover .download-icon {
    color: #fff;
  }
/* ================================================= */
/* FOOTER */
/* ================================================= */

.footer{

    border-top:1px solid #1a1a1a;

    display:grid;

    grid-template-columns:
    360px
    1fr;

    min-height:420px;

    position:relative;

    overflow:hidden;
}

/* LINKS */

.footer-contact{

    padding:50px 40px;
}

.footer-title{

    display:flex;
    align-items:center;

    gap:12px;

    margin-bottom:30px;
}

.footer-title span{

    font-size:12px;
    font-weight:800;
    letter-spacing:1px;
}

.footer-line{

    width:35px;
    height:1px;

    background:#666;
}

.footer-contact h2{

    font-size:2rem;
    font-weight:700;

    line-height:1.3;

    margin-bottom:35px;
}

.footer-contact ul{

    list-style:none;
}

.footer-contact li{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:15px;

    color:#d0d0d0;

    font-size:14px;
}

.copyright{

    margin-top:40px;

    font-size:13px;

    color:#8a8a8a;
}

/* MITTE */

.footer-middle{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:flex-end;

    padding-right:120px;
}

.footer-fs{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    font-size:28rem;

    font-weight:900;

    color:transparent;

    -webkit-text-stroke:
    2px rgba(255,255,255,.05);

    pointer-events:none;

    z-index:0;
}

.footer-quote{

    position:relative;

    z-index:2;

    width:420px;
}

.footer-quote h3{

    font-size:2.1rem;

    font-weight:700;

    line-height:1.6;

    margin-bottom:25px;
}

.footer-quote p{

    color:#b5b5b5;

    font-size:15px;
}


/* RECHTS */

.footer-social{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:30px;

    border-left:1px solid #1a1a1a;

    position:relative;
}

.footer-social a{

    color:white;

    font-size:20px;
}

.footer-bottom-links{

    position:absolute;

    bottom:35px;

    right:40px;

    display:flex;

    gap:40px;

    white-space:nowrap;
}

.footer-bottom-links a{

    text-decoration:none;

    color:#9a9a9a;

    font-size:13px;
}

.footer-bottom-links a:hover{

    color:white;
}

/* RESPONSIVE */

@media(max-width:1100px){

    .footer{

        grid-template-columns:1fr;
    }

    .footer-middle{

        min-height:300px;
    }

    .footer-fs{

        font-size:14rem;
    }

    .footer-quote{

        margin-left:0;
    }

    .footer-social{

        flex-direction:row;

        border-left:none;

        border-top:1px solid #1a1a1a;

        padding:30px;
    }

    .footer-bottom-links{

        position:static;
    }
}

.footer-bottom-links{

    position:absolute;

    bottom:35px;

    right:120px;

    display:flex;

    gap:40px;
}

.footer-bottom-links a{

    text-decoration:none;

    color:#9a9a9a;

    font-size:13px;
}

.footer-bottom-links a:hover{

    color:white;
}

@media(max-width:900px){

    .social-bar{

        position:fixed;

        left:50%;
        bottom:20px;

        transform:translateX(-50%);

        top:auto;
        right:auto;

        width:auto;
        height:auto;

        flex-direction:row;
        justify-content:center;
        align-items:center;

        gap:20px;

        padding:12px 20px;

        border:1px solid #222;
        border-radius:50px;

        background:rgba(0,0,0,.9);

        backdrop-filter:blur(10px);

        z-index:9999;
    }

    .social-line{

        width:1px;
        height:18px;

        background:#444;
    }

}

    .certificates-section{

        display:flex;
        flex-direction:column;

        gap:40px;

        padding:80px 30px;
    }

    .certificate-grid{

        width:100%;

        display:grid;

        grid-template-columns:
        repeat(2,1fr);

        gap:15px;
    }

}

#theme-toggle-btn {

    position: fixed;

    right: 0;
    bottom: 25px;

    width: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    background: transparent;
    border: none;

    color: white;
    font-size: 24px;

    cursor: pointer;

    z-index: 1000;

    border-top: 1px solid #222;
    padding-top: 20px;
    
}
  
  html.inverted {
    filter: invert(1) hue-rotate(180deg);
  }
  
  html.inverted img,
  html.inverted video,
  html.inverted iframe {
    filter: invert(1) hue-rotate(180deg);
  }
  
  .project-detail{
    margin-left: 0px;
    max-height:0;
    overflow:hidden;

    opacity:0;

    transition:
    max-height .7s ease,
    opacity .5s ease;

    margin-top:40px;
}

.project-detail.active{

    max-height:2500px;
    opacity:1;
}

.detail-content{

    display:flex;

    flex-direction:column;

    gap:20px;
}

.detail-top{

    display:grid;

    grid-template-columns:
    minmax(0,1fr)
    380px;

    gap:60px;

    align-items:start;
}

.detail-image{

    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#111;

    border:1px solid #222;

    border-radius:8px;

    overflow:hidden;

    padding:20px;
}

.detail-image img{

    display:block;

    width:auto;
    height:auto;

    max-width:100%;
    max-height:520px;

    object-fit:contain;
}

.detail-image iframe{

    width:100%;

    height:520px;

    border:none;
}

.detail-info{

    max-width:none;

    margin:0;

    padding-top:10px;
}
.detail-info h2{

    font-size:2rem;

    margin-bottom:20px;
}

.detail-info p{

    line-height:1.8;

    color:#bdbdbd;
}

.thumbnail-gallery{

    display:flex;

    gap:12px;

    overflow-x:auto;

    flex-wrap:nowrap;

    margin-top:15px;

    padding-bottom:10px;
}

.thumbnail-gallery img{

    flex:0 0 auto;

    width:120px;

    height:75px;

    object-fit:cover;

    cursor:pointer;

    border:2px solid transparent;

    transition:.25s;
}

.thumbnail-gallery img.active{

    border-color:white;
}

.download-btn{

    display:inline-block;

    padding:15px 25px;

    background:white;

    color:black;

    text-decoration:none;

    font-weight:700;
}

@media (max-width:900px){

    .detail-image img{

        max-height:450px;
    }

    .detail-image iframe{

        height:500px;
    }

    .thumbnail-gallery img{

        width:110px;

        height:70px;
    }
}
/* ================================================= */
/* LAPTOPS 1400px */
/* ================================================= */

@media (max-width:1400px){

    .hero{
        padding:0 50px;
    }

    .outline-text,
    .solid-text{
        font-size:7rem;
    }

    .hero-right img{
        width:550px;
    }

    .fs-bg{
        font-size:28rem;
    }
}

/* ================================================= */
/* KLEINE LAPTOPS 1200px */
/* ================================================= */

@media (max-width:1200px){

    .hero{
        padding:120px 40px 80px;
    }

    .hero-left p{
        width:100%;
        max-width:500px;
    }

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

    .certificate-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .detail-info{
        max-width:100%;
    }
}

/* ================================================= */
/* TABLET 992px */
/* ================================================= */

@media (max-width:992px){

    .header{
        padding:0 25px;
    }

    .logo{
        font-size:32px;
    }

    .contact-btn{
        font-size:12px;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        gap:40px;
    }

    .hero-left,
    .hero-right{
        width:100%;
    }

    .hero-right img{
        width:400px;
    }

    .outline-text,
    .solid-text{
        font-size:5rem;
    }

    .fs-bg{
        font-size:18rem;
    }

    .about-section,
    .cv-section,
    .skills-section,
    .portfolio-section{
        grid-template-columns:1fr;
        gap:50px;
    }

    .thumbnail-gallery{
        justify-content:center;
    }
}

/* ================================================= */
/* GROSSE HANDYS 768px */
/* ================================================= */

@media (max-width:768px){

    .header{
        height:75px;
    }

    .hero{
        padding:120px 25px 60px;
    }

    .outline-text,
    .solid-text{
        font-size:3.8rem;
    }

    .hero-left h2{
        font-size:1.2rem;
    }

    .hero-right img{
        width:300px;
    }

    .portfolio-grid{
        grid-template-columns:1fr;
    }

    .certificate-grid{
        grid-template-columns:1fr;
    }

    .thumbnail-gallery img{
        width:90px;
        height:60px;
    }

    .detail-info h2{
        font-size:1.8rem;
    }

    .footer-fs{
        display:none;
    }

    .footer-middle{
        padding:40px 20px;
    }

    .footer-quote{
        width:100%;
    }

    .footer-quote h3{
        font-size:1.5rem;
    }
}

/* ================================================= */
/* KLEINE HANDYS 480px */
/* ================================================= */

@media (max-width:480px){

    .header{
        padding:0 15px;
    }

    .logo{
        font-size:28px;
    }

    .contact-btn{
        display:none;
    }

    .hero{
        min-height:auto;
    }

    .outline-text,
    .solid-text{
        font-size:2.8rem;
    }

    .hero-left h2{
        font-size:1rem;
    }

    .hero-left p{
        font-size:14px;
    }

    .section-number h2{
        font-size:2rem;
    }

    .portfolio-card img{
        height:200px;
    }

    .detail-image iframe{
        height:350px;
    }

    .detail-image img{
        max-height:300px;
    }

    .thumbnail-gallery{
        gap:8px;
    }

    .thumbnail-gallery img{
        width:75px;
        height:55px;
    }

    .social-bar{
        padding:10px 15px;
    }
}

@media(max-width:992px){

    .detail-content{

        display:flex;

        flex-direction:column;
    }

    .detail-image{

        height:450px;
    }

    .detail-info{

        text-align:left;
    }
}
@media(max-width:768px){

    .detail-image{

        height:300px;
    }

    .thumbnail-gallery img{

        width:90px;

        height:60px;
    }

    .detail-info h2{

        font-size:1.7rem;
    }
}

