/* ===== Suche im Seiten-Header (Plugin 1.18.0, vorschau/kopf-suche.php) =====
   Gilt auf allen Seiten (nicht nur Vorschau), darum ohne .otk-vorschau und mit !important gegen Astra und das
   Elementor-Kit (Felder, Knöpfe, Links). Selektoren ohne Element-IDs: der Header wird über :has() gefunden. */

/* Header klebt oben (unter der Adminleiste), Schatten sobald er anliegt (ist-fest, suche.js).
   Kein transform/filter am Header – sonst hinge der Seiten-Warenkorb (position: fixed) am Header statt am Fenster. */
.elementor-location-header:has(.otk-kopf-suche) { position: sticky; top: 0; z-index: 100; transition: box-shadow .2s ease; }
.elementor-location-header.ist-fest:has(.otk-kopf-suche) { box-shadow: 0 6px 20px rgba(16, 24, 40, .10); }
@media (min-width: 601px) {
	.admin-bar .elementor-location-header:has(.otk-kopf-suche) { top: var(--wp-admin--admin-bar--height, 32px); }
}

/* Zeile: Logo | Menü | Suche (nimmt den Rest) | Warenkorb */
.elementor-location-header .e-con:has(> .e-con > .otk-kopf-suche) { position: relative; }
.elementor-location-header .e-con:has(> .otk-kopf-suche) { flex: 1 1 auto !important; min-width: 0; gap: 10px; }
.elementor-location-header .e-con:has(> .e-con > .otk-kopf-suche) > .elementor-widget-nav-menu { flex: 0 0 auto !important; }
.elementor-location-header .otk-kopf-umbruch { display: none; }
.otk-mk-kopf { display: none; }   /* Kopfzeile im Seiten-Warenkorb nur mit der neuen Darstellung (warenkorb.css, 1.22.0) */

.elementor-location-header .otk-kopf-suche.otk-suche-leiste { --otk-blau: #1a86e0; --otk-blau-dunkel: #1570bd; --otk-grau: #5d6676; position: relative; top: auto; z-index: auto; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; isolation: auto; container-type: inline-size; font-size: 15px; line-height: 1.4; }
.elementor-location-header .otk-kopf-suche.otk-suche-leiste::before { content: none; }
.elementor-location-header .otk-kopf-suche .otk-unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suchfeld als Pille wie der Warenkorb-Knopf */
.elementor-location-header .otk-kopf-suche .otk-suche-form { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; height: 42px; margin: 0; border-radius: 999px; background: #f3f5f8; box-shadow: inset 0 0 0 1.5px #dfe3ea; transition: box-shadow .15s ease, background-color .15s ease; }
.elementor-location-header .otk-kopf-suche .otk-suche-form:hover { box-shadow: inset 0 0 0 1.5px #c5ccd8; }
.elementor-location-header .otk-kopf-suche .otk-suche-form:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--otk-blau), 0 0 0 3px rgba(26, 134, 224, .18); }
.elementor-location-header .otk-kopf-suche .otk-suche-feld { flex: 1 1 auto; min-width: 0; width: auto !important; height: 42px !important; min-height: 0 !important; margin: 0 !important; padding: 0 6px 0 18px !important; border: 0 !important; border-radius: 999px 0 0 999px !important; background: transparent !important; color: #11141b !important; font-family: inherit; font-size: 15px !important; font-weight: 400; line-height: 42px !important; box-shadow: none !important; outline: 0 !important; -webkit-appearance: none; appearance: none; }
.elementor-location-header .otk-kopf-suche .otk-suche-feld::placeholder { color: #7a8394; opacity: 1; }
.elementor-location-header .otk-kopf-suche .otk-suche-feld::-webkit-search-cancel-button { cursor: pointer; }
.elementor-location-header .otk-kopf-suche .otk-suche-los,
.elementor-location-header .otk-kopf-suche .otk-suche-los:focus { flex: 0 0 auto; display: grid; place-items: center; width: 34px !important; height: 34px !important; min-height: 0 !important; margin: 0 4px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--otk-blau) !important; color: #fff !important; box-shadow: none !important; cursor: pointer; }
.elementor-location-header .otk-kopf-suche .otk-suche-los:hover { background: var(--otk-blau-dunkel) !important; }
.elementor-location-header .otk-kopf-suche .otk-suche-los svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

/* Kategorie-Auswahl nur, wenn das Suchfeld breit genug ist (Containerabfrage statt fester Fensterbreite) */
.elementor-location-header .otk-kopf-suche .otk-suche-kat { display: none; position: relative; flex: 0 0 auto; margin: 0; }
.elementor-location-header .otk-kopf-suche .otk-suche-katwahl { -webkit-appearance: none; appearance: none; height: 42px !important; min-height: 0 !important; max-width: 170px; margin: 0 !important; padding: 0 28px 0 18px !important; border: 0 !important; border-right: 1px solid #dfe3ea !important; border-radius: 999px 0 0 999px !important; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311141b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px !important; color: #11141b !important; font-family: inherit; font-size: 13px !important; font-weight: 600; line-height: 42px; box-shadow: none !important; cursor: pointer; }
@container (min-width: 560px) {
	.elementor-location-header .otk-kopf-suche .otk-suche-kat { display: block; }
	.elementor-location-header .otk-kopf-suche .otk-suche-feld { border-radius: 0 !important; padding-left: 14px !important; }
}

/* Vorschläge: am Desktop mindestens 460 px breit, rechtsbündig unter dem Feld */
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlaege { position: absolute; top: calc(100% + 8px); left: auto; right: 0; z-index: 70; width: max(100%, 460px); max-width: calc(100vw - 32px); max-height: min(72vh, 560px); overflow-y: auto; margin: 0; padding: 6px; border-radius: 16px; background: #fff; color: #11141b; text-align: left; box-shadow: 0 18px 50px rgba(16, 24, 40, .22), 0 0 0 1px rgba(16, 24, 40, .06); scrollbar-width: thin; }
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlaege[hidden] { display: none; }
.elementor-location-header .otk-kopf-suche .otk-suche-gruppe { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a94a6; }
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlag { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; color: inherit !important; text-decoration: none !important; font-size: 14px; line-height: 1.35; }
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlag:hover,
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlag.ist-aktiv { background: #f1f4f8; }
.elementor-location-header .otk-kopf-suche .otk-suche-vorschlag img { flex: 0 0 auto; width: 44px !important; height: 55px !important; max-width: none; object-fit: cover; border-radius: 8px; background: #eef1f5; }
.elementor-location-header .otk-kopf-suche .otk-suche-zeile img { height: 44px !important; }
.elementor-location-header .otk-kopf-suche .otk-suche-bildlos { flex: 0 0 auto; width: 44px; height: 55px; border-radius: 8px; background: #eef1f5; }
.elementor-location-header .otk-kopf-suche .otk-suche-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 36px; border-radius: 10px; background: #eef5fd; color: var(--otk-blau-dunkel); font-size: 15px; }
.elementor-location-header .otk-kopf-suche .otk-suche-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.elementor-location-header .otk-kopf-suche .otk-suche-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elementor-location-header .otk-kopf-suche .otk-suche-name b { color: var(--otk-blau-dunkel); font-weight: inherit; }
.elementor-location-header .otk-kopf-suche .otk-suche-info,
.elementor-location-header .otk-kopf-suche .otk-suche-anzahl { font-size: 12.5px; color: var(--otk-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elementor-location-header .otk-kopf-suche .otk-suche-preis { flex: 0 0 auto; font-size: 14px; font-weight: 800; white-space: nowrap; }
.elementor-location-header .otk-kopf-suche .otk-suche-leer { padding: 14px 12px; font-size: 14px; color: var(--otk-grau); }
.elementor-location-header .otk-kopf-suche .otk-suche-alle,
.elementor-location-header .otk-kopf-suche .otk-suche-alle:focus { display: block; width: 100%; min-height: 0 !important; margin: 4px 0 0 !important; padding: 12px 10px !important; border: 0 !important; border-top: 1px solid #e4e8ef !important; border-radius: 0 0 12px 12px !important; background: #fff !important; color: var(--otk-blau-dunkel) !important; font-family: inherit; font-size: 14px !important; font-weight: 700; line-height: 1.35; text-align: left; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer; }
.elementor-location-header .otk-kopf-suche .otk-suche-alle:hover { background: #f1f4f8 !important; color: var(--otk-blau-dunkel) !important; }

/* Filter-Knopf (nur neue Shop-Seite, öffnet das Filter-Blatt; am Desktop steht der Filter links neben den Karten) */
.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf,
.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf:focus { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px !important; min-height: 0 !important; margin: 0 !important; padding: 0 14px !important; border: 1.5px solid #dfe3ea !important; border-radius: 999px !important; background: #fff !important; color: #11141b !important; font-family: inherit; font-size: 14px !important; font-weight: 700; line-height: 1; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer; }
.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf:hover { border-color: var(--otk-blau) !important; background: #fff !important; color: #11141b !important; }
.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.elementor-location-header .otk-kopf-suche .otk-sl-zahl { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--otk-blau); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
@media (min-width: 1000px) {
	.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf { display: none !important; }
}

/* Kontakt und Mein Konto als runde Symbole wie der Warenkorb-Knopf (1.21.0); die Textpunkte nur im Desktop-Menü aus */
.elementor-location-header .otk-kopf-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 1px solid #dfe3ea; border-radius: 50%; background: #fff; color: #11141b !important; text-decoration: none !important; box-shadow: none; transition: border-color .15s ease, color .15s ease; }
.elementor-location-header .otk-kopf-symbol:hover,
.elementor-location-header .otk-kopf-symbol:focus-visible { border-color: #1a86e0; color: #1570bd !important; }
.elementor-location-header .otk-kopf-symbol svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.elementor-location-header .elementor-nav-menu--main .otk-als-symbol { display: none !important; }
/* Sprachknopf (1.27.0): Kürzel der anderen Sprache im selben Kreis */
.elementor-location-header .otk-kopf-sprache { font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: .03em; }
/* Maßeinheit (1.32.9, nur auf der Studio-Seite): geltende Einheit im Kreis, Klick schaltet um. hidden, bis das Studio läuft */
.elementor-location-header .otk-kopf-einheit { font: inherit; font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: .02em; cursor: pointer; }
.elementor-location-header .otk-kopf-einheit[hidden] { display: none !important; }

/* Tablet: Warenkorb ohne Betrag – sonst bliebe für die Suche zu wenig (ab 1025 px reicht der Platz seit den Symbolen) */
@media (max-width: 1024px) {
	.elementor-location-header:has(.otk-kopf-suche) .elementor-menu-cart__toggle .elementor-button-text { display: none !important; }
}

/* Neue Produktseite: Galerie und Bewertungsübersicht kleben unter dem Header statt dahinter – nur ab 1000 px, wo sie
   kleben (darunter sind sie position: relative, ein top würde sie verschieben und den Titel verdecken; 1.19.1) */
@media (min-width: 1000px) {
	.otk-vorschau:has(.otk-kopf-suche) .otk-pp-galerie,
	.otk-vorschau:has(.otk-kopf-suche) .otk-bew-uebersicht { top: 100px; }
	.admin-bar.otk-vorschau:has(.otk-kopf-suche) .otk-pp-galerie,
	.admin-bar.otk-vorschau:has(.otk-kopf-suche) .otk-bew-uebersicht { top: calc(100px + var(--wp-admin--admin-bar--height, 32px)); }
}

/* Handy: Zeile 1 Logo … Menü, Zeile 2 Suche (+ Filter) + Warenkorb. Beim Scrollen bleibt nur Zeile 2 oben
   (der Header klebt mit negativem Abstand; suche.js misst die Höhe von Zeile 1 als --otk-kopf-weg). */
@media (max-width: 767px) {
	.elementor-location-header:has(.otk-kopf-suche) { top: calc(-1 * var(--otk-kopf-weg, 56px)); }
	.elementor-location-header .e-con:has(> .e-con > .otk-kopf-suche) { flex-wrap: wrap !important; row-gap: 0 !important; }
	.elementor-location-header .e-con:has(> .otk-kopf-suche) { display: contents !important; }
	.elementor-location-header .e-con:has(> .e-con > .otk-kopf-suche) > :first-child { min-height: 64px; }
	.elementor-location-header .e-con:has(> .e-con > .otk-kopf-suche) > .elementor-widget-nav-menu { margin-inline-start: 0 !important; }
	.elementor-location-header .otk-kopf-symbol { order: 2; width: 40px; height: 40px; }   /* Zeile 1: Logo … Kontakt, Konto, Menü */
	.elementor-location-header .otk-kopf-kontakt,
	.elementor-location-header .otk-kopf-sprache { margin-inline-start: auto; }
	.elementor-location-header .otk-kopf-sprache ~ .otk-kopf-kontakt { margin-inline-start: 0; }
	.elementor-location-header .otk-kopf-einheit:not(.otk-kopf-sprache ~ *) { margin-inline-start: auto; }
	/* Mit Einheiten-Knopf (Studio-Seite) wäre Zeile 1 zu voll, das Menü rutschte um: Kontakt steht im Handy-Menü als Textpunkt */
	.elementor-location-header .otk-kopf-einheit:not([hidden]) ~ .otk-kopf-kontakt { display: none; }
	.elementor-location-header .otk-kopf-umbruch { display: block; order: 4; flex: 0 0 100%; height: 0; }
	.elementor-location-header .otk-kopf-suche.otk-suche-leiste { order: 5; flex: 1 1 0; position: static; margin: 0 0 10px; container-type: normal; }
	.elementor-location-header .otk-kopf-suche ~ .elementor-widget-woocommerce-menu-cart { order: 6; margin: 0 0 10px; }
	.elementor-location-header:has(.otk-kopf-suche) .elementor-menu-cart__toggle .elementor-button { min-height: 42px; }
	.elementor-location-header .otk-kopf-suche .otk-suche-form { position: static; }
	.elementor-location-header .otk-kopf-suche .otk-suche-feld { font-size: 16px !important; padding-left: 16px !important; }   /* 16 px: iPhone zoomt sonst beim Antippen */
	.elementor-location-header .otk-kopf-suche .otk-suche-vorschlaege { top: calc(100% - 2px); left: 0; right: 0; width: auto; max-width: none; max-height: min(64vh, 520px); }
	.elementor-location-header .otk-kopf-suche .otk-sl-filterknopf { width: 42px; padding: 0 !important; font-size: 0 !important; gap: 0; }
	.elementor-location-header .otk-kopf-suche .otk-sl-zahl { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
}
@media (min-width: 601px) and (max-width: 767px) {
	.admin-bar .elementor-location-header:has(.otk-kopf-suche) { top: calc(var(--wp-admin--admin-bar--height, 46px) - var(--otk-kopf-weg, 56px)); }
}
/* 1.33.3: Studio-Werkzeuge in der Kopfsuche mit Werkzeug-Zeichen statt Emoji */
.otk-suche-symbol.otk-suche-werkzeug svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
