:root {
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --accent: #0ea5a4;       /* Nachhaltiges Grün */
    --accent-dark: #0369a1;  /* Industrieblau */
    --accent-soft: rgba(14,165,164,0.15);
	--gruen: #7EC244;;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

/* ================= HEADER ================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

nav a {
    margin-left: 32px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }

.img_logo{height:50px;margin-bottom:-15px;}
/* ================= VIDEO HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
	
}

/* Video */
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Fallback Image */
.hero .fallback {
    position: absolute;
    inset: 0;
    background: url("fallback.png") center / cover no-repeat;
    z-index: -3;
}

/* Overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,23,42,0.55),
        rgba(15,23,42,0.9)
    );
    z-index: -1;
}

.hero-content {
	width:100%;
    max-width: 900px;
    padding: 0 24px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.hero button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    padding: 18px 36px;
    border-radius: 999px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero button:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* ================= SECTIONS ================= */
section {
    max-width: 1200px;
    margin: auto;
    padding: 32px 32px;
}

/* ================= CARDS ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.card {
    background: white;
    padding: 48px;
    /*border-radius: 24px;*/
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 90px rgba(0,0,0,0.12);
}

.card:hover::before { opacity: 1; }

/* ================= CONTACT ================= */
#kontakt {
    background: #6D6E72;
	color:white;
    /*border-radius: 32px;*/
    padding: 90px 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

input, textarea {
    margin-bottom: 20px;
    padding: 18px;
    /*border-radius: 14px;*/
    border: 1px solid #ddd;
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea { min-height: 140px; }

button[type="submit"] {
    background: var(--gruen);
    color: white;
    border: none;
    padding: 18px;
    /*border-radius: 14px;*/
    font-size: 16px;
    cursor: pointer;
}

/* ================= FOOTER ================= */
footer {
    margin-top: 140px;
    padding: 40px;
    text-align: center;
    color: var(--gray);
}

footer a {
    color: var(--gray);
    margin: 0 12px;
    text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MOBILE FALLBACK ================= */
@media (max-width: 768px),
(prefers-reduced-motion: reduce) {
    .hero video {
        display: none;
    }
}



/* Wortwechsel Hero */
  .word-container {
    position: relative;
    width: 100%;       /* optional, anpassen */
    height: 100px;       /* optional, Höhe des Containers */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: display;    /* damit ausblendende Wörter nicht stören */
    text-align: center;
  }

  .word {
    position: absolute;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.8s ease;
    font-size: 80px;
  }

  .word.show {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

.loesungen{margin-left:200px;font-size:20px;}
.vmwm{font-size: 80px;color:var(--gruen);font-weight:normal;}

@media (max-width: 768px){
    .word{font-size: 40px;}
	.loesungen{margin-left:0;}
	/*nav{display:none;}*/

	  nav {
		display: flex;
		gap: 15px;
		flex-direction: column;
		align-items: flex-start;
        line-height:1;
	  }
      
      .vmwm{font-size: 60px;color:var(--gruen);font-weight:normal;}

}


/* Slider */

    .slider {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      /*border: 2px solid #ddd;*/
      /*border-radius: 12px;*/
    }

    .slides {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }

    .slides img {
      width: 33.3333%;
	  /*width:300px;*/
      flex-shrink: 0;
      height: 350px;
      object-fit: cover;
    }

	@media (max-width: 600px) {
	  .slides img {
		  width: 50%;
		  flex-shrink: 0;
		  height: 250px;
		  object-fit: cover;
		}
	}



/* Sonstiges */


.table_kontakt {
	width:100%;
}
.table_kontakt td{
	vertical-align:top;
	padding:3px;
	text-align:left;
}

#ueber{
	 background: white;
	 color:black;
	 font-size:20px;
}

#ueber, #leistungen, #kontakt {
  scroll-margin-top: 110px;
}



.container {
  display: flex;           /* nebeneinander */
  gap: 20px;               /* Abstand zwischen den Boxen */
  flex-wrap: wrap;         /* falls Platz nicht reicht, umbrechen */
}

.box {
  flex: 1;                 /* gleiche Breite */
  padding: 20px;
  /*
  background: #f0f0f0;
  border: 1px solid #ccc;
  */
}

.close-btn{
	background:var(--accent-dark);
}


/* Mobile */
@media (max-width: 600px) {
  .container {
    flex-direction: column; /* untereinander */
  }
}








/* Modal */


  .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      padding: 20px;
    }

    /* Aktiv */
    .overlay.active {
      display: flex;
    }

    /* Modal */
    .modal {
      background: white;
      width: 800px;
      max-width: 95%;
      max-height: 80vh;          /* wichtig: begrenzt Höhe */
      /*border-radius: 12px;*/
      box-shadow: 0px 10px 25px rgba(0,0,0,0.3);

      transform: scale(0.5);
      opacity: 0;
      transition: all 0.3s ease;

      display: flex;
      flex-direction: column;    /* wichtig: Inhalt + Button sauber */
    }

    /* Zoom Effekt */
    .overlay.active .modal {
      transform: scale(1);
      opacity: 1;
    }

    /* Modal Inhalt scrollt */
    .modal-content {
      padding: 20px;
      overflow-y: auto;          /* scrollt */
      flex: 1;                   /* nimmt freien Platz ein */
    }

    /* Footer bleibt unten sichtbar */
    .modal-footer {
      padding: 15px;
      border-top: 1px solid #ddd;
      text-align: center;
      background: #f9f9f9;
      /*border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;*/
    }

    button {
      padding: 10px 15px;
      border: none;
      /*border-radius: 8px;*/
      cursor: pointer;
      background: crimson;
      color: white;
      font-size: 16px;
    }

    button:hover {
      background: darkred;
    }
	
	
/* Line Slide in */

	.line {
	  opacity: 0;
	  transform: translateX(-40px);
	  animation: slideIn 0.7s ease-out forwards;
	}

	.line:nth-child(1) { animation-delay: 0.0s; }
	.line:nth-child(2) { animation-delay: 0.2s; }
	.line:nth-child(3) { animation-delay: 0.4s; }
	.line:nth-child(4) { animation-delay: 0.6s; }
	.line:nth-child(5) { animation-delay: 0.8s; }
	.line:nth-child(6) { animation-delay: 1.0s; }
	.line:nth-child(7) { animation-delay: 1.2s; }
	.line:nth-child(8) { animation-delay: 1.4s; }
	.line:nth-child(9) { animation-delay: 1.6s; }

	@keyframes slideIn {
	  to {
		opacity: 1;
		transform: translateX(0);
	  }
	}
	
	.slidinfromleft{

	}