/* Reset */
html, body {
	overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  padding-top: 70px; /* Höhe des Headers ausgleichen */
}

/* Header */
header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Zentrierter Bereich */
.header-container {
  width: 80%;          /* 80% der Breite */
  max-width: 1200px;   /* optional, begrenzt auf großen Screens */
  margin: 0 auto;      /* zentriert */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;     /* nur innen Abstand */

}

header .logo img {
  max-height: 60px;
}

.content {
  width: 80%;         /* nur 80% der Breite */
  max-width: 1200px;   /* optional, begrenzt auf großen Screens */
  margin: 0 auto;     /* mittig ausrichten */
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between; /* verteilt Elemente */
  align-items: center;
  width: 100%;
  max-width: 1200px;  /* optional Begrenzung */
  margin: 0 auto 0 20px;
  border-bottom: 2px solid #ccc; /* Linie nur unter der Navigation */
  padding-bottom: 8px;           /* etwas Abstand zum Text */
}
/* Wenn Jetzt-Bewerben Tab noch dazukommt, kann dieser unter die anderen formatiert werden
.nav-links a:last-child{
	display: block;
	width: 100%;
	text-align: center;
	padding-top: 5px;  
    border-top: 1px solid #ccc;  
}*/

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
}

.burger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Hero */
.hero{
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;  
}

.hero img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%,-50%);
}

/* Intro */
.intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.intro h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.intro .subtitle {
  font-weight: bold;
  margin-bottom: 20px;
}

/* Benefits */
.benefits {
  padding: 40px 20px;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 30px;
}

.benefit-list {
  position: relative;
  padding: 0; /* kein Standard-Padding */
  background: url("bilder/checkliste.png") no-repeat center right;
  background-size: contain; /* Bild füllt den Bereich */
  background-position: center; /* Bild auf die rechte Seite setzen */
  background-repeat: no-repeat;
  min-height: 500px;   /* sorgt dafür, dass das Bild Platz hat */
  display: flex;
  align-items: center; /* Liste vertikal mittig */
}


.benefit-list ul {
  list-style: none;
  font-size: 1.1em;
  margin-top: 130px;
  color: #222; /* Schrift bleibt lesbar */
}

.benefit-list li {
  margin-bottom: 1.5em;
  font-weight: bold;
}

.benefit-img img {
  display: none;
}

  .benefits {
    background: none;   
    height: auto;
    padding: 20px;
    color: #222;        
  }
  
  .benefit-list {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .benefit-img img {
    width: 150px; /* kleineres Bild */
  }


/* Aufgaben */
.aufgaben {
  padding: 40px 20px;
  font-size: 1em;
  
}

.aufgaben-einleitung h2 {
  margin-bottom: 30px;
  font-size: 1em;
  padding-left: 100px;
}

.aufgaben-einleitung p {
  padding-left: 100px;
}

.aufgaben h3 {
  text-decoration: underline;
  font-weight: normal;
  font-size: 1em;
}

.aufgaben-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2em;
}

.aufgaben-list img {
  width: 60px;
  height: auto;
}


/* Einblicke */
.einblicke {
  padding: 20px 20px;
  font-size: 1em;
  
}

.einblicke-einleitung {
  margin-bottom: 30px
}

.einblicke-einleitung h2 {
  font-size: 1em;
  padding-left: 10px;
}

.einblicke-einleitung p {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.einblicke img {
  width: 100px;
  height: auto;
}

.einblicke-bericht-right {
	margin-top: 30px;
	background-color: #F2F2F2;
	margin-left: 80px;
	padding: 5px;
}

.einblicke-bericht-left {
	margin-top: 30px;
	background-color: #F2F2F2;
	margin-right: 80px;
	padding: 5px;
}

.einblicke-bericht-right p, .einblicke-bericht-left p {
	margin-bottom: 10px;
}

.einblicke-frage {
	font-weight: bold;
}

.einblicke-frage img {
	height: 30px;
	width: 30px;
}

/* Infos zur dualen Ausbildung inkl. Betriebe */
.text h3{
	font-size: 1em;
	margin-bottom: 10px;
	margin-top: 30px;
}

.infos {
  /*padding: 20px 20px;*/
  font-size: 1em;
  text-align: center;
  
}

.infos h2 {
  font-size: 1em;
  margin-bottom: 10px;  
}

.infos p{
	margin-bottom: 10px;
}

.allgemeine-infos-mitbild {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.allgemeine-infos-mitbild .text {
	flex: 1 1 55%;
}

.allgemeine-infos-mitbild .textbreiter {
	flex: 1 1 70%;
}

.allgemeine-infos-mitbild .textbreiter ul {
	
	list-style-position: inside;
	margin: 0;
	padding-left: 0;
	margin-bottom: 10px;
}

.allgemeine-infos-mitbild .textbreiter li {
	text-indent: -0.1em;
	padding-left: 0.1em;
}

.allgemeine-infos-mitbild p {
	padding-bottom: 10px;
}

.allgemeine-infos-mitbild .bild {
	flex: 0 0 45%;
}

.allgemeine-infos-mitbild .bildschmaler {
	flex: 0 0 20%;
}

.allgemeine-infos-mitbild .bild img {
  width: 100%;
  height: auto;
  display: block;
}

.allgemeine-infos-mitbild h3 {
  font-size: 1em;
  margin-bottom: 10px;
}

#bildunten{
  display: none;
}


#unternehmens_feed{
	text-align: center;
	margin: 2rem auto;
}

#unternehmens_feed ul {
	text-align:center;
	display: flex;
	justify-content: center;
	gap: 5%;
	list-style: none;
	padding:0;
	margin: 1.5rem 0;
	flex-wrap: wrap;

}

#unternehmens_feed li {
	flex: 1 1 20%;	/*Hier die Breite anpassen, je nach Anzahl an Betrieben, wichtig gap mit beachten*/
	max-width: 20%;
}

#unternehmens_feed img {
	padding: 0;
	margin: 0;	
	width: 100%;  /* Bild passt sich an verfügbaren Raum im li an */
	height: 0 auto;
	display: block;
	transition: transform 0.2s ease;
}


#unternehmens_feed img:hover {
	transform: scale(1.05);
}



/*Blog*/
.text-mit-bildern-grid {
  display: grid;
  grid-template-columns: 20% 1fr 20%; /* Bild – Text – Bild */
  align-items: center;
  gap: 20px;
}

.text-mit-bildern-grid .text{
	text-align: center;
}

.text-mit-bildern-grid h3{
	 font-size: 1em;
	 margin-bottom: 10px;
}

.text-mit-bildern-grid img {
  width: 100%;
  height: auto;
  display: block;
}



/* Blogfeed */

#blog_feed{
	text-align: center;
	margin: 2rem auto;
}

#blog_feed h3{
	text-align: center;
	margin-top: 30px;
	margin-bottom: 30px;
	font-size: 1em;
}

#blog_feed ul {
	text-align:center;
	display: flex;
	justify-content: center;
	gap: 2%;
	list-style: none;
	padding:0;
	margin: 1.5rem 0;
	flex-wrap: wrap;

}

#blog_feed li {
	flex: 1 1 30%;
	max-width: 33%;
}

#blog_feed img {
	padding: 0;
	margin: 0;	
	width: 100%;  /* Bild passt sich an verfügbaren Raum im li an */
	height: auto;
	display: block;
	transition: transform 0.2s ease;
}

#blog_feed .unternehmens-logo {
	padding: 0;
	margin: 0;	
	width: 100%;  /* Bild passt sich an verfügbaren Raum im li an */
	height: auto;
	display: block;
	transition: transform 0.2s ease;
}

#blog_feed img:hover {
	transform: scale(1.05);
}

/* Blogbeiträge */

.blogdatum{
	font-size: 0.8em;
}

.blogeintrag h2{
	font-size: 1.2em;
	padding-top: 10px;
}

.blogeintrag h3{
	font-size: 1em;
	padding-top: 10px;
}

.blogeintrag p{
	padding-top: 5px;
}

.blogeintrag ul{
	list-style-position: inside;
	margin: 0;
	padding-left: 0;
	margin-bottom: 10px;
}

.blogeintrag .blogabschluss{
	padding: 5px 0 30px 0;
	border-top: 2px solid #ccc; /* Linie über dem Abschluss der Navigation */
	margin-top: 5px;
}

/*Datenschutzseite*/
.datenschutz {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.datenschutz h2 {
  font-size: 1em;
  font-weight: bold;
  padding: 5px 0 5px 0;
}

.datenschutz ul {
	list-style-position: inside;
	margin: 0;
	padding-left: 0;
	margin-bottom: 10px;
}



/* Footer */
footer {
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #eee;
}

.footer-logos {
  display: flex;
  justify-content: space-between; /* verteilt Elemente */
  align-items: center;
  width: 100%;
  max-width: 1200px;  /* optional Begrenzung */
  margin: 0 auto;
  margin-bottom: 20px;
}

.footer-logos img {
  height: 100px;
}

.footer-links {
  display: flex;
  justify-content: space-between; /* verteilt Elemente */
  align-items: center;
  width: 100%;
  max-width: 1200px;  /* optional Begrenzung */
  margin: 0 auto;
  font-size: 0.9em;
}

.footer-links a {
  text-decoration: none;
  color: #333;
}

.footer-links img {
  height: 4em;
}

/* Responsive */
@media (max-width: 768px) {
  .content {
    width: 100%;
    padding: 0 15px;  /* kleiner Innenabstand links/rechts */
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;   /* Höhe des fixen Headers */
    right: 20px;
    border: 1px solid #eee;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex; /* wird per JS eingeblendet */
  }

  .hero{
	  height: 200px;
  }


  .allgemeine-infos-mitbild {
    flex-direction: column; /* Bilder unter Text */
    align-items: flex-start; /* optional, Text linksbündig */
  }

  .allgemeine-infos-mitbild .bild,
  .allgemeine-infos-mitbild .bildschmaler {
    width: 100%;        /* Bilder volle Breite */
    margin-top: 15px;   /* Abstand zum Text */
  }
  
  .allgemeine-infos-mitbild .bildschmaler {
	display: none;
  }
  
  #bildunten {
	display: block;
	height: 100px;
	width: auto;
	margin: 0 auto;
  }

  .allgemeine-infos-mitbild .text,
  .allgemeine-infos-mitbild .textbreiter {
    width: 100%;        /* Text volle Breite */
  }

  /* Optional: Bilder responsive machen */
  .allgemeine-infos-mitbild img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* In der Blogübersicht das Logo im Einleitungstext herausnehmen und das Icon nach oben schieben*/
  .text-mit-bildern-grid {
    display: flex; /* Grid auflösen */
	flex-direction: column;
	align-items: center;
  }

  /* Erstes Bild ausblenden */
  .text-mit-bildern-grid img:first-child {
    display: none;
  }

  /* Text zentrieren */
  .text-mit-bildern-grid .text {
    text-align: center;
	order: 2;
    margin: 15px 0 0 0; /* Abstand nach oben */
  }

  /* Zweites Bild unter dem Text */
  .text-mit-bildern-grid img:last-child {
    display: block;
    width: 50%; /* volle Breite */
    height: auto;
	order: 1;
    margin: 0 auto 10px auto; /*Abstand unter dem Bild*/
  }

  /* Ausbildungsbetriebe in der mobilen Ansicht nur zwei nebeneinander */
  #unternehmens_feed li {
	flex: 1 1 33%;	/*Hier die Breite anpassen, je nach Anzahl an Betrieben, wichtig gap mit beachten*/
	max-width: 33%;
	}


  footer {
    flex-direction: column; /* Footer-Bereiche untereinander */
    text-align: center;
  }

  .footer-logos,
  .footer-links {
    flex-direction: column; /* Inhalte in jeder Gruppe untereinander */
    justify-content: center;
  }

  .footer-logos img,
  .footer-links img {
    margin: 10px 0;
  }
  
  .unternehmens-logo {
	display: none;
  }
  
}



