﻿/* wwwroot/css/styles.css */

@font-face {
	font-family: 'Nunito';
	src: url('../fonts/nunito.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

title {
	font-size: 42px;
	line-height: 56px;
	font-weight: 500;
}

h2 {
	font-family: 'Nunito', sans-serif;
	color: #25373f;
	text-decoration: none;
}

body {
	font-family: 'Nunito', sans-serif !important;
	font-size: 16px;
	color: #25373f;
}

h1, h2, h3, h4, h5, h6, nav {
	font-family: 'Nunito', sans-serif !important;
	font-size: 16px;
	color: #25373f;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	letter-spacing: 0em;
}

input[type="datetime-local"], .termin-line input[type="datetime-local"] {
	font-family: 'Nunito', sans-serif !important;
	font-size: 16px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	width: 220px;
	box-sizing: border-box; /* Sicherstellen, dass Padding und Border in der Gesamtbreite enthalten sind */
}

.page-title {
	margin: 10px 20px;
	font-size: 28px;
}

.page-container {
	display: flex;
	gap: 20px;
	margin: 20px;
}

.left-column {
	width: 30%;
}

.right-column {
	width: 70%;
	padding: 20px;
	border: 1px solid #ccc;
	background-color: #fff;
}

/* Standard Eingabefelder */
.form-control {
	width: 100%;
	padding: 8px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	box-sizing: border-box;
}

/* Kursliste (links) */
.course-list {
	list-style: none;
	padding: 0;
}

.course-list li {
	padding: 10px;
	margin-bottom: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.course-list li:hover {
	background-color: #f1f1f1;
}

.selected-course {
	background-color: #add8e6;
	font-weight: bold;
}

.selected-course:hover {
	color: #0069B4;
}

.termin-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	min-width:630px;
	max-width:630px;
}

.termin-line input[type="datetime-local"] {
	padding: 6px;
	border: 1px solid #ccc;
	box-sizing: border-box;
}

.btn {
	padding: 13px 12px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

.btn:hover {
    background-color: #B0C5E7;
}

.btn-primary {
	background-color: #0069B4;
	color: white;
}

.btn-primary:hover {
    background-color: #B0C5E7;
}

.btn-secondary {
	background-color: #0069B4;
	color: white;
}

.btn-secondary:hover {
    background-color: #B0C5E7;
}

.btn-danger {
	background-color: #dc3545;
	color: white;
    margin-left: 45px;
    width: 91px;
}

.btn-danger:hover {
    background-color: #B0C5E7;;
}

.button-group {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

.button-group button {
	flex: 1;
}

.new-termin-section {
	margin-top: 15px;
	margin-bottom: 20px;
}

/* Bemerkung Feld */
.form-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	box-sizing: border-box;
	resize: vertical;
	min-height: 80px;
}

.course-list li {
	font-weight: normal;
}    

.selected-course {
    background-color: #B0C5E7;
	color: #FFFFFF;
	font-weight: normal;
}

.BeginnAbstand {
	width: 266px;
}

.BeginnAbstand span {
    margin-left: 12px;
	margin-right: 12px;
	letter-spacing: 0.6px;
}

.EndeAbstand span {
    margin-left: 12px;
	margin-right: 12px;
	letter-spacing: 0.6px;
}

/* Erfolgsmeldung */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}

/* Fehlermeldung */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}

.veranstaltungen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Text links vom Toggle */
.slider-label {
    font-size: 0.9rem;
    color: #333;
}

/* Switch-Design */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0d6efd;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem .75rem;
    margin: .5rem 0 1rem;
}
.cf-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
}
.cf-label {
}
.cf-value {
    white-space: pre-wrap;
}
