/* Globale Einstellungen und Barrierefreiheit */
:root {
	--primary-color: #003366;
	/* Ein typisches Schul-Blau (anpassbar) */
	--secondary-color: #0056b3;
	--light-gray: #f4f7f6;
	--dark-text: #333;
	--light-text: #ffffff;
	--border-radius: 8px;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 100%;
	/* 16px */
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	background-color: var(--light-gray);
	color: var(--dark-text);
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 1rem;
}

/* Definiere die Animation ganz normal */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diese Media Query prüft, ob der Nutzer NICHT 
   "reduzierte Bewegung" eingestellt hat.
   Nur dann wird die Animation abgespielt.
*/
@media (prefers-reduced-motion: no-preference) {
    .container {
        animation: fadeInSlideUp 0.8s ease-out;
    }
}

/* Hauptcontainer-Karte */
.container {
	max-width: 650px;
	width: 100%;
	background-color: var(--light-text);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	padding: 2rem;
	text-align: center;
	border-top: 5px solid var(--primary-color);
}

/* Header & Logo */
header {
	margin-bottom: 2rem;
}

.logo {
	max-width: 240px;
	/* Größe des Logos anpassen */
	height: auto;
	margin-bottom: 1rem;
}

h1 {
	color: var(--primary-color);
	font-size: 1.75rem;
	/* 28px */
	font-weight: 700;
}

/* Hauptinhalt & Text */
main p {
	font-size: 1.125rem;
	/* 18px */
	margin-bottom: 2rem;
}

/* Navigation & Links */
nav ul {
	list-style: none;
}

nav li {
	margin-bottom: 1rem;
}

.link-button {
	display: block;
	text-decoration: none;
	color: var(--light-text);
	background-color: var(--primary-color);
	padding: 1rem 1.5rem;
	border-radius: var(--border-radius);
	font-weight: 600;
	font-size: 1.1rem;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.link-button span {
	display: block;
	font-weight: 400;
	font-size: 0.9rem;
	opacity: 0.9;
	margin-top: 0.25rem;
}

/* Interaktions-Stile (Hover & Fokus) */
.link-button:hover,
.link-button:focus {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
	outline: 2px solid transparent;
	/* Standard-Fokusring für Maus entfernen */
}

/* Wichtig für Barrierefreiheit: Tastatur-Fokus deutlich machen */
.link-button:focus-visible {
	outline: 3px dashed var(--primary-color);
	outline-offset: 3px;
	background-color: var(--secondary-color);
}

/* Optionale Farb-Akzente für die Links */
.link-button.official {
	background-color: #003366;
}

.link-button.moodle {
	background-color: #f79224;
}

/* Moodle-Orange (ungefähr) */
.link-button.barnim {
	background-color: #8c0000;
}

/* Barnim-Rot (ungefähr) */

.link-button.official:hover,
.link-button.official:focus-visible {
	background-color: #002244;
}

.link-button.moodle:hover,
.link-button.moodle:focus-visible {
	background-color: #d67d1e;
}

.link-button.barnim:hover,
.link-button.barnim:focus-visible {
	background-color: #6a0000;
}


/* Footer */
footer {
	margin-top: 2rem;
	font-size: 0.9rem;
	color: #777;
}

footer a {
	color: #555;
	text-decoration: none;
}

footer a:hover,
footer a:focus {
	text-decoration: underline;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 600px) {
	body {
		padding: 0.5rem;
	}

	.container {
		padding: 1.5rem;
	}

	h1 {
		font-size: 1.5rem;
	}

	main p {
		font-size: 1rem;
	}

	.link-button {
		padding: 0.75rem 1rem;
	}
}
