﻿/* =========================================================================
   Suche – Suchleisten und Suchergebnisseite (DOKU-526)
   Eingebunden über die Masterpages, Verhalten in Scripts/search-enhancements.js.
   Stilmittel aus dem Bestand: Breadcrumb (MainStyles.css), geöffnete
   Header-Suchleiste (HeaderLanguageSwitch.css), Topic-Toolbar-Pfeile,
   Pfeil der Versionshinweise (RN-Versionshinweise.css).
   ========================================================================= */

:root
{
	--srch-accent: #e3794b;
	--srch-slate: #4f5d75;
	--srch-muted: #636e72;
	--srch-grey: #707070;
	--srch-text: #1f2933;
	--srch-line: #e8e9ea;
	--srch-border: #d3d3d3;
	--srch-field-border: #b8c3ca;
	--srch-hover-bg: rgba(79, 93, 117, 0.10);
	--srch-link: #0b6fc2;
	--srch-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none' stroke='%234f5d75' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='7.5' cy='7.8' rx='6.0' ry='5.9'/%3E%3Cpath d='M11.8 11.8 18 18'/%3E%3C/svg%3E");
	--srch-icon-search-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='7.5' cy='7.8' rx='6.0' ry='5.9'/%3E%3Cpath d='M11.8 11.8 18 18'/%3E%3C/svg%3E");
	--srch-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23707070' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 1.5 7 5l-3.5 3.5'/%3E%3C/svg%3E");
	/* Doppelpfeil der Topic-Toolbar als eingebettetes SVG (Masken-Bilder aus Dateien lädt der
	   Browser bei file:// nicht, data:-URIs schon) */
	--srch-mask-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4 6 11l7 7M21 4l-7 7 7 7'/%3E%3C/svg%3E");
	--srch-mask-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4l7 7-7 7M15 4l7 7-7 7'/%3E%3C/svg%3E");
	--srch-icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23707070' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5'/%3E%3C/svg%3E");
	--srch-icon-chevron-down-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23e3794b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5'/%3E%3C/svg%3E");
	--srch-icon-chevron-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23e3794b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 1.5 7 5l-3.5 3.5'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   1  Suchfilter: kein Symbol in den Suchleisten – Bereiche werden auf der
      Ergebnisseite als Tabs angeboten (Flare setzt display:block inline)
   ------------------------------------------------------------------------- */

.search-filter-wrapper
{
	display: none !important;
}

/* -------------------------------------------------------------------------
   2  Große Suchleiste – Startseiten und Ergebnisseite einheitlich
   ------------------------------------------------------------------------- */

div.heading-search-container form.search
{
	height: auto !important;
}

div.heading-search-container .search-bar-container,
.il-search-hero .search-bar-container
{
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: auto !important;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

div.heading-search-container .search-bar-container .search-field,
html.home-topic div.heading-search-container .search-field,
.il-search-hero .search-field
{
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 60px 0 18px !important;
	border: 1px solid var(--srch-field-border) !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: var(--srch-slate) !important;
	font-size: 1rem !important;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.il-search-hero .search-field
{
	height: 48px !important;
	padding-left: 16px !important;
}

div.heading-search-container .search-field::placeholder,
.il-search-hero .search-field::placeholder
{
	color: #6e7c83 !important;
}

div.heading-search-container .search-bar-container .search-field:focus,
.il-search-hero .search-field:focus
{
	border-color: #8fa1ad !important;
	box-shadow: 0 0 0 2px rgba(79, 93, 117, 0.18) !important;
}

div.heading-search-container .search-submit-wrapper,
.il-search-hero .search-submit-wrapper
{
	position: absolute !important;
	right: 8px !important;
	top: 50% !important;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translateY(-50%);
	background: none !important;
	border: 0 !important;
}

div.heading-search-container .search-submit,
.il-search-hero .search-submit
{
	display: block !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--srch-icon-search) center / 19px 19px no-repeat !important;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

html.il-can-hover div.heading-search-container .search-submit:hover,
div.heading-search-container .search-submit:focus-visible,
html.il-can-hover .il-search-hero .search-submit:hover,
.il-search-hero .search-submit:focus-visible
{
	background-color: var(--srch-accent) !important;
	background-image: var(--srch-icon-search-white) !important;
	outline: none;
}

/* Flare-Beschriftung im Button ausblenden (nur Symbol) */
div.heading-search-container .search-submit > *,
.il-search-hero .search-submit > *
{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* -------------------------------------------------------------------------
   2b Suchvorschläge (alle Suchfelder) – Optik des Breadcrumb-Ellipsenmenüs
   ------------------------------------------------------------------------- */

.il-ac-menu
{
	position: fixed;
	left: 0;
	top: 0;
	max-height: min(60vh, 420px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--srch-border);
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	font-size: 0.875rem;
	line-height: 1.35;
	z-index: 10050;     /* über dem Header (HeaderLanguageSwitch.css: 10001) */
}

.il-ac-menu[hidden]
{
	display: none;
}

.il-ac-item
{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 4px;
	color: var(--srch-slate);
	cursor: pointer;
	transition: background-color 0.12s ease;
}

html.il-can-hover .il-ac-item:hover,
.il-ac-item.is-active
{
	background: var(--srch-hover-bg);
}

html.il-can-hover .il-ac-item:hover .il-ac-label,
.il-ac-item.is-active .il-ac-label
{
	color: var(--srch-accent);
}

.il-ac-icon
{
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: center / 16px 16px no-repeat;
	opacity: 0.75;
}

.il-ac-history .il-ac-icon
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23707070' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 4.6V8l2.3 1.5'/%3E%3C/svg%3E");
}

.il-ac-term .il-ac-icon
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none' stroke='%23707070' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='7.5' cy='7.8' rx='6.0' ry='5.9'/%3E%3Cpath d='M11.8 11.8 18 18'/%3E%3C/svg%3E");
}

.il-ac-topic .il-ac-icon
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23707070' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 1.8h5.2L12.5 5v9.2H4z'/%3E%3Cpath d='M9 1.8V5.2h3.5M6 8.3h4.5M6 10.8h4.5'/%3E%3C/svg%3E");
}

.il-ac-clear .il-ac-icon
{
	visibility: hidden;
}

.il-ac-label
{
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color 0.12s ease;
}

.il-ac-label b
{
	font-weight: 700;
	color: var(--srch-text);
	transition: color 0.12s ease;
}

/* Hover: ganzer Eintrag orange, auch der fett markierte Teil */
html.il-can-hover .il-ac-item:hover .il-ac-label b,
.il-ac-item.is-active .il-ac-label b
{
	color: var(--srch-accent);
}

/* Verlaufseintrag entfernen: Mülleimer (grau, Hover orange) */
.il-ac-remove
{
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	transition: background-color 0.12s ease;
}

.il-ac-remove::before
{
	content: "";
	position: absolute;
	inset: 4px;
	background-color: #a4a4a4;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h11M6.2 4V2.6h3.6V4M4 4l.7 9.4h6.6L12 4M6.6 6.5v4.6M9.4 6.5v4.6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h11M6.2 4V2.6h3.6V4M4 4l.7 9.4h6.6L12 4M6.6 6.5v4.6M9.4 6.5v4.6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	transition: background-color 0.12s ease;
}

/* Hover wie die Buttons der geöffneten Header-Suche: Orange, Symbol weiß */
html.il-can-hover .il-ac-remove:hover
{
	background-color: var(--srch-accent);
}

html.il-can-hover .il-ac-remove:hover::before
{
	background-color: #ffffff;
}


.il-ac-meta
{
	flex: 0 0 auto;
	font-size: 0.75rem;
	color: #a4a4a4;
}

.il-ac-history .il-ac-meta
{
	color: var(--srch-accent);
}

/* "Verlauf löschen": rechtsbündig, ruhig grau; Hover/Tastatur als Button orange/weiß
   (wie Mülleimer und Header-Buttons) */
.il-ac-clear
{
	justify-content: flex-end;
	margin: 6px 0 0 auto;
	padding: 5px 10px;
	width: max-content;
	font-size: 0.8125rem;
	color: var(--srch-muted);
}

.il-ac-clear .il-ac-icon
{
	display: none;
}

.il-ac-clear .il-ac-label
{
	flex: 0 0 auto;
}

html.il-can-hover .il-ac-item.il-ac-clear:hover,
.il-ac-item.il-ac-clear.is-active
{
	background: var(--srch-accent);
}

html.il-can-hover .il-ac-item.il-ac-clear:hover .il-ac-label,
.il-ac-item.il-ac-clear.is-active .il-ac-label
{
	color: #ffffff;
}

/* Trennlinie über "Verlauf löschen" über die volle Menübreite */
.il-ac-sep
{
	height: 1px;
	margin: 4px -6px 0 -6px;
	background: var(--srch-line);
}

/* Browser-eigene Vorschlagsliste unterdrücken */
input.search-field[data-il-ac]::-webkit-calendar-picker-indicator
{
	display: none;
}

/* -------------------------------------------------------------------------
   3  Suchergebnisseite
   ------------------------------------------------------------------------- */

/* Header-Suche auf der Ergebnisseite überflüssig – große Suchleiste ist sichtbar */
html.il-search-page .il-header-actions .nav-search-wrapper,
html.searchTopic .il-header-actions .nav-search-wrapper
{
	display: none !important;
}

/* Vorheriges/Nächstes Thema (pageskip) auf der Suchseite nicht sinnvoll – das Blättern ersetzt
   ihn. Den ganzen Container ausblenden, auch die Rand-Pfeile der schmalen Viewports
   (body.topic-switch-edge-*, spezifischer als die display:flex-Regeln in MainStyles.css) */
html.searchTopic body div.middle-content,
html.searchTopic body div.middle-content .buttons._Skins_TopicToolBar.mc-component
{
	display: none !important;
}

/* "Nach oben"-Button (Back-to-top-button.js) auf der Suchseite aus – setzt display inline */
html.searchTopic #myBtn
{
	display: none !important;
}

/* Ohne Suchbegriff (Search.htm direkt aufgerufen): nur Überschrift, Suchleiste und Chips */
html.il-search-empty.searchTopic #results-heading,
html.il-search-empty.searchTopic #resultList,
html.il-search-empty.searchTopic #pagination,
html.il-search-empty.searchTopic .il-search-tabs,
html.il-search-empty.searchTopic .il-no-results
{
	display: none !important;
}

/* Mindesthöhe dauerhaft: Reiter- und Seitenwechsel laden die Seite neu; ohne feste Höhe
   springt der Footer erst hoch und beim Einblenden der Treffer wieder nach unten */
html.searchTopic #searchPane
{
	min-height: 100vh;
}

/* volle Breite der weißen Topic-Box wie bei normalen Topics – sonst wirkt das zentrierte
   Blättern gegenüber der Box nach links verschoben.
   min-width: 0 – als Flex-Element würde #searchPane sonst nie schmaler als seine längste
   nicht umbrechbare Zeile (Breadcrumbs) und liefe rechts aus der Box (Smartphone, Tablet quer) */
html.searchTopic #searchPane
{
	max-width: none;
	min-width: 0;
	color: var(--srch-text);
}

/* Flares Ladeanimation (TextEffects.css .loading) auf der Suchseite aus */
html.searchTopic #searchPane.loading,
html.searchTopic #searchPane .loading
{
	background-image: none !important;
}

/* Bis Treffer, Breadcrumbs, Ausschnitte und Tabs fertig sind: Ergebnisbereich unsichtbar,
   dann gemeinsam einblenden. Gilt per CSS ab dem ersten Frame (nicht erst, wenn das Skript
   läuft) – sonst blitzen Flares "Treffer für" und die Blätterpfeile kurz auf. Überblendung
   nur beim Einblenden, Ausblenden sofort. */
html.searchTopic:not(.il-search-ready) #searchPane > *:not(.il-search-title):not(.il-search-hero):not(.il-search-tabs):not(.il-search-loader)
{
	opacity: 0 !important;
	transition: none !important;
}

html.il-search-ready #searchPane > *
{
	transition: opacity 0.15s ease;
}

/* Ladeanzeige: Mini-Prozess mit wanderndem Token + wechselnde Texte (Skript) */
.il-search-loader
{
	display: none;
	align-items: center;
	gap: 14px;
	padding: 26px 0 18px 0;
	color: var(--srch-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

html.il-search-loading:not(.il-search-ready) .il-search-loader
{
	display: flex;
}

.il-search-loader-icon
{
	flex: 0 0 72px;
	width: 72px;
	height: 24px;
	overflow: visible;
}

.il-sl-flow,
.il-sl-start,
.il-sl-task,
.il-sl-end
{
	fill: #ffffff;
	stroke: var(--srch-slate);
	stroke-width: 1.4;
}

.il-sl-end
{
	stroke-width: 2.6;
}

.il-sl-task
{
	animation: il-sl-task 1.8s ease-in-out infinite;
}

.il-sl-token
{
	fill: var(--srch-accent);
	animation: il-sl-token 1.8s ease-in-out infinite;
}

/* Token: Start -> Aufgabe (kurz verweilen) -> Ende */
@keyframes il-sl-token
{
	0%   { transform: translateX(0); opacity: 0; }
	8%   { opacity: 1; }
	35%  { transform: translateX(29px); }
	60%  { transform: translateX(29px); }
	88%  { transform: translateX(58px); opacity: 1; }
	100% { transform: translateX(58px); opacity: 0; }
}

/* Aufgabe "arbeitet", solange der Token darin steht */
@keyframes il-sl-task
{
	0%, 30%, 65%, 100% { stroke: var(--srch-slate); fill: #ffffff; }
	40%, 55%           { stroke: var(--srch-accent); fill: #fdf1eb; }
}

.il-search-loader-text
{
	transition: opacity 0.22s ease;
}

.il-search-loader-text.is-swap
{
	opacity: 0;
}

.il-sr-only
{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Überschrift der Suchseite – angelehnt an die Startseiten-Überschrift (40px, fett, Orange),
   etwas kleiner, weil sie in der weißen Topic-Box steht */
html.searchTopic .il-search-title
{
	margin: 0 0 18px 0;
	font-size: 2.125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--srch-accent);
}

.il-search-hero
{
	margin: 0 0 10px 0;
}

/* 3.1  Chips "Im Trend" (Neu + meistgesucht): Folgezeilen bündig zum ersten Chip */
.il-search-trends
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.il-search-hero .il-search-trends
{
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 10px;
}

.il-search-trends-list
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.il-search-trends-label
{
	flex: 0 0 auto;
	font-size: 0.75rem;
	line-height: 28px;
	color: var(--srch-muted);
	white-space: nowrap;
}

.il-chip
{
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border: 1px solid var(--srch-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--srch-slate);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease;
}

html.il-can-hover .il-chip:hover,
.il-chip:focus-visible
{
	background: var(--srch-hover-bg);
	color: var(--srch-accent);
	outline: none;
}

.il-chip-badge
{
	margin: 0 6px 0 -4px;
	padding: 0 5px;
	border-radius: 3px;
	background: var(--srch-accent);
	color: #ffffff;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* 3.2  Bereichs-Tabs (à la Microsoft Learn) – immer einzeilig, Überhang im Reiter
   "x weitere" (Skript) */
.il-search-tabs
{
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	gap: 22px;
	margin: 0 0 14px 0;
	border-bottom: 1px solid var(--srch-line);
	white-space: nowrap;
}

.il-search-tab[hidden]
{
	display: none;
}

.il-search-hero + .il-search-tabs
{
	margin-top: 38px;
}

.il-search-tabs[hidden]
{
	display: none;
}

.il-search-tab
{
	flex: 0 0 auto;
	display: inline-flex;
	align-items: baseline;
	white-space: nowrap;
	gap: 6px;
	margin-bottom: -1px;
	padding: 4px 2px 3px 2px;
	line-height: 1.3;
	border-bottom: 2px solid transparent;
	color: var(--srch-slate);
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.12s ease, border-color 0.12s ease;
}

.il-search-tab-count
{
	font-size: 0.75rem;
	color: #a4a4a4;
}

html.il-can-hover .il-search-tab:hover,
.il-search-tab:focus-visible
{
	color: var(--srch-accent);
	text-decoration: none;
	outline: none;
}

.il-search-tab.is-active
{
	border-bottom-color: var(--srch-accent);
	color: var(--srch-text);
	font-weight: 600;
}

/* Reiter "x weitere": Button ohne eigene Optik, Pfeil nach unten wie beim Sprachumschalter */
button.il-search-tab-more
{
	align-self: flex-end;
	position: relative;
	top: -3px;                      /* Grundlinie wie die Reiter mit Zähler (hat nie eine Unterstreichung) */
	padding: 4px 16px 3px 2px;
	line-height: 1.3;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	background: var(--srch-icon-chevron-down) no-repeat right 2px center / 10px 10px;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

button.il-search-tab-more[aria-expanded="true"]
{
	color: var(--srch-accent);
	background-image: var(--srch-icon-chevron-down-accent);
}

/* Menü: Optik des Breadcrumb-Ellipsenmenüs (MainStyles.css .bc-ellipsis-menu-global) */
.il-search-tab-menu
{
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 200px;
	max-width: calc(100vw - 32px);
	padding: 6px 6px 8px 6px;
	border: 1px solid var(--srch-border);
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	z-index: 20;
}

.il-search-tab-menu[hidden]
{
	display: none;
}

.il-search-tab-menu-item
{
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 6px;
	border-radius: 4px;
	color: var(--srch-slate);
	font-size: 0.875rem;
	line-height: 1.35;
	text-decoration: none;
	white-space: normal;
	transition: background-color 0.12s ease, color 0.12s ease;
}

html.il-can-hover .il-search-tab-menu-item:hover,
.il-search-tab-menu-item:focus-visible
{
	background: var(--srch-hover-bg);
	color: var(--srch-accent);
	text-decoration: none;
	outline: none;
}

/* 3.3  Überschrift: "89 Treffer für "Version"" (Text aus Skin-Strings) */
html.searchTopic #results-heading
{
	margin: 0 0 4px 0;
	padding: 0 0 8px 0;
	border: 0;
	font-size: 0.9375rem;
	font-weight: normal;
	color: var(--srch-muted);
}

html.searchTopic #results-heading .total-results,
html.searchTopic #results-heading .query
{
	font-weight: 600;
	color: var(--srch-text);
	background: none;
	padding: 0;
}

/* 3.4  Trefferliste (dezente Trennlinien) */
html.searchTopic #resultList
{
	list-style: none;
	margin: 0;
	padding: 0;
}

html.searchTopic #resultList > li
{
	margin: 0;
	padding: 18px 0 18px 0;
	border-bottom: 1px solid var(--srch-line);
	background: none;
}

/* Breadcrumb je Treffer: einzeilig, Ellipsenlogik im Skript (wie topic-breadcrumbs.js),
   Schrift wie .bc-home-text (0.75rem) */
.il-result-crumbs
{
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	min-width: 0;
	margin: 0 0 4px 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--srch-muted);
}

.il-result-crumb,
.il-result-crumb-sep,
.il-result-crumb-ellipsis
{
	flex: 0 0 auto;
	white-space: nowrap !important;     /* sonst setzen allgemeine span-Regeln "normal" -> 2 Zeilen */
}

.il-result-crumb-ellipsis
{
	cursor: default;
}

.il-result-crumb-sep
{
	margin: 0 6px;
	color: #a4a4a4;
}

html.searchTopic #resultList > li .title
{
	margin: 0 0 2px 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

html.searchTopic #resultList > li .title a
{
	color: var(--srch-link);
	text-decoration: none;
}

html.il-can-hover.searchTopic #resultList > li .title a:hover,
html.searchTopic #resultList > li .title a:focus-visible
{
	text-decoration: underline;
	text-underline-offset: 3px;
}

html.searchTopic #resultList > li .description,
.il-result-snippet
{
	font-size: 0.875rem;
	line-height: 1.45;
	color: #4a5560;
}

/* Abschnitt-Link (Sprung in den Abschnitt): Pfeil wie bei den Versionshinweisen.
   Ruhiger Hover: ganzer Link einheitlich orange, Pfeil bleibt an seinem Platz */
.il-result-section
{
	display: inline-block;
	margin: 0 0 8px 0;
	padding-right: 16px;
	background: var(--srch-icon-chevron) no-repeat right 2px center / 10px 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--srch-slate);
	text-decoration: none;
	transition: color 0.12s ease;
}

.il-result-section mark.il-hit
{
	color: inherit;
}

html.il-can-hover .il-result-section:hover,
.il-result-section:focus-visible
{
	background-image: var(--srch-icon-chevron-accent);
	color: var(--srch-accent);
	text-decoration: none;
	outline: none;
}

.il-result-snippet-text
{
	display: block;
}

/* Treffer im Text: fett, ohne Hinterlegung (Flares <b> wird durch mark.il-hit ersetzt) */
mark.il-hit,
html.searchTopic #resultList b
{
	background: none;
	color: inherit;
	font-weight: 700;
	padding: 0;
}

html.searchTopic #resultList > li .url
{
	display: none;
}

/* 3.5  Keine Treffer: "Meinten Sie", einzelne Begriffe, andere Sprache, Tipps */
.il-no-results
{
	padding: 8px 0 4px 0;
	font-size: 0.9375rem;
	color: var(--srch-text);
}

.il-no-results p
{
	margin: 0 0 10px 0;
}

.il-no-results-suggest
{
	font-size: 1.0625rem;
}

.il-no-results-label
{
	color: var(--srch-muted);
}

.il-no-results-link
{
	color: var(--srch-link);
	text-decoration: none;
}

html.il-can-hover .il-no-results-link:hover,
.il-no-results-link:focus-visible
{
	text-decoration: underline;
	text-underline-offset: 3px;
}

.il-no-results-count,
.il-chip-count
{
	color: #a4a4a4;
	font-size: 0.8125rem;
}

.il-chip-count
{
	margin-left: 6px;
}

a.il-chip
{
	text-decoration: none;
}

.il-no-results-single
{
	margin: 4px 0 18px 0;
}

.il-no-results-single .il-search-trends
{
	margin-top: 0;
}

.il-no-results-lang
{
	margin: 2px 0 20px 0;
}

/* Verweis auf das Support-Portal (DOKU-550) */
.il-no-results-support
{
	margin: 0 0 20px 0;
	font-size: 0.875rem;
	color: #4a5560;
}

.il-no-results-support p
{
	margin: 0 0 4px 0;
}

.il-no-results-tips
{
	padding-top: 14px;
	border-top: 1px solid var(--srch-line);
	font-size: 0.875rem;
	color: #4a5560;
}

.il-no-results-tips .il-no-results-tips-title
{
	margin: 0 0 6px 0;
	font-weight: 600;
	color: var(--srch-slate);
}

.il-no-results-tips ul
{
	margin: 0;
	padding-left: 18px;
}

.il-no-results-tips li
{
	margin: 0 0 4px 0;
}

/* 3.6  Blättern: zentriert, abgerundete Quadrate, Rahmen/Hover wie die Chips */
html.searchTopic #pagination
{
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 28px 0 8px 0;
	text-align: center;
}

html.searchTopic #pagination.il-single-page
{
	display: none !important;
}

/* schmale Viewports: Seitenzahlen außerhalb des Fensters um die aktuelle Seite (Skript) */
html.searchTopic #pagination a.il-page-hidden
{
	display: none !important;
}

/* Flare blendet auf der ersten/letzten Seite den Pfeil per display:none aus – Platz
   reservieren, damit die Seitenzahlen exakt mittig bleiben */
html.searchTopic #pagination a.previousPage[style*="none"],
html.searchTopic #pagination a.nextPage[style*="none"]
{
	display: inline-flex !important;
	visibility: hidden;
	pointer-events: none;
}

html.searchTopic #pagination a
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--srch-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--srch-slate);
	font-size: 0.875rem;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.il-can-hover.searchTopic #pagination a:hover,
html.searchTopic #pagination a:focus-visible
{
	background: var(--srch-hover-bg);
	color: var(--srch-accent);
	outline: none;
}

html.searchTopic #pagination a#selected
{
	border-color: var(--srch-accent);
	background: var(--srch-accent);
	color: #ffffff;
	font-weight: 600;
	transform: scale(1.12);
}

/* Pfeile: ohne Rahmen, Hover wie Zahlen/Chips (Hintergrund + Orange) */
html.searchTopic #pagination a.previousPage,
html.searchTopic #pagination a.nextPage
{
	position: relative;
	width: 48px;
	padding: 0;
	border-color: transparent;
	background: transparent;
	font-size: 0;
	color: transparent;
}

/* Pfeilform der Topic-Toolbar als Maske -> Farbe steuerbar (grau, Hover orange) */
html.searchTopic #pagination a.previousPage::before,
html.searchTopic #pagination a.nextPage::before
{
	content: "";
	position: absolute;
	inset: 0;
	background-color: #a4a4a4;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 28px 22px;
	mask-size: 28px 22px;
	transition: background-color 0.18s ease;
}

html.searchTopic #pagination a.previousPage::before
{
	-webkit-mask-image: var(--srch-mask-prev);
	mask-image: var(--srch-mask-prev);
}

html.searchTopic #pagination a.nextPage::before
{
	-webkit-mask-image: var(--srch-mask-next);
	mask-image: var(--srch-mask-next);
}

html.il-can-hover.searchTopic #pagination a.previousPage:hover,
html.il-can-hover.searchTopic #pagination a.nextPage:hover,
html.searchTopic #pagination a.previousPage:focus-visible,
html.searchTopic #pagination a.nextPage:focus-visible
{
	border-color: transparent;
	background: var(--srch-hover-bg);
}

html.il-can-hover.searchTopic #pagination a.previousPage:hover::before,
html.il-can-hover.searchTopic #pagination a.nextPage:hover::before,
html.searchTopic #pagination a.previousPage:focus-visible::before,
html.searchTopic #pagination a.nextPage:focus-visible::before
{
	background-color: var(--srch-accent);
}

/* Karussell-Effekt beim Seitenwechsel */
@keyframes il-slide-in-next
{
	from { opacity: 0; transform: translateX(32px); }
	to { opacity: 1; transform: none; }
}

@keyframes il-slide-in-prev
{
	from { opacity: 0; transform: translateX(-32px); }
	to { opacity: 1; transform: none; }
}

@keyframes il-pag-shift-next
{
	from { transform: translateX(14px); }
	to { transform: none; }
}

@keyframes il-pag-shift-prev
{
	from { transform: translateX(-14px); }
	to { transform: none; }
}

@keyframes il-pag-pop
{
	0% { transform: scale(1); }
	60% { transform: scale(1.2); }
	100% { transform: scale(1.12); }
}

html.searchTopic #resultList.il-slide-next
{
	animation: il-slide-in-next 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.searchTopic #resultList.il-slide-prev
{
	animation: il-slide-in-prev 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.searchTopic #pagination.il-slide-next
{
	animation: il-pag-shift-next 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.searchTopic #pagination.il-slide-prev
{
	animation: il-pag-shift-prev 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.searchTopic #pagination.il-slide-next a#selected,
html.searchTopic #pagination.il-slide-prev a#selected
{
	animation: il-pag-pop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce)
{
	.il-sl-token,
	.il-sl-task
	{
		animation: none !important;
	}

	.il-sl-token
	{
		transform: translateX(29px);
	}

	html.searchTopic #resultList.il-slide-next,
	html.searchTopic #resultList.il-slide-prev,
	html.searchTopic #pagination.il-slide-next,
	html.searchTopic #pagination.il-slide-prev,
	html.searchTopic #pagination a#selected
	{
		animation: none !important;
	}

	html.searchTopic #pagination a#selected
	{
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   4  Responsive – Stufen des Projekts (Mobile-Viewports-Uebersicht.md,
      MainStyles.css): >=1280 Desktop unverändert | 1024–1279 | 768–1023 |
      581–767 | <=580 | <=410. Die Überschrift wird stufenweise kleiner bis auf
      die Topic-h1 (1.667rem), Abstände folgen der Topic-Box.
   ------------------------------------------------------------------------- */

@media screen and (max-width: 1279px)
{
	/* Platz der (auf der Suchseite leeren) Breadcrumb-Zeile über der Box sparen */
	html.searchTopic .topic-topbar
	{
		display: none !important;
	}

	html.searchTopic .il-search-title
	{
		font-size: 2rem;
	}

	.il-search-hero + .il-search-tabs
	{
		margin-top: 32px;
	}
}

@media screen and (max-width: 1023px)
{
	html.searchTopic .il-search-title
	{
		font-size: 1.875rem;
	}
}

@media screen and (max-width: 767px)
{
	html.searchTopic .il-search-title
	{
		margin-bottom: 14px;
		font-size: 1.75rem;
	}

	html.searchTopic #resultList > li .title
	{
		font-size: 1.125rem;
	}

	.il-search-tabs
	{
		gap: 16px;
	}

	.il-search-hero + .il-search-tabs
	{
		margin-top: 26px;
	}

	/* Schmale Ansicht: "Im Trend" fließt mit den Chips, Folgezeilen mit Versatz
	   (Etikett als eigene Spalte kostet hier zu viel Breite) */
	.il-search-hero .il-search-trends
	{
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	.il-search-trends-list
	{
		display: contents;
	}

	.il-search-trends-label
	{
		line-height: 1.4;
	}
}

@media screen and (max-width: 580px)
{
	html.searchTopic .il-search-title
	{
		margin-bottom: 12px;
		font-size: 1.667rem;
	}

	.il-search-hero .search-field
	{
		height: 44px !important;
	}

	/* abspecken: höchstens 5 Chips (zuerst "Neu", dann die meistgesuchten) */
	.il-search-trends-list > .il-chip:nth-child(n+6)
	{
		display: none;
	}

	.il-search-hero + .il-search-tabs
	{
		margin-top: 20px;
	}

	.il-search-tabs
	{
		gap: 14px;
	}

	html.searchTopic #resultList > li
	{
		padding: 14px 0;
	}

	html.searchTopic #resultList > li .title
	{
		font-size: 1.0625rem;
	}

	html.searchTopic #pagination
	{
		gap: 6px;
		margin-top: 22px;
	}

	html.searchTopic #pagination a
	{
		min-width: 34px;
		height: 34px;
		padding: 0 8px;
	}

	html.searchTopic #pagination a.previousPage,
	html.searchTopic #pagination a.nextPage
	{
		width: 38px;
	}
}
