/* Grunddesign */
body {
    font-family: 'Roboto';
    background-color: #000000;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    padding: 0px;
}

/* Kalender Container */
#calendar {
    position: relative;
    z-index: 1000;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff91;
    padding: 25px;
    border-radius: 5px;
	overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #000;
}

.fc-daygrid-event {
    border-radius: 5px !important;
    padding: 4px 8px !important;
    font-size: 0.85em !important;
    background-color: #007bff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 700;
    color: #333;
}

/* Modal / Popup Design */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	color: #000;
	background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px); /* Moderner Glass-Effekt */
}

.modal p {
    font-size: 18px !important;
    text-shadow: unset !important;
}

.modal-content {
    min-height: 600px;
    background: #fff;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tabs Styling */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.tab.active {
    background: #fff;
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

.tab-content {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#x {
    padding-left: 0px;
    padding-right: 0px;
}

.tox-promotion-link {
    display: none !important;
}

.tox.tox-tinymce {
    border-radius: 5px !important;
    border: 1px solid #ddd;
    margin-top: 10px;
}

/* Formular & Buttons */
input[type="text"], input[type="email"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
	user-select: none;
}

button:hover {
    background: #2c3e50;
}

/* Karte */
#map {
    height: 320px;
    width: 100%;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #ddd;
}

/* Hilfsklassen */
.hidden { display: none; }

.fc .fc-toolbar {
    align-items: center;
    display: flex;
    justify-content: right;
}

.fc .fc-toolbar-title {
    font-size: 1.75em;
    margin-right: 20px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
}

.fc-listWeek-view.fc-view.fc-list.fc-list-sticky {
    height: fit-content;
    border-radius: 5px;
}

.fc-event.fc-event-start.fc-event-end.fc-event-future.fc-list-event {
    cursor: pointer;
}

.fc-event.fc-event-start.fc-event-end.fc-event-future.fc-daygrid-event.fc-daygrid-block-event.fc-h-event {
    cursor: pointer;
}

.fc-dayGridMonth-button.fc-button.fc-button-primary {
    min-height: 40.78px;
}

.fc .fc-scrollgrid-liquid {
    border-radius: 5px;
}

.fc .fc-scrollgrid-section, .fc .fc-scrollgrid-section table, .fc .fc-scrollgrid-section > td {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

h2#fc-dom-1 {
    font-size: 24px !important;
    text-shadow: unset !important;
    font-family: monospace;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    cursor: pointer;
}

.fc .fc-list-empty-cushion {
    font-size: 22px;
}

.fc .fc-view-harness-active > .fc-view {
    border-radius: 5px;
    scrollbar-width: none;
}

.fc .fc-multimonth-daygrid {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
}

.fc .fc-multimonth-daygrid-table, .fc .fc-multimonth-header-table {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: hidden;
}

/* --- FULLCALENDAR MOBILE TOOLBAR FIX --- */
@media screen and (max-width: 769px) {
    /* Toolbar-Container auf Flex-Column umstellen */
    .fc .fc-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Einzelne Abschnitte (Links, Mitte, Rechts) zentrieren */
    .fc .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important; /* Erlaubt Buttons umzubrechen */
        gap: 5px !important;
    }

    /* Buttons (prev, next, today, etc.) schmaler und besser klickbar machen */
    .fc .fc-button-primary {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        min-width: 44px !important; /* Mindestmaß für Touch-Bedienung */
        margin: 2px !important;
    }

    /* Den Titel (Monat/Jahr) für mobile optimieren */
    .fc .fc-toolbar-title {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }

    /* Icons in den Buttons zentrieren */
    .fc .fc-icon {
        font-size: 1em !important;
        vertical-align: middle !important;
    }
	
	#map-tab p {
		text-align: center;
	}
}

/* Spezieller Fix für sehr schmale Bildschirme (Handys hochkant) */
@media screen and (max-width: 450px) {
    .fc .fc-toolbar-chunk {
        width: 100% !important;
    }

	.fc-view-harness.fc-view-harness-active {
		height: 100vh !important;
		min-height: 485px;
		max-height: 485px;

	}	

	.fc .fc-daygrid-body {
		width: 100% !important;
	}

	.fc-col-header {
    width: 100% !important;
	}

	#calendar {
		padding: 0px;
	}
	
	.admin_txt {
		font-size: 15px !important;
	}

	.admin_txt2 {
		font-size: 13px;
	}
	
	.main-menu {         
		height: 80px !important;
		background: transparent !important;
		z-index: 99999;
	}

	.main-menu img {
        width: auto !important;
        height: 70px !important;
    }
	
	button:hover {
		background: rgb(44 62 80 / 90%) !important;
	}
	
	.dropdown.active {
        border-radius: 0px !important;
    }
}

@media screen and (min-width: 769px) {
	#menuItems {
		display: flex;
	}
}