:root {
	--primary-color: #153961;
	--text-color: #222;
	--secondary-color: #f3f6f8;
	--third-color: #0c2239;
	--background-color: #f9f9f9;
	--grey: #6b7280;
	--light-grey: #ddd;
	--border-radius: 10px;
	--general-gap: 15px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

a,
a:active,
a:visited {
	color: var(--text-color);
}

.content-divider {
	border: none;
	border-top: 1px solid var(--light-grey);
	margin: 1.5rem 0; /* Abstand oben/unten */
}

/*============table================*/
table.tabletemplate5 {
	width: 100%;
	border: 1px #999999;
	border-collapse: collapse;
	text-align: left;
	empty-cells: show;
}

td.tabletemplate5-row1-col1 {
	padding: 3px;
	border-left: 1px #999999;
	background-color: #dbe3e9;
	vertical-align: bottom;
}

td.tabletemplate5-row1-col2 {
	padding: 3px;
	border-left: 1px #999999;
	background-color: #dbe3e9;
	vertical-align: bottom;
}

td.tabletemplate5-row2-col1 {
	padding: 3px;
	border-left: 1px #999999;
	background-color: #f8f9fb;
	vertical-align: bottom;
}

td.tabletemplate5-row2-col2 {
	padding: 3px;
	border-left: 1px #999999;
	background-color: #f8f9fb;
	vertical-align: bottom;
}

/* =================== Header / Navigation =================== */

header {
	background: #fff;
	border-bottom: 1px solid #ddd;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1.5rem;
	position: relative; /* wichtig für mobiles Nav-Overlay */
}

/* Logo */
header .logo img {
	height: 50px;
}

/* Navigation – Desktop */
header nav {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
}

/* Links im Header */
header nav a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: bold;
}

/* Logout-Form */
header .logout-form {
	display: inline;
}

/* Sprache */
.lang-switch a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	margin: 0;
	font-size: small;
}
.lang-switch a.active {
	font-weight: 700;
	text-decoration: underline;
}

/* Dropdown-Container */
.dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

/* Hauptlink „Produkte“ */
.dropdown .dropdown-trigger {
	padding-right: 8px;
}
.dropdown .dropdown-trigger::after {
	content: "";
	border: 4px solid transparent;
	border-top-color: currentColor;
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-25%);
	opacity: 0.7;
}

/* Menü */
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: .5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--border-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	display: none;
	z-index: 999;
}

/* Einträge */
.dropdown-menu li a {
	display: block;
	padding: .6rem 1rem;
	margin: 0;
	font-weight: 500;
	color: #111827;
}
.dropdown-menu li a:hover {
	background: #f3f4f6;
}

/* Öffnen bei Hover (Desktop) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
	display: block;
}

/* ===== Burger-Button ===== */
.nav-toggle {
	display: none; /* Desktop: versteckt */
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	position: relative;
}

.nav-toggle span {
	position: absolute;
	left: 4px;
	right: 4px;
	height: 2px;
	background: var(--text-color);
	border-radius: 999px;
	transition: transform .15s ease, opacity .15s ease, top .15s ease;
}

.nav-toggle span:nth-child(1) {
	top: 9px;
}
.nav-toggle span:nth-child(2) {
	top: 15px;
}
.nav-toggle span:nth-child(3) {
	top: 21px;
}

/* X-Icon, wenn geöffnet */
.nav-toggle.is-open span:nth-child(1) {
	top: 15px;
	transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
	top: 15px;
	transform: rotate(-45deg);
}

/* ===== Mobile-Layout ===== */
@media (max-width: 900px) {
	header {
		padding-inline: 1rem;
	}

	/* Burger sichtbar */
	.nav-toggle {
		display: inline-flex;
	}

	/* Nav wird zum Overlay unter dem Header */
	header nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid #e5e7eb;
		flex-direction: column;
		align-items: flex-start;
		gap: .5rem;
		padding: .75rem 1rem 1rem;
		display: none; /* standardmäßig zu */
		z-index: 998;
	}

	header nav.is-open {
		display: flex;
	}

	header nav a,
	header .lang-switch {
		margin-left: 0;
	}

	header .lang-switch {
		margin-top: .25rem;
		margin-bottom: 1rem;
	}

	/* Dropdown-Container im Flow */
	header .dropdown {
		width: 100%;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	/* Pfeil wie im Desktop, aber weiter rechts */
	header .dropdown .dropdown-trigger {
		position: relative;
		padding-right: 22px;
		width: 100%;
	}

	header .dropdown .dropdown-trigger::after {
		content: "";
		position: absolute;
		right: 6px;
		top: 50%;
		transform: translateY(-50%) rotate(0deg);
		border: 5px solid transparent;
		border-top-color: currentColor;
		transition: transform 0.2s ease;
	}

	/* Dropdown-Menü im Mobile */
	header .dropdown-menu {
		position: static;
		width: 100%;
		display: none; /* standardmäßig NICHT sichtbar */
		border-radius: 8px;
		box-shadow: none;
		padding-left: 12px; /* leichter Einzug */
		border: none;
	}

	header .dropdown-menu li a {
		padding: 0;
	}

	/* Zeigen beim Hover / Touch */
	header .dropdown:hover .dropdown-menu,
	header .dropdown:focus-within .dropdown-menu {
		display: block;
	}

	/* Pfeil nach unten → dreht sich beim Öffnen */
	header .dropdown:hover .dropdown-trigger::after,
	header .dropdown:focus-within .dropdown-trigger::after {
		transform: translateY(-50%) rotate(180deg);
	}

	header .search {
		order: -1; /* Suche nach ganz oben im Menü */
		width: 100%;
		margin-bottom: 0.75rem;
		margin-right: 0; /* Desktop-Margin entfernen */
		max-width: 1000px;
	}

	/* Wrapper im Burger-Menü als „Chip“ */
	header .search-wrapper {
		background: var(--secondary-color);
		padding: 0.25rem 0.6rem;
	}

	/* Input flacher & ohne harten Rahmen */
	header .search input[type="text"] {
		border: none;
		box-shadow: none;
		background: transparent;
		padding: 0.45rem 1rem 0.45rem 2.4rem;
		font-size: 0.9rem;
	}

	header .search input[type="text"]:focus {
		outline: none;
		box-shadow: none;
	}

	/* Lupe etwas kleiner und näher am Rand */
	header .search-btn {
		left: 10px;
	}

	header .search-btn .search-icon {
		width: 16px;
		height: 16px;
	}

	header .button-link {
		max-width: 300px;
	}
}

h2 {
	margin-bottom: 8px;
}

h3 {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	color: var(--primary-color);
}

h4 {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
	color: var(--primary-color);
	font-size: 18px;
}

.button-link {
	background: var(--primary-color);
	color: white !important;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
	font-size: 15px;
	line-height: 1.55;
}

.button-link-activ {
	background: gray;
	color: white !important;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-radius: var(--border-radius);
	margin-left: 1.5rem;
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
}

.banner {
	background: url("/content/img/breites_banner_heller.png") no-repeat center
		center / cover;
	color: white;
	padding: 3rem 2rem;
	text-align: center;
}

.banner h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.banner p {
	color: var(--primary-color);
}

.banner a {
	background: white;
	color: var(--primary-color);
	border: none;
	padding: 0.6rem 1.2rem;
	font-weight: bold;
	cursor: pointer;
	border-radius: var(--border-radius);
	display: inline-block;
	margin-top: 14px;
}

.section {
	padding: 2rem;
	max-width: 1200px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.grid div {
	background: var(--background-color);
	padding: 1rem;
	border-radius: var(--border-radius);
}

@media (max-width: 600px) {
	.grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hero h1 {
		font-size: 1.5rem;
	}
}

#login,
#register-form {
	min-width: 300px;
	max-width: clamp(250px, 95vw, 400px);
	margin: 40px auto;
	padding: 2rem;
	background: var(--background-color);
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#login h2,
#register-form h2 {
	text-align: center;
	margin-bottom: 1rem;
}

#login form,
#register-form {
	margin-top: 7px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#login form label {
	display: flex;
	flex-direction: column;
	font-weight: bold;
	gap: 0.25rem;
}

form.login {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
input[type="password"] {
	display: block;
	width: 100%;
	padding: .5625rem 1rem;
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.25rem;
	color: #1f2937;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #e5e7eb;
	border-radius: var(--border-radius);
	box-shadow: 0 1px 1px rgba(31, 41, 55, 0.06);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
input[type="submit"] {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	font-weight: bold;
	cursor: pointer;
}
span.form_validation_error {
	background: color-mix(in srgb, #d63939 10%, transparent);
	padding: 10px;
	border-radius: var(--border-radius);
	pointer-events: none;
	display: block;
	margin: 5px 0 0 0;
}
/* ====Container und Layout==== */

/*container für textfelder*/
.container {
	max-width: 80rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 20px clamp(2.25rem, 9.6vw, 4.5rem);
}

.flex-container {
	display: flex;
	flex-direction: row-reverse;
	gap: 20px;
	padding: 20px;
	font-family: Arial, sans-serif;
}
.content {
	flex: 1;
}

/* ================== Breadcrumb ================== */
nav.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.9rem;
	color: var(--grey);
	margin: 8px 8px 0 8px;
}

/* Links im Breadcrumb */
nav.breadcrumb a {
	margin: 0; /* überschreibt dein globales nav a */
	font-weight: normal;
	color: var(--grey);
	text-decoration: none;
}

nav.breadcrumb a:hover {
	text-decoration: underline;
}

/* Separator */
nav.breadcrumb .separator {
	color: var(--light-grey);
}

/* Aktuelles Element */
nav.breadcrumb .current {
	font-weight: 600;
	color: var(--grey);
}

/* ================== Zurück ================== */

nav.breadcrumb a.back-link {
	font-weight: bold;
	margin-right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

nav.breadcrumb a.back-link:hover,
.back-nav-container .back-link:hover {
	color: var(--primary-color) !important;
	text-decoration: none !important;
}

.back-arrow {
	font-size: 1.4rem;
	line-height: 1;
	margin-top: -2px; /* Optische Korrektur der vertikalen Zentrierung */
}

.margin-right-10 {
	margin-right: 10px;
}

/* Sticky Sidebar, scrollt eigenständig wenn sie länger wird */
.sidebar {
	position: sticky;
	top: 1rem;
	align-self: flex-start;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: var(--secondary-color);
	padding: 0.75rem 1rem;
	border-radius: var(--border-radius);
}

.sidebar::-webkit-scrollbar {
	width: 8px;
}
.sidebar::-webkit-scrollbar-track {
	background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: var(--border-radius);
}
.sidebar::-webkit-scrollbar-thumb:hover {
	background: #868993;
}

/* Product-Grid: 3/2/1 Spalten */
.product-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr)); /* fix 3 auf groß */
}

/* Breakpoints für responsives Reduzieren */
@media (max-width: 1200px) {
	.product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 900px) {
	.page.catalog-layout {
		grid-template-columns: 1fr;
	} /* Sidebar über Content */
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 540px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	.sidebar {
		position: initial;
		width: 100%;
		max-width: 100%;
	}
}

/* Produktkarte – konsolidiert (du hattest doppelte Blöcke) */
.product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: var(--border-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .25s ease, transform .06s ease;
}
.product-card:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Titel & Body */
.card-title {
	font-size: 15px;
	font-weight: 600;
	padding: .75rem .9rem 0;
	color: #1f2937;
	line-height: 1.35;

	/* volle Anzeige, keine Kürzung */
	display: block;
	overflow: visible;
	min-height: 0;
	width: 100%;
	min-width: 0;

	/* saubere Umbrüche */
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}
.card-body {
	padding: .5rem .9rem .4rem;
	font-size: .9rem;
	color: #555;
}

/* Inhaltsspalte rechts neben der Sidebar */
.catalog-content {
	display: flex; /* simpler Kolumnen-Flow */
	flex-direction: column;
	flex-grow: 1;
	min-width: 300px;
	flex-basis: min-content;
}

/* optional: Kategorie-Text etwas absetzen */
.catalog-content .category-description {
	font-size: 1rem;
	color: #444;
	line-height: 1.6;
	margin-bottom: var(--general-gap);
}

.catalog-content .category-sort-field {
	display: flex;
	justify-content: end;
	gap: 20px;
	align-items: center;
}

.catalog-content .category-sort-field select {
	width: auto;
}

/* Bild oben */
.product-card img {
	width: 100%;
	aspect-ratio: 3 / 2; /* wirkt moderner als fixe Höhe */
	/*height: 150px;*/
	object-fit: cover;
}

/* Infos und Aktionen */
.product-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/*------------------------------------------------------------*/
/* Container für die gesamte Filterleiste */
.filter-horizontal-bar {
	margin-bottom: 20px;
	background: #fff;
	padding: 10px;
}

.filter-flex-container {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* Das einzelne Filter-Dropdown */
.filter-details {
	position: relative; /* Wichtig für das absolute Positionieren des Inhalts */
}

.filter-summary {
	list-style: none;
	cursor: pointer;
	padding: 8px 15px;
	border: 1px solid var(--light-grey);
	border-radius: var(--border-radius);
	background: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	user-select: none;
}

.filter-summary::-webkit-details-marker {
	display: none;
}

.filter-chevron {
	transition: transform 0.2s ease;
	color: var(--grey);
}

.filter-details[open] .filter-chevron {
	transform: rotate(90deg);
}

/* Der ausklappbare Bereich */
.filter-dropdown-content {
	position: absolute;
	top: 110%;
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid var(--light-grey);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	padding: 10px;
}

/* Scroll-Logik: Zeigt ca. 4 Einträge, dann Scrollbar */
.filter-dropdown-content .filter_values {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 180px; /* Begrenzung auf ca. 4-5 Einträge */
	overflow-y: auto;
	padding-right: 5px;
}

/* Styling der Filter-Pillen im Dropdown (kompakt) */
.filter-dropdown-content .filter_value-label {
	display: flex;
	justify-content: space-between;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: var(--border-radius);
	font-size: 0.85rem;
}

.filter-dropdown-content .filter_value-label:hover {
	background-color: var(--secondary-color);
}

/* Der Button zum Abschicken */
.filter-apply-btn {
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
	height: 38px;
}

.filter-apply-btn:hover {
	filter: brightness(1.1);
}

/* "Alle zurücksetzen" Button */
.filter-reset-all {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	font-size: 0.85rem;
	color: #b91c1c; /* Rot-Ton für Löschen */
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--border-radius);
	transition: background 0.2s;
}

.filter-reset-all:hover {
	background-color: #fef2f2;
	border-color: #fca5a5;
	text-decoration: none;
}

.reset-icon {
	font-size: 1.2rem;
	font-weight: bold;
}

/* Filtern-Button standardmäßig verstecken (da Auto-Submit aktiv) */
.filter-apply-btn.no-js-only {
	display: none;
}

/* Optional: Klick-Bereich außerhalb zum Schließen (falls das Attribut 'name' nicht reicht) */
.filter-details[open] {
	z-index: 101;
}

/* Styling für den aktiven Filter-Header */
.filter-summary.is-active {
	border-color: var(--primary-color) !important;
	background-color: #eef5fb !important; /* Ein ganz sanftes Blau */
	color: var(--primary-color) !important;
	font-weight: 700; /* Text etwas fetter machen */
}

/* Der kleine Indikator-Punkt */
.filter-active-dot {
	color: var(--primary-color);
	font-size: 0.7rem;
	display: inline-block;
	vertical-align: middle;
}

/* Chevron im aktiven Zustand ebenfalls blau färben */
.filter-summary.is-active .filter-chevron {
	color: var(--primary-color);
}

/* Optional: Schatten, wenn aktiv, für mehr Tiefe */
.filter-summary.is-active {
	box-shadow: 0 2px 4px rgba(21, 57, 97, 0.1);
}

/* Mobile Anpassung */
@media (max-width: 600px) {
	.filter-dropdown-content {
		position: static; /* Auf Handy untereinander schieben */
		width: 100%;
	}
}
.categories li {
	margin: 8px 0;
	list-style: none;
}

.categories a {
	text-decoration: none;
	color: #333;
	font-size: 0.95rem;
}

.info-text {
	font-size: 1rem;
	color: #666;
	margin-bottom: var(--general-gap);
}

/* Spezifikationen */
.specs {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	flex: 1;
}
.specs li {
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: #555;
}
.specs .price {
	margin-top: 8px;
	font-size: 1rem;
	color: #e03e2d;
}

/* Gemeinsame Button-Grundwerte, TO-DO: wird nicht benutzt? */
.btn {
	display: inline-block;
	padding: 10px 14px;
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

/* Primärer Link-Button */
.btn-primary {
	background-color: var(--primary-color);
	color: #fff;
}

/* Sekundärer Formular-Button */
.btn-secondary {
	background-color: #f5f5f5;
	color: #333;
	border: 1px solid #ccc;
}

/* Warenkorb-Form */
.cart-form {
	display: flex;
	align-items: center;
	gap: 8px;
}
.cart-form label {
	font-size: 0.9rem;
	color: #333;
}
.cart-form input[type="number"] {
	width: 50px;
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
}
/* Container */
.search {
	max-width: 250px;
	width: 100%;
	margin-right: 1rem;
}

/* Wrapper für Input + Icon */
.search-wrapper {
	position: relative;
	width: 100%;
}

/* Suchfeld */
.search input[type="text"] {
	width: 100%;
	padding: 0.6rem 1rem 0.6rem 2.6rem; /* Platz für Icon */
	border: 1px solid #ccc;
	border-radius: 25px;
	font-size: 0.95rem;
	outline: none;
	transition: all .2s ease;
}

.search input[type="text"]:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(21, 57, 97, 0.1);
}

/* Der Lupe-Button */
.search-btn {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.search-btn .search-icon {
	width: 18px;
	height: 18px;
	color: #6b7280; /* graue Lupe */
}

.search-btn:hover .search-icon {
	color: var(--primary-color);
}

/* Entfernt Blau-Hintergrund beim Klick in manchen Browsern */
.search-btn:focus {
	outline: none;
}

footer {
	background-color: var(--primary-color);
	/*background: linear-gradient(181deg, var(--primary-color), var(--third-color));*/
	padding: 40px 20px 20px;
	font-family: Arial, sans-serif;
	color: white;
	text-align: center;
}

footer a,
footer a:active,
footer a:visited {
	color: white;
}

.footer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.footer-contact,
.footer-links,
.footer-social {
	flex: 1 1 250px;
	min-width: 250px;
}

footer h3,
footer h4 {
	margin-bottom: 10px;
	margin-top: 0;
	color: white;
}

footer p,
footer a,
footer li {
	font-size: 14px;
	line-height: 1.6;
}

footer a {
	text-decoration: none;
	color: var(--secondary-color);
}

footer a:hover {
	text-decoration: underline;
	color: #70a4cf;
}

.footer-links ul {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 8px;
}

.footer-social img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
	transition: filter 0.3s;
	margin-top: 10px;
}

.footer-social img:hover {
	filter: grayscale(0%);
}

.footer-bottom {
	text-align: center;
	margin-top: 30px;
	padding-top: 15px;
	font-size: 13px;
	color: var(--secondary-color);
}

ul {
	padding: 0 0 0 10px;
	list-style: none;
}

div.page {
	display: flex;
	width: 100%;
	justify-content: space-evenly;
}
div.page.horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--general-gap);
}
div.page.vertical {
	flex-direction: column;
}
/* =============== Product Page =============== */

.page.page-product {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.product-title {
	font-size: 1.6rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--third-color);
}

/* ===== Header: Bild + Preis ===== */

.product-header {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 32px;
	align-items: flex-start;
}

/* Bild / Carousel */

.product-media {
	width: 100%;
}

.carousel {
	position: relative;
	width: 100%;
	background: #fff;
	overflow: hidden;
}

.carousel-viewport {
	position: relative;
	overflow: hidden;
	min-height: 260px;
	display: grid;
}

.carousel-slide {
	display: none;
	padding: 12px;
}
.carousel-slide.is-active {
	display: block;
}

.product-page_image {
	max-width: 680px;
	max-height: 430px;
	width: 100%;
	object-fit: contain;
	cursor: zoom-in;
}

/* Modal Overlay: To be able to zoom*/
.img-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 24px;
}
.img-modal.is-open {
	display: flex;
}

.img-modal-img {
	max-width: min(95vw, 1100px);
	max-height: 90vh;
	object-fit: contain;
	cursor: zoom-out;
}

.img-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
}

/* Carousel Controls */

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: rgba(21, 57, 97, 0.85);
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 1rem;
}
.carousel-btn.prev {
	left: 10px;
}
.carousel-btn.next {
	right: 10px;
}
.carousel-btn:hover {
	background: rgba(12, 34, 57, 0.95);
}

.carousel-counter {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 0.75rem;
	color: #111827;
}

/* Fallback ohne Bild */

.carousel.is-empty {
	border-radius: 12px;
	border: 1px dashed #d1d5db;
	background: #f3f6f8;
}
.carousel.is-empty .no-image {
	display: grid;
	place-items: center;
	min-height: 200px;
	color: #6b7280;
	font-size: 0.9rem;
}

/* ===== Price Card ===== */

.product-purchase {
	width: 100%;
}

.product-page_price-card,
.product-cross-reference-card,
.checkout-summary-card {
	background: #fff;
	border-radius: var(--border-radius);
	border: 1px solid #e5e7eb;
	padding: 16px 18px;
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.product-page_price-card h2 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	color: var(--third-color);
}

/* Preis-Tabelle */

.product-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin-bottom: 8px;
}
.product-price-table thead th {
	text-align: left;
	padding: 4px 6px;
	color: #6b7280;
	font-weight: 500;
}
.product-price-table tbody td {
	padding: 4px 6px;
	border-top: 1px solid #edf0f4;
}
/* Container: Quantity + CTA */
.add-to-cart_container {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 12px;
	flex-wrap: wrap;
}

/* ===== Quantity Box ===== */
.qty-box {
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: var(--border-radius);
	overflow: hidden;
	height: 48px;
	background: #fff;
}

.qty-btn {
	width: 48px;
	height: 100%;
	border: none;
	background: transparent;
	font-size: 1.6rem;
	font-weight: 400;
	cursor: pointer;
	color: #4b5563;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-btn:hover {
	background: #f3f4f6;
}

.qty-input {
	width: 60px;
	text-align: center;
	border: none;
	font-size: 1.2rem;
	outline: none;
	color: #111827;
}

/* ===== Add-to-cart Button ===== */
.add-to-cart_button {
	border: none;
	border-radius: var(--border-radius);
	background: var(--primary-color);
	color: #fff;
	padding: 12px 22px;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	height: 48px;
	transition: background 0.15s ease;
}

.add-to-cart_button:hover {
	background: var(--third-color);
}

.cart-icon {
	font-size: 1.2rem;
}

/* Variante ohne Preise */

.product-page_price-card.is-empty {
	text-align: left;
}

/* ===== Beschreibung ===== */

/* Container-Styling */
.product-description summary {
	cursor: pointer;
	display: flex;
	justify-content: space-between; /* Schiebt Text nach links, Pfeil nach rechts */
	align-items: center;
	list-style: none;
	outline: none;
	border-bottom: 2px solid var(--primary-color); /* Deine Primärfarbe aus style.css */
	margin-bottom: 12px;
}

/* Entfernt Standard-Browser-Pfeile */
.product-description summary::-webkit-details-marker {
	display: none;
}

/* Der Pfeil auf der rechten Seite */
.product-description summary::after {
	content: "›";
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
	color: var(--primary-color);
	transition: transform .2s ease;
	/* Initial nach unten zeigend, wenn 'open' (da wir 'open' im HTML haben) */
	transform: rotate(90deg);
}

/* Drehung des Pfeils, wenn das Element geschlossen ist */
/* Wenn details NICHT offen ist, soll der Pfeil nach links/unten zeigen */
.product-description details:not([open]) summary::after {
	transform: rotate(0deg);
}

/* Falls du den Pfeil lieber um 180 Grad drehen willst (hoch/runter-Logik) */
.product-description details[open] summary::after {
	transform: rotate(90deg);
}

.product-description summary h2 {
	margin: 0;
	border-bottom: none; /* Entfernt doppelten Rahmen */
	font-size: 1.1rem;
	color: var(--third-color); /* Deine Farbe für Überschriften */
}

/* ===== Details: Eigenschaften + Zeichnung ===== */

.product-details {
	margin-top: 8px;
	padding: 16px;
}

.details-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 24px;
	align-items: flex-start;
}

.details-col h2 {
	margin: 0 0 8px;
	font-size: 1.1rem;
	color: var(--third-color);
}

/* Tabelle Eigenschaften */

.product-page_classifications {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--border-radius);
	overflow: hidden;
	border: 1px solid #e5e7eb;
	font-size: 0.9rem;
}
.product-page_classifications thead th {
	background: #f3f6f8;
	text-align: left;
	padding: 8px 10px;
	font-weight: 500;
	color: #4b5563;
}
.product-page_classifications td {
	padding: 8px 10px;
	border-top: 1px solid #edf0f4;
}

/* Drawing */

.product-page_drawing {
	width: 100%;
	max-height: 480px;
	object-fit: contain;
	background: #fff;
	border-radius: var(--border-radius);
	border: 1px solid #e5e7eb;
	padding: 10px;
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
	.product-header {
		grid-template-columns: 1fr;
	}

	.product-purchase {
		max-width: 480px;
		min-width: 200px;
	}

	.details-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.page.page-product {
		padding: 16px 12px 28px;
	}

	.product-title {
		font-size: 1.3rem;
	}

	.carousel-btn {
		width: 32px;
		height: 32px;
	}

	.product-page_image,
	.product-page_drawing {
		max-height: 340px;
	}
}

/*===========================================================================*/
main > .product-grid {
	flex-basis: 100%;
}
aside {
	min-width: 300px;
	max-width: 300px;
}
aside nav a.active {
	color: var(--primary-color);
}
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 20px;
}

.pagination a,
.pagination .dots {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid var(--light-grey);
	border-radius: var(--border-radius);
	text-decoration: none;
	color: #111;
	user-select: none;
}

.pagination a:hover:not(.active) {
	background: #eee;
}

.pagination a.active {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.pagination a.nav {
	font-weight: 700;
}

.pagination .dots {
	border: none;
	min-width: auto;
	padding: 0 4px;
	color: var(--grey);
}

form a:link,
form a:visited {
	color: var(--text-color);
	text-decoration: none;
}

form a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

form textarea {
	font-family: inherit;
}

/* ===== Kontaktformular  ===== */
.contactform form {
	max-width: clamp(300px, 95vw, 720px);
	margin: 32px auto;
	padding: 24px;
	background: var(--background-color);
	border: 1px solid #e6e8eb;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Einheitliche Abstände der Felder */
.contactform form input[type="email"],
.contactform form textarea,
.page-checkout form textarea {
	width: 100%;
}

/* Textarea passend zu deinen Inputs */
.contactform form textarea,
.page-checkout form textarea.checkout-form-note {
	padding: .5625rem 1rem;
	font-size: .875rem;
	line-height: 1.25rem;
	color: #1f2937;
	background-color: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	box-shadow: 0 1px 1px rgba(31, 41, 55, 0.06);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	min-height: 140px;
	resize: vertical;
}

/* Fokuszustände (auch fürs bereits gestylte E-Mail-Feld) */
.contactform form input[type="email"]:focus,
.contactform form textarea:focus,
.page-checkout form textarea.checkout-form-note:focus {
	outline: none;
	border-color: #94a3b8;
	box-shadow: 0 0 0 3px rgba(21, 57, 97, 0.15);
}

/* Pflichtfeld/Validation (sanfter Hinweis) */
.contactform form input:required:invalid,
.contactform form textarea:required:invalid,
.page-checkout form textarea.checkout-form-note:required:invalid {
	border-color: #f59e0b;
}

/* Checkbox-Container – gut lesbarer Block */
.contactform form .checkbox-container {
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	padding: 14px 16px;
	line-height: 1.55;
}

.contactform form .checkbox-label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 12px;
	align-items: start;
}

.contactform form .checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	transform: scale(1.15);
	cursor: pointer;
}

/* Links im Formular (nutzt deine Farben, bleibt dezent) */
.contactform form a:link,
.contactform form a:visited {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	text-underline-offset: 2px;
}
.contactform form a:hover,
.contactform form a:focus-visible {
	color: #0a2a4d;
	text-decoration: underline;
	outline: none;
}

/* Submit-Button – kleine Aufwertung beim Hover/Focus */
.contactform form input[type="submit"] {
	align-self: flex-start;
	padding: .75rem 1.25rem;
}
.contactform form input[type="submit"]:hover,
.contactform form input[type="submit"]:focus-visible {
	filter: brightness(1.05);
	box-shadow: 0 0 0 3px rgba(21, 57, 97, 0.15);
}

/* Mobile Feinschliff */
@media (max-width: 600px) {
	.contactform form {
		margin: 20px 12px;
		padding: 18px;
	}
}

.buildingBackground {
	width: 100%;
	height: 250px; /* Höhe des Banners anpassen, z.B. 300px oder mehr */
	background: url("/content/img/bildGebäudeNew.jpg") no-repeat center center;
	background-size: cover; /* sorgt dafür, dass das Bild immer die Fläche füllt */
	background-color: rgb(255 255 255 / 30%);
	background-blend-mode: lighten;
}

/* ======================================== Kategorie-Sidebar=================================== */

.sidebar nav {
	margin-bottom: 10px;
}
/* Grundstruktur */
.category-menu,
.category-menu ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.category-menu ul {
	padding-left: 14px; /* dezente Einrückung für Kinder */
	margin-top: 6px;
}
.category-menu li {
	margin: 2px 0;
}

/* Links & Summary (Kopfzeile) */
.category-menu a,
.category-menu summary {
	display: block;
	padding: 3px 0 0 0;
	text-decoration: none;
	color: #333;
	border-radius: var(--border-radius);
	transition: background-color .15s ease, color .15s ease;
	font-weight: normal;
}

/* Hover dezent */
.category-menu a:hover,
.category-menu summary:hover,
.category-menu li:hover {
	color: var(--primary-color);
	font-weight: bold;
}

/* Nur der aktive Link wird betont (Eltern bleiben neutral) */
.category-menu a.active {
	color: var(--primary-color);
	font-weight: bold;
	border-radius: var(--border-radius);
}

.category-menu summary {
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	color: inherit;
	font-weight: 600;
}

.product-cross-reference-card summary {
	cursor: pointer;
	display: flex;
	gap: 6px;
	font-weight: 600;
	line-height: 20px;
}

.category-menu summary::-webkit-details-marker,
.category-menu summary::marker,
.product-cross-reference-card summary::-webkit-details-marker,
.product-cross-reference-card summary::marker {
	display: none;
	content: "";
}

/* Chevron links vom Text */
.category-menu summary::before,
.product-cross-reference-card summary::before {
	content: "›";
	font-weight: 700;
	line-height: 1;
	transform: rotate(0deg);
	transition: transform .15s ease;
	color: #6b7280; /* neutraler Ton */
	margin-right: 2px;
}
.product-cross-reference-card summary::before {
	margin-right: 15px;
}
.category-menu details[open] > summary::before,
.product-cross-reference-card details[open] > summary::before {
	transform: rotate(90deg);
}

/* Geöffnete Eltern NICHT einfärben */
.category-menu details[open] > summary,
.product-cross-reference-card details[open] > summary {
	background: transparent;
	color: inherit;
}

/* Optional: Zähl-Badge rechts im Link */
.category-menu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-left: 1rem;
}

.category-menu li > a {
	margin-left: calc(2rem - 2px);
}

/* =============================Kategorie Kacheln================================= */
.category-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 100%));
	gap: 24px;
}
/* Eine einzelne Kategorie-Kachel */
.category-tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	border-radius: var(--border-radius);
	background: #ffffff;
	text-decoration: none;
	color: #111;
	border: 1px solid #e5e7eb; /* light border */
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

/* Hover-Effekt */
.category-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ===== Bild oben ===== */

.category-tile__image-wrapper {
	width: 100%;
	height: 140px; /* Höhe anpassbar */
	background: #f3f4f6; /* Fallback-Hintergrund */
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-tile__image {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Cropped, modern */
	object-position: center; /* Fokus in der Mitte */
	display: block;
}

/* Kategorie-Name */
.category-tile__name {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #111;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Meta-Information (z. B. Artikelanzahl) */
.category-tile__meta {
	margin-top: 8px;
	font-size: 0.9rem;
	color: #6b7280; /* Grau */
}

/* Zähler */
.category-tile__count {
	font-size: 0.85rem;
}

/* ===== Responsive ===== */
#filter_form_toggle {
	display: none;
	cursor: pointer;
	text-align: center;
	font-weight: bold;
	padding: 10px 0;
}
@media (max-width: 500px) {
	.category-tile {
		padding: 16px;
	}
	.category-tile__image-wrapper {
		height: 110px;
	}
	#filter_form {
		display: none;
	}
	#filter_form_toggle {
		display: block;
	}
}

/* Tablet */
@media (max-width: 900px) {
	.category-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Handy */
@media (max-width: 600px) {
	.category-tiles {
		grid-template-columns: 1fr;
	}
}

/* ===== Filters (kompakt, 300px-freundlich) ===== */
.filters {
	display: grid;
}
.filter-group {
	display: grid;
}

/* Titel */
.filter_title {
	font-weight: 600;
	color: #111827;
	margin: 2px 0 4px;
}

/* Werte-Liste: EINSPALTIG + schmaler Zeilenabstand */
.filter_values {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	max-height: 7.3rem; /* ~3 kompakte Zeilen, nach Bedarf anpassen */
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px; /* Platz für Scrollbar */
}

/* Dünne, dezente Scrollbar für Filterwerte (optional) */
.filter_values::-webkit-scrollbar {
	width: 6px;
}

.filter_values::-webkit-scrollbar-track {
	background: transparent;
}

.filter_values::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: var(--border-radius);
}

.filter_values::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

/* Radio visuell verstecken, aber fokussierbar lassen */
.filter_value-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Zeile (kompakte „List-Pill“) */
.filter_value-label {
	display: grid;
	grid-template-columns: 1fr auto; /* Text links, Count rechts */
	align-items: center;
	padding: 4px 8px;
	border: 1px solid #e5e7eb;
	border-radius: var(--border-radius);
	background: #fff;
	color: #374151;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s
		ease, box-shadow .15s ease;
	max-width: 100%;
}

/* LANGE Wörter umbrechen statt Sidebar zu verbreitern */
.filter_value-label .label-text {
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.25;
}

/* Count klein & dezent */
.filter_value-label .count {
	font-size: .75rem;
	color: #4b5563;
	background: #eef2f7;
	border-radius: var(--border-radius);
	padding: 2px 6px;
	line-height: 1;
}

/* Hover */
.filter_value-label:hover {
	background: #f8fafc;
	border-color: #d1d5db;
}

/* Aktiv (ausgewählt) – nur dann fett */
.filter_value-checkbox:checked + .filter_value-label {
	border-color: var(--primary-color);
	background: #eef5fb;
	color: var(--primary-color);
	font-weight: 700;
	box-shadow: 0 0 0 3px rgba(21, 57, 97, 0.08);
}

/* Tastaturfokus sichtbar */
.filter_value-checkbox:focus-visible + .filter_value-label {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px rgba(21, 57, 97, 0.25);
}

/* Reset-Variante (Ghost) */
.filter_value-label.is-reset {
	color: #6b7280;
	background: #f9fafb;
	border-color: #e5e7eb;
}
.filter_value-label.is-reset::before {
	content: "×";
	font-weight: 700;
	margin-right: 4px;
	line-height: 1;
}
.filter_value-label.is-reset:hover {
	background: #f3f4f6;
	color: #374151;
}

/* Optional: Submit-Button neutral (falls sichtbar) */
.filter-submit {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: var(--border-radius);
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.filter-submit:hover {
	background: #f8fafc;
	border-color: #d1d5db;
}

/*==============TO-DO: Aufräumen=================*/
.flex {
	display: flex;
	gap: 20px;
	padding: 20px;
}
.flex.vertical {
	flex-direction: row;
}

.text-bold {
	font-weight: bold;
}

.banner-messages {
	position: fixed;
	top: 0;
	right: unset;
	width: 100%;
	padding: 20px;
	animation: fadeOut 2s forwards;
	animation-delay: 2s;
	pointer-events: none;
}
.banner-messages > div {
	width: fit-content;
	margin: auto;
	padding: var(--general-gap);
	border-radius: var(--border-radius);
	color: white;
}
.banner-messages > .banner-message_success {
	background: rgb(47, 179, 68);
}
.banner-messages > .banner-message_error {
	background-color: rgb(214, 57, 57);
}
.banner-messages > .banner-message_warning {
	background-color: rgb(245, 159, 0);
}
@keyframes fadeOut {
	from {
		opacity: 1;
		visibility: visible;
	}
	to {
		opacity: 0;
		visibility: hidden;
	}
}
/*==========================================================*/
/*=========================Account==========================*/

/* Layout: Sidebar + Content */
.page.horizontal.account-page {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
}

/* Sidebar: feste, einheitliche Breite */
.page.horizontal.account-page > aside {
	flex: 0 0 240px;
}

/* Hauptbereich rechts: füllt den Rest, überall gleich breit */
.page.horizontal.account-page > section.account-main {
	flex: 1;
	min-width: 0;
	max-width: 900px; /* gleiche Breite auf Account- & Unternehmensseite */
}

/* Mobile: Sidebar oben, Content darunter, Cards 100% Breite */
@media (max-width: 860px) {
	.page.horizontal.account-page {
		flex-direction: column;
		gap: 16px;
	}

	.page.horizontal.account-page > aside {
		flex: 0 0 auto;
		width: 100%;
	}

	.page.horizontal.account-page > section.account-main {
		max-width: 100%;
	}

	.company-card,
	.account-card {
		max-width: 100%;
	}
}

/* ----- Account-Seiten allgemein ----- */

.account-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.account-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--third-color);
	margin-bottom: 4px;
}

/* Zwei Karten nebeneinander, mobil darunter */
.account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

/* Karte */
.account-card,
.company-card,
.location-change-card {
	background: #fff;
	border-radius: var(--border-radius);
	border: 1px solid #e5e7eb;
	padding: 16px 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.location-change-card_delete {
	align-self: center;
	max-width: 350px;
}
.company-card {
	padding: 20px 24px; /* darf etwas „größer“ sein */
}

.account-page h3 {
	margin: 0 0 6px;
	font-size: 1.1rem;
	color: var(--primary-color);
	text-align: left;
}

/* Textfelder */
.account-field {
	margin: 4px 0;
	font-size: 0.95rem;
	color: var(--text-color);
}

.account-label {
	display: block;
	font-size: 0.8rem;
	color: var(--grey);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 2px;
}

.account-value {
	font-weight: 500;
}

/* Info-Text bei Passwort ändern */
.account-info {
	font-size: 0.9rem;
	color: var(--grey);
	margin-bottom: 8px;
}

/* Formular in der Passwort-Karte */
.account-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.account-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9rem;
	color: var(--text-color);
}

/* Submit-Button */
.account-submit,
.location-submit {
	align-self: flex-start;
	margin-top: 6px;
	padding: 0.6rem 1.4rem;
	border-radius: var(--border-radius);
	border: none;
	background: var(--primary-color);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.account-submit:hover,
.location-submit:hover {
	background: var(--third-color);
}
.account-submit:active,
.location-submit:active {
	transform: translateY(1px);
}

/* Responsive: untereinander auf schmalen Screens */
@media (max-width: 800px) {
	.account-grid {
		grid-template-columns: 1fr;
	}
}

/* ----- Company-Inhalte in der Card ----- */

.company-header {
	margin-bottom: 16px;
}

.company-name {
	font-size: 0.95rem;
	font-weight: 500;
}

/* Spalten für die Adressen */
.company-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

.company-block {
	min-width: 220px;
	flex: 1;
}

/* Adresszeilen */
.company-address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.95rem;
	color: var(--text-color);
}

.company-address span {
	display: block;
}

/* =================== Standorte =================== */

.page-location-change section {
	width: 100%;
}

.location_list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* einzelne Standort-Karte (nutzt account-card Basis) */
.location_card {
	padding: 18px 20px;
}

/* Body der Karte: 2 Spalten auf Desktop, 1 Spalte auf kleineren Screens */
.location_card-body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 8px;
}

/* einzelne Zeile (Label + Wert) */
.location-field label {
	display: block;
	font-size: 0.8rem;
	color: var(--grey);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 2px;
}

.location-field span {
	display: block;
	font-size: 0.95rem;
	color: var(--text-color);
}

/* Aktionen in der Karte (Bearbeiten / Löschen) */
.location_card--actions {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Buttons in der Karte */
.location-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1.1rem;
	border-radius: 12px;
	border: 1px solid var(--primary-color);
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--primary-color);
	background: #fff;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.location-btn:hover {
	background: var(--primary-color);
	color: #fff;
}

/* Danger-Variante (Löschen) */
.location-btn--danger {
	border-color: #b91c1c;
	color: #b91c1c;
}

.location-btn--danger:hover {
	background: #b91c1c;
	color: #fff;
}

/* „Neuen Standort hinzufügen“-Button unter der Liste */
.locations--actions {
	margin-top: 4px;
}

.location-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.4rem;
	border-radius: 12px;
	background: var(--primary-color);
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}
.location-add-btn:visited {
	color: #fff;
}
.location-add-btn:hover {
	background: var(--third-color);
	color: #fff;
}

.location-add-btn:active {
	transform: translateY(1px);
	color: #fff;
}

/* Responsiv: auf schmalen Screens 1 Spalte */
@media (max-width: 700px) {
	.location_card-body {
		grid-template-columns: 1fr;
	}
}
/* ================== Checkout ================== */
.page-checkout form,
.page-checkout-overview {
	display: flex;
	flex-direction: row;
	gap: var(--general-gap);
}
label.checkout-form-title,
.checkout-subtitle {
	font-weight: bold;
}
.page-checkout form .checkout-location {
	padding: var(--general-gap) 0 0 0;
}
.page-checkout form .location_card,
.checkout-address {
	margin: var(--general-gap) 0;
	display: block;
}
.checkout-subtitle {
	margin: var(--general-gap) 0;
	display: block;
}
.page-checkout form .checkout-info .checkout-form-title {
	margin: var(--general-gap) 0;
	display: block;
}
.page-checkout form .location-field_selection {
	grid-column: 1 / -1;
}
.page-checkout form .location-field_selection input {
	margin-right: var(--general-gap);
}
.page-checkout form .location-field_selection input,
.page-checkout form .location-field_selection label {
	cursor: pointer;
}
.page-checkout form .location_card:has(input[type="radio"]:checked) {
	background-color: rgba(47, 105, 179, 0.25);
}
.page-checkout-overview_right {
	flex: 1;
}
.page-checkout-overview_left {
	flex: 2;
}
.page-checkout-overview .location_card-body {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (max-width: 900px) {
	.page-checkout form,
	.page-checkout-overview {
		flex-direction: column;
	}
}

/* ================== Warenkorb ================== */

.page.page-cart {
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 24px 16px;
}

.page-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) 320px;
	gap: 24px;
	align-items: flex-start;
}

/* mobil einspaltig */
@media (max-width: 900px) {
	.page-cart-grid {
		grid-template-columns: 1fr;
	}
}

/* Titel */
.cart-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--third-color);
	margin: var(--general-gap);
}

/* Leerer Warenkorb */
.cart-empty {
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--secondary-color);
	color: var(--grey);
}

/* Liste der Einträge */
.cart {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Einzelner Eintrag als Card */
.cart-entry {
	display: grid;
	grid-template-columns: 96px minmax(0, 1.8fr) auto auto;
	gap: 16px;
	align-items: flex-start;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 12px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Bild */
.cart-entry_image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

/* Info-Spalte */
.cart-entry_info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9rem;
	color: var(--text-color);
}

.cart-entry_name {
	font-weight: 600;
	color: var(--third-color);
	margin-bottom: 4px;
}

.cart-entry_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.85rem;
	color: var(--grey);
}

.cart-entry_totals {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 4px;
	font-size: 0.9rem;
}

.cart-entry_total {
	font-weight: 600;
}

/* Menge ändern */
.cart-entry_quantity {
	display: flex;
	align-items: center;
}

.cart-qty-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cart-qty-form input[type="number"] {
	width: 64px;
	padding: 4px 6px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9rem;
}

/* Update-Button */
.cart-qty-btn {
	padding: 0.35rem 0.9rem;
	border-radius: 12px;
	border: 1px solid var(--primary-color);
	background: #fff;
	color: var(--primary-color);
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cart-qty-btn:hover {
	background: var(--primary-color);
	color: #fff;
}

/* Entfernen-Link */
.cart-entry_actions {
	display: flex;
	align-items: flex-start;
}

.cart-entry_actions a {
	text-decoration: none;
}

.cart-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	text-decoration: none;
	background: #fff;
	font-size: 1rem;
}

.cart-remove:hover {
	background: #fee2e2;
	border-color: #fca5a5;
}

/* Responsiv  */
@media (max-width: 700px) {
	.cart-entry {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"image info"
			"image qty"
			"image actions";
	}

	.cart-entry_image {
		grid-area: image;
	}

	.cart-entry_info {
		grid-area: info;
	}

	.cart-entry_quantity {
		grid-area: qty;
	}

	.cart-entry_actions {
		grid-area: actions;
		justify-content: flex-end;
	}
}

/* ================== Zusammenfassung ================== */

.cart-summary,
.checkout-information {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 16px 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cart-summary h3 {
	margin: 0 0 6px;
	font-size: 1.1rem;
	color: var(--third-color);
}

.cart-summary_row {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: var(--text-color);
}

.cart-summary_row--total {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #e5e7eb;
	font-weight: 600;
}

.cart-summary_note {
	margin-top: 6px;
	font-size: 0.8rem;
	color: var(--grey);
}

/* Checkout-Button */
.cart-checkout-btn {
	margin-top: 10px;
	padding: 0.65rem 1.4rem;
	width: 100%;
	border-radius: 12px;
	border: none;
	background: var(--primary-color);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.cart-checkout-btn:active {
	transform: translateY(1px);
}

/* Hilfsklasse für Screenreader-Label */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Imprint */

.container .imprint {
	max-width: 40rem;
	margin-inline: auto;
}

/* Eigenschaften: Qulitätstabelle */

.quality-info-link {
	color: var(--third-color);
	margin-left: 5px;
}

.quality-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.quality-modal[hidden] {
	display: none;
}

.quality-modal-content {
	background: #fff;
	width: min(980px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 12px;
	padding: 16px;
	position: relative;
}

.quality-close {
	position: sticky;
	top: 0;
	float: right;
	border: 0;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
}

/* markierte Zeile */
.tabletemplate5 tr.is-selected td {
	outline: 2px solid var(--primary-color);
	outline-offset: -2px;
	background: #eef5fb;
}
.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #555;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* ================== About Us ================== */

.aboutus ul {
	list-style: disc;
	padding-left: 16px;
	margin: 16px;
}

.aboutus p {
	margin-bottom: 0.75rem;
}
