html,
body {
	height: 100%;
	margin: 0;
}

.button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.mpe-link:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* Keyboard focus mirrors hover for accessibility */
.link a:focus-visible {
	color: var(--color-primary-contrast);
	background-color: var(--color-primary);
	padding: 2px 4px;
	border-radius: var(--radius-sm);
}

/* Design tokens and sensible defaults */
:root {
	--color-primary: #0056b3;
	--color-primary-dark: #004494;
	--color-primary-contrast: #ffffff;
	--color-accent: #1E585B;
	--color-accent-light: #93b5e1;
	--color-muted-bg: #e8eef8;
	--color-surface: #ffffff;
	--color-text: #333333;
	--color-border: #dddddd;
	--color-footer-bg: #3D3F45;
	--radius-sm: 4px;
	--radius-md: 8px;
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	/* Additional tokens */
	--color-section-bg: #f5f8fc;
	--color-section-border: #d6e0ef;
	--color-hover-muted: #e2ecf8;
	--color-footer-hover: #F0F0F0;
	color-scheme: light;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

/* Accessibility: consistent focus styles */
:where(a, button, [role="button"]) {
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

:where(a, button, [role="button"]):focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	display: flex;
	flex-direction: column;
	padding-top: 0px;
}

.mains {
	flex: 1;
}

table {
	width: 100%;
	border-collapse: collapse !important;
	margin: 22px 0;
}

h2 {
	margin-top: 0.5rem;
}

/* Allgemeiner Stil für Links */
.link a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: bold;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.link a:hover {
	color: var(--color-primary-contrast);
	background-color: var(--color-primary);
	padding: 2px 4px;
	border-radius: var(--radius-sm);
}

/* Navbar-Brand */
.nav-item {
	font-size: 1.2rem;
}

.navbar {
	border-bottom: 1px solid var(--color-border);
}

.navbar-nav .nav-link {
	color: rgba(0, 0, 0, .55);
	transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: black !important;
}

.navbar-brand {
	color: rgba(0, 0, 0, 0.55) !important;
}

.navbar-brand:hover {
	color: black !important;
}

/* Visible focus for navbar items */
.navbar-nav .nav-link:focus-visible,
.navbar-brand:focus-visible {
	color: black !important;
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.img {
	width: 100%;
	height: auto;
	max-height: 30vh;
	object-fit: cover;
}


/* Main */
.main {
	text-align: center;
	background-color: var(--color-section-bg);
	border: 1px solid var(--color-section-border);
	padding: 2rem 1.5rem;
	box-shadow: var(--shadow-sm);
}

.main h1 {
	font-size: 2.2rem;
	font-weight: bold;
	color: #2c3e50;
}

.überschrift2 {
	font-size: 1.4rem;
	font-weight: 300;
	color: #4a657a;
	line-height: 1.6;
	max-width: 70%;
	margin: 0 auto;
}

/* Aktuelles */
.aktuelles {
	position: relative;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1rem;
	margin: 1rem auto;
	max-width: 80%;
	box-shadow: var(--shadow-md);
	box-sizing: border-box;
}

.aktuelles::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background-color: var(--color-accent);
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.aktuelles h1 {
	text-align: left;
	margin-bottom: 1rem;
	font-size: 1.9rem;
	font-weight: bold;
	color: var(--color-accent);
}

.aktuelles p {
	text-align: left;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
}

/* Media Queries für unterschiedliche Bildschirmgrößen */
/* Ultrakleine Bildschirme (unter 320px) */
@media (max-width: 319px) {
	.main {
		font-size: 0.9rem;
	}

	.main h1 {
		font-size: 1.1rem;
	}

	.überschrift2 {
		font-size: 0.9rem;
	}

	.aktuelles {
		padding: 0.5rem;
		margin: 0.5rem auto;
		max-width: 95%;
	}

	.aktuelles h1 {
		font-size: 1.2rem;
	}

	.aktuelles p {
		font-size: 0.8rem;
		line-height: 1.4;
	}
}

/* Kleine Smartphones */
@media (min-width: 320px) {
	.main {
		font-size: 1rem;
	}

	.main h1 {
		font-size: 1.5rem;
	}

	.überschrift2 {
		font-size: 1rem;
	}

	.aktuelles {
		padding: 0.8rem;
		margin: 0.5rem auto;
		max-width: 90%;
	}

	.aktuelles h1 {
		font-size: 1.4rem;
	}

	.aktuelles p {
		font-size: 1rem;
		line-height: 1.4;
	}
}

/* Normale Smartphones */
@media (min-width: 480px) {
	.main {
		font-size: 1.2rem;
	}

	.main h1 {
		font-size: 1.6rem;
	}

	.überschrift2 {
		font-size: 1.2rem;
	}

	.aktuelles {
		padding: 0.9rem;
		margin: 0.5rem auto;
		max-width: 90%;
	}

	.aktuelles h1 {
		font-size: 1.6rem;
	}

	.aktuelles p {
		font-size: 1rem;
	}
}

/* Tablets (Hochformat) */
@media (min-width: 768px) {
	.main {
		font-size: 1.4rem;
	}

	.main h1 {
		font-size: 1.7rem;
	}

	.überschrift2 {
		font-size: 1.2rem;
	}

	.aktuelles {
		max-width: 85%;
		padding: 1.2rem;
		margin: 1.5rem auto;
	}

	.aktuelles h1 {
		font-size: 1.6rem;
	}

	.aktuelles p {
		font-size: 1.1rem;
	}
}

/* Tablets (Querformat) oder kleine Laptops */
@media (min-width: 1024px) {
	.main {
		font-size: 1.8rem;
	}

	.aktuelles {
		max-width: 75%;
		margin: 1.8rem auto;
	}
}

/* Desktops */
@media (min-width: 1280px) {
	.main h1 {
		font-size: 2rem;
	}

	.überschrift2 {
		font-size: 1.2rem;
	}

	.aktuelles {
		max-width: 70%;
		padding: 2rem;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
		margin: 1.9rem auto;
	}

	.aktuelles h1 {
		font-size: 1.6rem;
	}
}

/* Große Bildschirme */
@media (min-width: 1440px) {
	.aktuelles {
		max-width: 65%;
		padding: 2.5rem;
		margin: 2.5rem auto;
	}
}

/* Footer */
#footer {

	bottom: 0;
	background-color: var(--color-footer-bg);
	width: 100%;
	padding: 3.6rem;

}

#footer-nav {
	float: right;
}

#footer-nav a {
	text-decoration: none;
	color: #FFF;
	margin-left: .5rem;
}

#footer-nav a:hover {
	color: var(--color-footer-hover);
}

#footer-nav a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

#footer span {
	color: #FFF;
}

@media (max-width: 468px) {
	#footer {
		padding: 2rem;
	}

	#footer-nav a {
		display: block;
		text-align: center;
	}

	#footer span {
		display: inline-block;
		vertical-align: middle;
	}
}

@media (max-width: 376px) {
	#footer-nav {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	#footer-nav a {
		display: inline-block;
		text-align: center;
	}

	#footer span {
		display: block;
		text-align: center;
		width: 100%;
	}
}

/* Impressum-Seite */
#impressum p {
	padding-top: 1rem;
}

/* Datenschutz-Seite*/
#datenschutz p {
	padding-top: 1rem;
}

/* Kontakt-Seite */
#kontakt p {
	text-align: center;
}

#kontakt p:first-child {
	margin-top: 2.0rem;
	margin-bottom: 2rem;
	font-size: 1.3rem;
}

#kontakt p:last-child {
	margin-bottom: 2.0rem;
}


/* MPE-Seite */
#mpe p:first-child {
	margin-top: 3.2rem;
}

#mpe p {
	text-align: center;
	font-size: 1.1rem;
}

.mpe-link {
	text-decoration: none;
	font-size: 1.6rem;
	display: block;
	width: fit-content;
	padding: 0.6rem 1.8rem;
	background-color: var(--color-muted-bg);
	color: black;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	transition: background-color 0.2s ease, transform 0.2s ease;
	margin: 2rem auto;
}

.mpe-link:hover {
	color: white;
	background-color: var(--color-accent-light);
}

@media (max-width: 768px) {

	.mpe-link {
		font-size: 1.4rem;
	}

}

@media (max-width: 368px) {
	.mpe-link {
		font-size: 1.2rem;
	}
}

/* Anfahrt-Seite */
#anfahrt p {
	padding-top: 0.9rem;
}

#anfahrt a {
	text-decoration: none;
	color: black;
	font-size: 1.1rem;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	display: inline-block;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#anfahrt a:hover {
	background-color: var(--color-hover-muted);
	color: var(--color-primary);
}

.google {
	padding-top: 1rem;
	padding-bottom: 0.5rem;
}

.col-md-6 {
	padding-bottom: 2rem;
}

iframe {
	border-radius: var(--radius-md);
}

/* Google Maps iframes */
.map {
	width: 100%;
	height: 300px;
	border: 0;
}

#anfahrt h5 {
	margin-top: 1rem;
}

#anfahrt h5:first-of-type {
	margin-top: 2rem;
}

/* Team-Seite */
#team .table {
	border-collapse: collapse;
	/* zusammengelegte Ränder */
	width: 100%;
}

#team .table tr {
	border-bottom: 1px solid var(--color-border);
	/* durchgehende Linie je Zeile */
}

#team .table thead tr {
	border-bottom: 2px solid var(--color-border);
	/* stärkere Kopfzeilenlinie (optional) */
}

/* vorhandene Zellenrahmen deaktivieren, damit ke*

#team ul {
        list-style: none;
        padding: 0;
}

#team ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 1.0rem;
}

#team ul li::before {
        content: '•';
        position: absolute;
        left: 0;
        top: 0rem;
        color: black;
}

#team ul li:first-child {
        margin-top: 1.8rem;
}

#team ul li:last-child {
        margin-bottom: 1.8rem;
}

/* Responsive CSS für kleinere Bildschirme */
@media (max-width: 768px) {
	#team .table {
		width: 100%;
		font-size: 0.9rem;
		border-collapse: collapse;
	}

	#team .table thead {
		display: none;
	}

	#team .table tbody tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid var(--color-border);
		border-radius: 0.5rem;
		padding: 1rem;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	}

	#team .table tbody tr td {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 0.5rem 0;
		word-wrap: break-word;
		overflow-wrap: anywhere;
	}

	#team .table tbody tr td::before {
		content: attr(data-label);
		font-weight: bold;
		display: block;
		width: 100%;
		text-align: center;
		color: #555;
		margin-bottom: 0.5rem;
	}

	#team .table tbody tr td[data-label="Fax"]::before {
		content: "Fax ";
		font-weight: bold;
		display: inline-block;
		width: auto;
		text-align: left;
		margin-right: 0.5rem;
		color: #555;
	}

	#team .table tbody tr td a {
		word-wrap: break-word;
		overflow-wrap: anywhere;
		display: inline-block;
	}
}

@media (max-width: 480px) {

	/* Anpassung für Smartphones */
	#team .table tbody tr {
		padding: 0.8rem;
	}

	#team .table tbody tr td::before {
		margin-bottom: 0.3rem;
	}

	#team h1 {
		font-size: 1.5rem;
		text-align: center;
		margin-bottom: 1rem;
	}
}

/* Kursarten */
#kurse {
	padding-bottom: 0px;
	/* Abstand unten */
}

#kurse th,
#kurse td {
	padding: 12px 15px;
	border: 1px solid var(--color-border);
	text-align: left;
}

#kurse tr:hover {
	background-color: var(--color-hover-muted);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#kurse a {
	color: #000;
	transition: color 0.2s ease, background-color 0.2s ease;
}

#kurse a:hover {
	color: var(--color-primary);
}

@media (max-width: 346px) {

	#kurse th,
	#kurse td {
		padding: 8px 10px;
		font-size: 0.8rem;
	}

	#kurse {
		padding-bottom: 10px;
	}
}

/* Kurse */
.kurs-ueberschrift {
	margin-top: 20px;
}

.kurstabelle {
	border-collapse: collapse;
}

.kurstabelle> :is(thead, tbody, tfoot)>tr> :is(th, td) {
	border: 1px solid #ccc;
	padding: 12px 15px;
}


.kursdetails td {
	vertical-align: top;
	overflow-wrap: anywhere;
	/* allow long words to wrap */
	word-break: break-word;
}

/* Default column widths: date*/
.kursdetails td:nth-child(1) {
	width: 110px;
}

@media (max-width: 768px) {

	.kurstabelle thead {
		display: none;
	}

	.kurstabelle> :is(thead, tbody, tfoot)>tr> :is(th, td) {
		display: block;
		width: 100%;
		padding: 10px;
		text-align: center;
		border: none;
		border-bottom: 1px solid var(--color-border);
	}

	.kurstabelle>tbody>tr {
		border-bottom: 2px solid #000;
	}

	.kursdetails {
		margin: 0;
	}

	.kursdetails td {
		margin: 0;
		border: none;
		text-align: center;
		display: block;
		padding: 5px 0;
		width: 100%;
	}

	.kursdetails td:nth-child(1) {
		width: 100%;
	}
}

/* Abgesagter Status */
.cancelled {
	color: #721c24;
}

/* Status-Label für abgesagte Termine */
.status-label {
	color: #721c24;
	background-color: #f5c6cb;
	display: block;
	width: 180px;
	padding: 8px 12px;
	text-align: center;
	border-radius: var(--radius-sm);
	font-weight: bold;
}

/* Stil für den Hinweis, wenn keine Termine vorhanden sind */
#details-kurse .no-termins {
	color: #721c24;
	background-color: #f8d7da;
	padding: 25px;
	border-radius: 6px;
	border: 1px solid #f5c6cb;
	text-align: center;
	margin-top: 40px;
	margin-bottom: 60px;
	font-size: 1.1em;
	font-weight: bold;
}

/* Für Tablets und größere Smartphones im Hochformat */
@media (max-width: 768px) {
	#details-kurse .status-label {
		font-size: 0.9em;
		padding: 10px 16px;
		width: 40%;
		margin: 10px auto;
	}

	#details-kurse .no-termins {
		padding: 20px;
		margin-top: 30px;
		margin-bottom: 40px;
		font-size: 1em;
		max-width: 80%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Für Smartphones im Hochformat und sehr kleine Bildschirme */
@media (max-width: 576px) {
	#details-kurse .status-label {
		font-size: 0.8em;
		padding: 8px 12px;
		width: 40%;
		margin: 10px auto;
	}

	#details-kurse .no-termins {
		padding: 15px;
		margin-top: 20px;
		margin-bottom: 30px;
		font-size: 0.9em;
		max-width: 70%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Anmeldung */
.anmeldung-intro {
	margin-top: 30px;
}

.anmeldung-form {
	margin-top: 30px;
}

.anmeldung-form>div {
	margin-bottom: 22px;
}

.anmeldung-form .form-check {
	margin-bottom: 15px;
}

.button {
	background-color: var(--color-primary);
	width: 180px;
	color: white;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	text-align: center;
	display: inline-block;
	margin-top: 10px;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	margin-bottom: 20px;
}

.button:hover {
	background-color: var(--color-primary-dark);
	color: #ffffff;
}

.required {
	color: red;
	font-weight: bold;
}

.form-note {
	margin-top: 5px;
	margin-bottom: 30px;
	font-style: italic;
}

.form-group-anmeldung {
	margin-bottom: 1.5rem;
}

/* Info-Page */
.info-section {
	background-color: var(--color-muted-bg);
	padding: 4rem 0;
	padding-bottom: 6rem;
	padding-top: 6rem;
}

.info-content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.info-title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

/* Erfolgsmeldung */
.success-title {
	color: #28a745;
	margin-bottom: 2.8rem;
}

/* Warnung oder Fehler */
.warning-title {
	color: #dc3545;
}

.info-message {
	font-size: 1.25rem;
	color: var(--color-accent);
	margin-bottom: 1.5rem;
}

.info-button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	color: black;
	background-color: var(--color-muted-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	margin-top: 1.5rem;
}

.info-button:hover {
	background-color: var(--color-accent-light);
	color: white;
}

.info-button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}
