    :root {
      --bg: black;
      --text: white;
      --accent: #de3283;
      --h3:#88abbf;
      --nav-height: 64px;
      --border: 1vh;
  --radius: 75vh;
}
 
a[href^="https://"]:not([href*="freundeskreis.online"]):after {
    content: url('external-link.png');
    display: inline-block;
    vertical-align: baseline;
    margin-left: 4px;
    margin-right: 4px;
}
   


html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* handy touch */
scroll-behavior: smooth;
color: var(--text);
font-family: 'Roboto';
  background: var(--bg);
 
}

@font-face {
  font-family: 'Hathem Bosteem';
  src: url('fonts/Hathem Bosteem.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@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: 'Lumiare';
  src: url('fonts/Lumiare.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  }

 

    /* ---------------- ALLGEMEIN ---------------- */

button {
  font-family:'Roboto';
  background-color: #333;
  font-size: 15px;
  font-weight: bold;
  color:white;
  padding: 10px;
  border: #333;
  border-radius: 20px;
  border-bottom: 8px solid var(--h3);
  cursor: pointer;
}

button:active {
  border-bottom: var(--h3);
  transform: translateY(5px);
}

button:hover {
  background:var(--accent);
}


a:link {
  color:white;
}
a:visited {
  color:white;

}
   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:var(--accent);
  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 {
  font-size: 35px;
font-family: 'Hathem Bosteem';
color:var(--text);
}


    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: 0px;
  right: 10px;
  display: none;
  width: 50px;
  height:50px;
  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: black;
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  padding: 50px 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 white; 
         }

.mobile-nav a:visited {
  color: var(--accent)
}

@media screen and (min-width: 961px) {
  .mobile-nav {
    display: none!important;
  }

  .hamburger {
    display: none;
  }

  nav {
    display: flex!important;
  }
}

@media screen and (max-width: 960px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media screen and (max-width: 879px) {
  .hamburger {
    display: flex; /* ← wichtig! */
  }
}

/* ---------------- HOME ---------------- */

.pulse {
  position: absolute;
  top:100px;
  right:100px;
  font-family: 'BebasNeue-Regular';
   width: 180px;
  padding: 20px 0;
  font-size: 35px;
  color: white;
   text-align: center;
  background:  var(--accent);
  border-radius: 50px;
  animation: shadow-pulse 1.5s infinite;
}
@keyframes shadow-pulse
{
  0% {
    box-shadow: 0 0 0 0px var(--accent);
  }
  100% {
    box-shadow: 0 0 7px 25px rgba(0, 112, 244, 0);
  }
}
.pulse a:link{
  text-decoration: none !important;
  color:white;
}

.pulse a:visited{
  text-decoration: none !important;
  color:white;
}


#home {
  height: 100vh;
  position: relative;
  z-index: 10; /* <<< WICHTIG */
  box-sizing: border-box;
    background-image: url("images/hero.webp");
  background-size: cover;
  background-position: center;
  background-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%;
  position:absolute;
  top:300px;
  right:80px;
  z-index:0;
}

#home-text h1 {
font-family:'Lumiare';
color: var(--accent);
  font-size: 600%;
  padding: 0px;
  text-shadow: 2px 2px 2px white; 
}

#home-text h2 {
  color: white;
  font-size: 550%;
 font-family:'Hathem Bosteem';

 /* 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: -50px;
 
}

@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;
  color:var(--text);
      display: flex;
      flex-direction: column;
       align-items: center;
      gap: 1rem;
margin: 0px 0px 10px 0px;
}

section h2 {
      font-family: 'BebasNeue-Regular';
      padding-top:280px;
      padding-left:0px;
      font-size:400%;
      text-decoration: underline;
      background-image: url("images/logo1.png");
      background-repeat: no-repeat;
      background-size:15vh;
      background-position: center 0px;
   
}



     /* -----------------ABOUT----------------- */

#about {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}


/* Card */
.about-card {
 background-image:url("images/textur1.png");
 background-repeat: repeat;
  border: 1px solid #333;
 
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Bild */
.about-img img {
  width: 300px;
  border-radius: 14px;
  
  display: block;
}

/* Text */
.about-text p{
  font-size: 140%;
  flex: 1;
 
}

/* Responsive */
@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    width: 100%;
    max-width: 300px;
  }
}



     /* -----------------REFERENZEN/Bildergalerie----------------- */


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 120px;
    gap: 5px;
}


/* Tooltip */
.tooltip {
    position: absolute;
   bottom:0px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    background-image:url("images/textur1.png");
    background-repeat: repeat;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
   max-width: 400px;      /* feste maximale Breite */
    width: auto;           /* passt sich dem Inhalt an */
    white-space: normal;   /* Zeilenumbruch erlauben */
    text-align: left; 
}

/* Tooltip sichtbar beim Hover */
.item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}






.item {
    position: relative; /* wichtig für Tooltip */
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
   
}

/* Verschiedene Größen */
.tall {
    grid-row: span 3;
}

.wide {
    grid-column: span 2;
    grid-row: span 2;
}

.big {
    grid-column: span 2;
    grid-row: span 3;
}

/* Responsive */
@media (max-width: 768px) {
    .wide,
    .big {
        grid-column: span 1;
    }
}
/* =========================
   LIGHTBOX
========================= */
.gallery-wrapper {
    position: relative;
    width:80%
}
.lightbox {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transition: .3s;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    transition: .3s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,.25);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

@media (max-width: 768px) {

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-nav.prev {
        left: 15px;
    }

    .lightbox-nav.next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }
}



/* ---------------- SERVICES/Preisliste---------------- */
#services {
  background: url("images/bg-table.png") right bottom/35% no-repeat;

  }


.preisliste-container{
    width:40%;
    max-width:900px;
    margin:auto;
    padding:40px;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    color:#fff;
 background-image:url("images/textur1.png");
 background-repeat: repeat;
  border: 1px solid #333;
 
}

.preisliste-container::before{
    content:"";
    position:absolute;
    inset:0;
   
    z-index:0;
}

.preisliste{
    position:relative;
    z-index:1;
    width:100%;
    border-collapse:collapse;
}

.preisliste th{
    text-align:left;
    font-size:28px;
    padding:15px 0 25px;
    color:var(--h3);
    border-bottom:2px solid rgba(255,255,255,.3);
}

.preisliste td{
    padding:15px 0;
    vertical-align:top;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.preisliste .leistung{
    width:75%;
}

.preisliste .preis{
    width:25%;
    text-align:right;
    font-weight:bold;
    font-size:20px;
    white-space:nowrap;
}

.extra{
    display:block;
    margin-top:5px;
    font-size:14px;
    color:#e7e7e7;
}

.einzeln{
    display:flex;
    justify-content:space-between;
    margin-top:6px;
    font-size:14px;
    color:#f5f5f5;
}

.highlight{
    background:var(--accent);
    color:white;
    padding:2px 8px;
    border-radius:20px;
    font-size:12px;
    margin-right:6px;
    margin-bottom:6px;
}


/* ---------------- contact ---------------- */

 #contact {
  background-image: url("images/bg-contact.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: left 100px;
  padding-bottom: 180px;
}


.contact-section {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.contact-intro {
  margin-bottom: 40px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* sorgt dafür, dass sie umbrechen, wenn der Platz knapp wird */
  margin-bottom: 50px;
}

.contact-card {
  border: 1px solid #333;
  background-image:url("images/textur1.png");
 background-repeat: repeat;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);

  padding: 25px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  width: 220px; /* feste Breite für schöne Reihen */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: #ff7ac4;
  box-shadow: 0 0 18px rgba(255, 122, 196, 0.4);
  
}

.contact-card .icon img {
  width: 45px;
}

.contact-card .info {
  font-size: 1.1rem;
  font-weight: 500;
}

/* MOBILE VERSION */
@media (max-width: 600px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 90%; /* schön breit auf Handy */
  }
}

 /* ---------------- ENDE ---------------- */
#ende h2 {
  color: white;
  font-size: 550%;
 font-family:'Hathem Bosteem';
  text-decoration: none;
  padding:0vh 0vh 0vh 0vh;
 background-image: none;
 text-align: center;
}

    /* ---------------- FOOTER ---------------- */
footer {
   position: fixed; 
   bottom: 0;
   width: 100vw; 
   padding:0px; 
  background:transparent;
   backdrop-filter: blur(6px); 
   pointer-events: none; 
   z-index:100;
  }

  footer p {
         font-size: 16px;
 
  }

    .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: 0.9rem;
       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);
      text-align: center; /* Button wird automatisch mittig */
    }
  .modal-box p {
    color:black;
      font-size: 22px;
      line-height: 1.6;
      text-align:justify;
    }
    .modal-box h2 {
font-family: 'BebasNeue-Regular';
font-size: 300%;
      text-decoration: overline underline;
      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;
      padding-top:200px;
}

.modal-box h3 {
font-family: 'BebasNeue-Regular';
font-size: 200%;
text-decoration:underline;
margin-bottom: 1rem;
color:var(--accent);
margin-top:40px;
text-shadow: none;
}
.modal-box a:link {
  color: black;
  font-weight:bold;
}

.modal-box a:visited {
  color: black;
  font-weight:bold;
}
.icon-impressum   {
 width: 50px;
  height: auto;           
  margin-right: 10px;
  margin-top: 6px; 
}

    .modal-close {
      padding: 0.6rem 1.2rem;
      background: var(--accent);
      color: white;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      border:3px solid var(--h3);
    }

    .modal-close:hover {
      color:#333;
    }

    /* ---------------- RESPONSIVE ---------------- */
@media (max-width:1600px){
 #home-text {
    top:250px;
    right:50px; 
   } 
#home h2{
font-size:350%;
  }
}


  @media (max-width:1440px){
  #home-text {
    top:100px;
    right:50px; 
   } 

   .pulse {
  position: absolute;
  top:70px;
  right:30px;
  }

   #contact {
  background-size:45%;
  background-position: left 200px;
  padding-bottom: 280px;
}


}
  @media (max-width:1280px){
.logo {
  font-size:180%;
}

nav a{
  font-size: 120%;
}


section  h2 {
    padding-top: 180px;
  }
 #contact {
  background-size:40%;

}
  }

 @media (max-width: 1032px) {
    #home{
    background-position-x: 0px;
    background-size:180%;
  }

#home-text{
    top: 700px;
    width:500px;
  }

}
   

@media (max-width: 834px) {

  section h2{
    background-size: 10vh;
    padding-top:120px;
  }
  #home-text{
    top: 700px;
    width:500px;
  }
 #home-text h1{
  font-size: 400%;
  }

  #home-text h2{
    font-size:320%;
  }

  #services{
    background-size: 60%;
    background-position: 430px bottom;
  }
  .preisliste-container{
    width:70%;
    margin-left: -50px;
  }
  #contact {
    background-position: -150px 100px;
    background-size: 60%;
  }
  #ende h2{
font-size: 300%;
margin-top:-300px;
  }
}
@media (max-width: 768px) {
#home{
    background-position-x: -150px !important;
  }
 #home-text{
    top: 550px;
    width:400px;
  }

   #home-text h2{
    font-size:280%;
  }

.pulse {
  top:100px;
  right:50px;
 
}
}
@media (max-width: 480px) {
#home{
    background-position-x: -50px !important;
background-size:200%;
  }

 #home-text{
    top: 490px;
    left:0px;
  }
  section h2{
    background-size: 15vh;
    padding-top:270px;
    padding-left: 0px;
  }
  #services{
    background-size: 90%;
    background-position: 100px bottom;
  }
#contact {
    background-position: -100px 300px;
    background-size: 70%;
  }

}
@media (max-width: 430px) {
 #home-text{
    top: 550px;
  }


}


@media (max-width:384px){
 #home-text{
    top: 480px;
   }
 #home-text h1{
  font-size: 350%;
  }

  #home-text h2{
    font-size:200%;
  }

  section h2 {
      padding-top:170px;
      padding-left:0px;
      background-size:18vh;
}
}

@media (max-width:360px){
 #ende h2{
font-size: 220%;
margin-top:-300px;
  }
}

@media (max-width:320px){

  body{
    font-size:90%;
  }
 #home-text{
    top: 250px;
   }
#services{
  background-size: 50%;
}

 
#contact{
  background-size: 50%;
  background-position: -50px 500px;
}

 .pulse {
    top:80px;
  right:30px;
  font-size:16px;
  padding:5px 3px;
  width:80px;
  
} 
 section h2 {
      padding-top:100px;
      padding-left:0px;
      background-size:18vh;
}
#ende h2{
  font-size:150%;
}

.mobile-nav{
 top: 0px;
}
}