/*
Theme Name: FYNE Final Theme
Author: FYNE Consulting
Version: 1.0
*/


h4 {
       font-family: helvetica;

}

a {
  text-decoration: none !important;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.datenschutz-impressum {
	color: #fff;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: center;
	margin:30px 0;
}

.legal-link {
    cursor: pointer;
    color: #fff;
    text-decoration: underline;
    margin: 0 10px;
    font-family: sans-serif;
}
  

.services-container {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

.services-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}



.footer-inner-left {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-family: sans-serif;
}

.footer-legal-links {
  text-align: center;
  margin-top: 40px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #000;
}


.legal-content {
  max-height: 80vh;
  overflow: hidden;
}

.legal-text-scrollable {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Nur beim Hover soll gescrollt werden */
.legal-text-scrollable {
  scrollbar-width: thin;
  scrollbar-color: #888 #333;
  overflow-y: hidden;
}

.legal-text-scrollable:hover {
  overflow-y: auto;
}

html {
    scroll-behavior: smooth;
      margin:0!important;
  }
  
  body {
      background-color: #000;
	  margin:0;
  
  }
  
  .header-video {
      width: 100%;
      height: auto;
  }
  
  .fyne-logo {
  position: absolute;
  }
  
  .header-container {
      display: flex;
          flex-direction: column;
          width: 100%;
          align-items: center;
          justify-content: center;
          margin-bottom: 150px;
  }
  
  .scrolldown-animation {
      width: 40px;
      position: absolute;
      top: 36%;
  }
  
  h1 {
      color: #fff;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 55px;
	  max-width:80%;
      margin-bottom: 24px;
  }
  
  h2 {
      color: #fff;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 50px;
  }
  
  p {
      color: #fff;
      font-family: Arial, Helvetica, sans-serif; 
      line-height: 35px;
      font-size: 20px;
  }
  
  .introduction-container {
      display: flex;
      flex-direction: column;
      text-align: center;
      width: 100%;
      justify-content: center;
      align-items: center;
      margin-bottom: 250px;
  }
  
  .introduction-copy {
      width: 80%;
      max-width: 1700px;
      margin-bottom: 60px;
  }
  
  .cta-introduction {
    text-decoration: none; /* Unterstrich entfernen */
    display: inline-block; /* wichtig für padding & hover */
    background: linear-gradient(90deg, rgba(0, 60, 97, 1) 0%, rgba(154, 110, 18, 1) 100%);
    border-radius: 105px;
    width: 230px;
    padding: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }
  
  .cta-introduction p {
    color: #fff;
    font-weight: bold;
    margin: 0;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .cta-introduction:hover {
    opacity: 0.85; /* Gleicher Hover-Effekt wie beim Formular-Button */
  }
  
  .services-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      margin-bottom: 250px;
  }
  
    #service-text h3 {
      font-size: 22px;
      margin-bottom: 10px;
    }
    
    #service-text p {
      font-size: 16px;
      line-height: 1.6;
    }
  
  .services-bg {
      width: 95%;
      border-radius: 2vw;
  }
  
  .services-headline {
      position: absolute;
      transform: translateY(-18vw);
  }
  
      .services-item {
          height: 180px;
          width: 180px;
          background: rgba(0, 0, 0, 0.56);
          border-radius: 500px;
          box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
          backdrop-filter: blur(10.1px);
          -webkit-backdrop-filter: blur(10.1px);
          border: 1px solid rgba(0, 0, 0, 0.1);  
          cursor: pointer;
          transition: transform 0.3s ease;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: 500;
          text-align: center;
          padding: 10px;
          font-family: helvetica;
          color: #fff;
      }
  
  
  /* Hover Effekt */
  .services-item:hover {
      transform: scale(1.1);
  }
  
  .services-container-inner {
      position: absolute;
      display: flex;
      flex-direction: row;
      width: 94%;
      justify-content: space-around;
      max-width: 2000px;
  }
  
  /* Modal Basis */
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      right:0;
      bottom:0;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* Modal sichtbar */
  .modal.active {
      opacity: 1;
      visibility: visible;
  }
  
  .modal-content {
    background: rgba(0, 0, 0, 0.56);
    border-radius: 3vw;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.1px);
    -webkit-backdrop-filter: blur(10.1px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    width: 960px;
    max-height: 60vh;      /* maximale Höhe, z. B. 80% der Bildschirmhöhe */
    overflow-y: scroll;      /* Scrollbar, wenn Inhalt größer */
    text-align: left;      /* optional: linksbündig für bessere Lesbarkeit */
    transform: scale(0.8);
    transition: transform 0.3s ease;

  }
  
  /* Animation Modal-Content */
  .modal.active .modal-content {
      transform: scale(1);
  }
  
  .close-btn {
      color: #fff;
      position: absolute;
      top: 10px;
      right: 15px;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
  }
  
  .methods-video {
      width: 100%;
      height: auto;
  }
  
  .methods-container {
      display: flex;
          flex-direction: column;
          width: 100%;
          align-items: center;
          justify-content: center;
          margin-bottom: 250px;
  }
  
  .methods-text-container {
      left: 8%;
      position: absolute;
      width: 620px;
  }
  
  .carousel-wrapper {
      overflow: hidden;
      width: 100%;
      padding: 20px 0;
    }
  
    .carousel-track {
      display: flex;
      width: max-content;
      animation: scroll 30s linear infinite;
    }
  

  
    .logo {
      height: 80px;
      margin: 0 40px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }
  
    .logo img {
      height: 100%;
      width: auto;
      object-fit: contain;
      filter: grayscale(100%);
      transition: filter 0.3s;
    }
  
    .logo img:hover {
      filter: grayscale(0%);
    }
  
    @keyframes scroll {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }
  
    .reference-container {
      display: flex;
      flex-direction: column;
      text-align: center;
      width: 100%;
      justify-content: center;
      align-items: center;
      margin-bottom: 300px;
  }
  
  .contact-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 40px;
  justify-content: center;
  align-items: start;
}

.contact-info {
  width: 500px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 510px;
}

/* Contact Form 7 Anpassungen */
.contact-form .wpcf7-form-control {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  width: 100%;
  border-radius: 100px;
  border: none;
  padding: 10px;
  margin-bottom: 10px;
}

.contact-form textarea.wpcf7-form-control {
  height: 200px;
  border-radius: 15px;
  resize: vertical;
}

.contact-form > * {
  margin-top: 0; /* Entfernt ungewollten vertikalen Abstand zwischen den Blöcken */
}

/* Zwei Felder in einer Reihe */
.contact-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.contact-row {
  margin-bottom: 10px; /* Gleichmäßiger Abstand zur E-Mail-Zeile */
}

.contact-row p {
	width:100%;
	margin:0;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #707070;
    background-color: #707070;
    border-radius: 35px;
    font-family: sans-serif;
    color: #fff;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0em 0em 2em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #c75858;
    background-color: #c75858;
    border-radius: 35px;
    font-family: sans-serif;
    color: #fff;
}

/* Optional: spezielle Breitenzuweisung */
.contact-row .wpcf7-form-control {
  width: 100%;
}

.contact-button,
.contact-form input[type="submit"] {
  width: 140px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 100px;
  background: linear-gradient(90deg, #a2853f 0%, #204b5e 100%);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.contact-button:hover,
.contact-form input[type="submit"]:hover {
  opacity: 0.85;
}

.contact-title {
  margin-bottom: 0;
  margin-top: 0;
}
  
  .footer {
    width: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    padding: 30px 0 0;
  }
  
  .footer-inner {
    background: white;
    border-radius: 50px;
    padding: 60px 80px;
    display: flex
  ;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    flex-wrap: wrap;
    margin: 5% 5% 2% 5%;
  }
  
  .footer-inner svg {
    max-width: 450px;
    height: auto;
    width: 40px;
  }
  
  .contact-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: right;
  }
  
  .contact-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #000;
  }
  
  .contact-list-item p {
    margin: 0;
    line-height: 1.4;
    color: #000;
  }
  
  .footer-inner img {
    width: 350px;
  }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Inhalt des Modals */
.legal-modal-content {
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.legal-modal-content h3 {
  margin-top: 0;
  font-size: 28px;
  font-family: Arial, sans-serif;
}

.legal-modal-content p {
  font-size: 16px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* Schließen-Button oben rechts */
.legal-close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  color: #fff;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.legal-close-btn:hover {
  opacity: 0.7;
}

.introduction-container {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

.intro-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Anpassungen für kleinere Bildschirme */
@media only screen and (max-width: 768px) {
  .legal-modal-content {
    width: 90%;
    padding: 20px;
    font-size: 15px;
  }

  .legal-modal-content h3 {
    font-size: 22px;
  }

  .legal-modal-content p {
    font-size: 14px;
  }
}



/* ===== Responsive Design für Mobile-Geräte (bis 768px) ===== */
@media only screen and (max-width: 768px) {

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .fyne-logo {
    position: absolute;
    width: 75%;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
  }

  .introduction-copy {
        width: 90%;
        max-width: 1700px;
        margin-bottom: 60px;
        font-size: 15px;
        text-align: center;
  }

  .services-headline {
    position: absolute;
    transform: translateY(-63vw);
    text-align: center;
    font-size: 34px;
  }

  .services-container-inner {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-content: space-around;
    max-width: 2000px;
    align-items: center;
    gap: 26px;
    top: 17%;
  }

  .services-item {
    height: 63px;
    width: 267px;
    background: rgba(0, 0, 0, 0.56);
    border-radius: 500px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.1px);
    -webkit-backdrop-filter: blur(10.1px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    font-family: helvetica;
    color: #fff;
  }
	
	#service-text p {
    font-size: 15px;
    line-height: 1.6;
}
	
	h1 {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 35px;
    margin-bottom: 24px;
}
	
	p {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 28px;
    font-size: 20px;
}
	
	.introduction-container {
    display: flex
;
    flex-direction: column;
    text-align: center;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-bottom: 150px;
}
	
	  .modal-content {
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
  }

  #service-text, 
  #legal-text {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
    color: white;
  }

  #service-text:hover,
  #legal-text:hover {
    overflow-y: auto;
  }
	

  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
  }
	
	h2 {
		font-size:34px;
		text-align:center;
	}
	

	
    .methods-text-container {
        left: 0%;
        position: absolute;
        width: 100%;
        text-align: center;
        display: flex
;
        flex-direction: column;
        align-items: center;
    }
	
	
	.methods-text-container p {
		
	}
	
	.services-container {
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 100px;
}
	
	.contact-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px;
    justify-content: center;
    align-items: start;
}
	
	.contact-info {
    width: 90%;
    text-align: center;
    margin: 0 auto;
}
	
	.contact-description{
		font-size:15px;
	}
	
	.contact-form > * {
    margin-top: 0;
    width: 90%;
}
	
	.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}
	
	.footer-inner {
    background: white;
    border-radius: 40px;
    padding: 35px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 550px;
    width: 100%;
    flex-wrap: wrap;
    margin: 2% 2% 2% 2%;
}
	
.footer-inner img {
    width: 80%;
	margin-bottom:50px;
}
	
	.footer {
		padding:30px 0;
	}
	
	.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: right;
}
	
	.carousel-track {
    display: flex
;
    width: max-content;
    animation: scroll 40s linear infinite;
}
	
	.reference-container {
    display: flex
;
    flex-direction: column;
    text-align: center;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-bottom: 150px;
}
	
	.methods-container {
    display: flex
;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}
	




  .services-item {
    width: min(90vw, 320px);  /* nie breiter als Viewport */
    max-width: 100%;          /* zusätzliche Sicherheit */
  }

  /* 4) Modal: innen scrollen, außen niemals horizontal */
  .modal { overflow-x: hidden; }
  .modal-content {
    width: 92vw;          /* statt fixer 960px in Mobile – du hast schon 90% */
    max-width: 100%;
    overflow: hidden;     /* verhindert Außen-Scrollbars */
  }

	#methods-header {
		width:80%;
	}
	
	  #service-text {
    overflow-x: hidden;        /* niemals horizontal scrollen */
    overflow-wrap: anywhere;   /* lange Begriffe umbrechen */
    word-break: break-word;    /* Fallback */
    max-width: 100%;
  }
  #service-text * {
    max-width: 100%;           /* Kinder können nicht breiter werden */
  }
  .modal-content {
    width: 92vw;               /* sicher innerhalb des Viewports */
    max-width: 100%;
    overflow-x: hidden;        /* keine horizontale Scrollbar am Modal */
  }

	
	
}


