/* Hintergrundbild */
.backgroundEA {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/bg-abteilung1.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.backgroundJF {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-abteilung2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.backgroundKF {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-abteilung3.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
  background-attachment: fixed;
  background-repeat: no-repeat;
}


.backgroundBlank {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    z-index: -1;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Grundlayout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  min-height: 100vh;
}

.page-wrapper {
  padding: 2rem;
}

/* Überschrift */
header h1 {
  text-align: center;
  background: rgba(217, 25, 32, 0.8);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.bg-balken {
    width: 100%;
    height: 60px;
    margin-top: 40px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 8.3);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.83) 40%, rgba(255, 255, 255, 0) 100%);
    filter: blur(3px);
}

.ueberschrift {
    position: relative;
    width: 95%;
    margin: 0 auto;
    padding-left: 10px;
    padding-bottom: 50px;
}

.sharp-container {
    position: absolute;
    top: -10px;
    left: 0%;
    right: 0%;
}


.inhalts-container {
    /* Richtet Logo und Text nebeneinander aus */
    display: flex;
    align-items: center;
}

/* 3. Die Stile für Logo und Überschrift bleiben gleich */
.logo {
    height: 80px;
    margin-right: 20px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    /* Wichtig, damit das Logo nicht schrumpft */
    /*flex-shrink: 0;*/
}

.logoSupport {
    height: 80px;
    margin-right: 20px;
	margin-left: -23px;
    /*box-shadow: 2px 2px 6px rgba(0,0,0,0.5);*/
    /* Wichtig, damit das Logo nicht schrumpft */
    /*flex-shrink: 0;*/
}


.headline {
    font-size: 2.5em;
    color: rgba(217, 25, 32, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    /*white-space: nowrap;*/
	
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
} 

.headlineWhite {
    font-size: 2.0em;
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    /*white-space: nowrap;*/
	padding-top:1rem; 
	padding-bottom:1rem; 
	padding-left:1rem;
	margin-left:1.5rem;
	margin-right:1.5rem;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	
	  /*width:100%;*/
	  background-color:rgba(217, 25, 32, .8);
	  border-radius: 1rem;


} 

.infotext {
/*    font-size: 2.5em;*/
  	
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	
	background: rgba(255, 255, 255, 0.8);
	color: #000;
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	
	margin-bottom: 1.5rem;
}




/* Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Kachel für jede JF */
.jf-tile {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  /*transition: transform 0.2s ease;*/
  transition: background-color 0.3s ease, color 0.3s ease;
}


.jf-tile a {
  color: inherit;
  text-decoration: none;
  
}

.jf-tile a:hover {
  text-decoration: underline;
}

.jf-tile:hover {
  /*transform: scale(1.02);*/
  background-color:  rgba(217, 25, 32, 0.8); /* Feuerwehr-Rot */
  color: white;              /* Text in Weiß für Kontrast */
  cursor: pointer;
}

.jf-tile h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.jf-tile a {
  color: #0044aa;
  text-decoration: none;
}

.jf-tile a:hover {
  text-decoration: underline;
}


footer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1;
}

.footerLink {
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  padding:0.5rem;
  padding-right:1.5rem;
}

.footerLink:hover {
  text-decoration: underline;
}


/*simple tile*/
/* Kachel für jede JF */
.simple-tile {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


.simple-tile a {
    color: inherit;
    text-decoration: none;
}

.simple-tile a:hover {
    text-decoration: underline;
}

.simple-tile h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.simple-tile a {
    color: #0044aa;
    text-decoration: none;
}

.simple-tile a:hover {
    text-decoration: underline;
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center; align-items: center;
  
  z-index: 1000;
}

.modal-overlay.show { display: flex; }
.modal-content {
  background: #f9f9f9;;
  /*padding: 2rem;*/
  max-width: 500px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
    
	border-radius: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: black;
}

iframe {
  width: 100%;
  height: 60vh;
  border: none;

}


/* Responsive Verbesserung */
@media (max-width: 600px) {
    .modal-content { width: 95%; }
  
  .headline{
	  white-space: nowrap;
	  font-size:1.6rem;
  }
  
    .headlineWhite{
	  white-space: nowrap;
	  font-size:1.4rem;
  }
}
