/*
Global
============================= */

body{
	font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
	color:#666;
	font-size:16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}


p{
	line-height: 24px;
}

#applicationForm p {
	line-height: initial !important;
}
a{color:#188E51;}
a:hover{text-decoration: none;}

.text-primary {
	color: #23985D !important;
}
.text-success-light {
	color: rgba(35, 154, 94, 0.75) !important;
}
.text-warning {
	color: hsl(41, 100%, 51%) !important;
}
.text-danger {
	color: hsl(354, 70%, 54%) !important;
}
.text-secondary {
	color: #6c757d !important;
}

#nav a:not([href]) {
	color: #939393 !important;
}

h1,h2,h3,h4,h5,h6{ font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}

h1{font-size:50px; font-weight: 200; color: #555; margin-bottom: 20px;}
h2{font-size: 30px; font-weight: 300; color:#444; margin: 30px 0}
h3{font-size: 20px; font-weight: 400; margin: 20px 0;}
h4{font-size:18px; font-weight: 400}

/*
BUTTON STYLEs
===========================*/
.btn-success {
	background-color: #23985D;
}

.btn-part-left {
	border-bottom-right-radius: 0px; border-top-right-radius: 0px;
}

.btn-part-right {
	border-bottom-left-radius: 0px; border-top-left-radius: 0px;
}

.white-space-normal {
	white-space: normal !important;
}

/*
HEADER ROW STYLE
===========================*/
#header-row{
	background: #f5f5f5;
	border-bottom:1px solid #eee;
	padding: 15px 0;
	/* Stays at the top while scrolling; below the Bootstrap 3 dropdowns (1000) and modals (1040+) */
	position: sticky;
	top: 0;
	z-index: 900;
}

#header-row .navbar{
	margin:10px 0 10px 0;
}

/* Rounded hover and focus background of the menu entries, like the boxes */
#header-row .navbar-nav > li > a {
	border-radius: 6px;
}

/* The full menu needs about 1550px. Below that the burger menu of the mobile view is used
   (Bootstrap 3 only switches below 768px), so the menu never breaks into two lines. */
@media (min-width: 768px) and (max-width: 1599px) {
	#header-row .navbar-header {
		float: none;
	}

	#header-row .navbar-toggle {
		display: block;
	}

	#header-row .navbar-collapse.collapse {
		display: none !important;
	}

	#header-row .navbar-collapse.collapse.in {
		display: block !important;
		overflow-y: auto !important;
	}

	#header-row .navbar-nav,
	#header-row .navbar-nav.navbar-right {
		float: none !important;
		margin: 7.5px -15px;
	}

	#header-row .navbar-nav > li {
		float: none;
	}

	#header-row .navbar-nav > li > a {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Bootstrap 3 shows the dropdowns of a collapsed menu inline, without a floating box */
	#header-row .navbar-nav .open .dropdown-menu {
		position: static;
		float: none;
		width: auto;
		margin-top: 0;
		background-color: transparent;
		border: 0;
		box-shadow: none;
	}
}

/* The header may be wider than the content below, so the menu fits next to the logo.
   Logo and menu sit next to each other as one group, centered in the header. */
@media (min-width: 1600px) {
	/* max-width: the forum also loads Bootstrap 4 (django-machina), which limits .container */
	#header-row > .container {
		width: auto;
		max-width: none;
	}

	#header-row nav > .container-fluid {
		text-align: center;
	}

	#header-row .navbar-nav > li > a {
		padding-left: 12px;
		padding-right: 12px;
	}

	#header-row .navbar-header,
	#header-row .navbar-collapse.collapse {
		display: inline-block !important;
		float: none;
		vertical-align: middle;
		text-align: left;
	}

	#header-row .navbar-nav.navbar-right {
		float: none !important;
		margin-right: 0;
	}
}
.cnt-title {
	text-align: center;
}
.caption h1 {
	font-size: 3em;
	font-weight: 700;
}
.choose{
	background-color: #00A65A;
	text-align: center;
	padding: 5px;
}
.choose i {
	color: rgba(0,0,0,0.3);
}

/* Divider
==================*/
.hr-divider{
	background: url(../img/slide-bg.png) no-repeat bottom center;
	width:1170px;
	height: 100px;
	margin-bottom: 50px;
	display: block;
	clear: both;}

/*Feature
==========================*/
.feature-box{
	margin-top: 60px;
	text-align: center;
}
.cnt-title { text-align: center; margin-bottom: 50px;}
.cnt-title span {
	font-size: 24px;
	font-weight: 200;
}


/* Page Header
==========================*/

.page-header{
	border-bottom: 1px solid #f5f5f5;
}

.hide-text-overflow {
	overflow: hidden;
	text-overflow: ellipsis;
}

/*Media
========================*/

.media{
	margin-bottom:25px;
}
.strike:after {
	position: absolute;
	content: "|";
	color: red;
	font-weight: 900;
	font-size: 1.7em;
	left: 5px;
	top: -6px;
	transform: translate(-50%, 0) rotate(30deg);
}

.posting{
	padding: 15px;
	border-bottom: 1px solid #9a9595;
	margin-bottom:15px;
}

.posting .media-body {
	word-break: break-word;
}

/*MAP
========================*/
#map-canvas{
	height: 400px;
	border: 15px solid #fff;
	box-shadow:0 0 0 1px #f5f5f5;
}

/*MORE
========================*/

.jumbotron {
	background: url('../img/slider.jpg');
	background-size: cover;
	background-position: center center;
}

.caption {
	color: black;
	padding: 20px;
	background: rgba(255,255,255,0.7);
	border-radius: 6px; /* same as the cards of the event page (#publicEvent .eventCard) */
}

/* Profile picture upload in the profile, rounded like the other boxes (dropzone.css is vendor code) */
#profilepicture.dropzone {
	border-radius: 6px;
}

/* Header of the upload modal (public/partials/header.html): title left, close button right
   in one line, independent of the float (Bootstrap 3) or flex rules other stylesheets set */
#submitInvoice .modal-header {
	display: flex;
	align-items: center;
	gap: 1rem;
}

#submitInvoice .modal-header .modal-title {
	flex: 1 1 auto;
	margin: 0;
}

#submitInvoice .modal-header .close {
	float: none;
	margin: 0;
	top: 0;
	right: 0;
}

/* Round club logo in the navigation; a fixed square keeps non-square logos from becoming an oval */
.navbar-brand img.img-circle {
	width: 72px;
	height: 72px;
	margin-top: -26px; /* keeps the logo centered on the 50px high Bootstrap brand */
	object-fit: cover;
}

/*Textarea
=========================*/
.textarea-not-resizable {
	resize: vertical;
	min-height: 70px;
}


/*CKEDITOR
========================*/
div.ckeditor-inline {
	border: 1px solid black;
	max-width: 600px;
	margin: 0 auto;
	border-color: #ccc !important;
}

div.ckeditor-inline.ckeditor-inline-modal {
	max-width: 100%;
	max-height: 500px;
	overflow: auto;
}

div.ckeditor-inline div[contenteditable=true] {
	padding: 2em;
}

div.ckeditor-inline h3 {
	border:none;
}
/* Keep the modal/CKEditor containers clean for mouse users, but never hide the keyboard focus. */
div:focus{
	outline: none;
}

div:focus-visible {
	outline: 2px solid #23985d;
	outline-offset: 2px;
}

/*
 * Controls that trigger an action instead of navigating must be a <button> so that they are
 * reachable by keyboard, but they should keep looking like the links they replaced.
 */
.linkButton{
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	text-align: left;
	color: #337ab7;
}

.linkButton:hover,
.linkButton:focus{
	text-decoration: underline;
}

/*
 * The "N zugewiesen" popover trigger on the public todo page (todoPublic.html).
 * The hover/focus color comes from the organization's primary color, set by
 * that template via the --responsible-members-trigger-color custom property.
 */
.responsible-members-trigger{
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.responsible-members-trigger:hover,
.responsible-members-trigger:focus-visible{
	color: var(--responsible-members-trigger-color, #23985d);
}

.responsible-members-popover {
	max-width: 340px;
	min-width: 260px;
	border: none;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.responsible-members-popover.right {
	margin-left: 16px;
}
.responsible-members-popover .popover-title {
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px 12px 0 0;
	font-weight: 600;
	padding: 8px 14px 6px;
}
.responsible-members-popover .popover-content {
	max-height: 320px;
	overflow-y: auto;
	padding: 6px 14px 10px;
}
.rm-member {
	padding: 3px 0;
}
.rm-group {
	border-radius: 8px;
	margin-top: 10px;
	padding: 8px 10px;
}
.rm-group-name {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

span.text-tiny {
    font-size: .7em
}
span.text-small {
    font-size: .85em
}
span.text-big {
    font-size: 1.4em
}
span.text-huge {
    font-size: 1.8em
}
.p-text-small {
    font-size: .85em
}
.p-text-tiny {
    font-size: .7em
}

mark.marker-yellow {
    background-color: #fdfd77;
}
mark.marker-green {
    background-color: #62f962;
}
mark.marker-pink {
    background-color: #fc7899;
}
mark.marker-blue {
    background-color: #72ccfd;
}
mark.pen-red {
    background-color: transparent;
    color: #e71313;
}
mark.pen-green {
    background-color: transparent;
    color: #128a00;
}

/* Sweet Alerts
========================*/
.swal2-popup{
	font-size: 2rem !important;
}

/*Footer
========================*/

footer{
border-top:1px solid #eee;
background: #f5f5f5;
padding: 30px 0;
color: #939393;
margin-top:40px;
}

.applicationFromMarginTop {
	margin-top: 1%;
}

.applicationFromMarginBottom {
	margin-top: 3%;
}

.hrStyling {
	height:1.2px;
	border:none;
	color:#333;
	background-color:#333;
}

/* hijack
========================*/
.alert-hijack {
	border-radius: 0px !important;
	margin: 0px !important;
	text-align: center !important;
}

/* These selects cannot have display: none,
   otherwise there'll be an error that the element is not focusable.
   This is a bit hacky but since the source of the error occurs in some jQuery lib
   I can't change stuff there.
========================*/
#applicationForm select[settingsType='a'] {
	display: block !important;
}

#applicationForm select[settingsType='a']:not(.mobile-device) {
	opacity: 0 !important;
	height: 0px !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Same reason as above for the member group single select: it has an empty
   first option, so a required select without a selection is invalid and must
   not be display: none either.
========================*/
#applicationForm select[name='memberGroups']:not([multiple]) {
	display: block !important;
}

#applicationForm select[name='memberGroups']:not([multiple]):not(.mobile-device) {
	opacity: 0 !important;
	height: 0px !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Make the language select "Go" button look better
========================*/
form.setLanguage .input-group .btn:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left-width: 0;
}

.help-text {
	color: #939393;
	font-size: 0.9em;
	margin-bottom: 10px;
}

/* Paginations
========================*/
.pagination .curPage,
.pagination .curPage:hover {
	background-color: #23985D;
	color: #ffffff;
}

.pagination .ellipsis,
.pagination .ellipsis:hover {
	background-color: #f2f2f2;
	color: rgba(33, 37, 41, 0.75);
}

.pagination .page-link {
    cursor: pointer;
}
.pagination .disabled .page-link {
    cursor: not-allowed;
}
.pagination .navigatePage {
    cursor: pointer;
}
.pagination .ellipsis {
    cursor: default;
}

/*************************
Styles for inventory details modal and quantity input
*************************/
#inventoryDetails .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
#inventoryDetails .modal-header {
    bottom: 0;
}
#inventoryDetails .modal-body {
    overflow-y: auto;
    flex-grow: 1;
}
#inventoryDetails #customFields {
    display: none;
}
#inventoryQuantity {
    padding-left: 1.0rem;
    padding-right: 1.0rem;
}

.d-inline-block {
	display: inline-block;
}

.ms-3 {
	margin-left: 1rem !important;
}

.ms-2 {
	margin-left: 0.5rem !important;
}

.ms-1 {
	margin-left: 0.25rem !important;
}

.ms-0 {
	margin-left: 0rem !important;
}

.mt-3 {
	margin-top: 1rem !important;
}

.mt-5 {
	margin-top: 3rem !important;
}

.mb-3 {
	margin-bottom: 1rem !important;
}

/*************************
Icon colors
*************************/
.icon-grey {
	color: grey;
}

.icon-orange {
	color: orange;
}

.icon-green {
	color: #5cb85c;
}

/*************************
public/todo.html
*************************/
.todo-open-tasks-box {
	margin-bottom: 5rem;
}

#taskDetail .modal-body {
	max-height: calc(100vh - 250px);
	overflow-y: auto;
}

#taskDetailDescriptionContainer {
	display: none;
	margin-bottom: 1rem;
}

#taskChecklistContainer {
	display: none;
}

.editLabelChecklistItem {
	margin-top: 0.5rem;
}

#taskChecklistAddName,
#textDetailComment {
	margin-bottom: 0.3125rem;
}

#taskDetailCommentsContainer {
	display: none;
	margin-top: 1.5rem;
}

#taskDetailSidebar {
	display: flex;
	flex-direction: column;
}

.edited-note {
	display: block;
	width: fit-content;
	margin-top: 2px;
	font-size: 0.8em;
	color: #999;
}

.edited-note-tooltip .tooltip-inner {
	white-space: nowrap;
	max-width: none;
}

.task-row-actions {
	display: flex;
	align-items: center;
	white-space: nowrap;
	gap: 0.3em;
}

.group-badge-row {
	display: flex;
	align-items: center;
	gap: 0.3em;
}

#taskDetail h4,
#taskDetail h4:hover {
	color: var(--responsible-members-trigger-color, #23985d);
}
/*************************
public/event.html
*************************/
#publicEvent {
	margin-top: 1rem;
	margin-bottom: 3rem;
	color: #212529;
}

#publicEvent .margin-top-40 {
	margin-top: 40px;
}

/* #c9302c instead of #d9534f: white text needs 4.5:1 (WCAG 1.4.3), same red as the chosen "Absagen" */
#publicEvent .bg-danger {
	background-color: #c9302c;
	color: white;
}

#publicEvent .eventBackLink {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 44px;
}

#publicEvent .eventCard {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
}

#publicEvent .eventCardHeader {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: -20px -20px 20px;
	padding: 14px 20px;
	border-bottom: 1px solid #dee2e6;
}

#publicEvent .eventCardTitle {
	margin: 0 0 0.75rem;
	font-size: 20px;
	font-weight: 600;
	color: #212529;
}

#publicEvent .eventCardHeader .eventCardTitle {
	margin: 0;
}

/* header: date tile | title and facts | ICS */
#publicEvent .eventHeader {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

#publicEvent .eventDateTile {
	flex: none;
	width: 84px;
	overflow: hidden;
	border: 1px solid #1b7a4a;
	border-radius: 6px;
	text-align: center;
}

#publicEvent .eventDateTileMonth {
	padding: 4px 0;
	background: #1b7a4a;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#publicEvent .eventDateTileDay {
	padding-top: 6px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: #212529;
}

#publicEvent .eventDateTileWeekday {
	padding-bottom: 8px;
	font-size: 12px;
	color: #6c757d;
}

#publicEvent .eventHeaderMain {
	flex: 1 1 420px;
	min-width: 0;
}

#publicEvent .eventHeadline {
	margin: 0 0 0.5rem;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	color: #212529;
	overflow-wrap: anywhere;
}

#publicEvent .eventHeadline .badge {
	vertical-align: middle;
	font-size: 0.5em;
}

#publicEvent .eventMeta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	color: #4a4a4a;
}

#publicEvent .eventMeta svg,
#publicEvent .eventMeta i {
	margin-right: 0.25rem;
	color: #23985d;
}

#publicEvent .eventFactParticipation:has(.eventParticipation:empty) {
	display: none;
}

#publicEvent .eventIcsLink {
	flex: none;
	min-height: 44px;
	padding: 10px 16px;
	border-color: #23985d;
	color: #16603b;
	white-space: normal;
}

/* participation card */
#publicEvent #participationStatusContainer {
	margin: 0;
	padding: 4px 12px;
	border-radius: 50rem;
	font-size: 13px;
}

#publicEvent #participationStatus {
	margin: 0;
}

#publicEvent #participationInfo {
	margin-bottom: 1rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	color: #6c757d;
}

#publicEvent #participationInfo:has(#participationText:empty):has(#participationTimes:empty) {
	display: none;
}

#publicEvent .eventConsents {
	margin-top: 1rem;
}

#publicEvent .eventConsent {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

#publicEvent .eventConsent input[type="checkbox"] {
	flex-shrink: 0;
	margin: 0.3em 0 0;
}

#publicEvent .eventConsent label {
	margin-bottom: 0;
}

#publicEvent .eventConsent small {
	display: block;
	margin-top: 0.25rem;
	line-height: 1.4;
	color: #6c757d;
}

#publicEvent .eventConsent small > br:first-child {
	display: none;
}

#publicEvent .eventEmailConfirmation {
	margin: 40px 0;
}

/* price groups: name and price left, stepper right, total below */
#publicEvent .priceGroupBox {
	margin-bottom: 1rem;
	padding: 14px 16px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background: #f8f9fa;
}

#publicEvent .priceGroupTitle {
	font-weight: 600;
	color: #212529;
}

#publicEvent .priceGroupHint {
	margin: 0 0 0.5rem;
	font-size: 13px;
	line-height: 1.4;
	color: #4a4a4a;
}

#publicEvent .priceGroupOption {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 8px 0;
	border-bottom: 1px solid #dee2e6;
}

#publicEvent .priceGroupInfo {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

#publicEvent .priceGroupName {
	margin: 0;
	line-height: 1.4;
	color: #212529;
}

#publicEvent .priceGroupPrice {
	font-size: 13px;
	color: #4a4a4a;
}

#publicEvent .priceGroupSoldOut {
	font-size: 13px;
	font-weight: 600;
	color: #a94442;
}

#publicEvent .priceGroupStepper {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
}

#publicEvent .priceGroupStep {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 6px;
}

#publicEvent .priceGroupStepper .priceGroupPieces {
	width: 56px;
	height: 44px;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

#publicEvent .priceGroupStepper .priceGroupPieces::-webkit-inner-spin-button,
#publicEvent .priceGroupStepper .priceGroupPieces::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

#publicEvent .priceGroupTotal {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	font-weight: 600;
	color: #212529;
}

#publicEvent #externalFields label,
#publicEvent label[for="description"] {
	color: #212529;
}

/* answer buttons: three equal tiles, the chosen one filled */
#publicEvent #participationStateButtons {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 1rem;
}

#publicEvent #participationStateButtons .btn {
	min-height: 52px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	color: #212529;
	font-weight: 600;
	white-space: normal;
}

#publicEvent #participationStateButtons #prtUpdate {
	grid-column: 1 / -1;
	order: 1;
}

#publicEvent #participationStateButtons #prtState1:not(.active) svg {
	color: #23985d;
}

#publicEvent #participationStateButtons #prtState2:not(.active) svg {
	color: #d39200;
}

#publicEvent #participationStateButtons #prtState0:not(.active) svg {
	color: #d9534f;
}

#publicEvent #participationStateButtons #prtState1.active {
	border-color: #1b7a4a;
	background: #1b7a4a;
	color: #fff;
}

#publicEvent #participationStateButtons #prtState2.active {
	border-color: #f0ad4e;
	background: #f0ad4e;
	color: #212529;
}

#publicEvent #participationStateButtons #prtState0.active {
	border-color: #c9302c;
	background: #c9302c;
	color: #fff;
}

#publicEvent .eventCompanion {
	margin-top: 1.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid #dee2e6;
}

#publicEvent .eventCompanionToggle {
	min-height: 44px;
	font-weight: 600;
}

#publicEvent .eventCompanionForm {
	padding-top: 0.5rem;
}

/* companion buttons: same tiles as the answer buttons, two columns */
#publicEvent #buttonSectionCompanion {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 0.5rem;
}

#publicEvent #buttonSectionCompanion .btn {
	min-height: 52px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	color: #212529;
	font-weight: 600;
	white-space: normal;
}

#publicEvent #buttonSectionCompanion #cmpState1 svg {
	color: #23985d;
}

#publicEvent #buttonSectionCompanion #cmpState2 svg {
	color: #d39200;
}

/* clearly visible keyboard focus for the custom controls */
#publicEvent #participationStateButtons .btn:focus-visible,
#publicEvent #buttonSectionCompanion .btn:focus-visible,
#publicEvent .priceGroupStep:focus-visible,
#publicEvent .participantTab:focus-visible,
#publicEvent .eventCompanionToggle:focus-visible,
#publicEvent .eventBackLink:focus-visible {
	outline: 3px solid #1b7a4a;
	outline-offset: 2px;
}

/* description and side column */
#publicEvent .eventDescription {
	overflow-wrap: anywhere;
}

#publicEvent .eventDescription img {
	max-width: 100%;
	height: auto;
}

#publicEvent .eventDescription > :last-child {
	margin-bottom: 0;
}

#publicEvent .eventLocation {
	overflow: hidden;
}

#publicEvent #mapdiv {
	height: 160px;
	margin: -20px -20px 16px;
}

#publicEvent #mapdiv:empty {
	display: none;
}

#publicEvent .eventLocation .eventCardTitle,
#publicEvent .eventCustomFields .eventCardTitle {
	font-size: 16px;
}

#publicEvent .eventCustomField {
	margin-bottom: 0.75rem;
	overflow-wrap: anywhere;
}

#publicEvent .eventCustomField:last-child {
	margin-bottom: 0;
}

#publicEvent .eventCustomFieldLabel {
	font-size: 12px;
	color: #6c757d;
}

#publicEvent .eventCustomFieldValue > :last-child {
	margin-bottom: 0;
}

/* participants: tabs and one row per person */
#publicEvent .participantTabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 8px;
	background: #f1f3f5;
}

#publicEvent .participantTab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #4a4a4a;
	font-weight: 600;
}

/* the green bar marks the active tab visibly, the white background alone has too little contrast (WCAG 1.4.11) */
#publicEvent .participantTab.active {
	background: #fff;
	color: #212529;
	box-shadow: inset 0 -3px 0 #1b7a4a, 0 1px 2px rgba(0, 0, 0, 0.12);
}

#publicEvent .participantTab .badge {
	background: #6c757d;
}

#publicEvent .participantTab.active .badge {
	background: #1b7a4a;
}

/* columns: image | name | comment | price group and email (chairman only) */
#publicEvent .participantHeader,
#publicEvent .participantEntry {
	display: grid;
	grid-template-columns: 32px minmax(0, 12rem) minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: center;
}

#publicEvent .participantHeader > :first-child {
	grid-column: span 2;
}

#publicEvent .participantHeader {
	margin: -20px -20px 0;
	padding: 10px 20px;
	border-bottom: 1px solid #dee2e6;
	background: #f8f9fa;
	font-size: 12px;
	font-weight: 600;
	color: #4a4a4a;
}

#publicEvent .participantList {
	margin: 0;
}

#publicEvent .participantEntry {
	padding: 10px 0;
	border-bottom: 1px solid #f1f3f5;
	font-size: 14px;
	line-height: 1.4;
}

#publicEvent .participantEntry:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

#publicEvent .participantImage {
	width: 32px;
	height: 32px;
	object-fit: cover;
}

#publicEvent .participantInfo {
	display: contents;
}

#publicEvent .participantName {
	font-weight: 600;
	overflow-wrap: anywhere;
}

#publicEvent .participantComment {
	color: #4a4a4a;
	overflow-wrap: anywhere;
}

#publicEvent .participantDetails {
	display: none;
}

#publicEvent .participantMeta {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13px;
	color: #4a4a4a;
}

@media (min-width: 768px) {
	#publicEvent .participantHeader:has(> :nth-child(3)),
	#publicEvent .participantEntry:has(.participantDetails) {
		grid-template-columns: 32px minmax(0, 12rem) minmax(0, 1fr) minmax(0, 15rem);
	}

	#publicEvent .participantDetails {
		display: block;
		min-width: 0;
	}
}

@media (max-width: 767px) {
	#publicEvent .eventHeadline {
		font-size: 22px;
	}

	#publicEvent .eventHeader {
		gap: 14px;
	}

	#publicEvent .eventHeaderMain {
		flex: 1 1 0;
	}

	#publicEvent .eventDateTile {
		width: 64px;
	}

	#publicEvent .eventDateTileDay {
		font-size: 26px;
	}

	#publicEvent .eventIcsLink {
		width: 100%;
	}

	#publicEvent .participantHeader {
		display: none;
	}

	#publicEvent .participantTabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	#publicEvent .participantTab {
		flex-wrap: wrap;
		justify-content: center;
		padding: 6px 4px;
		font-size: 12px;
		line-height: 1.3;
		text-align: center;
	}

	/* image left, name, comment and details stacked next to it */
	#publicEvent .participantEntry {
		grid-template-columns: 32px minmax(0, 1fr);
		align-items: start;
		row-gap: 0;
	}

	#publicEvent .participantImage {
		grid-row: span 3;
	}

	#publicEvent .participantDetails {
		display: block;
		grid-column: 2;
	}

	#publicEvent .participantComment:empty {
		display: none;
	}
}
