/* ========================================================
   1. VARIABLEN & RESET (Global)
   ======================================================== */

:root {
    --bg-main: #F2F9FC;
    --bg-white: #FFF;
    --bg-grey: #f3f4f6;
    --bg-hover: #EEE;
    --bg-dropdown-mobile: #DDD;
    --text-dark: #000;
    --text-muted: #333;
    --text-gray: #222;
    --text-light-gray: #666;
    --border-color: #ddd;
    
    /* CI Farben */
    --color-primary: #004B4E;
    --color-blue-hero: #004B6E;
    --color-green-hero: #00A638;
    --color-green-hero-light: #00C241;
    --color-black-hero: #000000;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff2') format(woff2);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-500.woff2') format(woff2);
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-600.woff2') format(woff2);
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-700.woff2') format(woff2);
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    overflow-x: clip;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    overflow-x: clip; /* verhindert horizontales Overscrollen, ohne einen
       zusätzlichen Scroll-Container zu erzeugen; wichtig für sticky Header */
}


/* ========================================================
   2. HEADER & NAVIGATION
   ======================================================== */

.main-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8vh 2vh 0 1vh;
    background-color: var(--bg-white);
    gap: 40px; 
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    align-self: stretch;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.navigation {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.logo a {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.logo a img {
    height: 7vh;
}

.menu-toggle, 
.drop-toggle,
.hamburger-btn {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%; 
}

.nav-links a, 
.dropdown-label {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-label a {
    padding: 0;
    display: inline;
}

.dropdown-parent-row {
    padding: 0;
    gap: 0;
}

.dropdown-parent-row .dropdown-parent-link {
    padding: 8px 12px;
    display: inline-flex;
    width: auto;
}

.dropdown-chevron {
    display: none;
}

.header-bold a, 
.header-cart a {
    font-weight: 600;
}

.header-cart {
    margin-left: auto;
    flex: 0 0 auto;
}

.header-cart a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.header-cart a:link,
.header-cart a:visited {
    color: var(--text-dark);
    text-decoration: none;
}

.header-cart a:hover,
.header-cart a:focus-visible {
    color: var(--color-primary);
    text-decoration: none;
}

.header-cart-icon,
.header-cart-count-wrap,
.header-cart-label {
    white-space: nowrap;
}

.dropdown-label:hover {
    color: var(--color-primary);
    background-color: var(--bg-hover);
    border-radius: 4px;
}

.nav-links > li > a:hover {
    color: var(--color-primary);
}

/* Anfrage Button (Header & Hero) */
.hero-button {
	margin-top: 1vh;
}

.hero-products-jump {
    display: none;
}

#alle-geraete {
    scroll-margin-top: 90px;
}

.header-anfrage a,
.hero-button a {
    background: linear-gradient(135deg, var(--color-green-hero) 0%, #008f30 100%);
    color: var(--bg-white) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 22px !important;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 166, 56, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.header-anfrage a:hover,
.hero-button a:hover {
    background: linear-gradient(135deg, var(--color-green-hero-light) 0%, var(--color-green-hero) 100%);
    box-shadow: 0 6px 15px rgba(0, 166, 56, 0.35);
    transform: translateY(-1px);
    color: var(--bg-white) !important;
}

.header-anfrage a:active,
.hero-button a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 166, 56, 0.2);
}

.header-anfrage a::after,
.hero-button a::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -50%;
    width: 200%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.header-anfrage a:hover::after,
.hero-button a:hover::after {
    opacity: 1;
    left: 125%;
}


/* ========================================================
   3. DROPDOWN SYSTEM
   ======================================================== */

.dropdown {
    position: relative;
    width: auto;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border-radius: 4px;
    padding: 5px 0;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
    background-color: var(--bg-hover);
    border-radius: 0;
}


/* ========================================================
   4. HERO CONTAINER
   ======================================================== */

.hero-container {
    display: grid;
    background: linear-gradient(40deg, #697985 0%, #cbd5de 20%, #e4ebf1 45%, #71caec 80%);
	box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.06);
	background-size: cover;
    background-position: left;
	background-color: #71caec;
    background-repeat: no-repeat;
    grid-template-columns: 55fr 45fr;
    padding: 20px 0 0 80px; 
    min-height: 30vh;  
	max-height: 35vh;
    width: 100%;
}

.hero-text {
	padding-top: 3vh;
    z-index: 2; 
    display: flex;
    flex-direction: column;
}

.hero-blue, 
.hero-black {
    font-size: clamp(1.3rem, 2.4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.3;
}

.hero-green,
.hero-black2 {
	font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.hero-blue { color: var(--color-blue-hero); }
.hero-green,
.hero-black { color: var(--color-black-hero); }

.hero-image {
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; 
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* Hero Leistungen */
.hero-container-leistungen {
    display: grid;
    grid-template-columns: 55fr 45fr;
    padding: 0 0 0 4%;
    height: 150px;             
    width: 100%;
    align-items: center;      
    position: relative;
    overflow: hidden;
	background: linear-gradient(40deg, #697985 0%, #cbd5de 10%, #e4ebf1 40%, #71caec 80%);
	box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.06);
	background-size: cover;
    background-position: center;	
}

.hero-text-leistungen {
    padding-right: 40px;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;              
}

.hero-blue-leistungen, 
.hero-green-leistungen {
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.hero-blue-leistungen { color: var(--color-blue-hero); }
.hero-green-leistungen { color: var(--color-green-hero); }

.hero-image-leistungen {
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    overflow: hidden;          
}

.hero-image-leistungen img {
    height: 150px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: cover;
    object-position: left center; 
}


/* ========================================================
   5. FEATURE-BOXEN
   ======================================================== */

.box-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    padding: 30px;
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.box-container:first-of-type {
	margin-top: -6vh;
}

.box-container-leistungen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 30px;
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.box-container-leistungen.cms-box-layout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.box-container-leistungen.cms-box-layout-list,
.box-container-leistungen.cms-box-layout-alternating {
    grid-template-columns: minmax(0, 1fr);
}

.cms-box-layout-list .box-leistungen,
.cms-box-layout-alternating .box-leistungen {
    min-height: 0;
    padding: 15px;
}

.cms-box-layout-list .box-leistungen.box-text-only,
.cms-box-layout-alternating .box-leistungen.box-text-only {
    min-height: 0;
}

.cms-box-layout-list .box-image-leistungen,
.cms-box-layout-alternating .box-image-leistungen {
    width: 140px;
    margin-right: 20px;
}

.cms-box-layout-alternating .box-leistungen:nth-child(even) {
    flex-direction: row-reverse;
}

.cms-box-layout-alternating .box-leistungen:nth-child(even) .box-image-leistungen {
    margin-right: 0;
    margin-left: 20px;
}

.box, 
.box-leistungen {
    width: 100%; 
    min-width: 0;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.box {
    flex: 1;
	z-index: 2;
	max-height: 250px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.box-image, 
.box-image-leistungen {
    flex-shrink: 0;
    width: 140px;
    margin-right: 15px;
}

.box-image img, 
.box-image-leistungen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.box-content, 
.box-content-leistungen {
    flex-grow: 1;
    min-width: 0;
}

.box-content h3, 
.box-content-leistungen h3 {
    margin: 0 0 5px 0;
}

.box-content p, 
.box-content-leistungen p {
    margin: 0;
    color: var(--text-gray);
	text-align: left;
	hyphens: auto;
}


/* ========================================================
   6. PRODUKT-GRID SYSTEM
   ======================================================== */
   
.subheading {
	color: var(--color-blue-hero);
	padding: 20px 30px 0 30px;
	font-size: 1.4em;
	font-weight: 700;
}

/* ========================================================
   6.05 Filter-System
   ======================================================== */

.subheading-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px 30px 0 30px;
}

.subheading-row .subheading {
	padding: 0;
}

.filter-wrapper {
	position: relative;
}

.filter-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--bg-white);
	color: var(--color-blue-hero);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-toggle-btn:hover {
	background-color: var(--bg-hover);
	border-color: var(--color-blue-hero);
}

.filter-toggle-btn[aria-expanded="true"] {
	background-color: var(--color-blue-hero);
	color: var(--bg-white);
	border-color: var(--color-blue-hero);
}

.filter-count-badge {
	background-color: var(--color-green-hero);
	color: var(--bg-white);
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.filter-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 320px;
	max-width: 90vw;
	max-height: 70vh;
	overflow-y: auto;
	background-color: var(--bg-white);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.filter-panel.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.filter-panel-header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-white);
	font-weight: 700;
	color: var(--color-blue-hero);
}

.filter-close-btn {
	display: none;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--text-light-gray);
	cursor: pointer;
}

.filter-group {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-color);
}

.filter-group:last-of-type {
	border-bottom: none;
}

.filter-group-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--text-light-gray);
	margin-bottom: 10px;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--text-gray);
	cursor: pointer;
}

.filter-option input[type="checkbox"] {
	accent-color: var(--color-blue-hero);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.filter-panel-footer {
	padding: 14px 18px;
}

.filter-reset-btn {
	width: 100%;
	background: none;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-blue-hero);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.filter-reset-btn:hover {
	background-color: var(--bg-hover);
}

.filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99;
	background-color: transparent;
}

.filter-overlay.active {
	display: block;
}

.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--text-light-gray);
	font-size: 15px;
}

@media (max-width: 768px) {
	.subheading-row {
		padding: 16px 16px 0 16px;
	}

	.filter-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}

	.filter-panel.open {
		transform: translateY(0);
	}

	.filter-close-btn {
		display: block;
	}

	.filter-overlay.active {
		background-color: rgba(0, 0, 0, 0.3);
	}
}

.intro-text {
    margin-bottom: 30px;
    color: var(--text-light-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    width: 100%;
    transition: opacity 0.2s ease;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;          
    height: 200px;        
    object-fit: contain;  
    background-color: #f9f9f9;
    display: block;
	padding: 10px 0 10px 0;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 0px;
    background-color: var(--bg-grey);
    color: #4b5563;
    border: 1px solid #e5e7eb;
    display: inline-block;
    line-height: 1.2;
}

.meta-item + .meta-item::before {
    display: none;
}

.meta-item.has-cellular {
    background-color: var(--bg-grey);
    color: #4b5563;
    border-color: #e5e7eb;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.text-link-details {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue-hero);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    margin-top: auto;
}

.text-link-details .arrow {
    transition: transform 0.2s ease;
}

.product-card:hover .text-link-details {
    color: var(--color-primary);
}

.product-card:hover .text-link-details .arrow {
    transform: translateX(4px);
}


/* ========================================================
   6.2 Call To Action : Beratung
   ======================================================== */
   
.cta-beratung {
	text-align: center;
	margin-bottom: 6vh;
}

.subheading-beratung {
	color: var(--color-blue-hero);
	font-size: 1.4em;
	font-weight: 600;
	margin: 1vh 0 0 0;
}

.subheading-beratung2 {
	color: var(--color-blue-hero);
	font-size: 1.2em;
	font-weight: 500;
	margin: 1vh 0 2vh 0;
}
   
/* ========================================================
   7. GLOBALER INHALT & FOOTER
   ======================================================== */

.content-area {
    flex: 1;
    padding: 30px 3% 0% 3%;
    margin-bottom: 4vh;
}

.main-footer {
    background-color: var(--bg-white);
    color: var(--text-dark);
    text-align: center;
    padding: 20px;
    margin-top: auto;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.15);
}

.main-footer a {
    color: var(--text-dark);
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
}

.main-footer .footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-footer .footer-linkedin span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #0a66c2;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}


/* ========================================================
   7.4. FORMULARE & ANFRAGEN
   ======================================================== */

.form-container {
    width: 100%;
    margin-top: 2vh;
    padding: 4vh 10vh 4vh 4vh;
    background: #ffffff;
    border-radius: 0 8px 8px 0;
    border-left: 5px solid var(--color-blue-hero);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 24px;
}

.form-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 25px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #df4759;
}

.form-group :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea) {
    padding: 12px 14px;
    /* iOS Safari zoomt beim Fokussieren automatisch in jedes Feld mit
       font-size < 16px hinein -> mit 15px sprang die Seite bei jedem Tap
       ins Feld sichtbar rein/raus. 16px verhindert das. */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-group :is(input, textarea):focus {
    border-color: #0066cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

::placeholder {
    color: #aaa;
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
}

.section-label {
    margin-bottom: 12px !important;
}

.checkbox-group {
    display: flex;
    gap: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: normal !important;
    color: #333;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-green-hero); 
}

.checkbox-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.form-actions {
    text-align: right;
}

.btn-submit {
    background-color: var(--color-green-hero);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: var(--color-green-hero-light);
}

.btn-submit:active {
    transform: scale(0.98);
}


/* ========================================================
   7.5. IMPRESSUM, KONTAKT & AGB
   ======================================================== */

.impressum-wrapper,
.kontakt-wrapper {
    display: flex;
    width: 100%;
    margin: 0;
}

.impressum-container,
.kontakt-container {
    flex: 1; 
    padding: 20px;
    background-color: white;
}

.impressum-container.left-box {
    flex: 0 0 40%; 
    border-left: 5px solid var(--color-blue-hero);
}

.impressum-container.right-box {
    flex: 0 0 60%; 
}

.kontakt-container.left-box {
    flex: 0 0 38%;
    border-left: 5px solid var(--color-blue-hero);
    padding: 3vh;
}

.kontakt-container.right-box {
    flex: 0 0 62%;
    padding: 3vh;
}

.kontakt-container h2 {
    margin: 0;
    font-size: 1.25rem;
}

.contact-intro {
    margin: .5rem 0 1.25rem;
    padding: 0 !important;
    color: #5e6970;
    line-height: 1.5;
}

.contact-options {
    display: grid;
    gap: 10px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid #d5e0e5;
    border-radius: 8px;
    background: #f8fbfc;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.contact-option:hover,
.contact-option:focus-visible {
    border-color: var(--color-blue-hero);
    background: #fff;
    box-shadow: 0 5px 14px rgba(0, 75, 110, .12);
    transform: translateY(-1px);
    outline: none;
}

.contact-option-icon {
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--color-blue-hero);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.contact-option-linkedin .contact-option-icon {
    background: #0a66c2;
}

.contact-option small,
.contact-option strong {
    display: block;
}

.contact-option small {
    margin-bottom: 3px;
    color: #667780;
    font-size: .78rem;
    font-weight: 600;
}

.contact-option strong {
    overflow-wrap: anywhere;
    font-size: .95rem;
}

.contact-address {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #dde5e8;
}

.contact-address h3 {
    margin: 0;
}

.header-cms a {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px !important;
    border: 1px solid #b8c7cf;
    border-radius: 6px;
    color: #45606d !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
}

.header-cms a:hover,
.header-cms a:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    background: var(--bg-hover);
}

.impressum-wrapper div p,
.kontakt-wrapper div p {
    padding: 1vh 0;
}

/* AGB */
.agb-wrapper {
    background-color: white;
    border-left: 5px solid var(--color-blue-hero);
    padding: 0 2vh 4vh 2vh;
    margin-top: 2vh;
}

.agb-wrapper h2 {
    padding: 2vh 0 0.5vh 0;
    font-size: 1.3em;
}

.agb-text {
    text-align: justify;
}


/* ========================================================
   7.8. FAQ SECTION 
   ======================================================== */

.faq-title { margin-bottom: 3vh; }

.category-title {
    font-size: 1.4rem;
    color: var(--color-blue-hero); 
    margin-top: 3vh;
    margin-bottom: 1vh;
    font-weight: 600;
}

.faq-accordion {
    background-color: white;
    width: 80%;
    border: 1px solid #e5e5e7; 
    border-radius: 12px;        
    overflow: hidden;           
}

.faq-trigger-first, 
.faq-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    outline: none;
    padding: 1vh;
    cursor: pointer;
}

.faq-trigger-first {
    border-top-left-radius: 12px;  
    border-top-right-radius: 12px; 
}

.faq-trigger {
    border-top: 3px solid var(--color-blue-hero);
}

.faq-content {
    background-color: white;
    padding: 1vh 0 2vh 3.5vh;
}

.faq-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-blue-hero);
    border-bottom: 2px solid var(--color-blue-hero);
    transform: rotate(-45deg);
    transition: transform 0.2s ease-in-out;
}

.ui-accordion-header-active .faq-icon {
    transform: rotate(45deg);
    border-color: var(--color-green-hero); 
}


/* ========================================================
   7.9. IPAD DETAIL & WARENKORB SYSTEM
   ======================================================== */

.ipad-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.ipad-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.ipad-header .baujahr {
    color: #666;
    font-size: 0.9rem;
}

.ipad-main-info {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.ipad-image {
    flex: 1;
    min-width: 300px;
}

.galerie-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.hauptbild-container {
    flex: 1;
    height: 380px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e5e5e7;
}

.hauptbild-container img {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.2s ease-in-out;
}

.hauptbild-container.no-image {
    color: #86868b;
    font-size: 0.9rem;
}

.thumbnail-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 32px 0; 
    height: 380px;   
    box-sizing: border-box;
}

.thumbnail-track-container {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    overflow-y: auto; 
    scroll-behavior: smooth;
    height: 100%;
    padding: 2px 5px;
    scrollbar-width: none; 
}

.thumbnail-track-container::-webkit-scrollbar { display: none; }

.thumbnail-track-container .thumb {
    width: 65px;
    height: 65px;
    flex-shrink: 0; 
    object-fit: contain;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.thumbnail-track-container .thumb:hover {
    opacity: 0.8;
    border-color: #d2d2d7;
}

.thumbnail-track-container .thumb.active {
    border-color: #0071e3;
    opacity: 1;
}

.slider-btn {
    background: rgba(245, 245, 247, 0.8);
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 0; 
}

.slider-btn:hover {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
}

.slider-btn.prev {
    top: 0;
    transform: rotate(90deg);
    transform-origin: center; 
}

.slider-btn.next {
    bottom: 0;
    transform: rotate(90deg);
    transform-origin: center;
}

.ipad-action-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-form {
    margin-top: 25px;
    width: 100%;
}

.purchase-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* Quantity Picker */
.quantity-picker,
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 40px; 
}

.quantity-control.saved-success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-dark, #111827);
    font-size: 1.1rem;
    width: 36px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.2s;
}

.qty-btn:hover { background: #e5e7eb; }
.qty-btn:active { background: rgba(0, 0, 0, 0.08); }

.quantity-picker input[type="number"],
.quantity-picker .qty-detail-input,
.qty-input {
    width: 45px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-color, #e5e7eb);
    border-right: 1px solid var(--border-color, #e5e7eb);
    background: #ffffff;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #111827);
    padding: 0;
    outline: none;
    -moz-appearance: textfield; 
}

.quantity-picker input[type="number"]::-webkit-outer-spin-button,
.quantity-picker input[type="number"]::-webkit-inner-spin-button,
.quantity-picker .qty-detail-input::-webkit-outer-spin-button,
.quantity-picker .qty-detail-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Order / Cart Buttons */
.btn-order {
    flex: 1;
    background: #0071e3;
    color: #ffffff;
    border: none;
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
	text-decoration: none;
}

.btn-order:hover { background: #005bb5; }
.btn-order:active { transform: scale(0.98); }

.btn-order.btn-in-cart {
    background-color: #10b981;
}

.btn-order.btn-in-cart:hover {
    background-color: #059669;
}

/* Warenkorb-Vorschau */
.form-cart-preview {
    margin-top: 15px;
    margin-bottom: 25px;
}

.cart-preview-list {
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 5px 15px;
}

.cart-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    gap: 15px;
}

.cart-preview-item:last-child {
    border-bottom: none;
}

.preview-item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-self: stretch;
    justify-content: center;
    min-width: 0;
    margin: -8px 0 -8px -8px;
    padding: 8px 12px;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.preview-item-info:hover {
    background: #eefaf2;
    box-shadow: inset 0 0 0 1px #73d995;
}

.preview-item-info:focus-visible {
    outline: 3px solid rgba(0, 166, 56, 0.28);
    outline-offset: 2px;
}

.preview-item-name {
    font-weight: 600;
    color: var(--text-dark, #111827);
}

.preview-item-info:hover .preview-item-name,
.preview-item-info:focus-visible .preview-item-name {
    color: #007f2b;
}

.preview-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.preview-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-delete-ajax {
    background: none;
    border: none;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.btn-delete-ajax:hover {
    color: #ef4444;
    background: #fef2f2;
}

.cart-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-clear-cart {
    background: transparent;
    border: none;
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-clear-cart:hover {
    color: #ef4444;
}

.cart-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-cart-quick-add {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    background: transparent;
    color: var(--color-green-hero, #00A638);
    border: 1.5px solid var(--color-green-hero, #00A638);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cart-quick-add span {
    font-size: 0.95rem;
    line-height: 1;
}

.btn-cart-quick-add:hover {
    background: var(--color-green-hero, #00A638);
    color: #ffffff;
}

@media (max-width: 600px) {
    .cart-quick-actions {
        flex-direction: column;
    }
}

.required-star {
    color: #ef4444;
}

.icon-cart {
    width: 18px;
    height: 18px;
}

/* Specs & Trennlinien */
.ipad-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 2vh;
}

.spec-card {
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    height: 100%;
}

.spec-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #e5e5e7;
    padding-bottom: 10px;
    color: #1d1d1f;
}

.spec-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.spec-card ul li {
    display: grid;
    grid-template-columns: minmax(112px, 0.78fr) minmax(0, 1.22fr);
    gap: 14px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 0.95rem;
    line-height: 1.4;
}

.spec-card ul li:last-child { border-bottom: none; }

.spec-card ul li strong {
    color: #86868b;
    font-weight: 500;
    display: block;
}

.spec-card ul li span {
    min-width: 0;
    color: #1d1d1f;
    overflow-wrap: anywhere;
}

.spec-card ul li.spec-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
}

.trennstrich {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 3vh;
}

.trennstrich::before,
.trennstrich::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e5e5e7; 
}

.trennstrich::before { margin-right: 15px; }
.trennstrich::after { margin-left: 15px; }


/* ========================================================
   8. MEDIA QUERIES
   ======================================================== */

@media (min-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .ipad-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Die redaktionellen Bild-Text-Boxen brauchen mit ihrem Bild mehr
       Mindestbreite als die Produktkarten. Zwei Spalten verhindern im
       Tablet-/schmalen Desktopbereich gequetschten Text und Überlauf. */
    .box-container-leistungen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .box-container-leistungen.cms-box-layout-list,
    .box-container-leistungen.cms-box-layout-alternating {
        grid-template-columns: minmax(0, 1fr);
    }

    .box-image-leistungen {
        width: 110px;
    }
}

@media (min-width: 769px) and (max-width: 1250px) {
    /* 1. Platz schaffen: Höhenbegrenzung aufheben, damit kein Text abgeschnitten wird */
    .box {
        max-height: none;
    }

    /* 2. Bildbereich im Zwischenschritt ausblenden */
    .box-image {
        display: none;
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Burger-Menü/Navigation: eigene, breitere Query (statt 768px).
   Grund: die Desktop-Nav (iPad-Modelle, Leistungen, FAQ, Telefonnummer,
   "Jetzt anfragen"-Button, Warenkorb) hat keinen flex-wrap und ist bei
   Breiten zwischen ca. 769px und 1200px (Tablets im Querformat, große
   Android-Handys im Querformat) zu breit für den verfügbaren Platz ->
   das drückt den Header breiter als der Viewport und erzeugt genau den
   sichtbaren Abstand/Overscroll-Rand am rechten Bildschirmrand, den ihr
   auf iPad und Pixel gesehen habt. Ab hier greift jetzt einheitlich die
   Burger-Variante. */
@media (max-width: 1200px) {
    .main-header {
        justify-content: flex-start;
        gap: 14px;
    }

    .logo {
        order: 1;
    }

    .header-cart-persistent {
        order: 2;
        margin-left: auto;
    }

    .hamburger-btn {
        order: 3;
        flex: 0 0 auto;
    }

    .navigation {
        order: 4;
    }

    .header-cart-persistent a {
        padding: 8px 4px;
        font-weight: 600;
    }

    .header-cart-persistent .header-cart-label {
        display: none;
    }
    
    .header-bold {
        font-weight: 400;
        width: 100%; 
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    .hamburger-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .navigation {
        display: none;
        position: absolute;
        /* war: top: 68px + margin-top: 1vh -> fixer px-Wert passt nicht
           zur tatsächlichen (variablen) Header-Höhe (Logo ist 7vh) und
           hat je nach Bildschirmhöhe die sichtbare Lücke zwischen Header
           und aufgeklapptem Menü verursacht. top:100% ist immer exakt
           die Unterkante des (position:relative) Headers. */
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        z-index: 99;
        border-top: 1px solid #444;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li:last-child {
        margin-left: 0;
    }

    .nav-links a, 
    .dropdown-label {
        display: block;
        padding: 15px 25px;
        width: 100%;
        white-space: normal;
        box-sizing: border-box; 
    }

    .dropdown-parent-row {
        display: flex;
        align-items: stretch;
        padding: 0;
        width: 100%;
    }

    .dropdown-parent-row .dropdown-parent-link {
        flex: 1 1 auto;
        width: auto;
        padding: 15px 25px;
    }

    .dropdown-chevron {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        flex: 0 0 54px;
        cursor: pointer;
        font-size: 16px;
        border-left: 1px solid var(--border-color, #e5e7eb);
    }

    .dropdown-label.dropdown-parent-row::after {
        content: none;
    }

    .menu-toggle:checked ~ .navigation {
        display: block;
    }

    .menu-toggle:checked ~ .hamburger-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .hamburger-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu {
        position: static;
        background-color: var(--bg-dropdown-mobile);
        box-shadow: none;
        padding: 0;
        width: 100%; 
        border-radius: 0;
    }

    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 12px 25px 12px 45px;
        box-sizing: border-box;
    }

    .drop-toggle:checked ~ .dropdown-menu {
        display: block;
    }
    
    .dropdown-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-label::after {
        content: "▾";
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-products-jump {
        display: block;
    }

    .hero-container {
        grid-template-columns: 55fr 45fr;
        padding: 10px 0 0 10px;
        min-height: auto;
        max-height: none;
        align-items: stretch;
        overflow: hidden;
    }

    .hero-text { 
        padding-top: 0;
        padding-bottom: 15px;
        padding-right: 10px; 
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        overflow: hidden;
    }

    .hero-image img {
        width: auto;
        max-width: none;
        height: 110%;
        max-height: 150px;
        object-fit: cover;
        object-position: left bottom;
        display: block;
    }

    .hero-container-leistungen {
        grid-template-columns: 60fr 40fr;
        padding: 1.5vh 0 1.5vh 20px;
        /* war: feste height:150px + overflow:hidden -> bei schmalerer
           Spalte kann der Text auf mehr Zeilen umbrechen und wurde dann
           oben/unten abgeschnitten. min-height statt height lässt die
           Box mitwachsen, das Bild wird weiterhin über sein eigenes
           overflow:hidden (siehe .hero-image-leistungen) beschnitten. */
        height: auto;
        min-height: 150px;
        overflow: visible;
    }

    .hero-text-leistungen {
        padding-right: 15px;
        min-width: 0;
    }

    .hero-image-leistungen {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 150px;
        overflow: hidden;
        justify-content: flex-start; 
    }

    /* Mobile Anpassung Box-Container & Bilder */
    .box-container:first-of-type {
        margin-top: 0; /* verhindert Überlappung mit dem geschrumpften Mobile-Hero */
    }

    .box-image,
    .box-image-leistungen {
        width: 90px;
        margin-right: 10px;
    }

    .box-container,
    .box-container-leistungen {
        display: flex;
        flex-direction: column;
        gap: 15px;
		padding: 1vh;
    }
    
    .box-leistungen { flex: 1 1 100%; }

    .cms-box-layout-list .box-leistungen,
    .cms-box-layout-alternating .box-leistungen,
    .cms-box-layout-alternating .box-leistungen:nth-child(even) {
        min-height: 0;
        padding: 15px;
        flex-direction: row;
    }

    .cms-box-layout-list .box-image-leistungen,
    .cms-box-layout-alternating .box-image-leistungen,
    .cms-box-layout-alternating .box-leistungen:nth-child(even) .box-image-leistungen {
        width: 90px;
        margin: 0 10px 0 0;
    }

    .impressum-wrapper,
    .kontakt-wrapper,
    .ipad-main-info {
        flex-direction: column;
    }

    /* Wichtig: flex-basis (40%/60%/30%/70%) bezieht sich in flex-direction:column
       auf die HÖHE statt der Breite -> ohne diesen Reset werden die Boxen
       gequetscht bzw. Inhalt abgeschnitten. */
    .impressum-container.left-box,
    .impressum-container.right-box,
    .kontakt-container.left-box,
    .kontakt-container.right-box {
        flex: 1 1 auto;
    }

    .impressum-container.right-box,
    .kontakt-container.right-box {
        border-left: 5px solid #004B6E;
    }

    .kontakt-container.right-box {
        /* Desktop: padding-left:0, weil die Box direkt neben der linken
           Box sitzt. Auf Mobile hat sie jetzt selbst einen linken
           Akzent-Rahmen -> ohne eigenes Padding klebt der Text daran. */
        padding-left: 2vh;
    }

    .kontakt-container.left-box,
    .kontakt-container.right-box {
        padding: 22px 18px;
    }

    .description {
        background-color: var(--bg-white);
        padding: 2vh;
        border: 1px solid #e5e5e7;
        border-radius: 12px;
    }
    
    .faq-accordion { width: 100%; }   

    .subheading {
		padding: 1vh 1vh 0 1vh;
    }

    /* war: 4vh 10vh 4vh 4vh -> die separate 600px-Query greift erst
       darunter, dieser Fix deckt auch 601-768px ab */
    .form-container {
        padding: 4vh;
    }

    /* Produktdetailseite: min-width 300px verhindert auf schmalen Screens
       (<~340px) sauberes Umbrechen und kann horizontales Scrollen auslösen */
    .ipad-image,
    .ipad-action-box {
        min-width: 0;
        width: 100%;
    }

    .ipad-specs-grid {
        grid-template-columns: 1fr;
    }

    /* Galerie: Hauptbild + Thumbnail-Spalte nebeneinander ist auf Mobile
       zu eng -> Thumbnails als horizontale Reihe unter das Hauptbild */
    .galerie-wrapper {
        flex-direction: column;
    }

    .hauptbild-container {
        width: 100%;
        height: 280px;
    }

    .thumbnail-slider-wrapper {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 0 32px;
    }

    .thumbnail-track-container {
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .slider-btn.prev {
        top: 50%;
        left: 0;
        transform: translateY(-50%) rotate(0deg);
    }

    .slider-btn.next {
        bottom: auto;
        top: 50%;
        right: 0;
        left: auto;
        transform: translateY(-50%) rotate(0deg);
    }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-container {
        /* war: 4vh 10vh 4vh 4vh -> die 10vh rechts sind auf Mobile nie
           überschrieben worden und haben das Formular einseitig gequetscht */
        padding: 20px;
        margin: 20px auto; 
        width: calc(100% - 40px); 
    }
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    .form-actions { text-align: left; }
    .btn-submit { width: 100%; }
}

@media (max-width: 400px) {
    .purchase-row {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-picker { justify-content: space-between; }
}


/* ========================================================
   9. UTILITIES
   ======================================================== */

.text-pulse-green {
    color: var(--color-green-hero) !important;
    transition: color 0.3s ease;
}
