/* Allgemeine Einstellungen fÃ¼r grosse Bildschirme */
html {
      font-size: 16px; /* 1rem entspricht jetzt 14px */
      scroll-behavior: smooth; /* Fügt ein sanftes Scrollen hinzu */
}
:target {
    scroll-margin-top: 0; /* Stellt sicher, dass der Bereich zuoberst angezeigt wird */
}
* {
    box-sizing: border-box;  /* maacht das die Ränder (padding) auch in die Breite mit eingerechnet werden */
} 
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: transparent;
    color: #ff4500; 
    padding: 1.5rem;
    padding-bottom: 0.2rem;
    width: 100%;
    text-align: center;
    justify-content: center; /* Zentriert den Text horizontal */
    align-items: center;     /* Zentriert den Text vertikal */
    position: relative;
} 
 header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bilder/Tit_feuer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;   
}
header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #ff4500; /* Feuerrot */
}

header p {
    font-style: italic;
    margin: 0.5rem 0;
    font-weight: bold;
    color: #ff4500; /* Feuerrot */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    display: inline;
    margin: 0 10px;
    position: relative;
}
nav ul li a {
    color: #ff4500;      /* Feuerrot */
    text-decoration: none;
    font-weight: bold;   /* steht für Wert 700 */   
}
nav ul li a:hover {
    background-color: #transparent;
}
/* Submenü ausblenden */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #494949;
    padding: 0;
    margin: 0;
    list-style: disc; /* Aktiviert Bullet Points für Submenü */
    z-index: 1000;
    min-width: 200px; /* Mindestbreite des Dropdown-Menüs */
    white-space: nowrap; /* Verhindert Zeilenumbrüche */    
}
.dropdown-menu li {
    display: block; /* Submenüpunkte untereinander anzeigen */
    display: list-item; /* Zeigt die Bullet Points an */
/*    padding-left: 4px; /* Abstand zwischen Bullet Point u */
}
.dropdown-menu li a {
    padding: 1px 1px;
    font-size: 0.8rem;
    color: #ff4500;
    background-color: #494949;
}

.dropdown-menu li a:hover {
    background-color: transparent;
}

/* Sichtbares Submenü */
.dropdown-menu.show {
    display: block;
}



main {
    padding: 1.5rem;
    background-color: #494949;
    max-width: 100%;
    width: 100%; 
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

main h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ddcccc;
}
main h5 {
    font-size: 0.7rem;
    margin-bottom: 1rem;
    color: #ff4500; 
}
main p {
    margin: 0.5rem 0;
    color: #ddcccc;
    font-weight: normal;  /* steht fÃ¼r Wert 400 */
    word-wrap: break-word; /* Bricht lange Wörter um */
}
main img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

main section {
	margin: 2rem 0; /* Abstand zur nächsten Section */
}

main ul {
    list-style-type: none; /* Entfernt die Standard-Punkte der Liste */
    padding: 0; /* Entfernt den inneren Abstand */
    margin: 0 auto; /* Zentriert die Liste horizontal */
    display: flex; /* Macht die Liste zu einer flexbox */
    flex-direction: column; /* Ordnet die Listeneinträge vertikal an */
    align-items: center; /* Zentriert die Listeneinträge horizontal */
}
main li {
    margin: 0.5rem 0; /* Abstand zwischen den Listeneinträgen */
    font-size: 1.1rem; /* Schriftgrösse der Listeneinträge */
    text-align: center; /* Text innerhalb der Listeneinträge zentrieren */
}
main li a {
    text-decoration: none; /* Entfernt die Unterstreichung der Links */
    color: #ddcccc; /* Farbe der Links */
    font-weight: bold; /* Fettgedruckte Links */
    transition: color 0.3s ease; /* Sanfter Übergang bei Farbänderung */
}
main li a:hover {
    color: #ff6600; /* Farbe der Links beim Hover */
}
main a {
	color: #ddcccc;
}

.index-main {
    position: relative;
    height: 55vh; /* Höhe des Hauptbereichs */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;	
}
.center-content {
    z-index: 2; /* Text bleibt über den Bildern */
}

.corner-images img {
    position: absolute;
    width: 180px; /* Grösse der Bilder anpassen */
    height: auto;
}

.top-left {
    top: 10px;
    left: 20px;
}
.top-right {
    top: 10px;
    right: 20px;
}
.bottom-left {
    bottom: 10px;
    left: 20px;
}
.bottom-right {
    bottom: 10px;
    right: 20px;
}

footer {
    background-color: transparent;
    color: #ff4500; 
    padding: 1.5rem;
    width: 100%;
	  display: flex;           /* Aktiviert Flexbox */
    justify-content: center; /* Zentriert den Text horizontal */
    align-items: center;     /* Zentriert den Text vertikal */
    position: relative;
  
} 

 footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bilder/Tit_fooder_feuer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;   
}
 footer p {
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0;             /* Entfernt StandardabstÃ¤nde des <p>-Tags */
    color: #ff4500;        /* Feuerrot */
    position: relative;    /* Damit der Text nicht vom Pseudo-Element beeinflusst wird */
    z-index: 1;            /* Stellt sicher, dass der Text Ã¼ber dem Hintergrund angezeigt wird */    
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0rem 30px 0;
}
footer nav ul li {
    display: inline;
    margin: 0 15px;
    
}
footer nav ul li a {
    color: #ff4500;      /* Feuerrot */
    font-weight: normal;   /* steht fÃ¼r Wert 700 */
    text-decoration: underline
}

/* Einstellungen pro Sub-HTML-Seite */

/* Tabelle ohne sichtbaren Rahmen */
.arbeit-image-text-table {
    width: 100%; /* Tabelle nimmt die gesamte Breite ein */
    border-collapse: collapse; /* Entfernt Abstände zwischen Zellen */
}

.arbeit-image-text-table td {
    vertical-align: middle /* Text wird oben ausgerichtet */
    padding: 1rem; /* Abstand innerhalb der Zellen */
}

/* Bildzelle */
.arbeit-image-cell img {
    max-width: 300px; /* Maximale Breite des Bildes */
    height: auto; /* Automatische Höhe basierend auf der Breite */
    border-radius: 8px; /* Abgerundete Ecken für das Bild */
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Schatten für das Bild */
    margin-right: 1.5rem; /* Abstand zwischen Bild und Text */
}
/* Textzelle */
.arbeit-text-cell p {
    font-size: 1rem; /* Grösse des Textes */
    line-height: 1.6; /* Zeilenhöhe für bessere Lesbarkeit */
    color: #ddcccc; /* Textfarbe */
    word-wrap: break-word; /* Bricht lange Wörter um */
}

/* Tabelle für die Galerie */
.gallery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #494949; /* grau */
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}


.gallery-table td img {
    max-width: 400px; /* Bildgrösse anpassen */
    max-height: 300px; /* nicht höher als das */
    width: auto;
    height: auto;
    border-radius: 5px;
}

.gallery-table td {
    vertical-align: middle;
    padding: 10px; /* Abstand zwischen den Bildern */
}
.gallery-table td p {
    margin-top: 10px;
    font-size: 0.9rem; /* Kleinere Schriftgrösse für die Beschriftung */
    word-wrap: break-word; /* Bricht lange Wörter um */
}


/* -----------------  Media Query fÃ¼r Tablets (max-width: 768px) ---------------------------*/
@media (max-width: 768px) {
    html {
      font-size: 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.9rem;
    }

    nav ul li {
        margin: 0 8px;
    }

    main {
        padding: 1.5rem;
    }

    main h2 {
        font-size: 1.3rem;
    }

    footer {
        padding: 0.8rem;
    }
   .arbeit-image-cell img {
      max-width: 250px;    
  }
   .gallery-table td img {
        max-width: 150px; /* Kleinere Bilder auf Tablets */
  }
  .gallery-table td p {
     font-size: 0.75rem; /* Kleinere Schriftgrösse für die Beschriftung */
  }
  .corner-images img {
    position: absolute;
    width: 100px; /* Grösse der Bilder anpassen */
    height: auto;
}
}

/* Media Query fÃ¼r Smartphones (max-width: 480px) */
@media (max-width: 480px) {
    html {
      font-size: 14px;
    }
    header {
        padding: 0.8rem;
    }
    header::before {
      opacity: 0.5;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }
    nav ul {
        display: block; /* Ändert die Darstellung des Menüs */
        text-align: center; /* Zentriert die Menüpunkte */
        padding: 0;
    }
    nav ul li {
        display: block;
        margin: 5px 0;
    }
    nav ul li a {
        font-size: 1rem; /* Passt die Schriftgrösse an */
    }
    main {
        padding: 1rem;
    }

    main h2 {
        font-size: 1.2rem;
    }

    footer {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    footer::before {
      opacity: 0.5;
    }
   .arbeit-image-cell img {
    max-width: 160px;    
    }    
    .gallery-table {
        font-size: 0.9rem; /* Kleinere Schrift auf Smartphones */
    }

    .gallery-table td img {
        max-width: 120px; /* Noch kleinere Bilder auf Smartphones */
    }  
	  .gallery-table td p {
	     font-size: 0.70rem; /* Kleinere Schriftgrösse für die Beschriftung */
	  } 
		.corner-images img {
		    position: absolute;
		    width: 80px; /* Grösse der Bilder anpassen */
		    height: auto;
}	     
}

