/**
 * Wandertage Frontend Styles
 * @since 1.3
 */

/* ======================
   Allg. Grundlayout
====================== */
body.wandertage-active {
	font-family: "Helvetica Neue", Arial, sans-serif;
	background-color: #fafafa;
	color: #222;
}

.wt-hike-list {
	max-width: 860px;
	max-width: 100%;
	margin: 2.5em auto;
	background: #fff;
}

.wt-hike-title {
	flex: 1;
	margin-left: 10px;
}

.wt-hike-meta {
	color: #555;
	font-size: 0.9em;
	margin-right: 20px;
}

.wt-hike-content {
	display: none;
	padding: 1.2em 1.5em;
	border-top: 1px solid #e0e0e0;
	background: #fafafa;
}

.wt-hike-content.open {
	display: block;
	animation: slideDown 0.2s ease;
}

@keyframes slideDown {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.wt-hike-details {
	list-style: none;
	padding: 0;
	margin: 0 0 1em;
}

.wt-hike-details li {
	margin-bottom: 0.4em;
}

.wt-hike-desc {
	margin-bottom: 1em;
	color: #444;
}

/* ======================
   Buttons
====================== */
.wt-btn,
.wt-add-person,
#wt-checkout-btn {
	background-color: #2e7d32;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.55em 1.1em;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 500;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.wt-btn:hover,
.wt-add-person:hover,
#wt-checkout-btn:hover {
	background-color: #256428;
	transform: translateY(-1px);
}

.wt-btn-secondary {
	background-color: #4caf50;
}

.wt-btn-secondary:hover {
	background-color: #3e8e41;
}

/* ======================
   Badge (ausgewählt)
====================== */
.wt-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffeb3b;
	color: #1b5e20;
	font-weight: bold;
	text-align: center;
	font-size: 1.1em;
	margin-left: 10px;
}

.wt-badge.hidden {
	display: none;
}

/* ======================
   Modal
====================== */
.wt-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 1em;
	box-sizing: border-box;
}

.wt-modal.hidden {
	display: none;
}

.wt-modal-content {
	background: #fff;
	padding: 1.8em;
	border-radius: 8px;
	width: 480px;
	max-width: 95%;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	position: relative;
}

.wt-modal-content h3 {
	margin-top: 0;
	margin-bottom: 1em;
	color: #1b5e20;
	font-size: 1.3em;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 0.5em;
}

/* Teilnehmerliste im Modal */
.wt-person-list {
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #e0e0e0;
}

.wt-person-list h4 {
	margin: 0 0 0.5em 0;
	font-size: 1em;
	color: #2e7d32;
}

.wt-person-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wt-person-list-items li {
	padding: 4px 0;
	border-bottom: 1px dotted #eee;
	color: #333;
	font-size: 0.9em;
}

/* Bekannte Mitwandernde */
.wt-existing-tags h4 {
	margin: 1em 0 0.5em;
	font-size: 1em;
	color: #2e7d32;
}

.wt-person-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wt-person-tag {
	display: inline-flex;
	align-items: center;
	background: #e8f5e9;
	color: #1b5e20;
	border-radius: 3px;
	padding: 4px 8px;
	font-size: 0.9em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wt-person-tag::before {
	content: "+";
	display: inline-block;
	margin-right: 6px;
	color: #1b5e20;
	font-weight: bold;
	font-size: 1.1em;
}

.wt-person-tag:hover {
	background: #c8e6c9;
}

/* Formular für neue Mitwandernde */
#wt-person-form {
	margin-top: 1em;
}

#wt-person-form label {
	display: block;
	margin-bottom: 0.8em;
	font-weight: 500;
	color: #333;
}

#wt-person-form input,
#wt-person-form select {
	width: 100%;
	padding: 0.45em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95em;
	box-sizing: border-box;
}

.wt-form-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 0.5em;
}

.wt-form-row label {
	flex: 1;
	min-width: 120px;
}

/* Buttons unten im Modal */
.wt-modal-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 1em;
}

/* ======================
   Floating Summary
====================== */
.wt-floating-summary {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 1em 1.5em;
	border: 1px solid #d0d0d0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border-radius: 8px;
	z-index: 999;
	width: 90%;
	max-width: 480px;
}

.wt-floating-summary.hidden {
	display: none;
}

.wt-summary-person {
	margin-bottom: 0.6em;
}

#wt-checkout-btn {
	width: 100%;
	margin-bottom: 0.8em;
}

/* ======================
   Responsive Anpassungen
====================== */
@media (max-width: 600px) {
	.wt-form-row {
		flex-direction: column;
	}

	.wt-modal-content {
		width: 100%;
		padding: 1.2em;
	}
}
/* ==========================================
   Gruppierte Tagesansicht – Wandertage
========================================== */

.wt-day-group {
	margin-bottom: 2.5em;
	border-top: 3px solid #d7e3d7;
	padding-top: 1.2em;
}

.wt-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	padding: 0.8em 0.4em 0.4em;
}

.wt-day-title {
	font-size: 1.3em;
	font-weight: 600;
	color: #00421b;
	letter-spacing: 0.0625rem;
	text-transform: uppercase;
}

.wt-day-meta {
	display: flex;
	gap: 1.2em;
	align-items: center;
	color: #333;
	font-weight: 600;
	font-size: 0.95em;
}

.wt-meta-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
}

.wt-dist-icon::after {
	content: " km";
	font-weight: normal;
	color: #666;
}

.wt-time-icon::after {
	content: " h";
	font-weight: normal;
	color: #666;
}

/* ==========================================
   Accordion Styling (Hike List)
========================================== */

.wt-hike-item {
	margin-bottom: 0em;
	overflow: hidden;
	background: rgb(231,227,220);
}

.wt-hike-item:nth-child(2n) {
	background-color: #fff;
}

.wt-hike-label {
	width: 100%;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	padding: 0em;
	font-size: 1em;
	border: none;
	outline: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wt-hike-label:hover {
	background-color: #eaf6ea;
}

.wt-hike-number {
	background: #284b28;
	color: #fff;
	font-weight: bold;
	padding: 0.2em 0.6em;
	margin-right: 0.5em;
	min-width: 1.8em;
	text-align: center;
}

.wt-hike-title {
	flex-grow: 1;
	font-weight: 600;
	color: #2b4f2e;
}

.wt-hike-meta {
	color: #555;
	font-size: 0.9em;
	white-space: nowrap;
}

.wt-hike-content {
	display: none;
	padding: 1em;
	background: #fff;
	border-top: 1px solid #e0e0e0;
}

.wt-hike-item.active .wt-hike-content {
	display: block;
}

/* ==========================================
   Badge: ausgewählt
========================================== */

.wt-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffd700;
	color: #1e5e1e;
	font-size: 0.85em;
	border-radius: 50%;
	width: 1.2em;
	height: 1.2em;
	margin-left: 0.5em;
	font-weight: bold;
	box-shadow: 0 0 3px rgba(0,0,0,0.15);
}

.wt-badge.hidden {
	display: none;
}

/* ==========================================
   Floating Summary (unten mittig)
   ========================================== */

.wt-floating-summary {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	padding: 1em;
	z-index: 9999;
}

#wt-checkout-btn {
	background-color: #2b6a2b;
	color: #fff;
	border: none;
	padding: 0.6em 1.4em;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.2s ease;
}

#wt-checkout-btn:hover {
	background-color: #1e511e;
}

/* ==========================================
   Modal Styling (Personen hinzufügen)
   ========================================== */

.wt-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.wt-modal.hidden {
	display: none;
}

.wt-modal-content {
	background: #fff;
	padding: 1.5em;
	border-radius: 8px;
	width: 95%;
	max-width: 650px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.wt-person-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-person-list-items li {
	margin: 0.3em 0;
	padding: 0.4em 0.6em;
	background: #f5f5f5;
	border-radius: 4px;
}

.wt-person-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-bottom: 0.8em;
}

.wt-person-tag {
	background: #e0f0e0;
	color: #284b28;
	border-radius: 20px;
	padding: 0.2em 0.8em;
	cursor: pointer;
	font-size: 0.9em;
	transition: background 0.2s ease;
}

.wt-person-tag:hover {
	background: #cde7cd;
}

.wt-form-row {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin-top: 0.8em;
}

.wt-form-row label {
	flex: 1 1 30%;
}

/* Buttons */
.wt-btn {
	display: inline-block;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	padding: 0.6em 1em;
	font-weight: 600;
	text-align: center;
	font-size: 1em;
}

.wt-btn-primary {
	background: #2b6a2b;
	color: #fff;
}

.wt-btn-primary:hover {
	background: #1e511e;
}

.wt-btn-secondary {
	background: #ddd;
	color: #333;
}

.wt-btn-secondary:hover {
	background: #ccc;
}
.wt-tag.wt-btn {
	background-color: #eef6e0;
	border: 1px solid #7aa663;
	color: #355f2e;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
}

.wt-tag.wt-btn:hover {
	background-color: #d8edc0;
}

.wt-remove-person {
	background: none;
	border: none;
	color: #b00;
	cursor: pointer;
	font-size: 14px;
	margin-left: 6px;
}
/* ---------------------------
   TAGS (Mitwandernde Auswahl)
---------------------------- */
.wt-person-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wt-tag {
    background: #eef5ff;
    border: 1px solid #8cb6ff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.wt-tag:hover {
    background: #dce9ff;
}

/* ---------------------------
   Teilnehmerliste im Modal
---------------------------- */
.wt-person-list-items {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.wt-person-list-items li {
    background: #f7f7f7;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 4px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* X-Button im Teilnehmer-Eintrag */
.wt-remove-person {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 10px;
}

.wt-remove-person:hover {
    color: #ff0000;
}

/* Placeholder text */
.wt-person-list-items .placeholder {
    opacity: 0.65;
    font-style: italic;
}

/* --- Checkout Modal --- */
.wt-checkout-content {
    max-width: 550px;
    padding: 25px;
}

.wt-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wt-step-indicator {
    width: 49%;
    padding: 10px;
    background: #eee;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    opacity: .6;
}

.wt-step-indicator.active {
    background: #0073aa;
    color: #fff;
    opacity: 1;
}

.wt-step {
    display: none;
}

.wt-step.active {
    display: block;
}

.wt-modal-footer {
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#wt-summary-table {
    margin-bottom: 20px;
}

#wt-summary-table .person {
    margin-bottom: 12px;
}

#wt-summary-table .hikes {
    margin-left: 20px;
    font-size: 0.9em;
}
.wt-summary-person-block {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.wt-summary-person-header {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 8px;
}

.wt-summary-hike-list {
    margin: 0 0 10px 15px;
    padding: 0;
}

.wt-summary-hike-list li {
    list-style: disc;
}

.wt-summary-price-details {
    margin-left: 10px;
}

.wt-summary-price-row {
    display: flex;
    justify-content: space-between;
}
.wt-summary-total {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

/* AGB Checkbox */
.wt-agb-label {
    display: block;
    margin: 10px 0;
}
/* ======================
   MODAL BACKDROP
====================== */
.wt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
}

/* ======================
   MODAL CENTER CONTAINER
====================== */
#wt-checkout-modal .wt-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 650px;
    width: 95%;
    padding: 30px;
    border-radius: 8px;
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close button */
.wt-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

/* ======================
   PROGRESS STEPS
====================== */
.wt-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.wt-step-circle {
    text-align: center;
    width: 110px;
}

.wt-step-circle span {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-weight: bold;
}

.wt-step-circle.active span {
    background: #0073aa;
}

.wt-step-circle label {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.7;
}

.wt-step-line {
    flex: 1;
    height: 3px;
    background: #ddd;
}

/* ======================
   STEP VISIBILITY
====================== */
.wt-step {
    display: none;
}

.wt-step.active {
    display: block;
}

/* ======================
   FLEX FORM GRID
====================== */
.wt-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wt-form-group {
    display: flex;
    flex-direction: column;
}

.wt-form-group.full { width: 100%; }
.wt-form-group.half { width: calc(50% - 10px); }
.wt-form-group.two-thirds { width: calc(66.66% - 10px); }
.wt-form-group.one-third { width: calc(33.33% - 10px); }

.wt-form-group input,
.wt-form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ======================
   AGB CHECKBOX
====================== */
.wt-agb-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ======================
   FOOTER BUTTONS
====================== */
.wt-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

/* ======================
   Dialog Success
====================== */
.wt-success-box {
    padding: 20px;
    text-align: center;
}

.wt-success-box h2 {
    color: #2a7d2a;
    margin-bottom: 15px;
}

.wt-success-box p {
    font-size: 1.1em;
    margin-bottom: 10px;
}
