/* =========================================================
   com_rstermin – Event View
   Header / Umschalter / Buttons
   Ergänzend, kein Ersatz bestehender Styles
   ========================================================= */

/* =========================================================
   Header
   ========================================================= */

.rstermin-event-header {
	margin-bottom: 1rem;
}

.rstermin-event-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Toolbar: Zurück + Umschalter */

.rstermin-event-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-weight: 400;
}

/* Zurück-Button */

.rstermin-event-back {
	flex: 0 0 auto;
}

.rstermin-back-btn {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #006cd9;
    background: #fff;
    border: 1px solid #5395d7;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.rstermin-back-btn:hover {
	color: #ffffff;
	background: #ac1313;
	text-decoration: none;
}

/* =========================================================
   Umschalter Results ↔ Clubs
   ========================================================= */

.rst-switch {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	font-size: 0.80rem;
}

.rst-switch a,
.rst-switch span {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #006cd9;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.rst-switch a {
	border: 1px solid #5395d7;
	background: #0066cc;
	color: #ffffff;
}

.rst-switch a:hover {
	background: #ac1313;
	color: #ffffff;
	text-decoration: none;
}

.rst-switch span.active {
	border: 1px solid #5395d7;
	color: #ac1313;
}

.rst-switch span:not(.active) {
	color: #555;
}

/* =========================================================
   Buttons (Results / Clubs)
   ========================================================= */

.rst-btn {
	display: inline-block;
	margin: 0.25rem 0.25rem 0.25rem 0;
	padding: 0.3rem 0.6rem;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid #6d6a6a;
	border-radius: 5px;
	color: #0066cc;
	text-decoration: none;
	transition: background 0.2s ease;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
}

.rst-btn:hover {
	background: #cc2a35;
	color: #ffffff;
	text-decoration: none;
}

.rst-btn:hover span {
	color: #ffffff;
	text-decoration: none;
}

.rst-btn-disabled {
	color: #6d6a6a;
}

.rst-btn-disabled:hover {
	color: #6d6a6a;
	text-decoration: none;
	background: none;
}

.rst-btn-results {
	min-height: 55px;
	min-width: 120px;
}

.filetime {
	font-size: 0.7rem;
	color: #6d6a6a;
}

/* =========================================================
   Auto-Refresh Progress (Results only)
   ========================================================= */

.rst-refresh-wrapper {
	position: relative;
	width: 100%;
	height: 3px;
	background: #e0e0e0;
	margin: 0.5rem 0 0.3rem;
	overflow: hidden;
	border-radius: 2px;
}

#rst-refresh-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0%;
	background: #0066cc;
	transition: width 0.2s linear;
}

/* =========================================================
   Layout-Hilfen
   ========================================================= */

.rst-clubs-titel, .rst-results-titel {
	font-size: 1.3rem;
	font-weight: 700;
	color: #000;
}

.rst-results h1,
.rst-clubs h1 {
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #0066cc;
}

.rst-results h2,
.rst-clubs h2 {
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #0066cc;
}

.rst-clubs h3 {
	margin: 0.75rem 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
}

.rst-results,
.rst-clubs {
	margin-top: 1rem;
	font-size: 0.9rem;
	font-weight: 400;
}

.rst-clubs-group-titel {
	margin: 0.5rem 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0066cc;
}

.rst-wk {
	margin: 0.75rem 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #000;
	background-color: #d9e3f0;
}

.rst-area {
	margin: 0px;
	padding-left: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 20px;
	border-radius: 5px 5px 0 0;
}

.rst-panel {
	border: 1px solid #6d6a6a;
	border-radius: 5px;
	margin-bottom: 20px;
}

/* =========================================================
   Mobile Anpassungen
   ========================================================= */

@media (max-width: 768px) {

	.rstermin-event-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}

	.rst-switch {
		width: 100%;
	}

	.rst-btn {
		font-size: 0.85rem;
	}
}
