<style>

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color:whitesmoke;
    padding-left:5%;
    padding-right:5%;
    box-sizing: border-box;
}
       
h1{
    font-size: 3em;
    text-align:center;
    color:darkred;
} 
       
h2{
    font-size:2em;
    text-align:center;
    color: darkred;
}

h3{
    font-size: 1.1em;
    color: darkred;
}

header{
    margin-left:-5%;
    margin-right:-5%;
}

h4{
    font-size: 1.1em;
    margin-top:0px;
}

p{
    font-size: 1em;
    line-height: 1.3em 
}

[popover]{
    margin-left:5%;
    margin-right:5%;
    background-color: whitesmoke;
    
}

a{
    text-decoration: none;
    color: darkblue;
       }

a:hover{
    color:black;
    background-color: lightgray;
}

a:active{
    color: red;
    font-weight: 900;
       }

p{
    font-size: 1.1em;
    line-height: 1.3em
}

li{
    font-size: 1em;
    line-height: 1.3em;
    margin-top: 0.5em;
    list-style: none;
}

ul{
        list-style-position: outside;
}

iframe {
    margin:auto;
    display:block;
}

.h5pkategorie{
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 2em;
    padding: 10px;
    background-color: darkred;
    color: whitesmoke; 
}

.beschreibung{
    font-size: 1em;
    line-height: 1.3em;
    margin-left: 1em;
    margin-top: 0.5em
}


.linkbutton {
    padding: 4px;
    background-color: rgb(52, 131, 41);
    color: #fff;
    font-size:0.8em;
    border-radius: 5px;
    border: solid 1px black;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    user-select: none;
    text-decoration: none;
}

.linkbutton:hover {
    color: #fff;
    background-color: lightgray;
    text-decoration: none;
}

.linkbutton:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    background-color: gray;
}

.navbar {
  overflow: hidden;
  background-color: darkred;
  font-family: Arial;
}

.navbar a {
  float: left;
  font-size: 1em;
  color: whitesmoke;
  text-align: center;
  padding: 6px 12px;
  text-decoration: none;
}


.dropdown {
  float: left;
  overflow: hidden;
}


.dropdown .dropbtn {
  font-size: 1em;
  border: none;
  outline: none;
  color: whitesmoke;
  padding: 6px 12px;
  background-color: inherit;
  font-family: inherit; 
  margin: 0; 
}


.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: lightgray;
  color:darkred;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: whitesmoke;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}


.dropdown-content a:hover {
  background-color: #ddd;
}


.dropdown:hover .dropdown-content {
  display: block;
}

.tabelle-tool {
    margin-top:10px;
    width: 100%;
    padding: 5px;
}

.zelle-tool {
    width:70%;
    vertical-align:top;
    font-size:1em;

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Kacheln skalieren bei Bildschirmgröße */
    gap: 15px; /* Abstand zwischen Kacheln */
    max-width: 930px;
    padding: 15px;
}
.grid-item {
    position: relative; /* Für die Beschriftung notwendig */
    overflow: hidden;
    border: 3px solid darkred;
    border-radius: 5px;
    box-shadow: 0 6px 8px lightgrey;
    width: 100%;
    aspect-ratio: 1; /* Macht jede Kachel quadratisch */
    max-width: 300px; /* Maximale Breite */
    max-height: 300px; /* Maximale Höhe */
    margin: 0 auto; /* Zentriert kleinere Kacheln */
}
.grid-item a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Passt das Bild an, um die Kachel zu füllen */
    display: block;
    transition: transform 0.3s ease;
}
.grid-item img:hover {
    transform: scale(1.2);
}
   
.caption {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Schwarzer Balken mit Transparenz */
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: 200;
    padding: 10px 5px;
    box-sizing: border-box;
}
</style>