/* ==================================================
   DESIGN SYSTEM
================================================== */
:root{
    /* Farben */
    --primary:#0f172a;
    --secondary:#1e293b;
    --accent:#f59e0b;
    --light:#f8fafc;
    --white:#ffffff;
    --text:#475569;

    /* Layout */
    --content-width:1200px;
    --content-padding:60px;

    /* Effekte */
    --shadow:0 15px 35px rgba(0,0,0,.12);
}

/* ==================================================
   ICON SYSTEM
================================================== */
:root{
    --icon-size:42px;
    --icon-stroke:1.8;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:var(--light);
    color:var(--text);
    line-height:1.7;
	
	opacity:0;
    transition:opacity .4s ease;
}

body.page-ready{
    opacity:1;
}

/* ==================================================
   GEMEINSAME LAYOUT-CONTAINER
================================================== */
.container,
.nav-container,
.hero-content,
.stats{
    width:min(
        var(--content-width),
        calc(100% - var(--content-padding))
    );
    margin-left:auto;
    margin-right:auto;
}

/* ==================================================
   BACK TO TOP
================================================== */

.sj-top-anchor-control{
    position:fixed;
    display:flex;
    align-items:center;
    justify-content:center;

    right:25px;
    bottom:25px;

    width:52px;
    height:52px;

    border:none;
    border-radius:50%;

    background:var(--accent);
    color:#000;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    opacity:0;
    visibility:hidden;

    transform:translateY(15px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    z-index:3000;

	-webkit-tap-highlight-color: transparent;
}

.sj-top-anchor-control svg{
    width:28px;
    height:32px;
}

.sj-top-anchor-control.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.sj-top-anchor-control.visible:hover{
    transform:scale(1.08);
}

.sj-top-anchor-control:focus{
    outline:none;
}

@media (hover:hover){
    .sj-top-anchor-control:focus-visible{
        outline:3px solid white;
        outline-offset:3px;
    }
}

/* ==================================================
   NAVIGATION
================================================== */
nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(15,23,42,.75);
    backdrop-filter:blur(10px);
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:80px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    color:white;
    font-size:1rem;
    font-weight:700;
}

.logo-name{
    text-transform:uppercase;
    letter-spacing:0.08em;
}

.initials{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--accent);
    color:black;
    font-weight:bold;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:25px;

    height:80px;
}

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

.nav-links a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:var(--accent);
}

.language-dropdown{
    position:relative;

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

    margin-left:20px;

    height:100%;
}

.current-language{
    background:none;
    border:none;
    padding:0;
    cursor:pointer;

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

    height:100%;
}

.flag-icon{
    width:40px;
    height:26px;

    display:block;

    border-radius:4px;
    overflow:hidden;

    box-shadow:0 2px 8px rgba(0,0,0,.25);

    aspect-ratio:auto;
}

.language-menu{
    position:absolute;

    top:calc(100% + 10px);
    right:0;

    display:flex;
    flex-direction:column;

    min-width:180px;

    background:white;
    border-radius:12px;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

    overflow:hidden;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);

    transition:.25s ease;

    z-index:2000;
}

.language-menu.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.language-option{
    display:flex;
    align-items:center;
    gap:10px;

    width:100%;
    padding:10px 12px;

    background:none;
    border:none;

    cursor:pointer;

    transition:.2s;
}

.language-option:hover{
    background:#f1f5f9;
}

.language-option span{
    color:#1e293b;
    font-size:.95rem;
}

.language-option .flag-icon{
    width:28px;
    height:18px;
    flex-shrink:0;
}

.mobile-menu-button{
    display:none;
}

/* ==================================================
   HERO
================================================== */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    color:white;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(
            rgba(15,23,42,.65),
            rgba(15,23,42,.65)
        ),
        /* url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80"); */
		/* url("https://img.magnific.com/free-photo/airport-terminal_1417-1456.jpg?t=st=1780269852~exp=1780273452~hmac=a69340c97a91cafcbd2c815cfee8f912d7a6317dc867d76559bea569d0e71432&w=1480"); */
		url("img/0000.jpg");
		
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.hero-content{
    padding-top:120px;
    padding-bottom:120px;
    display:grid;
    grid-template-columns:1fr 400px;
    gap:60px;
    align-items:center;
}

.academic-title{
    font-size:0.95rem;
    font-weight:600;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:#cbd5e1;
    margin-bottom:2px;
}

.hero-text h1{
    font-size:4rem;
    line-height:1.05;
    margin-bottom:12px;
}

.hero-text h2{
    font-weight:400;
    color:#e2e8f0;
    margin-bottom:25px;
}

.hero-text p{
    max-width:650px;
    margin-bottom:30px;
    color:#cbd5e1;
	
	-webkit-hyphens:auto;
    -ms-hyphens:auto;
    hyphens:auto;
	overflow-wrap:break-word;
}

.btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:50px;
    background:var(--accent);
    color:black;
    text-decoration:none;
    font-weight:600;
}

.hero-image img{
    width:100%;
    border-radius:24px;
    box-shadow:var(--shadow);
}


/* ==================================================
   STANDARD-SECTIONS
================================================== */
section{
    padding:80px 0 10px 0;
}

.section-title{
    text-align:center;
    margin-bottom:45px;
	margin-top:0;
}

.section-title h2{
    font-size:2.5rem;
	line-height:1.15;
    color:var(--primary);
    margin-bottom:10px;
}

.section-title p{
    color:var(--text);
}

/* ==================================================
   STATS
================================================== */
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:white;
    border-radius:20px;
    box-shadow:var(--shadow);
    position:relative;
    z-index:20;
	padding:10px 0;
    margin-top:60px;
}

.stat{
    padding:16px 10px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
}

.stat-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.stat-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    filter:invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg)
            brightness(100%) contrast(100%);
    transition:transform .25s ease, filter .25s ease;
}

/* Bei Bedarf Anpassung Farbe PNG Icon */
/* .stat-icon img{
    filter:invert(70%) sepia(20%) saturate(400%) hue-rotate(10deg);
} */

.stat h3{
    font-size:1.6rem;
    color:var(--primary);
    margin:0;
    line-height:1.1;
}

.stat p{
    color:var(--text);
    font-size:.95rem;
    margin:0;
}

.stat:hover .stat-icon img{
    transform:scale(1.08);
    filter:brightness(1.2);
}

.counter{
    transition:color .3s ease;
}

/* ==================================================
   ABOUT
================================================== */
.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:var(--shadow);
}

.card p{
    -webkit-hyphens:auto;
    -ms-hyphens:auto;
    hyphens:auto;
}

.card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.personal-data-row{
    display:grid;
    grid-template-columns:140px 1fr;
    gap:10px;
    margin-bottom:6px;
}

.personal-data-label{
    font-weight:600;
}

.personal-data-value{
    overflow-wrap:break-word;
}


/* ==================================================
   TIMELINE
================================================== */
.timeline{
    position:relative;
    max-width:1000px;
    margin:auto;
}

.timeline::before{
    content:"";
    position:absolute;
    left:50%;
    top:var(--line-top);
    width:4px;
    height:var(--line-height);
    background:var(--primary);
    transform:translateX(-50%);
}

.timeline-item{
    position:relative;
    width:50%;
    padding:20px 40px;
}

.timeline-item:nth-child(odd){
    left:0;
    text-align:right;
}

.timeline-item:nth-child(even){
    left:50%;
}

.timeline-item::before{
    content:"";
    position:absolute;
    width:14px;
    height:14px;
    background:var(--accent);
    border-radius:50%;
    border:3px solid white;
    box-shadow:0 0 0 3px var(--primary);
    top:50%;
    transform:translateY(-50%);
    z-index:10;
}

.timeline-item:nth-child(odd)::before{
    right:-10px;
}

.timeline-item:nth-child(even)::before{
    left:-10px;
}

.timeline-content{
    background:white;
    padding:20px;
    border-radius:18px;
    box-shadow:var(--shadow);
    overflow:hidden;
    transition:.3s;
    -webkit-hyphens:auto;
    -ms-hyphens:auto;
    hyphens:auto;
}

.timeline-content p,
.timeline-content h3,
.timeline-content h4{
    overflow-wrap:break-word;
}

.timeline-content:hover{
    transform:translateY(-5px);
}

.timeline-content img{
    width:100%;
    /* height:160px; */
	max-height: 250px;
	aspect-ratio:16 / 9;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:15px;
    transition:.4s;
}

.timeline-content h3{
    color:var(--primary);
    margin-bottom:10px;
}

.timeline-image{
    position:relative;
    overflow:hidden;
    border-radius:12px;
}

.timeline-image img{
    display:block;
    width:100%;
    /* height:160px; */
	max-height: 250px;
	aspect-ratio:16 / 9;
    object-fit:cover;
    transition:.4s;
}

.image-credit{
    position:absolute;
    right:6px;
    bottom:16px;

    padding:3px 7px;

    font-size:.6rem;
    line-height:1;

    color:rgba(255,255,255,.9);
    background:rgba(0,0,0,.35);

    border-radius:4px;

    opacity:0;
    transition:.3s;
}

.timeline-content:hover .image-credit{
    opacity:1;
}

/* ==================================================
   KOMPETENZEN
================================================== */
.skills-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.skill{
    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
}

.skill h3{
    color:var(--primary);
    margin-bottom:10px;
}

/* ==================================================
   GALERIE
================================================== */
.gallery{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:20px;
    transition:.4s;
}

.gallery img:hover{
    transform:scale(1.03);
}

/* ==================================================
   KONTAKT
================================================== */
.contact-card{
    width:100%;
    background:white;
    padding:50px;
    border-radius:20px;
    box-shadow:var(--shadow);
}

.contact-card p{
    margin:12px 0;
}

/* ==================================================
   FOOTER
================================================== */
footer{
    background:var(--primary);
    color:white;
    text-align:center;
    padding:30px;
	margin-top:40px;
}

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

/* ----------------------------------
   Tablet & kleine Notebooks
---------------------------------- */
@media (max-width:950px){

    /* Hauptnavigation ausblenden */
    .nav-links{
        display:none;
    }

	.mobile-menu-button{
		display:block;
		background:none;
		border:none;
		color:white;
		font-size:2rem;
		cursor:pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-menu-button:focus{
		outline:none;
	}

	.mobile-nav{
		position:fixed;
		top:80px;
		left:0;
		width:100%;
		display:flex;
		flex-direction:column;
		background:var(--primary);
		opacity:0;
		visibility:hidden;
		transform:translateY(-10px);
		transition:
			opacity .25s ease,
			transform .25s ease,
			visibility .25s ease;
		z-index:1500;
	}

	.mobile-nav.open{
		opacity:1;
		visibility:visible;
		transform:translateY(0);
	}

	.mobile-nav a{
		padding:20px;
		color:white;
		text-decoration:none;
		border-top:
			1px solid rgba(255,255,255,.1);
		display:block;
	}

	.mobile-nav a:hover{
		background:rgba(255,255,255,.08);
	}

    /* Sprachmenü rechts */
    .nav-right{
        margin-left:auto;
        height:80px;
		gap:16px;
    }

    .language-dropdown{
        margin-left:0;
    }

    .language-menu{
        min-width:140px;
    }

    .language-option span{
        font-size:.85rem;
    }

    /* Hero etwas kompakter,
       aber weiterhin zweispaltig */
    .hero-content{
		grid-template-columns:1fr 320px;
        gap:40px;
    }

    .hero{
        background-attachment:scroll;
    }
	
    .hero-text h1{
        font-size:3.2rem;
    }

    .hero-text h2{
        font-size:1.3rem;
    }

    .hero-text p{
        font-size:.95rem;
    }

    .hero-image{
        max-width:none;
    }

    /* Über mich einspaltig */
    .about-grid{
        grid-template-columns:1fr;
    }

    /* Statistik noch zweispaltig */
    .stats{
        grid-template-columns:repeat(2,1fr);
    }
}

/* ----------------------------------
   Smartphones
---------------------------------- */
@media (max-width:795px){
	
    :root{
        --content-padding:40px;
    }

    /* Hero von 2 Spalten auf 1 Spalte */
    .hero-content{
        display:flex;
        flex-direction:column;
        gap:8px;
        text-align:center;
    }

    /* Elemente frei anordnen */
    .hero-text{
        display:contents;
    }

    .academic-title{
        order:1;
        margin-bottom:-8px;
    }

    .hero-text h1{
        order:2;
        font-size:2.5rem;
        margin-bottom:0;
    }

    .hero-text h2{
        order:3;
        margin-bottom:10px;
    }

    .hero-image{
        order:4;
        max-width:280px;
        margin:10px auto;
    }

    .hero-text p{
        order:5;
        text-align:center;
        margin-left:auto;
        margin-right:auto;
        margin-bottom:18px;
    }

    .hero-text .btn{
        order:6;
    }

    /* Statistik einspaltig */
 /* .stats{
        grid-template-columns:1fr;
    }
*/

    .personal-data-row{
        grid-template-columns:1fr;
    }

    .personal-data-label{
        margin-bottom:2px; /* kleine optische Trennung */
    }

    /* Timeline einspaltig */
    .timeline::before{
        left:20px;
    }

    .timeline-item{
        width:100%;
        left:0 !important;
        padding-left:60px;
        text-align:left !important;
    }

    .timeline-item::before{
        left:10px !important;
    }

    .sj-top-anchor-control{
        width:46px;
        height:46px;

        right:18px;
        bottom:18px;
    }

    .sj-top-anchor-control svg{
        width:24px;
        height:28px;
    }
}