/* ==================== Grundlayout ==================== */
body {
    font: 100%/1.3 Verdana, Arial, Helvetica, sans-serif;
    color: black;
    margin: 0;
}

#holder {
    max-width: 100%;
    color: white;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

/* ==================== Header ==================== */
header {
    background-image: url("images/Hintergrund.JPG");
    background-size: cover;
    background-position: center;
    width: 100%;
    text-align: center;
    height: auto;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
}

h2 {
    color: #363636; /* Blau, du kannst hier jede gewünschte Farbe einsetzen */
}

h3 {
    color: #403e3e; /* Pink, ebenfalls anpassbar */
}

.logo-gradient {	/* ========= vom alten index logo, ich denke, ich brauchs nicht mehr, bin mir aber nicht sicher ========== */
    width: 80%;
    max-width: 400px;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: logoFadeIn 1.5s ease-out forwards, gradientFlow 1.5s ease forwards;
    background: linear-gradient(90deg, #0f0f0f, #e0faff, #082ad1);
    background-size: 300% 300%;
    -webkit-mask-image: url("images/KILOGO30.png");
    mask-image: url("images/KILOGO30.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@keyframes logoFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.imgtop {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

/* ==================== Main ==================== */
main {
    flex: 1;
    padding: 0.5rem;
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    color: black !important;
}

/* ==================== Navigation ==================== */
nav {
    text-align: center;
    width: 20%;
    padding: 1rem;
}

nav ul {
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0.5rem 0;
    font-size: 1rem;
    list-style-type: none;
    padding: 0.5rem;
}

nav a {
    display: block;
    background-image: url("images/navhintergrund.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.3em;
    width: 90%;
    font-size: 1rem;
    margin: 0.3rem auto;
    padding: 0.5rem;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #f6e5c3;
    text-decoration: underline;
    cursor: pointer;
}

a { color: blue; }
a:visited { color: blue; }
a[target="_blank"] { color: blue; }

/* Responsiver Video-Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Verhältnis */
  height: 0;
  overflow: hidden;
  border-radius: 12px; /* optional */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* dezenter Schatten */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px; /* optisch passend */
}

/*Kontaktformular-Bereich*/ 
input { 
	padding: 0.1rem; 
	margin: 0.1rem; 
	width:70%; 
	height: 3%; } 
label { 
	color: black; 
	margin: 0.2rem; 
}
section { /*Kontaktformular. Damit die Eingabefelder unter den Begriffen stehen*/ 
	text-align: left;
	margin:0.2rem;
}

em { color: darkblue; }

/* Zentrierung für das Logo */ 
.logo-wrapper { 
	display: flex; 
	justify-content: center; 
	align-items: center;
	margin-top: 2rem; /* optional Abstand nach oben */ 
}
/* Animation für das Logo */
.logo-rotate {
	width: 150px; 
	height: 150px; 
	animation: rotateLogo 1.2s ease-out 1; 
	transform-origin: center; } 
/* Keyframes für Rotation */
@keyframes rotateLogo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==================== Footer ==================== */
footer {
    padding: 0.5rem;
    border-top: 0.1rem solid #877D6C;
    width: 100%;
    color: #736B5E;
}

.grautext { 
	color: grey; 
	text-decoration: underline; }

/* ==================== Tooltips ==================== */
.bildcontainer { 
	width: 100px; 
	height: 100px; 
	position: relative; 
} 

.hoverbild { 
	background-image: url("images/Logo-Kreisrot.png"); 
	background-size: cover; 
	width: 100%; 
	height: 100%; 
	transition: background-image 0.3s ease; 
/* Übergang für den Bildwechsel */ 
} 

.hoverbild:hover { 
	background-image: url("images/Logo-Kreisgruen.png"); /* Bild, das beim Hovern angezeigt wird */ 
} 

.bildcontainer2 { 
	width: 220px; 
	height: 300px; 
	position: relative; 
} 

.hoverbild2 { 
	background-image: url("images/TS.png"); 
	background-size: cover; 
	width: 100%; 
	height: 100%; 
	transition: background-image 0.3s ease; /* Übergang für den Bildwechsel */ 
} 

.hoverbild2:hover { 
	background-image: url("images/about2.png"); /* Bild, das beim Hovern angezeigt wird */ 
}

.bildcontainer3 { 
	width: 220px; 
	height: 300px; 
	position: relative; 
} 

.hoverbild3 { 
	background-image: url("images/Partner.JPG"); 
	background-size: cover; 
	width: 100%; 
	height: 100%; 
	transition: background-image 0.3s ease; /* Übergang für den Bildwechsel */ 
} 

.hoverbild3:hover { 
	background-image: url("images/team2.png"); /* Bild, das beim Hovern angezeigt wird */ 
} 
/*HOVER-EFFEKT der einzelnen BEGRIFFE auf der IndexSeite HOVER-EFFEKT*/ 

.tooltip-container { 
	position: relative; /* Ermöglicht absolute Positionierung der Infobox */ 
	display: inline-block; /* Stellt sicher, dass der Container sich an den Inhalt anpasst */ 
} 

.tooltip-content { 
	visibility: hidden; /* Standardmäßig unsichtbar */ 
	width: 150px; 
	background-color: black; 
	color: #fff; 
	text-align: center; 
	border-radius: 6px; 
	padding: 5px 0; 
	position: absolute; 
	z-index: 1; 
	bottom: 125%; /* Position above the text */ 
	left: 50%; 
	margin-left: -60px; /* Center horizontally */ 
	opacity: 0; 
	transition: opacity 0.3s; /* Smooth transition for visibility */ 
} 

.tooltip-container:hover

.tooltip-content { 
	visibility: visible; /* Show on hover */ 
	opacity: 1; 
} 

.tooltip-text { 
	cursor: pointer; /* Indicate interactivity */ 
}

/* ==================== Dienstleistungsstreifen ==================== */
/* Grundstruktur der Button-Reihen */
.menustreifen, .menustreifen2 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 1rem;
}

/* Einzelne Buttons */
.str_box, .str_box2 {
  flex: 1;
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: flex-grow 0.5s ease, transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* Hover Animation */
.str_box:hover, .str_box2:hover {
  flex-grow: 1.7;
  transform: scale(1.05);
}

/* Text auf Buttons */
.str_box a, .str_box2 a {
    display: flex;                /* Flex, damit wir Inhalte vertikal und horizontal zentrieren können */
    align-items: flex-end;           /* vertikal zentrieren */
    justify-content: center;       /* horizontal zentrieren */
    width: 100%;                   /* volle Breite */
    height: 100%;                  /* volle Höhe */
     padding-bottom: 10px; 
    color: black;
    font-weight: bold;
    text-shadow: 0 0 5px white;
    background: rgba(0,0,0,0.1);  /* optional: halbtransparenter Hintergrund für Lesbarkeit */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-decoration: none;
}

/* Hintergrundbilder für Desktop */
.str_box:nth-child(1) { background-image: url("images/Stift1.JPG"); }
.str_box:nth-child(2) { background-image: url("images/Haken1.JPG"); }
.str_box2:nth-child(1) { background-image: url("images/Globus1.JPG"); }
.str_box2:nth-child(2) { background-image: url("images/Birne1.JPG"); }

#toggle1 {
  display: none;
}
.dialog1 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle1:checked ~ .dialog1 {
  display: block;
}

#toggle2 {
  display: none;
}
.dialog2 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle2:checked ~ .dialog2 {
  display: block;
}

#toggle3 {
  display: none;
}
.dialog3 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle3:checked ~ .dialog3 {
  display: block;
}

#toggle4 {
  display: none;
}
.dialog4 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle4:checked ~ .dialog4 {
  display: block;
}

#toggle5 {
  display: none;
}
.dialog5 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle5:checked ~ .dialog5 {
  display: block;
}

#toggle6 {
  display: none;
}
.dialog6 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle6:checked ~ .dialog6 {
  display: block;
}

#toggle7 {
  display: none;
}
.dialog7 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle7:checked ~ .dialog7 {
  display: block;
}

#toggle8 {
  display: none;
}
.dialog8 {
  display: none;
  border: 2px solid black;
  padding: 0.5em;
  background: #81e0eb;
}
#toggle8:checked ~ .dialog8 {
  display: block;
}

.pluszeichen { 
  display: inline-block;     /* damit width greift */
  width: 50vw;               /* halbe Bildschirmbreite */
  background: #b3feff;       /* kräftiges Blau */
  color: white;
  font-weight: bold;
  text-align: center;        /* Pluszeichen mittig */
  padding: 0.3em 0;          /* etwas Luft oben/unten */
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.pluszeichen:hover {
  background: #81e0eb;       /* dunkler beim Hover */
}

/*kommentare am unteren Ende der Seiten*/
aside { 
	width: 100%;
	background: hsla(0, 100%, 10%, 0.1); 
	padding: 1rem; } aside p 
{ font-variant: Verdana, Arial, Helvetica, sans-serif, small-caps; }

.fullwidth { 
	width: 100%; /* volle Bildschirmbreite */ 
	margin-left: calc(-50vw + 50%); /* gleicht Begrenzung durch zentrierte Seite aus */ 
	background-color: #eee; /* nur Beispiel */ : 2rem; 
	box-sizing: border-box; }

/* ==================== Media Queries ==================== */
@media screen and (max-width: 1024px) {
    #holder { flex-direction: column; }
    nav { width: 100%; padding: 0.5rem; }
    .menustreifen, .menustreifen2 { flex-direction: column; }
    .str_box, .str_box2 { width: 100%; min-height: 150px; line-height: normal; }
}

@media screen and (max-width: 550px) {
    header { flex-direction: column; align-items: center; }
    nav ul { flex-direction: column; }
    nav li { font-size: 0.95rem; padding: 0.2rem; }
    nav a { font-size: 0.95rem; width: 90%; margin: 0.2rem auto; padding: 0.4rem; }
    .tooltip-content { max-width: 180px; font-size: 0.85rem; }
    .menustreifen, .menustreifen2 { flex-direction: column; height: auto; }
    .str_box, .str_box2 { width: 100%; min-height: 100px; line-height: normal; font-size: 1rem; }
    .bildcontainer, .bildcontainer2, .bildcontainer3 { max-width: 180px; margin: 0.8rem auto; }
}