/* ==========================================================================
   Tiernotdienst Frontend CSS
   Color scheme: #1a3a5c (dark blue), #f5f7fa (bg), white (cards)
   ========================================================================== */

:root {
	--tnd-blue:       #1a3a5c;
	--tnd-blue-light: #2c5f8a;
	--tnd-bg:         #f5f7fa;
	--tnd-white:      #ffffff;
	--tnd-border:     #dde3ec;
	--tnd-text:       #2d3748;
	--tnd-muted:      #718096;
	--tnd-ok:         #28a745;
	--tnd-warn:       #ffc107;
	--tnd-err:        #dc3545;
	--tnd-gray:       #6c757d;
	--tnd-shadow:     0 2px 8px rgba(0,0,0,0.08);
	--tnd-radius:     8px;
}

/* ---- Wrap ---------------------------------------------------------------- */
.tnd-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--tnd-text);
	background: var(--tnd-bg);
	padding: 24px;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.tnd-wrap *, .tnd-wrap *::before, .tnd-wrap *::after {
	box-sizing: border-box;
}

/* ---- Page header --------------------------------------------------------- */
.tnd-page-header {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.tnd-page-header h2 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tnd-blue);
	flex: 1;
}

/* ---- Cards --------------------------------------------------------------- */
.tnd-card {
	background: var(--tnd-white);
	border-radius: var(--tnd-radius);
	box-shadow: var(--tnd-shadow);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.tnd-card h3 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--tnd-blue);
}

.tnd-card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--tnd-text);
	transition: transform 0.15s, box-shadow 0.15s;
	min-width: 120px;
	min-height: 100px;
}

.tnd-card-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.13);
}

.tnd-card-icon {
	font-size: 2rem;
	margin-bottom: 8px;
}

.tnd-card-label {
	font-weight: 600;
	color: var(--tnd-blue);
}

.tnd-dashboard-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

/* ---- Buttons ------------------------------------------------------------- */
.tnd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
	text-decoration: none;
	white-space: nowrap;
}

.tnd-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.tnd-btn:active {
	transform: translateY(0);
}

.tnd-btn-primary {
	background: var(--tnd-blue);
	color: var(--tnd-white);
}

.tnd-btn-primary:hover {
	background: var(--tnd-blue-light);
	color: var(--tnd-white);
}

.tnd-btn-secondary {
	background: var(--tnd-white);
	color: var(--tnd-blue);
	border: 2px solid var(--tnd-blue);
}

.tnd-btn-secondary:hover {
	background: var(--tnd-bg);
}

.tnd-btn-danger {
	background: var(--tnd-err);
	color: var(--tnd-white);
}

.tnd-btn-danger:hover {
	background: #b02a37;
}

.tnd-btn-ok {
	background: var(--tnd-ok);
	color: var(--tnd-white);
}

.tnd-btn-ok:hover {
	background: #1e7e34;
}

.tnd-btn-sm {
	padding: 4px 10px;
	font-size: 0.8rem;
}

.tnd-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ---- Alerts -------------------------------------------------------------- */
.tnd-alert {
	border-radius: var(--tnd-radius);
	padding: 16px 20px;
	margin-bottom: 20px;
}

.tnd-alert h3 {
	margin: 0 0 12px;
	font-size: 1rem;
}

.tnd-alert-danger {
	background: #fff5f5;
	border: 1px solid #feb2b2;
	color: #742a2a;
}

.tnd-alert-danger h3 {
	color: var(--tnd-err);
}

.tnd-alert-ok {
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	color: #1a4731;
}

/* ---- Lücken list --------------------------------------------------------- */
.tnd-luecken-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.tnd-luecken-list li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(220,53,69,0.15);
}

.tnd-luecken-list li:last-child {
	border-bottom: none;
}

.tnd-luecke-slot {
	display: inline-block;
	background: var(--tnd-err);
	color: white;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 0.82rem;
	margin: 2px 4px;
	font-weight: 600;
}

/* ---- Toast notification -------------------------------------------------- */
.tnd-toast {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	min-width: 220px;
	max-width: 480px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.22);
	pointer-events: none;
	animation: tnd-toast-in 0.25s ease;
}

.tnd-toast-ok   { background: #28a745; color: #fff; }
.tnd-toast-err  { background: #dc3545; color: #fff; }
.tnd-toast-warn { background: #ffc107; color: #212529; }

@keyframes tnd-toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- Badges -------------------------------------------------------------- */
.tnd-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

.tnd-badge-ok   { background: #d4edda; color: #155724; }
.tnd-badge-err  { background: #f8d7da; color: #721c24; }
.tnd-badge-warn { background: #fff3cd; color: #856404; }
.tnd-badge-gray { background: #e9ecef; color: #495057; }

/* ---- Tables -------------------------------------------------------------- */
.tnd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.tnd-table th {
	background: var(--tnd-blue);
	color: white;
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}

.tnd-table th:first-child { border-radius: 6px 0 0 0; }
.tnd-table th:last-child  { border-radius: 0 6px 0 0; }

.tnd-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--tnd-border);
	vertical-align: middle;
}

.tnd-table tr:hover td {
	background: #f0f4f9;
}

.tnd-table tr:last-child td {
	border-bottom: none;
}

.tnd-table-scroll {
	overflow-x: auto;
}

.tnd-row-error td { background: #fff5f5 !important; }
.tnd-row-warn td  { background: #fffbf0 !important; }

/* ---- Forms --------------------------------------------------------------- */
.tnd-field {
	margin-bottom: 16px;
}

.tnd-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--tnd-blue);
	font-size: 0.9rem;
}

.tnd-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--tnd-border);
	border-radius: 6px;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: var(--tnd-white);
	color: var(--tnd-text);
}

/* Specificity boost to override theme selectors like input[type=text] (0,1,1).
   .tnd-modal is also needed because modals are detached to <body> (outside .tnd-wrap). */
.tnd-wrap .tnd-input,
.tnd-modal .tnd-input,
.tnd-wrap .tnd-oz-textarea,
.tnd-modal .tnd-oz-textarea {
	font-size: 0.9rem;
	color: #4a5568;
}

.tnd-input:focus {
	outline: none;
	border-color: var(--tnd-blue);
	box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}

.tnd-hint {
	font-size: 0.8rem;
	display: block;
	margin-top: 4px;
}

.tnd-hint-ok  { color: var(--tnd-ok); }
.tnd-hint-err { color: var(--tnd-err); }

.tnd-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tnd-radio-group label {
	font-weight: normal;
	color: var(--tnd-blue);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.tnd-radio-group input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.tnd-radio-group--horiz {
	flex-direction: row;
	gap: 20px;
}

/* ---- Modal --------------------------------------------------------------- */
.tnd-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.tnd-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.65);
}

body.tnd-modal-open {
	overflow: hidden;
}

.tnd-modal-box {
	position: relative;
	background: var(--tnd-white);
	border-radius: var(--tnd-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1;
}

.tnd-modal-header {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--tnd-border);
	background: var(--tnd-blue);
	border-radius: var(--tnd-radius) var(--tnd-radius) 0 0;
}

.tnd-modal-header h3 {
	margin: 0;
	color: #ffffff !important;
	font-size: 1rem;
	flex: 1;
}

.tnd-modal-close {
	background: none;
	border: none;
	cursor: pointer;
}

/* × close button in modal header only */
.tnd-modal-header .tnd-modal-close {
	color: rgba(255,255,255,0.8);
	font-size: 1.4rem;
	padding: 0 4px;
	line-height: 1;
}

.tnd-modal-close:hover { color: white; }

.tnd-modal-footer .tnd-btn-secondary {
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.tnd-modal-body {
	padding: 20px;
	color: var(--tnd-blue);
}

.tnd-modal-info {
	color: var(--tnd-blue);
	font-size: 0.88rem;
	margin-bottom: 12px;
}

.tnd-modal-footer {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	padding: 16px 20px;
	border-top: 1px solid var(--tnd-border);
	background: var(--tnd-bg);
	border-radius: 0 0 var(--tnd-radius) var(--tnd-radius);
}

/* ---- Combobox ------------------------------------------------------------ */
.tnd-combobox {
	position: relative;
}
.tnd-combobox-search {
	padding-right: 32px !important;
	cursor: default;
}
.tnd-combobox-search:focus {
	cursor: text;
}
.tnd-combobox-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #6c757d;
	font-size: 11px;
	line-height: 1;
}
.tnd-combobox-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #c5cfe0;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	max-height: 220px;
	overflow-y: auto;
}
.tnd-combobox-dropdown.open {
	display: block;
}
.tnd-combobox-item {
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.4;
	color: #1a1a2e;
}
.tnd-combobox-item:hover,
.tnd-combobox-item.tnd-combobox-focused {
	background: #e8f0fe;
	color: #1a3a5c;
}
.tnd-combobox-item.tnd-combobox-clear {
	color: #888;
	font-style: italic;
	border-bottom: 1px solid #eef0f4;
}
.tnd-combobox-item.tnd-combobox-empty {
	color: #aaa;
	font-style: italic;
	cursor: default;
}
.tnd-combobox-item.tnd-combobox-empty:hover {
	background: transparent;
}

/* ---- Kalender ------------------------------------------------------------ */
.tnd-kalender-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tnd-kalender-grid {
	min-width: 700px;
}

.tnd-month-label {
	font-size: 1.3rem;
}

.tnd-kalender-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.tnd-kalender-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 4px;
}

.tnd-weekday {
	text-align: center;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--tnd-muted);
	padding: 4px 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tnd-kalender-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.tnd-day {
	background: var(--tnd-white);
	border-radius: 6px;
	border: 1px solid var(--tnd-border);
	min-height: 80px;
	padding: 6px;
	min-width: 0;
}

.tnd-day-empty {
	background: transparent;
	border-color: transparent;
}

.tnd-day-today {
	border-color: var(--tnd-blue);
	border-width: 2px;
}

.tnd-day-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4px;
}

.tnd-day-nr {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--tnd-blue);
}

.tnd-day-weekday {
	font-size: 0.72rem;
	color: var(--tnd-muted);
}

/* ---- Slot tiles ---------------------------------------------------------- */
.tnd-slot-tile {
	background: #f0f4f9;
	border-radius: 4px;
	padding: 4px 6px;
	margin-bottom: 3px;
	cursor: pointer;
	font-size: 0.76rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	transition: background 0.1s;
	border: 1px solid transparent;
}

.tnd-slot-tile:hover {
	background: #dce7f5;
	border-color: var(--tnd-blue);
}

.tnd-slot-gap {
	background: #fff5f5;
	border-color: #feb2b2;
}

.tnd-slot-gap:hover {
	background: #fed7d7;
}

.tnd-slot-time {
	color: var(--tnd-muted);
	font-size: 0.72rem;
	white-space: nowrap;
}

.tnd-slot-praxis {
	font-weight: 600;
	color: var(--tnd-text);
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tnd-slot-row2 {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	min-width: 0;
}

.tnd-slot-ansage {
	background: #f3eefe;
	border-color: #c4a8f5;
}

.tnd-slot-ansage:hover {
	background: #e8d8fd;
	border-color: #9b6dea;
}

.tnd-slot-ansage-label {
	color: #5b21b6;
	font-weight: 600;
}

.tnd-slot-empty {
	color: var(--tnd-muted);
	font-weight: normal;
	font-style: italic;
}

.tnd-slot-gap-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: var(--tnd-err);
	color: white;
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 900;
	flex-shrink: 0;
}

/* ---- Next-day badge ------------------------------------------------------ */
.tnd-phone-warn {
	color: #dc3545;
	font-size: 0.9rem;
	margin-left: 4px;
	cursor: help;
}

.tnd-nextday-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #6c757d;
	border-radius: 3px;
	padding: 0 3px;
	margin-left: 3px;
	vertical-align: middle;
	line-height: 1.4;
}

/* ---- Sync status icons --------------------------------------------------- */
.tnd-sync-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 900;
	flex-shrink: 0;
}

.tnd-sync-match   { background: var(--tnd-ok);   color: white; }
.tnd-sync-pending { background: #4a90d9;          color: white; }
.tnd-sync-error   { background: var(--tnd-err);  color: white; }
.tnd-sync-unknown { background: var(--tnd-gray); color: white; }

/* ---- Calendar legend ----------------------------------------------------- */
.tnd-kalender-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 16px;
	font-size: 0.82rem;
	color: var(--tnd-muted);
}

.tnd-legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* ---- Loading / error ----------------------------------------------------- */
.tnd-loading {
	color: var(--tnd-muted);
	padding: 24px;
	text-align: center;
	font-style: italic;
}

.tnd-error {
	color: var(--tnd-err);
	padding: 16px;
	text-align: center;
}

/* ---- Import -------------------------------------------------------------- */
.tnd-import-summary {
	background: #f0f4f9;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 0.9rem;
}

.tnd-code {
	background: #282c34;
	color: #abb2bf;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 0.82rem;
	overflow-x: auto;
	margin: 8px 0;
}

/* ---- Statistik ----------------------------------------------------------- */
.tnd-statistik-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.tnd-statistik-filter label {
	font-weight: 600;
	font-size: 0.9rem;
}

.tnd-statistik-filter .tnd-input {
	width: auto;
}

.tnd-stat-praxis {
	min-width: 200px;
}

.tnd-bar-wrap {
	height: 6px;
	background: var(--tnd-border);
	border-radius: 3px;
	margin: 6px 0 4px;
	overflow: hidden;
}

.tnd-bar {
	height: 100%;
	background: var(--tnd-blue);
	border-radius: 3px;
	transition: width 0.5s ease;
}

/* ---- Status table -------------------------------------------------------- */
.tnd-status-table {
	font-size: 0.85rem;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
	.tnd-wrap {
		padding: 12px;
	}

	.tnd-kalender-grid {
		min-width: 560px;
	}

	.tnd-page-header h2 {
		font-size: 1.2rem;
	}

	.tnd-dashboard-cards {
		gap: 10px;
	}

	.tnd-card-link {
		min-width: 90px;
		min-height: 80px;
	}

	.tnd-modal-box {
		max-width: 100%;
	}

	.tnd-statistik-filter {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.tnd-kalender-days,
	.tnd-kalender-weekdays {
		grid-template-columns: repeat(7, minmax(60px, 1fr));
	}
}

/* ==========================================================================
   Praxisliste  [tnd_praxenliste]
   All classes use the .tnd-praxenliste__ BEM prefix so themes can fully
   override the appearance via CSS without touching template PHP.
   ========================================================================== */

.tnd-praxenliste {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--tnd-text, #2d3748);
	box-sizing: border-box;
}

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

/* Remove default list styling */
.tnd-praxenliste__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* Single practice card */
.tnd-praxenliste__item {
	background: #fff;
	border-radius: var(--tnd-radius, 8px);
	box-shadow: var(--tnd-shadow, 0 2px 8px rgba(0,0,0,0.08));
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tnd-praxenliste__item--inaktiv {
	opacity: 0.6;
}

/* Header */
.tnd-praxenliste__header {
	background: var(--tnd-blue, #1a3a5c);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tnd-praxenliste__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	flex: 1;
	color: #fff !important;
}

.tnd-praxenliste__badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 20px;
	white-space: nowrap;
}

.tnd-praxenliste__badge--inaktiv {
	background: rgba(255,255,255,0.2);
	color: #fff;
}

/* Body */
.tnd-praxenliste__body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* Contact fields */
.tnd-praxenliste__feld {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.tnd-praxenliste__feld-label {
	font-weight: 600;
	color: var(--tnd-muted, #718096);
	min-width: 60px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-top: 1px;
}

.tnd-praxenliste__feld-wert {
	flex: 1;
}

.tnd-praxenliste__tel-link,
.tnd-praxenliste__mail-link {
	color: var(--tnd-blue, #1a3a5c);
	text-decoration: none;
}

.tnd-praxenliste__tel-link:hover,
.tnd-praxenliste__mail-link:hover {
	text-decoration: underline;
}

/* Opening hours */
.tnd-praxenliste__oeffnungszeiten {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--tnd-border, #dde3ec);
}

.tnd-praxenliste__oz-label {
	display: block;
	font-weight: 600;
	color: var(--tnd-muted, #718096);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.tnd-praxenliste__oz-leer {
	font-size: 0.85rem;
	color: var(--tnd-muted, #718096);
	margin: 0;
}

.tnd-praxenliste__oz-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.tnd-praxenliste__oz-zeile {
	border-bottom: 1px solid var(--tnd-border, #dde3ec);
}

.tnd-praxenliste__oz-zeile:last-child {
	border-bottom: none;
}

.tnd-praxenliste__oz-zeile--geschlossen .tnd-praxenliste__oz-zeiten {
	color: var(--tnd-muted, #718096);
}

.tnd-praxenliste__oz-tag {
	font-weight: 600;
	padding: 5px 10px 5px 0;
	white-space: nowrap;
	vertical-align: top;
	color: var(--tnd-text, #2d3748);
	text-align: left;
	min-width: 90px;
}

.tnd-praxenliste__oz-zeiten {
	padding: 5px 0;
	vertical-align: top;
}

.tnd-praxenliste__oz-trenner {
	margin: 0 3px;
}

.tnd-praxenliste__oz-geschlossen {
	font-style: italic;
}

.tnd-praxenliste__oz-notiz {
	display: block;
	font-size: 0.8em;
	color: var(--tnd-muted, #718096);
	margin-top: 1px;
}

.tnd-praxenliste__leer {
	color: var(--tnd-muted, #718096);
}

/* Weekend highlight (opt-in via theme) */
.tnd-praxenliste__oz-zeile--samstag,
.tnd-praxenliste__oz-zeile--sonntag {
	/* left intentionally unstyled; theme can add: background: #f9f0f0; */
}

/* Responsive: single column on narrow screens */
@media (max-width: 480px) {
	.tnd-praxenliste__liste {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Öffnungszeiten-Textarea (inside praxis-verwaltung modal)
   ========================================================================== */

.tnd-oz-textarea {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
	line-height: 1.5;
}


/* ==========================================================================
   Feiertag-Styles (DB 1.7.0)
   ========================================================================== */

/* Day container highlight */
.tnd-tag-feiertag .tnd-day-header {
	background: #fff3cd;
	color: #856404;
}

/* Badge inside day header */
.tnd-feiertag-badge {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	background: #ffc107;
	color: #333;
	padding: 1px 4px;
	border-radius: 4px;
	margin-top: 3px;
	text-align: center;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
