/* Allgemein */

hr{
    color: black;
}

body{
    color: black;
    background-color: var(--div-color);
    z-index: 1;
    overflow-x: hidden;
}

h1{
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

section{
    color: black;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

figcaption{
    color: black; font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.btn {
  background-color: var(--accent-color);
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  height: 45px;
  padding: 0px 20px;
  margin-top: 2rem;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.btn:hover,
.btn:focus { 
  background-color: var(--background-color);
}

.btn a{
    color: #fff;
    text-decoration: none;
}


/* Navigation */

nav{
    z-index: 10;
    height: 80px;
    background: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo{
    margin-left: 30px;
    font-family: Arial, Helvetica, sans-serif; font-size: 35px;
    font-variant: small-caps;
    text-decoration: none;
    color: var(--text-color);
}

nav ul{
    height: 100%;
    display: flex; 
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin-right: 200px;
}

nav ul li{
    width: 200px;
    text-align: center;
    position: relative;
    margin-right: 5px;
    padding: 10px;
    z-index: 10;
}

nav li:hover{
    background: var(--accent-color);
}

nav ul li a{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
}

.dropdown{
    z-index: 2;
    height: min-content;
    width: 200px;
    background: var(--background-color);
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 65px;
}

.dropdown li{
    z-index: 2;
    height: 70px;
    width: 100%;
}

.dropdown li a{
    justify-content: flex-start;
    padding-left: 30px;
    text-align: left;
    width: calc(100% - 30px);
}

nav li:hover .dropdown{
    display: flex;
}

.expandable_li{
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle_button{
    width: 30px;
    height: 23px;
    position: absolute;
    top: 25px;
    right: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.bar{
    height: 4px;
    width: 100%;
    background: var(--text-color);
    border-radius: 100px;
}





.hero-section{
    color:#000;
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero h3{
    margin-top: 20px;
    margin-right: 41%;
    font-size: 2rem; font-family: 'Times New Roman', Times, serif;
    margin-bottom: 0.5rem;
} 

.hero .text{
    width: 40%;
    margin-right: 12%;
    line-height: 1.3rem;
}
.hero .text p{
    text-align: justify;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.hero-btn{
    margin-right: 40%;
}

.hero-img{
    position: absolute;
    top: 30px;
    left: 45%;
    width: 100%;
    height: 100%;
    z-index: 4;
}



.ueber-uns-section{
    position: relative;
    margin-top: 4rem;
    background-color: var(--background-color);
    color: #fff;
    padding: 2rem;
}

.ueber-uns-img{
    position: absolute;
    top: -80px;
    left: 100;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.ueber-uns .text{
    width: 40%;
    margin-left: 50%;
    line-height: 1.3rem;
    text-align: left;
    z-index: 5;
    position: relative;
}

.ueber-uns h2{
text-transform: uppercase;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: var(--accent-color) 5px 4px 0;
  margin-bottom: 1.5rem;
}

/* Produkte */

.produkt-section{
    position: relative;
    background-color: var(--darker-background-color);
    color: #fff;
    padding: 4rem;
    text-align: center;
}

.produkt h2{
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: 4px;
}

.features{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature{
    width: 25%;
    background-color: var(--div-color);
    color: #000;
    padding: 20px;
    box-shadow: 0px 0px 0px 10px var(--div-color);
    border: dashed 2px var(--darker-background-color);
}

.kreis {
    background: var(--background-color);
    color: #fff;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0px 0px 0px 5px var(--background-color);
    border: dashed 1px var(--accent-color);
    transition: .4s;
    padding: 5px;
    margin: 30px 40px;
    font-size: 15px;
}

.kreis:hover{
    background: var(--design-color);
    box-shadow: 0px 0px 0px 5px var(--design-color);
    border: dashed 1px var(--background-color);
}


.mehr-erfahren{
    color: var(--design-color);
    text-decoration: none;
    padding-top: 1.5rem;
}



.was-tun-section{
    position: relative;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4rem;
    text-align: center;
}       

.was-tun h2{
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 4rem;
    }

.was-tun-features{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    
.was-tun-feature{
    width: 25%;
    background-color: var(--darker-background-color);
    color: rgb(255, 255, 255);
    padding: 20px;
}

.was-tun-feature h3{
    font-size: 30px;
    margin-bottom: 1.5rem;
}

.was-tun-feature p{
    font-size: 20px;
}

.icon{
    background-color: var(--design-color);
    padding: 5px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: block;
}

/* Kontakt */

.kontakt-section{
    padding-top: 3rem;
    text-align: center;
    background-image: url(../img/background_kontakt.svg);
    background-size: cover;
    padding-bottom: 5rem;
}

.kontakt h2{
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 4px;
    line-height: 1;
    text-shadow: var(--accent-color) 3px 2px 0;
    margin-bottom: 1.5rem;
}

.formular{
    width: 40%;
    margin-left: 30%;
    text-align: left;
    background-color: var(--accent-color);
    padding: 20px;
}

.form-field{
    width: 100%;
}

.formular label{
    font-size: small;
}

.form-btn,
.capbox{
    background-color: var(--div-color);
    color: var(--background-color);
}

.form-btn:hover,
.form-btn:focus { 
  background-color: var(--darker-background-color);
  color: var(--text-color)
}

.capbox{
    padding: 10px;
    width: 350px;
}


.mitarbeiter-section{
    background-color: var(--background-color);
    color: #fff;
    padding: 4rem;
    box-shadow: 0px 0px 0px 20px var(--background-color);
    border-top: dashed 2px var(--div-color);
    border-bottom: dashed 2px var(--div-color);
    margin-bottom: 20px;
}

.mitarbeiter-div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mitarbeiter h2{
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 4rem;
}

.person{
    width: 25%;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px;
    background-color: var(--div-color);
    overflow: hidden;
    position: relative;
    height: 100%;
    margin-left: 10%;
}

.person img{
    width:100%;
    border-radius: 10px 10px 0 0;
}


.person-link{
    width: 40%;
    margin-left: 10%;
}

.ansprechpartner{
    font-size:30px;
    color: var(--design-color);
    font-weight: 600;
    letter-spacing: 3px;
}


.grund-section{
    background-color:var(--accent-color);
    padding: 5rem 2rem;
}

.grund h2{
    text-decoration: underline dashed var(--div-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: 4px;
}


.slides{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide{
    background: var(--div-color);
    color: var(--design-color);
    width: 80%;
    height: 200px;
    display: inline;
    margin-bottom: 4rem;
    margin-left: 2rem;
    padding: 30px;
  }

  .s1 {
    background-color: var(--darker-background-color);
    color: var(--div-color);
  }

  .triangel{
    width: 0;
    height: 0;
    border-top: 130px solid transparent;
    border-left: 100px solid var(--div-color);
    border-bottom: 130px solid transparent;
    display: inline;
    margin-right: 7rem;
    margin-bottom: 4rem;
}

.t1{
    border-left: 100px solid var(--darker-background-color);
}

.slide p{
    font-size: 15px;
    font-weight: 600;
}

.headline{
    font-size: 25px;
}





/*#wave {
    position: relative;
    height: 200px;
    width: 100%;
    background: var(--accent-color)
  }
  
#wave:before {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
    width: 61%;
    height: 250px;
    background-color: #eee;
    right: -5%;
    top: 90px;
    z-index: 3;
}
  
#wave:after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
    width: 61%;
    height: 250px;
    background-color: var(--accent-color);
    left: -5%;
    top: 10px;
    z-index: 2;
} */

.schluss-section{
    background-color: var(--div-color);
    height: 50vh;
    background-image: url(../img/background_schluss.svg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 12rem;
}

.schluss{
    position: relative;
}

.slogan{
    z-index: 5;
    width: 30%;
    margin-left: 70%;
    position: relative;
}

.schluss-img{
    position: absolute;
    top:-200;
    left:80;
    z-index: 4;
    width: 80%;
}


.footer{
    background-color: #244832;
    color: #eee;
    padding: 1rem 3rem;
}

.footer a{
    color: var(--div-color);
    text-decoration: none;
    display: inline;
    margin-right: 2rem;
}

.footerlinks{
    float: right
}


/* Footer Unterseiten */

.info{
    padding: 100px;
}

.info h1{
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.3rem;
    text-decoration: underline;
}


.hero-section-mobile,
    .ueber-uns-section-mobile,
    .produkt-section-mobile,
    .was-tun-section-mobile,
    .kontakt-section-mobile,
    .mitarbeiter-section-mobile,
    .grund-section-mobile,
    .schluss-section-mobile{
        display: none;
    }




:root{
    --background-color: #31533e;
    --darker-background-color: #244832;
    --accent-color: #86a385;
    --text-color: #FFFFFF;
    --design-color: #70bb00;
    --div-color: #eeed;
}
    
*{
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7rem;
}
    


@media (max-width: 1200px){
  .features,
  .was-tun-features,
  .mitarbeiter-div,
  .slides{
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
  }

  .feature,
  .was-tun-feature,
  .person,
  .slide{
    width: 45%;
    min-width: 280px;
    margin: 10px;
  }
  
  .triangel,
  .ueber-uns-img{
  display:none;
  }

	.ueber-uns .text{
	margin-left: 0px;
	width: 80%
	}
}


@media (max-width: 768px){
  nav{
    height: auto;
    padding: 10px 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  nav .logo{
    margin: 4px 8px 6px 8px;
    font-size: 24px;
    line-height: 1.1;
  }

  nav ul{
    margin: 0;
    padding: 0 6px 6px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;                
    gap: 6px 10px;
    justify-content: flex-start;
  }

  nav ul li{
    width: auto;                    
    margin-right: 0;
    padding: 0;
  }

  nav ul li a{
    font-size: 14px;                
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .dropdown{
    position: static;
    top: auto; left: auto;
    width: 100%;
    min-width: unset;
    background: rgba(0,0,0,.1);
    box-shadow: none;
    margin-top: 2px;
  }
  
  .hero-img{
  display:none;
  }
  
  .hero .text{
  margin-left:20%;
  }
}


@media (max-width: 768px){
  html, body{ overflow-x: hidden; }

  
  .hero h3{
    margin-right: 0;
    text-align: center;
  }
  .hero .text{ width: 100%; margin-right: 0; }
  .hero-btn{ margin-right: 0; }
  .hero-img{ position: static; width: 100%; height: auto; z-index: 1; }

  .ueber-uns .text{ width: 100%; margin-left: 0; }

  .feature{ width: 100%; box-shadow: 0 0 0 10px var(--div-color); }
  .kreis{ margin: 20px auto; }

  .was-tun-feature{ width: 100%; }

  .formular{ width: 100%; margin-left: 0; }

  
  .mitarbeiter-section{ padding: 2rem 1rem; }
  .mitarbeiter-div{ flex-direction: column; gap: 18px; align-items: stretch; }
  .person{ width: 100%; margin-left: 0; max-width: 520px; margin-inline: auto; }
  .ansprechpartner{
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 14px 0 8px;
    word-break: normal;
    overflow-wrap: anywhere;    
    text-align: left;
    color: var(--design-color);
  }
  .person-link{
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;                    
  }
  .person-link a{
    display: inline-block;
    text-decoration: underline;
    word-break: break-word;      
  }

  
  .slide{ width: 100%; margin-left: 0; display: block; min-height: 180px; }
  .triangel{
    margin: 0 auto 1rem auto;
    border-top-width: 90px; border-left-width: 70px; border-bottom-width: 90px;
  }

  
  .schluss-section{ padding-top: 4rem; }
  .slogan{ width: 100%; margin-left: 0; }
  .schluss-img{ display: none; }
}


@media (max-width: 576px){
  h1{ font-size: 1.4rem; }
  .was-tun-feature h3{ font-size: 1.25rem; }
  .btn, .form-btn, .capbox{ width: 100%; }

  .footer, .footerlinks{ float: none; }
  .footer{ text-align: center; }
  .footer a{ display: block; margin: .25rem 0; }

  .kreis{ width: 180px; height: 180px; }
}



#chat-button-wrapper{
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 100000;
}
#chat-button{ display:flex; align-items:center; justify-content:center; }
#chat-button img{
  width:72px; height:72px; border-radius:50%; background:#00BCD4; display:block;
}


.chat-popup{
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 72px + 10px);
  width: 435px;
  max-width: min(94vw, 435px);
  height: 600px;
  max-height: min(80vh, 600px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 14px;
  background: #cccccc;
  border: 1px solid #2e4d70;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(5px);
  overflow: hidden;
  z-index: 99999;
  isolation: isolate;
  contain: layout style;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
.chat-popup *, .chat-popup *::before, .chat-popup *::after{ box-sizing: border-box; max-width: 100%; }


.chat-header{
  display:flex; align-items:center; justify-content:space-between;
  background-color:#b8b0e6; padding:12px 14px; border-bottom:1px solid #fff;
}
.chat-header-left{ display:flex; align-items:center; gap:10px; }
.logo{ height:32px; width:auto; flex:0 0 auto; }
.chat-title{ display:flex; flex-direction:column; margin:0; font-size:18px; color:#000; }
.chat-subtitle{ font-size:12px; color:#243b6b; margin-top:2px; }
.close-btn{ background:none; border:none; font-size:22px; font-weight:bold; cursor:pointer; color:#1f2937; padding:4px 6px; border-radius:6px; }
.close-btn:hover{ background:rgba(0,0,0,.06); }


.chat-box{
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:16px 14px; background:#dedde6;
  display:flex; flex-direction:column; gap:10px;
}


.chat-hint{
  position:absolute; right:12px; bottom:calc(100% + 10px);
  background:#eae7fb; color:#0f172a; padding:10px 14px; border-radius:20px;
  box-shadow:0 4px 12px rgba(0,0,0,.15); font-size:14px; border:1px solid #223851;
  white-space:nowrap; pointer-events:none; animation:fadeOut 20s forwards;
}
@keyframes fadeOut{ 0%,20%,50%,90%{opacity:1} 100%{opacity:0; visibility:hidden} }


.user-message, .bot-message{
  max-width:75%; padding:10px 12px; border-radius:12px;
  word-break:break-word; overflow-wrap:anywhere; white-space:pre-wrap;
  box-shadow:0 1px 2px rgba(0,0,0,.06); font-size:16px;
}
.user-message{ align-self:flex-end; background:#006eff; color:#fff; }
.bot-message{ align-self:flex-start; background:#fff; color:#111827; }


.chat-input-container{
  display:grid; grid-template-columns:1fr auto; gap:10px;
  padding:10px; background:#c4bee8; border-top:1px solid #d3dae4;
}
.chat-input-container input{
  min-width:0; padding:10px 12px; font-size:16px; border:1px solid #cbd5e1; border-radius:8px; background:#fff;
}
.chat-input-container button{
  padding:10px 14px; background:#2563eb; color:#fff; font-size:16px; border:none; border-radius:8px; cursor:pointer;
}
.chat-input-container button:hover{ background:#1e40af; }
.end-btn{ background:#ef4444; color:#fff; border:none; padding:6px 10px; border-radius:8px; font-size:14px; cursor:pointer; }
.end-btn:hover{ background:#dc2626; }
.hidden{ display:none !important; }
.chat-popup iframe{ width:100%; height:100%; display:block; border:0; }


.chatbot,
.chatbot-widget,
#chatbot,
#chatbot-widget,
.chatbot-container,
#chatbot-container,
.chat-widget,
#chat-widget{
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 99998;
  width: min(380px, 92vw);
  max-height: min(75vh, 640px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  overflow: hidden;
}


@media (max-width: 992px){
  #chat-button img{ width:60px; height:60px; }
  .chat-popup{
    width: min(420px, 94vw);
    height: 70vh; max-height: 75vh;
    bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 60px + 10px);
  }
}

@media (max-width: 576px){
  #chat-button img{ width:56px; height:56px; }
  .chat-popup{
    width: calc(100vw - 24px);
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 56px + 8px);
    border-radius: 12px;
    height: 72vh; max-height: 78vh;
  }
  .chat-header{ padding:10px; }
  .chat-title{ font-size:16px; }
  .chat-box{ padding:12px; }
  .chat-input-container{ padding:8px; gap:8px; }
  .user-message, .bot-message{ font-size:15px; }
}
