body{
	margin:0;
	font-family:Segoe UI,Arial,sans-serif;
	background:var(--background);
	color:var(--text);
}

:root{
    --accent:#7c5c67;
    --accent-light:#a48a94;
    --background:#f7f4f5;
    --section:#f4f1f2;
    --card:#faf8f6;
    --card-image:#f2efec;
    --text:#222222;
    --subtitle:#8c7b83;
    --nav:#ffffff;
    --shadow-light:0 2px 8px rgba(0,0,0,.07);
    --shadow-card:0 10px 24px rgba(0,0,0,.10);
    --shadow-hover:0 16px 34px rgba(0,0,0,.14);
	--nav-text:#6a4250;
}

/* ==========================================================
   Headergestaltung
   ========================================================== */
   
.header-gallery{
    max-width:1400px;
    margin:auto;
}

.site-header{
    background:var(--section);
    padding:50px 20px;
	height:200px;
}

.header-photo{
    filter:grayscale(100%) contrast(105%) brightness(103%);
}

.header-gallery{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
}

.header-side{
    display:flex;
    gap:15px;
	height:200px;
}

.header-side img{
    width:auto;
    height:200px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
    opacity:1;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.header-side img:hover{
    transform:
        translateY(-6px)
        scale(1.03);
    box-shadow:
        0 10px 24px rgba(0,0,0,.22);
}

.header-photo:hover{
    transform:
        translateY(-8px)
        scale(1.05);
}

.header-center{
    text-align:center;
    min-width:260px;
}

.header-gallery:hover img{
    opacity:.72;
}

.header-gallery img:hover{
    opacity:1;
	transform:translateY(-6px) scale(1.03);
}
.header-parallax,
.header-logo{
    will-change:transform;
    transition:transform 0.15s linear;
}

.logo{
    max-width:150px;
    height:auto;
}

.portfolio-title{
     margin-top:10px;
     font-size:1.45rem;
     font-weight:300;
     letter-spacing:4px;
     text-transform:uppercase;
     color:var(--accent);
}

.subtitle{
     margin-top:8px;
     font-size:.95rem;
     letter-spacing:2px;
     color:var(--subtitle);
}

/* ==========================================================
   Navigation
   ========================================================== */
   
.mainnav{
	z-index:100;
	display:flex;
	justify-content:center;
	gap:10px;
	flex-wrap:wrap;
	background:var(--nav);
	padding:12px;
	position:sticky;
	top:0;
	box-shadow:0 2px 8px rgba(0,0,0,.1)
}

.mainnav a{
	text-decoration:none;
	color:var(--nav-text);
	padding:8px 16px;
	border-radius:20px;
}

.mainnav a:hover{
	background:#e8d2da;
}

/* ==========================================================
   Herobilder
   ========================================================== */
   
.hero{
    width:100%;
    max-height:520px;
    object-fit:cover;
    border-radius:14px;
    display:block;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    transition:transform 12s ease,box-shadow 0.4s ease;
	will-change:transform;
}

.hero-figure{
    margin:0 0 55px 0;
    overflow:hidden;
    position:relative;
}

.hero-figure figcaption{
    text-align:right;
    margin-top:14px;
    font-style:italic;
    color:var(--accent);
    font-size:.95rem;
    letter-spacing:.6px;
    opacity:.9;
}

.hero-figure:hover .hero{
    transform:scale(1.025);
}

.hero-figure figcaption::after{
    content:"";
    display:block;
    width:70px;
    height:1px;
    background:#b89aa5;
    margin:8px 0 0 auto;
}

.hero-figure::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:14px;
    background:linear-gradient(
        rgba(255,255,255,.05),
        rgba(0,0,0,.05)
    );
    pointer-events:none;
}

/* ===========================================
   Galerie – Ausstellungstil
   =========================================== */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:34px 26px;
    margin-top:42px;
}

.gallery figure{
    display:flex;
    flex-direction:column;
    background:var(--card);
    border:1px solid rgba(124,92,103,.10);
    box-shadow:var(--shadow-card);
    border-radius:14px;
    padding:16px;
    min-height:390px;
	will-change:transform;
}

.gallery figure:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
}

.gallery figure img{
    width:100%;
    height:290px;
    object-fit:contain;
    background:var(--card-image);
    border-radius:8px;
}

.gallery figure figcaption{
    margin-top:auto;
    padding-top:18px;
    text-align:center;
}

.gallery figure figcaption{
    margin-top:auto;
    padding-top:18px;
    text-align:center;
}

.gallery img{
    display:block;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.07);
    transition:all 0.3s ease;
}

.gallery img:hover{
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.work-title{
    text-align:center;
    margin-top:16px;
    font-size:.92rem;
    line-height:1.45;
    letter-spacing:1.2px;
    text-transform:uppercase;
    color:var(--accent);
    font-weight:500;
}

.work-title span{
    display:block;
    margin-top:6px;
    font-size:.72rem;
    letter-spacing:2px;
    color:var(--accent-light);
}

/* ==========================================================
   Lightbox
   ========================================================== */
   
.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(10,10,10,.94);
    backdrop-filter:blur(5px);
    z-index:9999;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    opacity:0;
    transition:opacity 0.3s ease;
	cursor:zoom-out;
}

.lightbox.show{
    display:flex;
}

.lightbox.open{
    opacity:1;
}

.lightbox img{

	max-width:90vw;
	max-height:80vh; 
	border-radius:10px; 
	box-shadow:0 18px 45px rgba(0,0,0,.45);
}

.lightbox img.fade{
    opacity:0;
    transform:scale(.985);
}

.lightbox figcaption{
    margin-top:18px;
    font-size:1rem;
    letter-spacing:1px;
    color:#f0ece8;
}

.lightbox-close{
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    transition:0.3s;
}

.lightbox-close:hover{
    background:rgba(255,255,255,.22);
    transform:rotate(90deg);
}

.lightbox-prev,
.lightbox-next{
    width:54px;
    height:54px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.lightbox-prev:hover,
.lightbox-next:hover{
    background:rgba(255,255,255,.18);
}

.lbcap{
	color:white;
	margin-top:10px;
	transition:opacity .2s ease;
}

.lbbtn{
	position:absolute;
	color:white;
	font-size:3rem;
	cursor:pointer;
	user-select:none
}

.prev{
	left:20px
}

.next{
	right:20px
}

.close{
	top:10px;
	right:20px;
	font-size:2rem
}

section{
	max-width:1200px;
	margin:auto;
	padding:90px 20px;
}

/* ==========================================================
   Nach oben Botten
   ========================================================== */
   
#backToTop img{
    width:42px;
    filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));
    transition:0.3s;
}

#backToTop:hover img{
    transform:translateY(-5px) scale(1.08);
}

#backToTop{
    position:fixed;
    right:30px;
    bottom:30px;
    background:none;
    box-shadow:none;
    width:auto;
    height:auto;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}

/* ===========================================
   Fade-In beim Scrollen
   =========================================== */

.fade-in{
    opacity:0;
    transform:translateY(40px);
    transition:opacity 0.8s ease,transform 0.8s ease;
}

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

/* ===========================================
   Aktiver Menüpunkt
   ===========================================*/

.mainnav a{
    position:relative;
}

.mainnav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#7c5c67;
    transition:0.3s;
}

.mainnav a:hover::after,
.mainnav a.active::after{
    width:100%;
}

/* ==========================================================
   Footer
   ========================================================== */
   
footer{
	text-align:center;
	padding:2rem;
}

.footer-hand{
	width:40px;
	opacity:.6;
}

.footer-contact{
    position:relative;
    display:inline-block;
}

.footer-contact img{
    width:90px;
    border-radius:12px;
    cursor:pointer;
    transition:0.35s;
	overflow:visible;
}

.footer-contact:hover img{
    transform:scale(1.04);
}

.contact-card{
    position:absolute;
    bottom:110%;
    left:50%;
    transform:translateX(-50%) translateY(10px);
    min-width:260px;
    padding:18px 22px;
    border-radius:14px;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(8px);
    box-shadow:0 10px 35px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
}

.footer-contact:hover .contact-card{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.contact-card h3{
    margin:0 0 12px;
    color:#7c5c67;
    font-weight:400;
    letter-spacing:2px;
}
.contact-link{
    display:flex;
    align-items:center;
    gap:12px;
    margin:12px 0;
    text-decoration:none;
    color:#5c4850;
    font-size:1rem;
    transition:0.25s;
	border-left:3px solid transparent;
    padding-left:10px;
}

.contact-link:hover{
    color:#a05d7b;
    transform:translateX(6px);
	border-left:3px solid #b9869d;
}

/* ==========================================================
   Vita
   ========================================================== */
 
.vita-photo{
    position:relative;
    display:inline-block;
}

.vita-photo img{
    border-radius:14px;
    transition:0.35s;
}

.vita-photo:hover img{
    transform:scale(1.03);
}

.vita-card{
    position:absolute;
    inset:auto auto 15px 15px;
    width:320px;
    padding:20px;
    border-radius:14px;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(8px);
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:0.3s;
}

.vita-photo:hover .vita-card{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.vita-card h3{
    margin-top:0;
    color:#7c5c67;
    letter-spacing:1px;
}

.icon{
    width:28px;
    text-align:center;
    font-size:1.2rem;
}

/* ==========================================================
   Notebook
   ========================================================== */

@media (max-width:1200px){
	
.header-gallery{
        max-width:100%;
        gap:20px;
}

.gallery{
      grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
	
.gallery img{
    height:320px;
    object-fit:contain;
}

.hero{
     max-height:450px;
}

section{
     padding:70px 30px;
}
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width:900px){

.header-gallery{
     flex-direction:column;
     align-items:center;
     gap:25px;
}

.header-side{
     justify-content:center;
     flex-wrap:wrap;
        gap:15px;
}

.header-side img{
     width:90px;
     height:auto;
}
	
.header-center{
      order:-1;
}

.logo{
      max-width:260px;
}

.gallery{
     grid-template-columns:repeat(2,1fr);
        gap:18px;
}

.gallery img{
     height:260px;
}

.hero{
     max-height:380px;
}

section{
     padding:60px 25px;
}
}

/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width:600px){

body{
    font-size:15px;
}

h1{
    font-size:2rem;
}

h2{
    font-size:1.5rem;
}

.logo{
    width:220px;
}

.header-side{
    display:none;
}

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

.gallery figure{
    min-height:auto;
}

.gallery img{
    height:auto;
    max-height:320px;
	object-fit:contain;
}

.hero{
     max-height:260px;
}

section{
     padding:50px 18px;
}

.footer-contact{
     flex-direction:column;
     text-align:center;
     gap:20px;
}

.contact-card{
     width:100%;
}

#backToTop{
     width:46px;
     height:46px;
     right:18px;
     bottom:18px;
}
}

/* ==========================================================
   Kleine Smartphones
   ========================================================== */

@media (max-width:400px){

.logo{
     width:180px;
 }

h1{
     font-size:1.7rem;
}

h2{
     font-size:1.3rem;
}

.subtitle{
     font-size:.8rem;
}

section{
     padding:40px 15px;
}
}

/* ==========================================================
   Ende
   ========================================================== */