/* === YomYom Picknick Formular === */

:root {
	--pk-primary:    #F088B4;
	--pk-primary-hover: #e8679e;
	--pk-secondary:  #FAF1E0;
	--pk-contrast:   #3D3D3D;
	--pk-neutral:    #A6A6A6;
	--pk-white:      #ffffff;
	--pk-radius:     12px;
	--pk-font:       "Instrument Sans", sans-serif;
	--pk-shadow:     0 4px 24px rgba(61,61,61,0.09);
}

.yomyom-picknick-formular {
	font-family: var(--pk-font), sans-serif;
	color: var(--pk-contrast);
	max-width: 560px;
	margin: 0 auto;
	padding: 0 0 60px;
}

/* === Fortschrittsbalken === */
.pk-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 36px;
}
.pk-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1;
	position: relative;
}
.pk-progress-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 18px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: #e8e0d5;
	z-index: 0;
}
.pk-progress-step.done:not(:last-child)::after,
.pk-progress-step.active:not(:last-child)::after {
	background: var(--pk-primary);
}
.pk-progress-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #e8e0d5;
	background: var(--pk-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--pk-neutral);
	position: relative;
	z-index: 1;
	transition: all 0.25s ease;
}
.pk-progress-step.done .pk-progress-dot {
	background: var(--pk-primary);
	border-color: var(--pk-primary);
	color: var(--pk-white);
}
.pk-progress-step.active .pk-progress-dot {
	border-color: var(--pk-primary);
	color: var(--pk-primary);
	box-shadow: 0 0 0 4px rgba(240,136,180,0.18);
}
.pk-progress-label {
	font-size: 11px;
	color: var(--pk-neutral);
	text-align: center;
	line-height: 1.2;
}
.pk-progress-step.active .pk-progress-label {
	color: var(--pk-primary);
	font-weight: 600;
}

/* === Schritt-Container === */
.pk-step {
	display: none;
	animation: pkFadeIn 0.3s ease;
}
.pk-step.active {
	display: block;
}
@keyframes pkFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* === Hinweis-Banner === */
.pk-hinweis {
	background: var(--pk-secondary);
	border-left: 4px solid var(--pk-primary);
	border-radius: 0 var(--pk-radius) var(--pk-radius) 0;
	padding: 14px 18px;
	margin-bottom: 28px;
	font-size: 14px;
	line-height: 1.6;
}
.pk-hinweis strong {
	display: block;
	margin-bottom: 4px;
	color: var(--pk-primary);
}

/* === Überschriften === */
.pk-step-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--pk-primary);
	margin: 0 0 8px;
	line-height: 1.2;
}
.pk-step-subtitle {
	font-size: 15px;
	color: var(--pk-neutral);
	margin: 0 0 24px;
}

/* === Formular-Felder === */
.pk-field {
	margin-bottom: 20px;
}
.pk-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--pk-contrast);
}
.pk-field label .pk-required {
	color: var(--pk-primary);
	margin-left: 2px;
}
.pk-field input,
.pk-field select {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #e0d8ce;
	border-radius: 8px;
	font-family: var(--pk-font), sans-serif;
	font-size: 16px;
	color: var(--pk-contrast);
	background: var(--pk-white);
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.pk-field input:focus,
.pk-field select:focus {
	outline: none;
	border-color: var(--pk-primary);
	box-shadow: 0 0 0 3px rgba(240,136,180,0.15);
	background: var(--pk-white);
}
.pk-field .pk-field-hint {
	font-size: 12px;
	color: var(--pk-neutral);
	margin-top: 5px;
	display: flex;
	align-items: flex-start;
	gap: 5px;
}
.pk-field .pk-field-hint::before {
	content: 'ℹ';
	color: var(--pk-primary);
	flex-shrink: 0;
}
.pk-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* === Fehlerfeld === */
.pk-field.error input,
.pk-field.error select {
	border-color: #e05555;
}
.pk-field-error-msg {
	font-size: 12px;
	color: #e05555;
	margin-top: 4px;
	display: none;
}
.pk-field.error .pk-field-error-msg {
	display: block;
}

/* === Korb-Auswahl === */
.pk-koerbe {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 28px;
}
.pk-korb-card {
	background: var(--pk-secondary);
	border: 2px solid transparent;
	border-radius: var(--pk-radius);
	padding: 20px 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}
.pk-korb-card.has-count {
	border-color: var(--pk-primary);
	background: #fdf5ec;
}
.pk-korb-card-icon {
	font-size: 32px;
	margin-bottom: 8px;
	line-height: 1;
}
.pk-korb-card-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}
.pk-korb-card-preis {
	font-size: 14px;
	color: var(--pk-contrast);
	font-weight: 600;
	margin-bottom: 14px;
}
.pk-korb-inhalt {
	font-size: 13px;
	color: var(--pk-contrast);
	text-align: left;
	margin-bottom: 14px;
	line-height: 1.6;
}
.pk-korb-inhalt li {
	list-style: none;
	padding-left: 0;
}
.pk-korb-inhalt li::before {
	content: '✓ ';
	color: var(--pk-primary);
}

/* Mengen-Zähler */
.pk-counter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.pk-counter-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid var(--pk-primary);
	background: var(--pk-white);
	color: var(--pk-primary);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	font-family: var(--pk-font), sans-serif;
}
.pk-counter-btn:hover {
	background: var(--pk-primary);
	color: var(--pk-white);
}
.pk-counter-btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.pk-counter-val {
	font-size: 22px;
	font-weight: 700;
	min-width: 30px;
	text-align: center;
}

/* === Zubehör-Info === */
.pk-zubehoer {
	background: var(--pk-secondary);
	border-radius: var(--pk-radius);
	padding: 16px 18px;
	margin-top: 10px;
	font-size: 13.5px;
}
.pk-zubehoer strong {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
}
.pk-zubehoer ul {
	margin: 0;
	padding-left: 18px;
	line-height: 1.8;
	color: var(--pk-contrast);
}
.pk-depot-info {
	background: #fff5f9;
	border: 1.5px solid var(--pk-primary);
	border-radius: var(--pk-radius);
	padding: 14px 18px;
	margin-top: 16px;
	margin-bottom: 28px;
	font-size: 14px;
	line-height: 1.6;
}
.pk-depot-info strong { color: var(--pk-primary); }

/* === Getränke === */
.pk-getraenke-section {
	margin-bottom: 28px;
}
.pk-getraenke-section-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--pk-secondary);
}
.pk-getraenk-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0e8de;
	gap: 12px;
}
.pk-getraenk-info {
	flex: 1;
}
.pk-getraenk-name {
	font-size: 14px;
	font-weight: 500;
}
.pk-getraenk-preis {
	font-size: 12px;
	color: var(--pk-neutral);
}
.pk-getraenk-counter {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.pk-getraenk-counter .pk-counter-btn {
	width: 30px;
	height: 30px;
	font-size: 18px;
}
.pk-getraenk-counter .pk-counter-val {
	font-size: 16px;
	min-width: 22px;
}

/* === Übersicht === */
.pk-uebersicht {
	background: var(--pk-secondary);
	border-radius: var(--pk-radius);
	overflow: hidden;
	margin-bottom: 20px;
}
.pk-uebersicht-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	border-bottom: 1px solid #f0e8de;
	font-size: 15px;
}
.pk-uebersicht-row:last-child { border-bottom: none; }
.pk-uebersicht-row.total {
	background: var(--pk-white);
	font-weight: 700;
	font-size: 17px;
	padding: 16px 18px;
}
.pk-uebersicht-label { color: var(--pk-contrast); }
.pk-uebersicht-depot-label { color: var(--pk-neutral); font-size: 13px; }
.pk-uebersicht-value { font-weight: 600; }
.pk-uebersicht-depot-hint {
	font-size: 12px;
	color: var(--pk-neutral);
	padding: 8px 18px 14px;
	background: var(--pk-white);
	border-top: 1px solid #f0e8de;
}
.pk-uebersicht-person {
	background: var(--pk-white);
	border: 1.5px solid #e0d8ce;
	border-radius: var(--pk-radius);
	padding: 16px 18px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.8;
}
.pk-uebersicht-person strong {
	display: block;
	margin-bottom: 6px;
	color: var(--pk-primary);
}
.pk-icon {
	width: 16px;
	height: 16px;
	fill: var(--pk-primary);
	vertical-align: -2px;
	display: inline-block;
}

/* === Twint === */
.pk-twint-box {
	text-align: center;
	padding: 32px 24px;
	background: var(--pk-secondary);
	border-radius: var(--pk-radius);
	margin-bottom: 24px;
}
.pk-twint-logo {
	font-size: 48px;
	margin-bottom: 12px;
}
.pk-twint-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
}
.pk-twint-amount {
	font-size: 32px;
	font-weight: 700;
	color: var(--pk-primary);
	margin-bottom: 8px;
}
.pk-twint-hint {
	font-size: 13px;
	color: var(--pk-neutral);
	margin-bottom: 20px;
}
.pk-twint-qr {
	width: 220px;
	height: 220px;
	margin: 16px auto;
	display: block;
	border-radius: 8px;
	image-rendering: pixelated;
}
.pk-twint-app-btn {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
}
.pk-twint-ios-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}
.pk-twint-bank-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pk-white);
	border: 1.5px solid #e0d8ce;
	border-radius: 12px;
	padding: 8px;
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pk-twint-bank-tile:hover,
.pk-twint-bank-tile:active {
	border-color: var(--pk-primary);
	box-shadow: 0 0 0 3px rgba(240,136,180,0.15);
}
.pk-twint-bank-tile img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}
.pk-twint-other-banks {
	margin-top: 20px;
	margin-bottom: 16px;
}
.pk-twint-bank-select {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid #e0d8ce;
	border-radius: 8px;
	font-family: var(--pk-font), sans-serif;
	font-size: 15px;
	color: var(--pk-contrast);
	background: var(--pk-white);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A6A6A6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.pk-twint-back-hint {
	margin-top: 16px;
	margin-bottom: 20px;
	padding: 10px 14px;
	background: var(--pk-white);
	border: 1.5px solid #e0d8ce;
	border-radius: 8px;
	font-size: 13px;
	color: var(--pk-contrast);
	line-height: 1.5;
}
.pk-twint-token-label {
	font-size: 13px;
	color: var(--pk-neutral);
	margin-top: 16px;
	margin-bottom: 4px;
}
.pk-twint-token {
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 6px;
	color: var(--pk-contrast);
	margin: 4px 0 12px;
	font-family: var(--pk-font), sans-serif;
}
.pk-twint-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 15px;
	color: var(--pk-neutral);
	margin-top: 20px;
}
.pk-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #e0d8ce;
	border-top-color: var(--pk-primary);
	border-radius: 50%;
	animation: pkSpin 0.8s linear infinite;
}
@keyframes pkSpin {
	to { transform: rotate(360deg); }
}
.pk-twint-manual-hint {
	margin-top: 16px;
	font-size: 13px;
	color: var(--pk-neutral);
	background: var(--pk-white);
	border-radius: 8px;
	padding: 12px 16px;
	border: 1px solid #e0d8ce;
}

/* === Bestätigung === */
.pk-bestaetigung {
	text-align: center;
	padding: 16px 0;
}
.pk-bestaetigung-icon {
	font-size: 64px;
	margin-bottom: 16px;
}
.pk-bestaetigung-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--pk-primary);
	margin-bottom: 12px;
}
.pk-bestaetigung-text {
	font-size: 15px;
	color: var(--pk-neutral);
	line-height: 1.7;
	margin-bottom: 20px;
}
.pk-bestaetigung-hinweis {
	background: var(--pk-secondary);
	border-radius: var(--pk-radius);
	padding: 16px 20px;
	font-size: 14px;
	text-align: left;
	line-height: 1.7;
}
.pk-bestaetigung-hinweis strong { color: var(--pk-primary); }

/* === Buttons === */
.pk-btn-row {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	align-items: center;
}
.pk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 8px;
	font-family: var(--pk-font), sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	text-decoration: none;
}
.pk-btn-primary {
	background: var(--pk-primary);
	color: var(--pk-white);
	flex: 1;
}
.pk-btn-primary:hover {
	background: var(--pk-primary-hover);
	color: var(--pk-white);
}
.pk-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.pk-btn-back {
	background: transparent;
	color: var(--pk-neutral);
	padding: 14px 16px;
	flex-shrink: 0;
}
.pk-btn-back:hover { color: var(--pk-contrast); }

/* === AGB Checkbox === */
.pk-agb-field {
	margin-top: 20px;
	margin-bottom: 8px;
}
.pk-agb-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--pk-contrast);
	cursor: pointer;
	line-height: 1.5;
}
.pk-agb-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: var(--pk-primary);
	cursor: pointer;
}
.pk-agb-label a {
	color: var(--pk-primary);
	text-decoration: underline;
}
.pk-agb-label a:hover {
	color: var(--pk-primary-hover);
}

/* === Fehler global === */
.pk-error-banner {
	background: #ffe5e5;
	border-left: 4px solid #e05555;
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	font-size: 14px;
	color: #c03030;
	margin-bottom: 16px;
	display: none;
}
.pk-error-banner.visible { display: block; }

/* === Inline Datepicker (jQuery UI) === */
.pk-datepicker-wrap {
	margin-top: 6px;
}
#pk-datepicker.ui-datepicker {
	width: 100%;
	background: var(--pk-white);
	border: 1.5px solid #e0d8ce;
	border-radius: var(--pk-radius);
	padding: 12px;
	font-family: var(--pk-font), sans-serif;
	font-size: 14px;
	box-shadow: var(--pk-shadow);
}
#pk-datepicker .ui-datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	padding: 0 0 12px;
	margin-bottom: 8px;
	border-bottom: 1.5px solid #f0e8de;
}
#pk-datepicker .ui-datepicker-title {
	font-weight: 600;
	font-size: 15px;
	color: var(--pk-contrast);
	flex: 1;
	text-align: center;
}
#pk-datepicker .ui-datepicker-prev,
#pk-datepicker .ui-datepicker-next {
	position: static;
	top: auto;
	cursor: pointer;
	background: var(--pk-secondary);
	border: none;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#pk-datepicker .ui-datepicker-prev:hover,
#pk-datepicker .ui-datepicker-next:hover {
	background: var(--pk-primary);
}
#pk-datepicker .ui-datepicker-prev span,
#pk-datepicker .ui-datepicker-next span {
	display: block;
	overflow: hidden;
	width: 0;
	height: 0;
}
#pk-datepicker .ui-datepicker-prev::after {
	content: '‹';
	font-size: 20px;
	color: var(--pk-contrast);
	line-height: 1;
}
#pk-datepicker .ui-datepicker-next::after {
	content: '›';
	font-size: 20px;
	color: var(--pk-contrast);
	line-height: 1;
}
#pk-datepicker .ui-datepicker-prev:hover::after,
#pk-datepicker .ui-datepicker-next:hover::after {
	color: var(--pk-white);
}
#pk-datepicker .ui-datepicker-calendar {
	width: 100%;
	border-collapse: collapse;
}
#pk-datepicker .ui-datepicker-calendar thead th {
	padding: 6px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--pk-neutral);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
#pk-datepicker .ui-datepicker-calendar td {
	padding: 3px;
	text-align: center;
}
#pk-datepicker .ui-datepicker-calendar td a,
#pk-datepicker .ui-datepicker-calendar td span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	border-radius: 50%;
	font-size: 14px;
	color: var(--pk-contrast);
	text-decoration: none;
	transition: all 0.15s ease;
	border: none;
	background: transparent;
	font-family: var(--pk-font), sans-serif;
}
#pk-datepicker .ui-datepicker-calendar td a:hover {
	background: var(--pk-secondary);
	color: var(--pk-contrast);
}
#pk-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
	border: 2px solid var(--pk-primary);
	color: var(--pk-primary);
	font-weight: 600;
}
#pk-datepicker .ui-datepicker-calendar .ui-datepicker-current-day a,
#pk-datepicker .ui-datepicker-calendar .ui-state-active {
	background: var(--pk-primary) !important;
	color: var(--pk-white) !important;
	font-weight: 600;
}
#pk-datepicker .ui-datepicker-calendar .ui-state-disabled span,
#pk-datepicker .ui-datepicker-calendar .ui-state-disabled {
	color: #d0c8be;
	cursor: default;
	opacity: 1;
}

/* === Responsive === */
@media (max-width: 480px) {
	.pk-koerbe {
		grid-template-columns: 1fr;
	}
	.pk-field-row {
		grid-template-columns: 1fr;
	}
	.pk-progress-label {
		display: none;
	}
	.pk-btn-row {
		flex-direction: column-reverse;
	}
	.pk-btn-primary { width: 100%; }
	.pk-btn-back { width: 100%; }
}
