/* === Grundlegendes Layout === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: white;
  color: #333;
}

h1, h2, h3 {
  margin: 0;
  padding: 0.5em;
  padding-left:0;
  color: #2E1B6E;
  
}

.invisibleh {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

    a {
    color:#2E1B6E;      			/* Wunschfarbe für den Linktext */
	text-decoration: none; }		/* Entfernt die Link Unterstreichung */

  a:focus {
  outline: 2px solid #FF8B37;
  outline-offset: 2px;
}


ul li {
  margin-bottom: 0.5em;
  
}

.titelbild-topper-link {					/* Farbe und Stil für die Links am allerobersten Hauptseiten Rand */
  font-family:Verdana,Arial,Helvetica,sans-serif;
  font-weight:bold;
  font-family:verdana;
  color:#2E1B6E;      							
  text-decoration: none;						
  a:focus { outline: none;}
  padding:0.2rem clamp(0.5rem, 4vw, 1.0rem);   /* vertikal / horizontal padding */
  font-size: clamp(0.7rem, 2vw, 1.1rem);
}

/* ======================================================================================= */
/* ======================================================================================= */

													/* === Titelbild / Bannerbild  === */




.bannerimage {
  display: block;
  width: 100%;
  height: auto;
  
}

							


/* ======================================================================================= */
									/*Container ganz oben im Titelbild */
.titelbild-topper {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: transparent;
    display: flex;
    justify-content: center;   /* Horizontal zentrieren */
    align-items: center;
    width: fit-content;        /* Breite passt sich dem Inhalt an */
    margin:0 auto;           /* Zentriert den Container im Elternelement */
	max-width: 100vw;               /* Begrenzung auf Viewport-Breite */
    overflow-x: hidden;
	gap: clamp(0.5rem, 2vw, 1.0rem);

}

.titelbild-topper-center {
	
	gap: clamp(0.5rem, 2vw, 1.5rem);

	background-color:white;
	width:100%;
	max-width: 1040px;
	height:auto;
	justify-content: center;   /* Horizontal zentrieren */
    align-items: center;
	display: flex; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* X, Y, Blur, Farbe */
    border-radius: 2px;                         /* Optional: abgerundete Ecken */
    background: white;                          /* Kontrast zum Schatten */
    flex-wrap:wrap;	
	
	
}

.zeisslogo {
	height: clamp(0.6rem, 2vw, 1.2rem); 
	margin-top: clamp(3px, 0.5vw, 8px);
	padding-right: clamp(0.2rem, 1vw,1.0rem);
}


	/* === Bringt Titelbild in tiefere Ebene === */
.titelbild-wrapper {
  width: 100vw;
  max-height: 850px;
  aspect-ratio:  2048/850;
  
  background-size: cover;
  background-position: center 20px;
  background-repeat: no-repeat;
  margin-top:clamp(1rem, 2vw, 1.5rem);
  
}

/* === Titelbilder für die verschiedenen Seiten === */

.titelbild-wrapper.index {
  background-image: url('stylepics/titel-elch.jpg');
 
}

.titelbild-wrapper.kontaktseite {
  background-image: url('stylepics/titel-kontakt.jpg');
}

.titelbild-wrapper.leistung {
  background-image: url('stylepics/titel-visionpartner.jpg');
}


.titelbild-wrapper.unternehmen{
  background-image: url('stylepics/titel-unternehmen.jpg');
}

.titelbild-wrapper.uv{
  background-image: url('stylepics/titel-uv.jpg');
}

.titelbild-wrapper.drivesafe{
  background-image: url('stylepics/titel-drivesafe.jpg');
}

.titelbild-wrapper.kinder{
  background-image: url('stylepics/titel-kinder.jpg');
}



/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */
/* === Direkt eingebundene Button-Leiste: Online Termin / WhatsApp / Kontakt === */

.big {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(1.5rem, 2vw, 2rem);
  padding: 0.5rem 2rem;
  height: auto;
 background-color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.button_div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  padding: clamp(0.4rem, 1vw, 0.8rem) clamp(1rem, 3vw, 2rem);
  font-weight: bold;
  background-color: #FF8B37;
  color: #2E1B6E;
  border: 2px solid #FF8B37;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.icon_img {
  height: clamp(0.6rem, 1.9vw, 1.5rem);
  vertical-align: middle;
}
/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */



/* ======================================================================================= */

													/* === Container-Wrapper mit Grid === */
.container-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.0rem; 
  margin-top: clamp(-3.5rem, -5vw, -2rem);
  position: relative;
  z-index: 1;
}

/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */
/* ===============================   Boxen   ============================================= */
/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */
													
													
													
/* ==================================  Box  =============================================== */
													
.box {
  display: flex;
  flex-direction: column;
  height: 340px;
  border: 1px solid #ccc;
  grid-column: span 1;
  background: white;
  overflow: hidden;
 
}

/* === Box Grafikbereich === */
.BoxGrafik img {
  width: 100%;
  padding:0;
  max-width:100%;
  height: auto;
  display: block;
  max-height: clamp(80px, 70vw, 160px);
  object-fit: contain;
  background: #eee;
 /* aspect-ratio: attr(data-aspect-ratio); */
}

.DoppelBoxGrafik img {
  width: 100%;
  padding:0;
  max-width:100%;
  height: auto;
  display: block;
  max-height: clamp(80px, 70vw, 160px);
  object-fit: contain;
  background: #eee;
  /* aspect-ratio: attr(data-aspect-ratio); */
}


	/* === Box Textbereiche === */
.BoxText {
  flex: 1 1 auto;
  padding: 0.2rem 0.6rem;
  text-align: justify;
  font-size: clamp(0.9rem, 2vw, 1.4rem); 
  line-height: 1.1;
  transform: scaleY(0.95);
  transform-origin: top;
  overflow: hidden;
  hyphens: auto;
}

.DoppelBoxText {
  flex: 1 1 auto;
  padding: 0.2rem 0.6rem;
  text-align: justify;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  line-height: 1.1;
  transform: scaleY(0.95);
  transform-origin: top;
  overflow: hidden;
  hyphens: auto;
}

/* ================================== Double Box  =============================================== */
.doublebox {
  display: flex;
  flex-direction: column;
  height: 340px; 
  border: 1px solid #ccc;
  grid-column: span 2;
  background: white;
  overflow: hidden;
  
  

}

 

/* ================================== content Box  =============================================== */
.contentbox {
  grid-column: span 4;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  background-color: rgb(255 255 255 / 60%);
}


/*content box Textabschnitte */
   													
.contentbox .section {
  
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #ccc;
  padding-left: clamp(0.2rem, 3vw, 3rem);
  padding-right:clamp(0.2rem, 3vw, 3rem);
  text-align:justify;
  
}

/*content box pics */

.contentpics {
width: clamp(50px, 40vw, 300px);
max-height:300px;
float:left;	
padding-top: clamp(0.2rem, 2vw,0.3rem);
padding-right: clamp(0.5rem, 4vw,1.5rem);
padding-bottom: clamp(0.2rem, 2vw, 0.5rem);
border:none;
}

/* ================================== banner Box  =============================================== */
.bannerbox {
  grid-column: span 4;
  width:100%;
  overflow: hidden;
  background: white;
  border: 1px solid #ccc;
}

.bannerbox img {
  width: 100%;
  height: auto;
  display: block;
}

/* ======================================================================================= */
													/* === Boxen  - Header/Footer  === */
.BoxHeader, .DoppelBoxHeader {
  height: 30px;
  background: #FF8B37;
  padding: 0.1rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  font-size: clamp(0.4rem, 4vw, 0.6rem);
  color:#E7E7E7;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}


.BoxFooter {
  flex: 0 0 auto;
  height: 25px;
  background: #eee;
  padding: 0.1rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  font-size:0.8rem;
  white-space: nowrap;
  overflow:hidden;
  
}

.DoppelBoxFooter {
  flex: 0 0 auto;
  height: 25px;
  background: #eee;
  padding: 0.1rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  font-size:0.8rem;
  white-space: nowrap;
  overflow: hidden;
}
				

			

/* ======================================================================================= */
/* ======================================================================================= */
   													/* === iframe === */
iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  overflow: hidden;
    
}

/* ======================================================================================= */
/* ======================================================================================= */
													/* === Responsive Schriftgrößen === */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .box, .doublebox {
    grid-column: span 2;
	
  }
  
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .box, .doublebox {
    grid-column: span 4;
	
  }

  
}



  

@media screen and (max-width: 480px) {
  .container-wrapper {
    max-width: 100%;
    padding: 0.5rem;
  }
}

@media screen and (max-width: 400px) {
  .button_div {
   font-size: clamp(0.7rem, 1.8vw, 1.1rem); 
   padding: 0.2rem 0.7rem;
   gap: 0.4rem;
  }
}


@media screen and (max-width: 1024px) and (min-width: 769px) {
  .titelbild-topper-link {
    padding: 0.2rem 0.8rem;
    font-size: 0.9rem;
  }
}





*,
*::before,
*::after {
  box-sizing: border-box;
}







/* ======================================================================================= */
/* ======================================================================================= */

													/*Cookie Banner */



.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1020px;
  background-color: #e0e0e0;
  color: #333;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  z-index: 1000;
  max-width: 90vw;               /* Begrenzung auf Viewport-Breite */
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner button {
  background-color: #999;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 20px;
}

.cookie-banner button:hover {
  background-color: #666;
}


/* ======================================================================================= */
/* ======================================================================================= */
/* ======================================================================================= */
/* ========================== Scroll - Top - Button======================================= */



.scroll-top-button {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  background: linear-gradient(145deg, #f0f0f0, #dcdcdc);
  color: #555;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  line-height: 2.8rem;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 999;
  transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-top-button:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

html {
  scroll-behavior: smooth;
}



