/* design_lakbw_announcement.css - complete, replaces the whole file */

/* ---------------------------------------------------------------
   Mein Postfach - detail view (view/announcement/detail.sfs)
   --------------------------------------------------------------- */

/* Header: header image with badges (category, date) as overlay bottom left.
   Without an image .has-image is missing and the badges sit above the title. */
.lakbw-announcement-detail .lakbw-announcement-detail-header.has-image {
	position: relative;
	margin: 25px 0;
}

.lakbw-announcement-detail .lakbw-announcement-detail-header img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: var(--lakbw-radius-xl);
}

.lakbw-announcement-detail .lakbw-announcement-detail-header.has-image .lakbw-announcement-detail-badges {
	position: absolute;
	left: 20px;
	bottom: 20px;
}

/* Title: no uppercase */
.lakbw-announcement-detail .lakbw-announcement-detail-title {
	text-transform: none;
}

/* Short description (bold comes from <strong> in the markup) */
.lakbw-announcement-detail .lakbw-announcement-detail-short-description {
	margin: 0 0 1em;
}

/* Banner below the content, spacing and radius like the header image */
.lakbw-announcement-detail .lakbw-announcement-detail-banner {
	margin-top: 25px;
}

.lakbw-announcement-detail .lakbw-announcement-detail-banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lakbw-radius-xl);
}

/* ---------------------------------------------------------------
   Help icon behind usergroup checkboxes (Mein Postfach Backend)
   Markup: <span class="lakbw-tooltip lakbw-form-checkbox-help">
             <span class="material-icons">help_outline</span>
             <span class="lakbw-tooltip-content">...</span>
           </span>
   --------------------------------------------------------------- */
/* Fixed 13px box, nudged onto the text centre - "vertical-align: middle"
   uses the x-height and sits the icon visibly too low. */
.lakbw-form-checkbox-help {
	margin-left: 3px;
	width: 13px;
	height: 13px;
	line-height: 13px;
	vertical-align: -1px;
}
.lakbw-form-checkbox-help .material-icons {
	display: block;
	font-size: 13px;
	line-height: 13px;
	color: #999;
}
.lakbw-form-checkbox-help:hover .material-icons {
	color: #A3002F;
}
/* The icon is only 13px wide - without max-content the absolutely
   positioned tooltip would wrap after every word. */
.lakbw-form-checkbox-help .lakbw-tooltip-content {
	width: max-content;
	max-width: 280px;
	text-align: left;
	font-weight: normal;
	line-height: 1.4;
}

/* ---------------------------------------------------------------
   Email preview tab (admin preview)
   No outer frame: the header is a mail-client style bar with a
   label column (Betreff / An), the mail renders directly below it.
   Remove the old .lakbw-announcement-preview-email* rules first.
   --------------------------------------------------------------- */
.lakbw-announcement-preview-email-header {
	display: grid;
	grid-template-columns: 70px 1fr;
	column-gap: 12px;
	row-gap: 6px;
	align-items: baseline;
	padding: 0 0 14px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}
.lakbw-announcement-preview-email-label {
	font-size: 13px;
	color: #999;
}
.lakbw-announcement-preview-email-subject {
}
.lakbw-announcement-preview-email-value {
}
.lakbw-announcement-preview-email-note {
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #eee;
	color: #666;
	font-size: 11px;
	display: none;
}
.lakbw-announcement-preview-email-frame {
	display: block;
	border: 0;
}