/**
 * Frontend-Styles für THN Intranet
 */

.thn-messages-frontend,
.thn-directory-frontend,
.thn-calendar-frontend,
.thn-projects-frontend,
.thn-announcements-frontend {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.thn-messages-frontend h2,
.thn-directory-frontend h2,
.thn-calendar-frontend h2,
.thn-projects-frontend h2,
.thn-announcements-frontend h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
}

.thn-messages-list,
.thn-events-list,
.thn-projects-list,
.thn-announcements-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.thn-message-item,
.thn-event-item,
.thn-project-item,
.thn-announcement-item {
	padding: 15px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
}

.thn-message-item.unread {
	background-color: #e7f3ff;
	border-left: 4px solid #0073aa;
}

.thn-message-date,
.thn-announcement-date {
	color: #666;
	font-size: 0.9em;
	margin-top: 10px;
}

.thn-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.thn-directory-item {
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.thn-directory-item h3 {
	margin-top: 0;
}

.thn-calendar-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
	padding: 10px;
	background: #f0f0f0;
	border-radius: 4px;
}

.thn-calendar-nav a {
	text-decoration: none;
	padding: 5px 15px;
	background: #0073aa;
	color: #fff;
	border-radius: 3px;
}

.thn-calendar-nav a:hover {
	background: #005a87;
}

.thn-announcement-item.important {
	border-left: 4px solid #d63638;
	background: #fff5f5;
}

.thn-announcement-content {
	margin: 10px 0;
}

.thn-project-status {
	font-weight: bold;
	color: #0073aa;
}

.thn-documents-frontend {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.thn-documents-frontend h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
}

.thn-documents-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.thn-documents-table th,
.thn-documents-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.thn-documents-table th {
	background: #f9f9f9;
	font-weight: bold;
}

.thn-documents-table tr:hover {
	background: #f5f5f5;
}
