body{
font-family: "Nunito"; 
display:grid; 
grid-gap: 0.5em 0.5em; 
grid-template-rows: auto; 
grid-template-columns: auto repeat(5, 1fr); 
grid-template-areas: 
"logo header header header header header"
"logo nav nav nav nav nav "
"main main main main main main"
"main main main main main main"
"footer footer footer footer footer footer";
}

h1, h2, h3 {
	font-family: "Fredoka", "Nunito", sans-serif; 
	font-weight: 600; 
	margin: 0;
}
	
.logo{
	grid-area:logo; 
	background-color: #E0F7E9;  
	font-style:arial;
	place-self: center;
}
.header{
	grid-area: header; 
	background-color:#E0F7E9; 
	font-style:arial;
	display: flex; 
	justify-content: center; 
	align-items: center; 
}

.nav{
	grid-area:nav; 
	height:50px;
	background-color:#F8BBD0;
}
.main{
	grid-area: main; 
	background-color: #FFE7ED; 
	padding:2em; 
	font-style:arial;
	padding-left: 140px;
	padding-right: 140px;
}
/* Container für eine einzelne Arbeitsblatt-Karte */
.arbeitsblatt{
	width: 45%; 
	border: 2px solid #F8BBD0;
	border-radius: 15px; 
	padding: 15px;        /* Innenabstand, damit Inhalt nicht am Rahmen klebt */
    text-align: center;   /* Zentriert Text und Bilder innerhalb der Karte */
    margin-bottom: 20px;  /* Abstand zur nächsten Reihe von Arbeitsblättern */
}
/* Gestaltung der Vorschaubilder für die Arbeitsblätter */
.arbeitsblatt img {
	max-width: 100%; 
	height: auto; 
	border-radius: 10px;
}

.footer{
	grid-area: footer; 
	background-color:#E0F7E9; 
	color:black; 
	padding: 25px 0;
    display: flex; 
    align-items: center;
    justify-content: flex-start;
    padding-left: 140px;
}

.footer-links {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    padding-left: 180px;
	list-style: none; 
	gap: 40px; 
}

.footer-links a {
    color: #333; 
    text-decoration: none;
    font-weight: bold;
    font-family: "Fredoka", sans-serif;
    font-size: 16px;
    transition: color 0.2s; 
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #777;
	margin-right: 120px;
}

.button1{background-color: #F8BBD0;
	width:200px;
	height:50px;
	display:inline-block;
	text-align:center;
	line-height:50px;
	font-family:"Fredoka", sans-serif;
	font-weight:bold;
	font-size:17px;
	color:black;
	border-bottom-left-radius:18px;
	border-bottom-right-radius:18px;
	border-top-left-radius:18px;
	border-top-right-radius:18px;
	text-decoration:none;
}
.button2{background-color: #F8BBD0;
	width:250px;
	height:50px;
	display:inline-block;
	text-align:center;
	line-height:50px;
	font-family:"Fredoka", sans-serif;
	font-weight:bold;
	font-size:17px;
	color:black;
	border-bottom-left-radius:18px;
	border-bottom-right-radius:18px;
	border-top-left-radius:18px;
	border-top-right-radius:18px;
	text-decoration:none;
}

.dropdown{
	position: relative;
	display: inline-block;
	vertical-align: top; 
}

.dropdown-content{
	display: none; 
	position: absolute; 
	background-color: #F8BBD0; 
	min-width: 250px; 
	z-index: 1; 
	border-radius: 18px;
}

.dropdown-content a {
	color: black; 
	font-family: "Fredoka", sans-serif; 
	padding: 12px 16px; 
	text-decoration: none; 
	display: block; 
	text-align: left; 
	height: auto; 
	line-height: normal;
	border-radius: 18px;
}

/* Container für alle Arbeitsblatt-Karten */
.material-container {
    display: flex;
    flex-wrap: wrap; /* Es kommt zum Zeilenumbruch, wenn mehr Platz benötigt wird */
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}
/* Getsaltung der einzelnen Arbeitsblatt-Karten */
.material-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    width: 300px; 
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* dezenter Schatten */
    transition: transform 0.2s;
}

.material-card:hover {
    transform: translateY(-5px); /* Karte hebt sich leicht an beim drüberhovern */
}

/* Gestaltung des Vorschaubildes innerhalb der Karte */
.preview img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

/* Anordnung der beiden Download-Buttons */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Gemeinsame Gestaltungsmerkmale für Download- und Lösungsbutton */
.button-download, .button-loesung {
    display: block;
    padding: 10px;
    text-decoration: none;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
    font-size: 14px;
}

/* Zusätzliche Gestaltung Downloadbutton */
.button-download {
    background-color: #F8BBD0; 
    color: #333;
}
/* Zusätzliche Gestaltung Lösungsbutton */
.button-loesung {
    background-color: #E0F7E9; 
    color: #333;
}

.button-download:hover, .button-loesung:hover {
    filter: brightness(0.9); /* Farbe der beiden Buttons wird beim rüberhovern keicht dunkler */
}

