:root {
	--goebel-primary: #783811;
	--goebel-dark: #303640;
	--goebel-gradient: linear-gradient(90deg, #fffce6, #fcedae);
}

.goebel-katalog-wrapper,
.goebel-plugin-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 200px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--goebel-dark, #303640);
	line-height: 1.6;
}

.goebel-success-message {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #c3e6cb;
	margin-bottom: 25px;
	font-weight: 500;
}

.goebel-category-nav {
	margin-bottom: 40px;
	background: #f8f9fa;
	padding: 15px 20px;
	border-radius: 8px;
	border: 1px solid #eaeaea;
}

.goebel-category-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.goebel-category-nav a {
	text-decoration: none;
	color: var(--goebel-primary, #783811);
	background: #fff;
	padding: 6px 15px;
	border-radius: 20px;
	font-weight: 500;
	border: 1px solid #dcdcdc;
	display: inline-block;
	transition: all 0.2s ease;
}

.goebel-category-nav a:hover {
	background: var(--goebel-primary, #783811);
	color: #fff;
	border-color: var(--goebel-primary, #783811);
}

.goebel-category-section {
	margin-bottom: 50px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 25px;
	border-top: 5px solid var(--goebel-primary, #783811);
}

.goebel-category-title {
	border-bottom: 2px solid var(--goebel-primary, #783811);
	padding-bottom: 10px;
	margin-top: 0;
	margin-bottom: 25px;
	color: var(--goebel-primary, #783811);
	font-size: 1.5em;
}

.goebel-products-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.goebel-products-table th,
.goebel-products-table td {
	padding: 12px 10px;
	text-align: left;
	border: none;
	vertical-align: middle;
}

.goebel-products-table thead th {
	background-color: var(--content_link, #0073aa);
	color: #fff;
	font-weight: 600;
	font-size: 0.9em;
	letter-spacing: 0.5px;
	border: none;
}

.goebel-products-table tbody tr:nth-child(even) {
	background-color: #f4f6f8;
}

.goebel-products-table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.goebel-products-table tbody tr:hover {
	background-color: var(--goebel-gradient);
	/* Sehr dezentes Highlighting */
}

/* Neues, einzeiliges Tabellen-Layout */
.col-product-name {
	width: 40%;
	color: var(--goebel-dark, #303640);
	vertical-align: middle;
}

.col-product-options {
	width: 60%;
	vertical-align: middle;
}

.goebel-options-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.goebel-price-qty-grid {
	display: grid;
	grid-template-columns: 80px 100px 140px;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #eee;
}

.goebel-price-qty-grid:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.goebel-size-label {
	color: #666;
	text-align: right;
}

/* Hide Fremd-IDs */
#info1,
#info2 {
	display: none !important;
}

.goebel-not-orderable-badge {
	display: block;
	color: #dc3545;
	background: #fdf2f2;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: 500;
	width: 100%;
	text-align: right;
	max-width: 140px;
	float: right;
	border: 1px solid #dc3545;
	box-sizing: border-box;
}

.goebel-price {
	font-weight: 600;
	color: var(--goebel-dark, #303640);
	margin-bottom: 0;
	text-align: right;
}

.btn-add-to-cart {
	background-color: var(--goebel-primary, #783811);
	color: white;
	border: none;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 0.8em;
	cursor: pointer;
	transition: opacity 0.2s;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn-add-to-cart:hover {
	opacity: 0.8;
}

.qty-changer {
	display: flex;
	align-items: center;
	border: 1px solid #ced4da;
	border-radius: 4px;
	overflow: hidden;
	width: 100%;
	height: 30px;
}

.qty-changer button {
	background: #f8f9fa;
	border: none;
	padding: 0 10px;
	height: 100%;
	cursor: pointer;
	font-weight: bold;
	color: #495057;
}

.qty-changer button:hover {
	background: #e2e6ea;
}

.qty-changer input {
	width: 100%;
	height: 100%;
	text-align: center;
	border: none;
	border-left: 1px solid #ced4da;
	border-right: 1px solid #ced4da;
	padding: 0;
	font-weight: bold;
	box-sizing: border-box;
	appearance: textfield;
	-moz-appearance: textfield;
}

.qty-changer input::-webkit-outer-spin-button,
.qty-changer input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Floating Cart */
.goebel-floating-cart {
	position: fixed;
	top: 15vh;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.goebel-floating-cart.active {
	opacity: 1;
	visibility: visible;
}

.cart-icon-wrapper {
	position: relative;
	background: #fff;
	border-radius: 50%;
	padding: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: var(--goebel-primary, #783811);
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 10px;
}

.cart-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #dc3545;
	color: white;
	font-size: 12px;
	font-weight: bold;
	border-radius: 50%;
	padding: 2px 6px;
	border: 2px solid #fff;
}

.cart-icon-wrapper:hover {
	opacity: 0.8;
	transform: scale(1.05);
	transition: all 0.2s ease;
}

/* Cart Overview Styles */
.goebel-cart-overview {
	margin-top: 40px;
	margin-bottom: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 25px;
}

.goebel-cart-overview h3 {
	border-bottom: 2px solid var(--content_link, #0073aa);
	padding-bottom: 10px;
	margin-top: 0;
	margin-bottom: 20px;
}

.goebel-overview-table {
	width: 100%;
	border-collapse: collapse;
}

.goebel-overview-table th,
.goebel-overview-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eaeaea;
	vertical-align: middle;
}

.goebel-overview-table thead th {
	background-color: var(--goebel-dark, #303640);
	color: #fff;
}

.col-qty {
	width: 150px;
}

.goebel-overview-table .col-price-single,
.goebel-overview-table .col-price-total {
	width: 120px;
	text-align: right;
}

.goebel-overview-table td:last-child,
.goebel-overview-table tfoot td {
	text-align: right;
}

.goebel-overview-table tfoot td {
	padding-top: 15px;
	font-size: 1.1em;
}

.goebel-customer-details {
	margin-top: 50px;
	background: #f8f9fa;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 30px;
}

.goebel-customer-details h3 {
	margin-top: 0;
	margin-bottom: 25px;
	color: var(--goebel-dark, #303640);
	border-bottom: 2px solid var(--goebel-primary, #783811);
	padding-bottom: 10px;
	display: inline-block;
}

.goebel-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}

.goebel-form-row .goebel-form-group {
	flex: 1;
	margin-bottom: 0;
}

.goebel-form-group {
	margin-bottom: 20px;
}

.goebel-form-group label {
	font-weight: 600;
	display: block;
	margin-bottom: 8px;
	color: #495057;
}

.goebel-form-group input[type="text"],
.goebel-form-group input[type="email"],
.goebel-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-family: inherit;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-sizing: border-box;
}

.goebel-form-group input:focus,
.goebel-form-group textarea:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.goebel-radio-group {
	display: flex;
	gap: 20px;
	margin-top: 5px;
}

.goebel-radio-group label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.goebel-submit-button {
	background: var(--goebel-primary, #783811);
	color: #fff;
	border: none;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
	display: inline-block;
	margin-top: 10px;
}

.goebel-submit-button:hover {
	opacity: 0.8;
}

@media (max-width: 768px) {
	.goebel-category-section {
		padding: 15px;
	}

	.goebel-form-row {
		flex-direction: column;
		gap: 0;
	}

	.goebel-radio-group {
		flex-direction: column;
		gap: 10px;
	}

	/* Responsive Tabellen: Header verstecken, Zeilen als Blockelemente */
	.goebel-table-responsive,
	.goebel-products-table,
	.goebel-overview-table,
	.goebel-products-table tbody,
	.goebel-overview-table tbody,
	.goebel-products-table tr,
	.goebel-overview-table tr,
	.goebel-products-table td,
	.goebel-overview-table td {
		display: block;
		width: 100%;
	}

	.goebel-products-table thead,
	.goebel-overview-table thead {
		display: none;
	}

	.goebel-products-table tr,
	.goebel-overview-table tr {
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 8px;
		overflow: hidden;
		background: #fff !important;
	}

	.goebel-products-table td,
	.goebel-overview-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: right;
		border-bottom: 1px solid #eee;
		padding: 12px 15px;
		box-sizing: border-box;
		border-top: none;
	}

	.goebel-products-table td:last-child,
	.goebel-overview-table td:last-child {
		border-bottom: none;
	}

	.goebel-products-table td::before,
	.goebel-overview-table td::before {
		content: attr(data-label);
		font-weight: bold;
		text-transform: uppercase;
		font-size: 0.8em;
		color: #666;
		margin-right: 15px;
		text-align: left;
		flex-shrink: 0;
	}

	.goebel-products-table td.col-product-options {
		display: block;
	}

	.goebel-products-table td.col-product-options::before {
		margin-bottom: 10px;
		display: block;
	}

	.goebel-price-qty-grid {
		grid-template-columns: 1fr 1fr 140px;
		justify-content: space-between;
		gap: 10px;
	}

	.goebel-size-label {
		text-align: left;
	}

	.goebel-overview-table .qty-changer {
		align-items: flex-end;
		width: 100%;
		max-width: 150px;
	}

	.col-product-name,
	.col-product-options,
	.col-qty,
	.col-price-single,
	.col-price-total {
		width: auto;
		text-align: right !important;
	}

	.goebel-multi-size .goebel-price-qty {
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
		border-bottom: 1px dashed #eee;
		padding-bottom: 10px;
		margin-bottom: 10px;
	}

	.goebel-multi-size .goebel-price-qty:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.goebel-multi-size .goebel-cart-control {
		max-width: 150px;
	}

	/* tfoot Anpassung für Overview Table */
	.goebel-overview-table tfoot th,
	.goebel-overview-table tfoot td {
		display: flex;
		justify-content: space-between;
		text-align: right;
	}

	.goebel-overview-table tfoot .total-label {
		display: none;
	}

	.goebel-overview-table tfoot td::before {
		content: "Gesamtsumme:";
		font-weight: bold;
		text-align: left;
		color: #333;
		text-transform: none;
		font-size: 1rem;
	}
}