    :root {
      --bg: black;
      --text: #1e1e1e;
      --accent: #a0b2c0;
      --nav-height: 64px;
    }

    * {
  -webkit-tap-highlight-color: transparent; /* handy touch */
}


    * {
      margin: 0;
      padding: 0;
    }

@font-face {
  font-family: 'BebasNeue-Regular';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  }

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'lucida';
  src: url('fonts/lucida.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--accent);
}
    
body {
 font-family: 'Roboto';
}
    /* ---------------- ALLGEMEIN ---------------- */

h1, h2 {
      font-size: 300%;
      font-family: 'BebasNeue-Regular';
text-decoration-line: overline underline;
text-shadow: 2px 2px 2px var(--bg);
color: white;
padding: 20vh 5vh 5vh 5vh;
box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-webkit-box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.53);
-moz-box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.53);
   background: transparent; 
   backdrop-filter: blur(6px); 
border:5px solid white;
    }

h3{
font-family: 'BebasNeue-Regular';
font-size: 200%;
margin-bottom: 1rem;
color:white;
text-align: center;
text-shadow: 2px 2px 2px var(--bg);
margin-top:20px;
padding: 5px 0px 5px 0px;

}

    p {
      font-size: 25px;
      line-height: 1.6;
    }

    .btn {
      display: inline-block;
      padding: 0.7rem 1.4rem;
      border-radius: 999px;
      background: var(--accent);
      color: white;
      text-decoration: none;
      margin-top: 1rem;
      transition: 0.2s ease;
    }

    .btn:hover {
      background: #b15f45;
      transform: translateY(-1px);
    }
 #scrollTopBtn {
  position: fixed;
  bottom: 60px;
  right: 10px;
  top: auto;
  width: 40px;
  height: 40px;
   box-sizing: border-box; 
   overflow: hidden;
  display: none; /* Anfangs versteckt */
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background:black;
  border:none;
 box-shadow: 0 0 5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3); 
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
#scrollTopBtn::before { 
display: none;
 }

#scrollTopBtn:hover{
transform: scale(1.25); 
}



    /* ---------------- NAVIGATION ---------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background:transparent;
   backdrop-filter: blur(6px); 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
}

.logo {
  position: absolute;
  top: 10px;
  left: 10px;
}

.logo img {
  width: 120px;      /* sichere Breite */
  max-width: 40vw;   /* passt sich kleinen Screens an */
  height: auto;
}
    nav {
      display: flex;
      gap: 1.5rem;
}

    
    nav a {
            font-family: 'BebasNeue-Regular';
      text-decoration: none;
      color: white;
      text-shadow: 2px 2px 2px var(--bg);
 
      font-size: 25px;
      position: relative;
       padding: 16px 16px;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -3px;
      width: 0;
      height: 4px;
      background: white;
      transition: width 0.2s ease;
    }

    nav a:hover::after {
      width: 100%;
    }

    nav a:hover{
      background-color: var(--accent);
      color: white;
    }

    /* ---------------- HAMBURGER ---------------- */

.hamburger {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 40px;
  height:40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: black;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

    .hamburger-lines {
      width: 18px;
      height: 14px;
      position: relative;
    }

    .hamburger-lines span {
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background:white;
      border-radius: 999px;
      transition: 0.2s ease;
    }

    .hamburger-lines span:nth-child(1) { top: 0; }
    .hamburger-lines span:nth-child(2) { top: 6px; }
    .hamburger-lines span:nth-child(3) { bottom: 0; }

    .hamburger.active span:nth-child(1) {
      top: 6px;
      transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      bottom: 6px;
      transform: rotate(-45deg);
    }

    /* ---------------- MOBILE NAV ---------------- */

.mobile-nav {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  height: 450px;
  background: linear-gradient(to right, #f6f6ee, #a0b2c0);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  padding: 150px 20px 0 20px;
  gap: 1.2rem;
  z-index: 900;
  text-align: left;
  box-sizing: border-box;   /* ← FIX */
  max-width: 100vw;         /* ← doppelte Sicherheit */
  overflow-x: hidden;       /* ← falls Animationen überstehen */
}

    .mobile-nav.open {
      display: flex;
    }

    .mobile-nav a {
      text-decoration: none;
      color: var(--text);
      font-size: 1.5rem;
      font-weight: bold;
        border-bottom:3px dotted black; 
         }

.mobile-nav a:visited {
  color: var(--accent)
}

/* ---------------- HOME ---------------- */


#home {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10; /* <<< WICHTIG */
  box-sizing: border-box;
    background-image: url("images/bild1.webp"), url("images/home.webp");
  background-size: cover, cover;
  background-position: bottom, center;
  background-repeat: no-repeat, no-repeat;
}
#home img {
 width:20%;
 max-width: 650px;
 position: absolute;
 bottom:0;
 right:0;
}

#home-text { 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 40%;
  max-width: 100%;
  border: 10px solid white;
  backdrop-filter: blur(6px);
  z-index:0;
}

#home-text h1 {
  font-size: 700%;
  padding: 3vh;
  border:none;
  backdrop-filter: blur(0px); 
box-shadow: none;
background: transparent;
}
#home-text h2 {
  color: var(--accent);
  font-size: 500%;
  text-align:right;
 /* SICHTBARER Startzustand */
  opacity: 1;
  transform: scale(0.15) rotateY(-120deg);
  filter: blur(10px);
  transform-origin: center center;
  animation: cinematicIn 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1s;
  text-decoration: none;
  padding:0vh 0vh 0vh 0vh;
  margin-top: -30px;
  border:none;
  backdrop-filter: blur(0px); 
box-shadow: none;
background: transparent;
}

@keyframes cinematicIn {
  0% {
    opacity: 0.6;
    transform: scale(0.15) rotateY(-120deg);
    filter: blur(10px);
  }
  40% {
    opacity: 1;
    transform: scale(1.25) rotateY(20deg);
    filter: blur(2px);
  }
  75% {
    transform: scale(0.97) rotateY(-5deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    filter: blur(0px);
  }
}

 /* -----------------SECTION---------------- */

 section {
 position: relative;
 padding: 8rem 2rem;
  background: rgba(123, 144, 151, 0.55);
  background-image: url("images/wall3.png");
  background-size: 20%;
  color:white;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index:1;
      display: flex;
      flex-direction: column;
       align-items: center;
      gap: 1rem;
margin: 0px 0px 10px 0px;
}




     /* -----------------ABOUT----------------- */

   #about{
     margin-top:10px;
    padding-top: 150px;
   }  
#about h2 {
  font-size: 380%;
  background-image: url("images/person-icon1.png");
  background-repeat: no-repeat;
  background-size: 20vh;
  background-position: center top;
}


.card-container-about {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 50px;
 min-height: 0; 
}

.card-about {
  width: 20vw;
  height: 550px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
  padding: 0;
}

.card-header {
  position: sticky;
  top: 0;
}

.header-inner {
  position: relative; 
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px); 
   padding:10px 0px;
  font-family: 'BebasNeue-Regular';
  font-size: 200%;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 2px var(--bg);
}

.card-content p {
  font-family: lucida;
  padding: 20px 20px 20px 20px;
  font-size: 20px;
}

.card-scroll {
  height: 470px;
  overflow-y: auto;
  cursor: url('scroll-icon.png') 16 16, auto;

  /* Firefox */
  scrollbar-width: auto;
  scrollbar-color: #fff transparent; /* dunkler Track statt schwarz */
}

/* Chrome, Edge, Safari */
.card-scroll::-webkit-scrollbar {
  width: 12px;
}

.card-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 6px;
}

.card-scroll::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #000;
}

.card-scroll::-webkit-scrollbar-thumb:hover {
  background: #e5e5e5;
}




     /* -----------------SERVICES----------------- */

#services h2 {
       font-size:380%;
      background-image: url("images/icon1.png");
      background-repeat: no-repeat;
      background-size:20vh;
      background-position:center top;

}
.card-container {
  display: flex;
  flex-wrap: wrap; /* Make cards wrap on smaller screens */
  gap: 50px;
  justify-content: center;
margin-bottom:50px;
margin-top: 50px;
background: transparent;
}

.card {
  width: 300px;
  height: auto;
  position: relative;
  padding-top: 50px;
  padding:20px;
  font-size: 25px;
  background: transparent;
  backdrop-filter: blur(6px); 
  border-radius:8px;
  text-align:center;
box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-webkit-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-moz-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
}

.card img{
position:relative;
width:100%;
  border-radius: 8px;
}
.card-text {
  margin-top: 10px;
  text-align: left;
  z-index:100;
}
.card-text p {
  font-family: 'BebasNeue-Regular';
  font-size:130%;
  line-height: 1.5;
  color: white;
 text-shadow: 2px 2px 2px var(--bg);
}

.tooltip-icon {
  position: absolute;
  top: 5px;
  right:5px;
  width:4vh;
  cursor: pointer;
  z-index: 5;
}
.tooltip-icon img{
box-shadow:none;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -10px; 
  right: 0px;
  transform: translateY(-100%);
   background: black;
  color:white;
  padding: 10px;
    border-radius: 8px;
  white-space: nowrap;
  font-size: 20px;
  transition: opacity 0.25s ease;
  z-index: 10;
  width: 290px;
  white-space: normal; /* Zeilenumbruch erlauben */ 
  text-align: left;
}

.tooltip-icon:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ---------------- REFERENZEN---------------- */

#referenzen h2 {
       font-size:380%;
       text-align:left;
       background-image: url("images/icon2.png");
      background-repeat: no-repeat;
      background-size:25vh;
      background-position:center top;
   
}
#referenzen h3 {
margin: 0 auto;
font-size: 280%;
font-family: 'BebasNeue-Regular';
text-decoration-line: overline underline;
text-shadow: 2px 2px 2px var(--bg);
color: white;
padding-top:100px;
}
 /* ---------------- REFERENZEN LIGHTBOX ---------------- */

.inline-lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 10vh;
  padding-bottom: 10vh;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: blur(6px);
  box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
  width: 60%;
  border-radius: 8px;
  margin-bottom: 100px;
}

.viewer {
  position: relative;
  display: flex;
  justify-content: center; /* horizontal zentrieren */
  align-items: center;     /* vertikal zentrieren */
  gap: 20px;
  padding: 0;              /* wichtig */
  width: 100%;             /* damit flex korrekt arbeitet */
}

.viewer img {
  max-width: 80%;
  width:90vh;
  height:auto;
  border-radius: 8px;
box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-webkit-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-moz-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);

}

.prev-btn,
.next-btn {
  background: black;
  border: none;
  color:white;
  font-size: 30px;
  padding: 3px 16px;
  cursor: pointer;
  border-radius: 50%;
}

.thumbs {
  display: flex;
  gap: 10px;
  justify-content:center;
  margin-left: -2vw;
}

.thumbs img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-webkit-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-moz-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
}

.thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbs img.active {
  opacity: 1;
  outline: 3px solid #fff;
}

/* ---------------- contact ---------------- */

#contact {
  margin-bottom: 0px;
}
#contact h2 {
       font-size:380%;
       background-image: url("images/contact-icon.png");
      background-repeat: no-repeat;
      background-size:20vh;
      background-position:center top;
  position: relative;
  z-index: 1;
}

#contact ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 50%;
  list-style-type: none;
  margin:0 auto;
  padding-top:20px;
}

#contact ul li {
  width: 100%; /* wichtig, damit die 80% sich auf die UL beziehen */
}

.button-kontakt {
  display: flex;
  align-items: center;
  width: 100%;
  margin-left:-1vw;
  gap: 12px;
  height: 100px;
  padding: 20px 20px;
  border-radius: 8px;
box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-webkit-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
-moz-box-shadow: 0px 3px 5px 3px rgba(0,0,0,0.53);
 font-size: 25px;
   background:transparent; 
   backdrop-filter: blur(6px); 
  color:white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-in;
}

.button-kontakt .icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}



.button-kontakt .icon img {
  width: 100%;
  height: auto;
  display: block;
}

.button-kontakt .text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  width: auto;   /* Beispielwert */
}

.button-kontakt .inner {
  text-align: left;
}

.button-kontakt a:link  {
text-decoration:none;
}
.button-kontakt a:visited  {
text-decoration:none;
}

.button-kontakt:hover {
  color:white;
   background: rgba(227, 230, 231, 0.308); 
  transition: all 0.2s ease-out;
}

.button-kontakt::before {
  content: '';
  position: absolute;
  top: 7%;
  left: 0%;
  width: 0px;
  height: 86%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  transform: skewX(-20deg);
}

.button-kontakt:hover::before {
  animation: sh02 0.5s linear;
}

@keyframes sh02 {
  from {
    opacity: 0;
    left: 0%;
}
  50% {
    opacity: 1;
}
  to {
    opacity: 0;
    left: 100%;
}
}


    /* ---------------- FOOTER ---------------- */
footer {
   position: fixed; 
   bottom: 0;
   width: 100vw; 
   padding:10px; 
  background:transparent;
   backdrop-filter: blur(6px); 
   pointer-events: none; 
   z-index:100;
  }

  footer p {
         font-size: 18px;
 
  }

    .footer-inner {
      max-width: 100vw;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      color: white;
    }

    .footer-links {
      display: flex;
      gap: 1.2rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color:white;
      font-size: 1.0rem;
       pointer-events: auto;
    }
   .footer-links a:hover{
      text-decoration: none;
    }


    /* ---------------- MODAL OVERLAYS ---------------- */

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 2000;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-box {
      background: white;
      max-width: 600px;
      width: 100%;
      padding: 2rem;
      border-radius: 12px;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
  .modal-box p {
      font-size: 22px;
      line-height: 1.6;
    }
    .modal-box h2 {
      background-image: url("images/logo.png");
      background-repeat: no-repeat;
      background-size:18vh;
      background-position:center-top;
      margin-bottom: 1rem;
      color:black;
      text-align: center;
      text-shadow: none;
      box-shadow: none;
      border: none;
}

.modal-box h3 {
font-family: 'BebasNeue-Regular';
font-size: 200%;
text-decoration:underline;
margin-bottom: 1rem;
color:black;
text-align: left;
margin-top:40px;
text-shadow: none;
}
.modal-box a:link {
  color: black;
  font-weight:bold;
}

.modal-box a:visited {
  color: black;
  font-weight:bold;
}

    .modal-close {
      margin-top: 1.5rem;
      display: inline-block;
      padding: 0.6rem 1.2rem;
      background: var(--accent);
      color: black;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
    }

    .modal-close:hover {
      color:white;
    }

    /* ---------------- RESPONSIVE ---------------- */


  @media (max-width:1440px){
   #home-text { 
  width:50%;   
   } 
.card-about {
  width: 30vw;
}

  #contact ul{
    width: 60%;
  }
}
  @media (max-width:1280px){

   #home-text h2{
    font-size: 380%;
   }
  .card-about {
  width: 40%;
  margin:40px auto;
}


.inline-lightbox {
  width: 90%;
  margin-bottom:50px;
}

.viewer {
  width: 100%;
  max-width: 1000px;
margin-left:0vw;
}

  .viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* wichtig! */
  border-radius: 8px;
}


  .prev-btn,
  .next-btn {
    font-size: 28px;
    padding: 6px 16px;
     position: static;
  }

  .thumbs img {
    width: 120px;
    height: auto;
  }
}


 @media (max-width: 1024px) {
  nav {
    display: none;
  }
  #home-text { 
  width: 90%;   
   } 
  .hamburger {
    display: flex;
  }
  #contact ul{
    width: 90%;
  }

}
   

@media (max-width: 820px) {
  #home-text h1 {
    font-size:600%;
  }

  #home-text h2 { 
    font-size:450%;
  }
 #portrait img{
  width: 35% !important;
 }


.about {
 display: flex;
      flex-direction:column;
      gap: 20px;
      justify-content: center;
      align-items: center; 
}

.card-container-about {
  display: flex;
  flex-direction: column;
  padding: 0px;
}

.card-about {
  width: 90%;
  margin:40px auto;
}
  .inline-lightbox {
    width: 100%;
    gap: 15px;
     padding-top: 5vh;
  padding-bottom: 5vh;
  }
}
@media (max-width: 768px) {
 #portrait img{
  width: 30% !important;
 }


.header-inner {
  box-shadow: none;
  margin:0px auto;
  width:100%;
}

.viewer {
  position: relative;
  overflow: visible; /* statt hidden */
  width:100%;
}

  .viewer img {
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
    cursor: zoom-in;
    transform-origin: center center;
    position: relative;
    z-index: 1;
  }

  .viewer img.zoomed {
    cursor: grab;
    z-index: 9999;
  }

  .viewer img.grabbing {
    cursor: grabbing;
  }
   .prev-btn,
  .next-btn {
    font-size: 24px;
    padding: 4px 14px;
    position: static; /* Pfeile rÃƒÂ¼cken nÃƒÂ¤her ans Bild */
  }
  .thumbs {
    flex-wrap: wrap;
    gap: 8px;
   }

  .thumbs img {
    width: 90px;
    height: 65px;
  }
}

@media (max-width: 480px) {
section {
  background-size: 40%;
}
section h2{
  width:100%;
  padding: 180px 20px 20px 20px;
}

#home{
  margin-top: -150px;
}
#home-text {
  border: 5px solid white;
  width:90vw;
  margin-left:2vw;
}
  #home-text h1 {
    font-size:400%;
    background-color: transparent !important;
    padding: 20px;
  }

  #home-text h2 {
    font-size:250%;
    background-color: transparent !important;
    padding: 20px;
  }

 #portrait img{
  width: 40% !important;

 }
.card-container-about {
 display: flex;
flex-direction: column;
width:100%;
padding: 0px;
}

.card-about{
  width: 100%;
  padding:0px;
}

.card {
  width: 100%;
}
  #contact ul {
    width:95%;
    margin-left: 0px;
  }
.button-kontakt {
padding: 0px 10px;
 font-size:18px;
 }
}
@media (max-width: 420px) {
#home-text {
  border: 5px solid white;
  width:90vw;
  margin-left:0vw;
}

  .inline-lightbox{
  padding: 20px 0px 20px 0px;
  }
   .thumbs img {
    width: 65px;
    height: auto;
  }

  .prev-btn,
  .next-btn {
    font-size: 20px;
   padding: 4px 13px;
  }


}

@media (max-width:384px){
main section h2{
  padding:130px 20px 20px 20px;
}
#home{
  margin-top: 0px;
}

    #home-text h1 {
    font-size:300%;
  }

  #home-text h2 {
    font-size:260%;
    margin-top:-20px;
  }
  #portrait img {
 width: 28% !important;
}



#about h2{
font-size:300%;
}
.card-text p {
  font-size:110%;
}


  .button-kontakt .text {
    left:60%;
    }
 
  .prev-btn,
  .next-btn {
   padding: 4px 12px;
  }

  footer p {
         font-size: 16px;
 
  }

}

