/* SVG Urteile – front-end (cards, showcase, archive).
   Structure, animation and sensible defaults only. Colours, typography, spacing and sizes
   are overridden by the Elementor widgets' Style controls (higher specificity). */

.svgj {
	--svgj-accent: #178a8c;
	--svgj-navy: #0e3a5c;
	--svgj-ink: #14202b;
	--svgj-muted: #62727f;
	--svgj-line: #e2e8ee;
	--svgj-featured: #d49b00;
	--svgj-gap: 24px;
	--svgj-radius: 18px;
	box-sizing: border-box;
	width: 100%;
	color: var(--svgj-ink);
	font-family: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	font-stretch: condensed;
	font-size: 17px;
	line-height: 1.4;
}

.svgj *,
.svgj *::before,
.svgj *::after {
	box-sizing: border-box;
}

.svgj [hidden] {
	display: none !important;
}

.svgj-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Reset parent-theme link / button / form styling inside the widgets */
.svgj a,
.svgj a:hover,
.svgj a:focus {
	color: inherit;
	text-decoration: none;
}

.svgj a:focus-visible,
.svgj button:focus-visible,
.svgj select:focus-visible,
.svgj input:focus-visible {
	outline: 2px solid var(--svgj-accent);
	outline-offset: 2px;
	box-shadow: none;
}

.svgj-ico {
	flex: none;
	width: 1.1em;
	height: 1.1em;
}

/* ---------- Section heading + "view all" button ---------- */
.svgj-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.8rem 1.5rem;
	margin: 0 0 1.5rem;
}

.svgj-head__text {
	min-width: 0;
}

.svgj .svgj-title {
	position: relative;
	margin: 0;
	padding-inline-start: 1rem;
	color: inherit;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.1;
}

.svgj-title::before {
	content: "";
	position: absolute;
	inset-block: 0.1em;
	inset-inline-start: 0;
	width: 5px;
	border-radius: 4px;
	background-color: var(--svgj-accent);
}

.svgj .svgj-subtitle {
	margin: 0.6rem 0 0;
	padding-inline-start: 1rem;
	color: var(--svgj-muted);
	font-size: 1.1rem;
}

.svgj a.svgj-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6em 1.3em;
	border: 2px solid var(--svgj-accent);
	border-radius: 999px;
	background-color: transparent;
	color: var(--svgj-accent);
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svgj a.svgj-all:hover,
.svgj a.svgj-all:focus {
	background-color: var(--svgj-accent);
	color: #fff;
}

.svgj-all-wrap {
	margin-top: 2rem;
	text-align: center;
}

/* ---------- Grid ---------- */
.svgj-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--svgj-gap);
}

@media (max-width: 1024px) {
	.svgj-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.svgj-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.svgj-empty {
	margin: 2.5rem 0;
	color: var(--svgj-muted);
	text-align: center;
}

/* ---------- Card ---------- */
.svgj-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--svgj-line);
	border-radius: var(--svgj-radius);
	background-color: #fff;
	box-shadow: 0 2px 6px rgba(14, 58, 92, 0.08), 0 14px 34px rgba(14, 58, 92, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svgj-hover--lift .svgj-card:hover,
.svgj-hover--lift .svgj-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 4px 10px rgba(14, 58, 92, 0.1), 0 24px 50px rgba(14, 58, 92, 0.2);
}

.svgj-card__top {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	background: linear-gradient(135deg, #e8f4f5 0%, #f6fafb 55%, #fff 100%);
	border-bottom: 1px solid var(--svgj-line);
}

.svgj-card__icon {
	display: block;
	flex: none;
}

/* the file icon */
.svgj-fileicon {
	display: block;
	width: 46px;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 4px 6px rgba(14, 58, 92, 0.25));
}

.svgj-fileicon__page {
	fill: var(--svgj-navy);
}

.svgj-fileicon__fold {
	fill: rgba(255, 255, 255, 0.4);
}

.svgj-fileicon__ribbon {
	fill: var(--svgj-accent);
}

.svgj-fileicon__text {
	fill: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.svgj-card__facts {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.svgj-card__court {
	color: var(--svgj-navy);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-transform: uppercase;
}

.svgj-card__date {
	color: var(--svgj-muted);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.svgj-card__star {
	position: absolute;
	inset: 0.7rem 0.8rem auto auto;
	display: inline-grid;
	place-items: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background-color: var(--svgj-featured);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.svgj-card__star .svgj-ico {
	width: 0.95rem;
	height: 0.95rem;
	fill: currentColor;
}

.svgj-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.1rem 1.25rem 1.2rem;
}

.svgj-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.svgj-card__type,
.svgj-card__cat {
	display: inline-block;
	padding: 0.15em 0.7em;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.5;
	text-transform: uppercase;
}

.svgj-card__type {
	background-color: var(--svgj-navy);
	color: #fff;
}

.svgj-card__cat {
	background-color: rgba(23, 138, 140, 0.12);
	color: var(--svgj-accent);
}

.svgj .svgj-card__title {
	margin: 0;
	color: inherit;
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.2;
}

/* the whole card is clickable through the title link; the actions bar stays above it */
.svgj-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.svgj a.svgj-card__link:hover,
.svgj a.svgj-card__link:focus {
	color: inherit;
}

.svgj .svgj-card__case {
	display: inline-flex;
	align-items: baseline;
	align-self: flex-start;
	gap: 0.4rem;
	margin: 0;
	padding: 0.15em 0.65em;
	border-radius: 6px;
	background-color: #f1f5f8;
	color: var(--svgj-muted);
	font-size: 0.92rem;
}

.svgj-card__case-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.svgj-card__case-no {
	color: var(--svgj-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.svgj .svgj-card__excerpt {
	margin: 0;
	color: var(--svgj-muted);
	font-size: 1rem;
}

.svgj-card__actions {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
	padding: 0.95rem 1.25rem 1.1rem;
	border-top: 1px solid var(--svgj-line);
	background-color: #fbfcfd;
}

.svgj a.svgj-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55em 1.1em;
	border: 2px solid var(--svgj-navy);
	border-radius: 10px;
	background-color: var(--svgj-navy);
	color: #fff;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.svgj a.svgj-btn:hover,
.svgj a.svgj-btn:focus {
	border-color: var(--svgj-accent);
	background-color: var(--svgj-accent);
	color: #fff;
	transform: translateY(-1px);
}

.svgj-card__size {
	color: var(--svgj-muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.svgj a.svgj-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-inline-start: auto;
	color: var(--svgj-accent);
	font-weight: 700;
}

.svgj a.svgj-card__more:hover,
.svgj a.svgj-card__more:focus {
	color: var(--svgj-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.svgj-card__more .svgj-ico {
	transition: transform 0.25s ease;
}

.svgj-card:hover .svgj-card__more .svgj-ico {
	transform: translateX(4px);
}

/* ---------- Archive: toolbar ---------- */
.svgj-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.svgj-search {
	display: flex;
	flex: 1 1 300px;
	align-items: center;
	max-width: 520px;
	border: 1px solid var(--svgj-line);
	border-radius: 999px;
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.svgj-search:focus-within {
	border-color: var(--svgj-accent);
	box-shadow: 0 0 0 3px rgba(23, 138, 140, 0.15);
}

.svgj .svgj-search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 0.4rem 0 1.2rem;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	outline: 0;
}

.svgj .svgj-search__input:focus-visible {
	outline: 0;
}

.svgj .svgj-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.svgj .svgj-search__btn {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--svgj-muted);
	cursor: pointer;
}

.svgj .svgj-search__btn:hover,
.svgj .svgj-search__btn:focus {
	background: transparent;
	color: var(--svgj-accent);
}

.svgj-selectwrap {
	position: relative;
	display: inline-block;
	border: 1px solid var(--svgj-line);
	border-radius: 999px;
	background-color: #fff;
}

.svgj-selectwrap::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 1.1rem;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	color: var(--svgj-muted);
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.svgj .svgj-select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: auto;
	max-width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 2.6rem 0 1.2rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
}

/* "featured only" switch */
.svgj-top {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
	user-select: none;
}

.svgj-top input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.svgj-top__track {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background-color: #b8c3cc;
	transition: background-color 0.2s ease;
}

.svgj-top__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.svgj-top input:checked + .svgj-top__track {
	background-color: var(--svgj-accent);
}

.svgj-top input:checked + .svgj-top__track::after {
	transform: translateX(18px);
}

.svgj-top input:focus-visible + .svgj-top__track {
	outline: 2px solid var(--svgj-accent);
	outline-offset: 2px;
}

.svgj-top__label {
	font-weight: 600;
}

/* ---------- Archive: category pills ---------- */
.svgj-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.svgj .svgj-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4em 1.05em;
	border: 1px solid var(--svgj-line);
	border-radius: 999px;
	background-color: #fff;
	color: var(--svgj-ink);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svgj .svgj-pill:hover,
.svgj .svgj-pill:focus {
	border-color: var(--svgj-accent);
	color: var(--svgj-accent);
}

.svgj .svgj-pill.is-active {
	border-color: var(--svgj-accent);
	background-color: var(--svgj-accent);
	color: #fff;
}

.svgj-pill__n {
	display: inline-grid;
	min-width: 1.5em;
	padding: 0 0.35em;
	border-radius: 999px;
	background-color: rgba(98, 114, 127, 0.14);
	font-size: 0.78em;
	font-variant-numeric: tabular-nums;
	line-height: 1.6;
	place-items: center;
}

.svgj-pill.is-active .svgj-pill__n {
	background-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Archive: result bar ---------- */
.svgj-resultbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin: 0 0 1.2rem;
	padding: 0.7rem 0;
	border-block: 1px solid var(--svgj-line);
}

.svgj-resultbar__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
}

.svgj-count {
	color: var(--svgj-muted);
	font-weight: 600;
}

.svgj a.svgj-reset {
	color: var(--svgj-accent);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.svgj-viewswitch {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--svgj-line);
	border-radius: 10px;
}

.svgj .svgj-viewbtn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 36px;
	color: var(--svgj-muted);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svgj .svgj-viewbtn:hover {
	color: var(--svgj-accent);
}

.svgj .svgj-viewbtn.is-active {
	background-color: var(--svgj-accent);
	color: #fff;
}

/* ---------- Archive: results ---------- */
.svgj-results {
	position: relative;
	transition: opacity 0.2s ease;
}

.svgj-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* ---------- Table (list) view: one document per row ---------- */
.svgj-view--table .svgj-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--svgj-line);
	border-radius: var(--svgj-radius);
	background-color: #fff;
	box-shadow: 0 2px 6px rgba(14, 58, 92, 0.08), 0 14px 34px rgba(14, 58, 92, 0.1);
}

.svgj-view--table .svgj-card {
	display: grid;
	grid-template-columns: 58px 150px minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1.1rem;
	padding: 0.95rem 1.3rem;
	border: 0;
	border-bottom: 1px solid var(--svgj-line);
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	transform: none;
}

.svgj-view--table .svgj-card:last-child {
	border-bottom: 0;
}

.svgj-view--table .svgj-card:hover {
	background-color: #f6fafb;
	transform: none;
	box-shadow: none;
}

.svgj-view--table .svgj-card__top {
	display: contents;
}

.svgj-view--table .svgj-card__icon {
	grid-column: 1;
}

.svgj-view--table .svgj-fileicon {
	width: 40px;
	filter: none;
}

.svgj-view--table .svgj-card__facts {
	grid-column: 2;
}

.svgj-view--table .svgj-card__body {
	grid-column: 3;
	padding: 0;
	gap: 0.3rem;
}

.svgj-view--table .svgj .svgj-card__title,
.svgj-view--table .svgj-card__title {
	font-size: 1.15rem;
}

.svgj-view--table .svgj-card__excerpt {
	display: none;
}

.svgj-view--table .svgj-card__chips {
	order: 3;
}

.svgj-view--table .svgj-card__actions {
	grid-column: 4;
	flex-wrap: nowrap;
	padding: 0;
	border: 0;
	background: transparent;
}

.svgj-view--table .svgj-card__more {
	display: none;
}

.svgj-view--table .svgj-card__star {
	inset: 0.35rem auto auto 0.55rem;
	width: 1.3rem;
	height: 1.3rem;
}

@media (max-width: 900px) {
	.svgj-view--table .svgj-card {
		grid-template-columns: 50px minmax(0, 1fr);
		row-gap: 0.7rem;
		padding: 1rem;
	}

	.svgj-view--table .svgj-card__facts {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-wrap: wrap;
		gap: 0.2rem 0.8rem;
	}

	.svgj-view--table .svgj-card__icon {
		grid-row: 1 / span 2;
		align-self: start;
	}

	.svgj-view--table .svgj-card__body {
		grid-column: 2;
		grid-row: 2;
	}

	.svgj-view--table .svgj-card__actions {
		grid-column: 1 / -1;
		flex-wrap: wrap;
	}
}

/* ---------- Archive: pagination + load more ---------- */
.svgj-pager {
	margin-top: 2rem;
}

.svgj-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.svgj .svgj-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.9rem;
	border: 1px solid var(--svgj-line);
	border-radius: 10px;
	background-color: #fff;
	color: var(--svgj-ink);
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svgj .svgj-page:hover {
	border-color: var(--svgj-accent);
	background-color: rgba(23, 138, 140, 0.08);
	color: var(--svgj-accent);
}

.svgj .svgj-page.is-current {
	border-color: var(--svgj-accent);
	background-color: var(--svgj-accent);
	color: #fff;
}

.svgj .svgj-page.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.svgj .svgj-page--gap,
.svgj .svgj-page--info {
	min-width: 0;
	border-color: transparent;
	background: transparent;
	color: var(--svgj-muted);
}

.svgj .svgj-more {
	display: block;
	margin: 2rem auto 0;
	padding: 0.7em 2em;
	border: 2px solid var(--svgj-accent);
	border-radius: 999px;
	background-color: transparent;
	color: var(--svgj-accent);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svgj .svgj-more:hover,
.svgj .svgj-more:focus {
	background-color: var(--svgj-accent);
	color: #fff;
}

.svgj .svgj-more[disabled] {
	opacity: 0.6;
	cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
	.svgj *,
	.svgj *::before,
	.svgj *::after {
		transition: none !important;
		animation: none !important;
	}

	.svgj-hover--lift .svgj-card:hover {
		transform: none;
	}
}

@media (max-width: 767px) {
	.svgj .svgj-title {
		font-size: 1.7rem;
	}

	.svgj-search {
		flex-basis: 100%;
		max-width: none;
	}
}
