/* Price Table Block Styles */

.price-table-block {
	font-family: "Barlow Condensed", sans-serif;
}

/* ========================================
   PRICING CARDS LAYOUT (NON-LOGGED USERS)
   ======================================== */

.pricing-cards-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

.pricing-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid var(--color-base-300, #e5e7eb);
}

.pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
	transform: scale(1.05) translateY(-5px);
	box-shadow: 0 20px 40px rgba(220, 38, 38, 0.25);
}


.pricing-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-top: 20px;
}

/* Premium Card with DSGVO Badge */
.pricing-card-premium {
	position: relative;
}

.dsgvo-badge {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 50px;
	background: var(--color-slate-700);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.dsgvo-badge-text {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	color: white;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-align: center;
	padding: 2rem 1rem;
	line-height: 1.4;
}

/* Adjust Premium Card Body to make room for badge */
.pricing-card-premium .pricing-card-body {
	padding-right: 50px;
}

.pricing-card-premium .pricing-card-features {
	padding-right: 50px;
}

.pricing-card-price {
	border-bottom: 2px solid var(--color-base-300, #e5e7eb);
}

.pricing-card-features {
	flex: 1;
}

.pricing-card-features ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pricing-card-features li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-base-300, #e5e7eb);
}

.pricing-card-features li:last-child {
	border-bottom: none;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
	.pricing-cards-container {
		gap: 1.5rem;
	}

	.pricing-card:hover {
		transform: scale(1.02) translateY(-5px);
	}
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.pricing-cards-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.pricing-card:hover {
		transform: translateY(-5px);
	}
}

/* Inputs */
.price-table-block input[type="text"],
.price-table-block input[type="number"],
.price-table-block input[type="radio"] {
	font-family: inherit;
}

/* PDF/A4 helpers */
.price-table-block .a4 {
	width: 210mm;
	min-height: 297mm;
	box-sizing: border-box;
}

@media print {
	.price-table-block .a4 {
		margin: 0;
		padding: 0;
		width: 210mm !important;
		min-height: 297mm !important;
	}
}

/* Custom color for first column */
.bg-custom-gray {
	background-color: var(--color-neutral, #edeef2);
}

/* Grid Layout */
.price-grid-header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 0;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.price-grid-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 0;
	border-bottom: 1px solid var(--color-base-300, #e5e7eb);
}

/* Desktop column widths */
@media (min-width: 768px) {
	.price-grid-header {
		grid-template-columns: 50% 16.67% 16.67% 16.67%;
	}

	.price-grid-row {
		grid-template-columns: 50% 16.67% 16.67% 16.67%;
	}
}

.price-grid-row:last-child {
	border-bottom: none;
}

/* Mobile Layout - Horizontal Scroll */
@media (max-width: 768px) {
	.price-table-block .container {
		padding: 0;
		overflow-x: auto;
	}

	.price-table-block {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.price-grid-header {
		display: grid;
		min-width: 750px;
		grid-template-columns: 300px 150px 150px 150px;
		gap: 0;
		overflow: hidden;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	}

	.price-grid-row {
		display: grid;
		min-width: 750px;
		grid-template-columns: 300px 150px 150px 150px;
		gap: 0;
		border-bottom: 1px solid var(--color-base-300, #e5e7eb);
	}

	.price-content-cell {
		border-right: 1px solid var(--color-base-300, #e5e7eb);
	}

	.price-feature-cell {
		border-right: 1px solid var(--color-base-300, #e5e7eb);
	}

	.price-feature-cell:last-child {
		border-right: none;
	}

	.price-grid-row:last-child {
		border-bottom: none;
	}
}

/* Cell Styles */
.price-header-cell {
	padding: 1.5rem;
}

.price-content-cell {
	padding: 1.5rem;
}

.price-feature-cell {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Custom checkbox styling */
.price-table-block input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	border: 2px solid var(--color-base-300, #d1d5db);
	background-color: var(--color-base-100, #ffffff);
	position: relative;
	cursor: pointer;
}

.price-table-block input[type="checkbox"]:checked {
	background-color: var(--color-primary, #b41c29);
	border-color: var(--color-primary, #b41c29);
}

.price-table-block input[type="checkbox"]:checked::after {
	content: "✓";
	position: absolute;
	top: -2px;
	left: 1px;
	color: white;
	font-size: 12px;
}

/* Dark mode support for inputs */
.dark .price-table-block input[type="checkbox"] {
	border-color: #6b7280;
	background-color: #374151;
}

.dark .price-table-block input[type="text"] {
	border-color: #6b7280;
	background-color: #374151;
	color: #f3f4f6;
}

.dark .price-table-block input[type="text"]::placeholder {
	color: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.price-table-block .container {
		padding: 0;
		overflow-x: auto;
	}

	.price-table-block {
		font-size: 1rem;
	}

	.price-content-cell,
	.price-feature-cell {
		padding: 1rem 0.75rem;
	}
}

/* Font size adjustments for different screen sizes */
@media (max-width: 1440px) {
	.price-table-block h4 {
		font-size: 1.25rem !important;
		/* text-xl */
	}

	.price-table-block p {
		font-size: 0.875rem !important;
		/* text-sm */
	}

	.price-table-block .text-4xl {
		font-size: 1.5rem !important;
		/* text-2xl */
	}

	.price-table-block .text-xl {
		font-size: 1rem !important;
		/* text-base */
	}

	.price-table-block .text-2xl {
		font-size: 1.25rem !important;
		/* text-xl */
	}
}

@media (max-width: 1024px) {
	.price-table-block h4 {
		font-size: 1.125rem !important;
		/* text-lg */
	}

	.price-table-block p {
		font-size: 0.75rem !important;
		/* text-xs */
	}

	.price-table-block .text-4xl {
		font-size: 1.25rem !important;
		/* text-xl */
	}

	.price-table-block .text-xl {
		font-size: 0.875rem !important;
		/* text-sm */
	}

	.price-table-block .text-2xl {
		font-size: 1.125rem !important;
		/* text-lg */
	}
}

@media (max-width: 768px) {
	.price-table-block h4 {
		font-size: 1.25rem !important;
		/* text-xl */
	}

	.price-table-block p {
		font-size: 1rem !important;
		/* text-base */
	}

	.price-table-block .text-4xl {
		font-size: 1.5rem !important;
		/* text-2xl */
	}

	.price-table-block .text-xl {
		font-size: 1.125rem !important;
		/* text-lg */
	}

	.price-table-block .text-2xl {
		font-size: 1.25rem !important;
		/* text-xl */
	}

	.price-table-block .text-sm {
		font-size: 1rem !important;
		/* text-base */
	}
}

/* Dark mode: CTA / Contact section text fix */
.dark .price-table-block .text-gray-700,
.dark .price-table-block .text-gray-900 {
	color: var(--color-base-content, #f3f4f6);
}

.dark .price-table-block .text-gray-600 {
	color: var(--color-base-content, #d1d5db);
	opacity: 0.85;
}

/* Mobile: Contact / CTA section layout fix */
@media (max-width: 768px) {
	.price-table-block .contact-info-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.price-table-block .contact-info-row>div:last-child {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	/* Button: prevent text wrap */
	.price-table-block .btn,
	.price-table-block a[class*="btn"] {
		white-space: nowrap;
	}
}