/* ================= ALLGEMEIN ================= */

html{
    scroll-behavior:smooth;
    }
    
    body{
    margin:0;
    background:#e7e2de;
    font-family:'Playfair Display', serif;
    color:#3f5363;
    }
    
    /* ================= NAVBAR ================= */
    
    nav{
    position:fixed;
    top:0;
    width:100%;
    background:#e7e2de;
    padding:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:1000;
    
    /* Start unsichtbar */
    opacity:0;
    transform:translateY(-100%);
    transition:all 0.4s ease;
    }
    
    /* Wird sichtbar beim Scrollen */
    nav.show{
    opacity:1;
    transform:translateY(0);
    }
    
    /* ================= MENU ================= */
    
    .menu{
    display:flex;
    gap:25px;
    }
    
    .menu a{
    text-decoration:none;
    background:#b9cbd8;
    padding:10px 25px;
    border-radius:25px;
    color:#3f5363;
    font-size:14px;
    transition:0.3s;
    }
    
    /* Aktiver Menüpunkt */
    .menu a.active{
    background:#2f4357;
    color:white;
    }
    
    /* Hover Effekt */
    .menu a:hover{
    transform:scale(1.05);
    }
    
    
    
    
    
    
  



    
    .hamburger{
    display:none;
    position:absolute;
    left:25px;
    font-size:30px;
    cursor:pointer;
    }
    
    /* ================= HERO ================= */
    
    .hero{
    position:relative;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:0 20px;
    overflow:hidden;
    background:#000;
    color:white;
    }
    
    .hero video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    }
    
    /* Overlay (dunkler Verlauf) */
    .hero::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.5)
    );
    z-index:1;
    }
    
    /* Übergang unten */
    .hero::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:150px;
    
    background:linear-gradient(
    to bottom,
    rgba(231,226,222,0),
    #e7e2de
    );
    z-index:1;
    }
    
    /* Inhalt über Overlay */
    .hero *{
    position:relative;
    z-index:2;
    }
    
    .hero h1{
    font-size:60px;
    margin-bottom:70px;
    }
    
    /* ================= BUTTONS ================= */
    
    .hero-buttons{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    width:100%;
    max-width:1200px;
    }
    
    .hero-row{
    display:flex;
    gap:5px;
    flex-wrap:wrap;
    justify-content:center;
    width:100%;
    }
    
    .hero-row a,
    .hero-link{
    flex:1 1 180px;
    min-width:160px;
    max-width:220px;
    text-align:center;
    text-decoration:none;
    background:#b9cbd8;
    padding:14px 20px;
    border-radius:28px;
    color:#3f5363;
    font-size:16px;
    transition:transform 0.2s ease;
    }
    
    .hero-row a:hover,
    .hero-link:hover{
    transform:scale(1.03);
    }
    
    @media (min-width: 500px) and (max-width: 800px) {
      .hero-buttons{
        display:grid;
        grid-template-columns: repeat(2, 180px);
        gap:10px;
        justify-content:center;
        width:100%;
      }
      
      .hero-row{
        display:contents;
      }
      
      .hero-row a,
      .hero-link{
        width:180px;
        max-width:180px;
        flex:none;
        padding:12px 16px;
        font-size:16px;
      }
      
      .hero-link-galerie{
        grid-column:1 / -1;
        justify-self:center;
        width:180px;
      }
      
      .hero-link-ueber{order:1;}
      .hero-link-hobbys{order:2;}
      .hero-link-schule{order:3;}
      .hero-link-projekte{order:4;}
      .hero-link-galerie{order:5;}
    }
    
    @media (max-width: 499px) {
      .hero-buttons{
        display:grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap:10px;
        justify-content:center;
        width:100%;
      }
      
      .hero-row{
        display:contents;
      }
      
      .hero-row a,
      .hero-link{
        width:auto;
        max-width:none;
        flex:none;
        padding:12px 14px;
        font-size:14px;
        min-width:120px;
      }
      
      .hero-link-galerie{
        grid-column:1 / -1;
        justify-self:center;
        width:180px;
      }
      
      .hero-link-ueber{order:1;}
      .hero-link-hobbys{order:2;}
      .hero-link-schule{order:3;}
      .hero-link-projekte{order:4;}
      .hero-link-galerie{order:5;}
    }
    
    @media (max-width: 800px) {
      .image-toggle {
        display:flex;
        justify-content:center;
        align-items:center;
        width:100%;
        margin-top:20px;
      }
      
      .image-toggle img {
        height:auto;
        max-height:420px;
        width:auto;
      }

      .hero-buttons{
gap:5px;
}

.hero-row{
gap:5px;
justify-content:center;
flex-wrap:wrap;
}

.hero{
justify-content:center;
padding-top:40px;
padding-bottom:20px;
}

.hero h1{
margin-bottom:25px;
font-size:40px;
}

.hero-buttons{
margin-top:10px;
}

.hero-row a,
.hero-link{
flex:1 1 calc(45% - 5px);
min-width:120px;
max-width:160px;
box-sizing:border-box;
padding:12px 10px;
font-size:14px;
text-align:center;
}
    }
    
    /* ================= SECTIONS ================= */
    
    section{
    padding:100px 10%;
    
    /* Start unsichtbar */
    opacity:0;
    transform:translateY(40px);
    
    /* Animation */
    transition:all 0.8s ease;
    }
    
    section.show{
    opacity:1;
    transform:translateY(0);
    }
    
    h2{
    font-size:40px;
    margin-bottom:40px;
    }
    
    /* ================= GRID ================= */
    
    .grid2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
    }
    
    /* ================= BOX ================= */
    
    .box{
    background:#5e7e8f;
    border-radius:25px;
    height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#22313a;
    }
    
    /* ================= SLIDER ================= */
    
    .slider-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 25px;
  background: #5e7e8f;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}
    
    .slider {
      display: flex;
      height: 100%;
      transition: transform 0.5s ease;
    }
    
    .slide {
      min-width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #5e7e8f;
    }
    
    .slide img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
    
    .double-page {
      display: flex;
      width: 100%;
      height: 100%;
    }
    
    .double-page img {
      width: 50%;
      height: 100%;
      object-fit: contain;
    }
    
    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
      border-radius: 50%;
      font-size: 18px;
    }
    
    .prev {
      left: 10px;
    }
    
    .next {
      right: 10px;
    }
    
    /* ================= IMAGE-TOGGLE ================= */
    
    /* ================= SCHOOL TOGGLE ================= */

.school-toggle{
display:flex;
justify-content:center;
align-items:center;
}

.school-toggle img{
width:auto;
height:400px;
border-radius:25px;
cursor:pointer;
transition:transform 0.3s ease;
object-fit:contain;
}

.school-toggle img:hover{
transform:scale(1.05);
}

    .image-toggle img {
      width: auto;
      height: 400px;
      border-radius: 25px;
      cursor: pointer;
      transition: transform 0.3s ease;
      object-fit: contain;
    }
    
    .image-toggle img:hover {
      transform: scale(1.05);
    }
    
    /* ================= QUOTE ================= */
    
    .quote{
    border:2px solid #b9cbd8;
    padding:15px 25px;
    border-radius:15px;
    display:inline-block;
    margin-top:25px;
    font-size:20px;
    }
    
    /* ================= REVIEWS ================= */
    
    .review{
    flex-direction:column;
    padding:15px;
    text-align:center;
    height:250px;
    }
    
    .review1{background:#b9cbd8;color:#3f5363;}
    .review2{background:#cfdbe4;color:#3f5363;}
    .review3{background:#5e7e8f;color:white;}
    
    /* ================= HOBBYS ================= */
    
    .hobbies{
    display:grid;
    grid-template-columns:repeat(2,160px);
    gap:20px;
    }
    
    .hobby{
    height:120px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    }
    
    .hobby img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.3s ease;
    }
    
    .hobby:hover img{
    transform:scale(1.1);
    }
    
   
    
    /* ================= GALERIE ================= */
    
    .gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    }

    /* ================= GALERIE HOVER ================= */

.gallery .img{
overflow:hidden;
border-radius:20px;
}

.gallery .img img{
width:100%;
height:100%;
object-fit:cover;
border-radius:20px;
display:block;
transition:transform 0.3s ease, filter 0.3s ease;
}

.gallery .img:hover img{
transform:scale(1.08);
filter:brightness(0.9);
}

    /* Bilder in der Galerie */
.gallery .img img{
width:100%;
height:100%;
object-fit:cover;
border-radius:20px;
display:block;
}
    
    .gallery .img{
    height:150px;
    border-radius:20px;
    background:#cfdbe4;
    display:flex;
    align-items:center;
    justify-content:center;
    }
    
    /* ================= TABLE ================= */
    
    table{
    width:100%;
    border-collapse:collapse;
    }
    
    th{
    background:#2f4357;
    color:white;
    padding:10px;
    text-align:left;
    }
    
    td{
    padding:10px;
    }
    
    tr:nth-child(even){
    background:#b9cbd8;
    }
    
    /* ================= IMPRESSUM ================= */
    
    .impressum h3{
    color:#2f4357;
    margin-top:20px;
    }
    
    /* ================= MOBILE ================= */
    
    @media(max-width:800px){
    
    .menu{
    display:none;
    flex-direction:column;
    align-items:center;
    position:fixed;
    top:0;
    background:#e7e2de;
    width:100%;
    left:0;
    padding:20px 20px 25px;
    z-index:1001;
    }
    
    .menu.show{
    display:flex;
    }
    
    .menu a{
    width:180px;
    max-width:220px;
    margin:5px 0;
    }
    
    .hamburger{
    display:block;
    }
    
    .grid2{
    grid-template-columns:1fr;
    }
    
    .hero-row{
    flex-direction:column;
    gap:20px;
    }

    /* Überschriften zentrieren auf kleinen Bildschirmen */
    h1, h2, h3 {
      text-align: center;
    }
    
    }

    /* ================= RESPONSIVE TEXT & BILDER ================= */

img{
max-width:100%;
height:auto;
}

/* Über mich + Schule Bilder responsive */
.image-toggle,
.school-toggle{
display:flex;
justify-content:center;
align-items:center;
width:100%;
}

.image-toggle img,
.school-toggle img{
max-width:100%;
height:auto;
max-height:500px;
object-fit:contain;
}

/* Text passt sich an */
p,
td,
th,
a{
word-wrap:break-word;
overflow-wrap:break-word;
}

/* Große Tablets */
@media (max-width: 1000px){

.grid2{
grid-template-columns:1fr;
gap:40px;
}

h1{
font-size:48px;
}

h2{
font-size:34px;
}

p{
font-size:17px;
line-height:1.7;
}

.image-toggle img,
.school-toggle img{
max-height:420px;
}

}

/* Handy */
@media (max-width: 800px){

section{
padding:80px 7%;
}

.grid2{
justify-items:center;
}

h1{
font-size:38px;
}

h2{
font-size:28px;
}

h4{
font-size:20px;
}

p{
font-size:16px;
line-height:1.8;
text-align:left;
}

.image-toggle img,
.school-toggle img{
width:100%;
max-width:420px;
height:auto;
max-height:none;
}

.slider-container{
height:auto;
min-height:250px;
}

.double-page{
display:flex;
flex-direction:row;
gap:5px;
align-items:center;
justify-content:center;
}

.double-page img{
width:50%;
height:auto;
object-fit:contain;
}

table{
font-size:14px;
display:block;
overflow-x:auto;
}

/* ===== Zentrierung aller Texte & Überschriften bei Mobile ===== */

h1, h2, h3, h4{
text-align:center;
}

p{
text-align:center;
}

td, th{
text-align:center;
}

table{
margin:0 auto;
}


/* ===== Bilder bei Mobile zentrieren ===== */

.image-toggle,
.school-toggle,
.hobbies,
.gallery,
.slider-container{
margin:0 auto;
justify-content:center;
align-items:center;
}

.image-toggle img,
.school-toggle img,
.hobby img{
display:block;
margin:0 auto;
}


table{
margin:0 auto;
border-collapse:collapse;
display:table;
}

th, td{
text-align:center;
}

.grid2 table{
margin-left:auto;
margin-right:auto;
}

}

@media (min-width: 801px) and (max-width: 999px){

.grid2{
justify-items:center;
}

table{
width:auto;
max-width:600px;
margin:0 auto;
}

th, td{
text-align:center;
}
}

/* Kleine Handys */
@media (max-width: 480px){

h1{
font-size:30px;
}

h2{
font-size:24px;
}

p{
font-size:15px;
}

.hero{
padding:0 15px;
}

section{
padding:70px 5%;
}

.image-toggle img,
.school-toggle img{
max-width:100%;
}

}

/* Erste & letzte Seite gleich groß wie Doppelseiten */
.slide:not(.double-page){
display:flex;
justify-content:center;
align-items:center;
}

.slide:not(.double-page) img{
width:48%;
max-width:48%;
height:auto;
object-fit:contain;
}


.vs-footer{
  text-align:center;
  padding:30px 0;
  display:block;
}

.vs-footer img{
  width:120px;
  height:auto;
  display:block;
  margin:0 auto;
}




.logo {
  display: none !important;
}