/*
 * Luxxamed Studien – öffentliche Ansicht.
 * Alle Farben stehen hier oben als Variablen und lassen sich an das CI anpassen.
 * Feste Pixelwerte, weil das aktuelle Theme die Grundschriftgröße auf 10px setzt.
 */
.lxst {
	--lxst-ink: #1c2a38;
	--lxst-muted: #5a6978;
	--lxst-line: #d7dfe7;
	--lxst-bg: #f3f6f9;
	--lxst-card: #ffffff;
	--lxst-accent: #1766ad;
	--lxst-accent-ink: #ffffff;
	--lxst-a-bg: #dff3e8; --lxst-a-ink: #0d5c41;
	--lxst-b-bg: #e1eefb; --lxst-b-ink: #124f88;
	--lxst-c-bg: #f7efcf; --lxst-c-ink: #6a5407;
	--lxst-d-bg: #e9edf1; --lxst-d-ink: #4a5866;
	--lxst-radius: 10px;

	color: var(--lxst-ink);
	font-size: 16px;
	line-height: 1.6;
	max-width: 1100px;
	margin: 0 auto;
	text-align: left;
}
.lxst *, .lxst *::before, .lxst *::after { box-sizing: border-box; }
.lxst p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.lxst a { color: var(--lxst-accent); }
.lxst h2 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; color: var(--lxst-ink); }

/* Erweiterte Suche */
.lxst-search { border: 1px solid var(--lxst-line); border-radius: var(--lxst-radius); background: var(--lxst-bg); margin: 0 0 24px; }
.lxst-search > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.lxst-search > summary::-webkit-details-marker { display: none; }
.lxst-search > summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; color: var(--lxst-accent); }
.lxst-search[open] > summary::after { content: "–"; }
.lxst-search[open] > summary { border-bottom: 1px solid var(--lxst-line); }
.lxst-search > summary:focus-visible { outline: 2px solid var(--lxst-accent); outline-offset: 2px; border-radius: var(--lxst-radius); }
.lxst-search form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 18px; margin: 0; }
.lxst-f { margin: 0 !important; min-width: 0; }
.lxst-f-wide { grid-column: 1 / -1; }
.lxst-f label { display: block; font-size: 13px; font-weight: 600; color: var(--lxst-muted); margin: 0 0 4px; }
.lxst-f input, .lxst-f select {
	width: 100%; height: 44px; padding: 0 12px; font-size: 16px; line-height: 1.2; color: var(--lxst-ink);
	background: #fff; border: 1px solid #b9c4cf; border-radius: 8px; box-shadow: none; margin: 0;
}
.lxst-f input:focus, .lxst-f select:focus { outline: 2px solid var(--lxst-accent); outline-offset: 1px; border-color: var(--lxst-accent); }
.lxst-f-years span { display: flex; gap: 8px; }
.lxst-f-btn { display: flex; align-items: flex-end; gap: 14px; }
.lxst-btn {
	display: inline-block; height: 44px; line-height: 44px; padding: 0 22px; font-size: 16px; font-weight: 600; cursor: pointer;
	color: var(--lxst-accent-ink) !important; background: var(--lxst-accent); border: 1px solid var(--lxst-accent); border-radius: 8px; text-decoration: none !important;
}
.lxst-btn:hover, .lxst-btn:focus { filter: brightness(0.92); }
.lxst-btn-ghost { background: transparent; color: var(--lxst-accent) !important; }
.lxst-reset { font-size: 15px; line-height: 44px; }

.lxst-count { font-size: 16px; color: var(--lxst-muted); margin: 0 0 14px; }
.lxst-count strong { color: var(--lxst-ink); }
.lxst-h { font-size: 24px !important; margin: 0 0 16px !important; }
.lxst-empty { padding: 28px; text-align: center; background: var(--lxst-bg); border-radius: var(--lxst-radius); color: var(--lxst-muted); }

/* Karten */
.lxst-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lxst-card { position: relative; margin: 0; padding: 20px 20px 18px; background: var(--lxst-card); border: 1px solid var(--lxst-line); border-radius: var(--lxst-radius); display: flex; flex-direction: column; transition: box-shadow .15s ease, border-color .15s ease; }
.lxst-card:hover, .lxst-card:focus-within { border-color: var(--lxst-accent); box-shadow: 0 4px 16px rgba(23, 102, 173, .12); }
.lxst-card-title { font-size: 18px !important; line-height: 1.35 !important; margin: 10px 0 6px !important; font-weight: 700; }
.lxst-card-title a { color: var(--lxst-ink); text-decoration: none; }
.lxst-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--lxst-radius); }
.lxst-card-title a:focus-visible { outline: none; }
.lxst-card:focus-within { outline: 2px solid var(--lxst-accent); outline-offset: 2px; }
.lxst-cite { font-size: 14px !important; color: var(--lxst-muted); margin: 0 0 10px !important; }
.lxst-sum { font-size: 15px !important; margin: 0 0 14px !important; flex: 1; }
.lxst-more { font-size: 15px; font-weight: 600; text-decoration: none; }
.lxst-more::after { content: " →"; }

/* Kennzeichen */
.lxst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lxst-chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; line-height: 18px; font-weight: 600; background: var(--lxst-d-bg); color: var(--lxst-d-ink); white-space: nowrap; }
.lxst-chip-type { background: var(--lxst-ink); color: #fff; }
.lxst-chip-a { background: var(--lxst-a-bg); color: var(--lxst-a-ink); }
.lxst-chip-b { background: var(--lxst-b-bg); color: var(--lxst-b-ink); }
.lxst-chip-c { background: var(--lxst-c-bg); color: var(--lxst-c-ink); }
.lxst-chip-d { background: var(--lxst-d-bg); color: var(--lxst-d-ink); }

/* Seiten */
.lxst-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 24px; }
.lxst-page { min-width: 44px; height: 44px; line-height: 42px; text-align: center; padding: 0 8px; border: 1px solid var(--lxst-line); border-radius: 8px; text-decoration: none; font-size: 16px; background: #fff; }
.lxst-page.is-current { background: var(--lxst-accent); border-color: var(--lxst-accent); color: #fff; font-weight: 700; }
.lxst-gap { line-height: 44px; padding: 0 4px; color: var(--lxst-muted); }

.lxst-foot { font-size: 13px !important; color: var(--lxst-muted); border-top: 1px solid var(--lxst-line); padding-top: 14px; margin-top: 8px !important; }

/* Studienseite */
.lxst-study { max-width: 820px; }
.lxst-back { font-size: 15px !important; margin-bottom: 14px !important; }
.lxst-back a { text-decoration: none; }
.lxst-title { font-size: 30px; line-height: 1.25; margin: 0 0 14px; color: var(--lxst-ink); }
.lxst-head { margin: 0 0 22px; }
.lxst-head .lxst-chips { margin-bottom: 12px; }
.lxst-orig { font-size: 15px !important; color: var(--lxst-muted); margin: 0 0 6px !important; }
.lxst-orig span { font-weight: 600; }
.lxst-box { margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--lxst-line); border-radius: var(--lxst-radius); background: #fff; }
.lxst-box > p:last-child { margin-bottom: 0; }
.lxst-lay { background: var(--lxst-bg); border-color: var(--lxst-bg); }
.lxst-lay p { font-size: 18px; line-height: 1.6; }
.lxst-rating dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.lxst-rating dl > div { min-width: 0; }
.lxst-rating dt { font-size: 13px; font-weight: 600; color: var(--lxst-muted); margin: 0; }
.lxst-rating dd { font-size: 16px; margin: 0; }
.lxst-transfer { border-left-width: 5px; }
.lxst-transfer-a { border-left-color: var(--lxst-a-ink); }
.lxst-transfer-b { border-left-color: var(--lxst-b-ink); }
.lxst-transfer-c { border-left-color: var(--lxst-c-ink); }
.lxst-transfer-d { border-left-color: var(--lxst-d-ink); }
.lxst-level { font-size: 18px !important; font-weight: 700; }
.lxst-level span { display: inline-block; padding: 2px 12px; border-radius: 20px; margin-right: 6px; font-size: 15px; background: var(--lxst-ink); color: #fff; }
.lxst-scale { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--lxst-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lxst-scale li { font-size: 13px; line-height: 1.35; color: var(--lxst-muted); padding: 8px 10px; border-radius: 8px; background: var(--lxst-bg); margin: 0; }
.lxst-scale li b { display: block; font-size: 15px; color: var(--lxst-ink); }
.lxst-scale li.is-on { background: var(--lxst-ink); color: #fff; }
.lxst-scale li.is-on b { color: #fff; }
.lxst-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 !important; }
.lxst-related { margin: 0 0 18px; }
.lxst-related ul { list-style: none; margin: 0; padding: 0; }
.lxst-related li { padding: 10px 0; border-top: 1px solid var(--lxst-line); margin: 0; font-size: 16px; }
.lxst-related li span { display: block; font-size: 14px; color: var(--lxst-muted); }
.lxst-preview { padding: 12px 16px; background: #fff4d6; border-left: 5px solid #c98a00; border-radius: 6px; }

@media (max-width: 860px) {
	.lxst-search form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lxst-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.lxst-list, .lxst-search form, .lxst-rating dl { grid-template-columns: minmax(0, 1fr); }
	.lxst-title { font-size: 24px; }
	.lxst-box { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lxst-card { transition: none; } }

/* Quellenangaben in Seiten und Beiträgen */
sup.lxst-ref { font-size: 0.75em; line-height: 0; white-space: nowrap; }
sup.lxst-ref a { text-decoration: none; padding: 0 1px; }
.lxst-ref-missing { background: #fff4d6; color: #7a5200; font-size: 13px; padding: 1px 6px; border-radius: 4px; }
.lxst-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--lxst-line); max-width: none; }
.lxst-sources ol { margin: 0; padding-left: 26px; }
.lxst-sources li { font-size: 15px; line-height: 1.55; margin: 0 0 10px; color: var(--lxst-ink); scroll-margin-top: 120px; }
.lxst-sources li:target { background: var(--lxst-c-bg); outline: 6px solid var(--lxst-c-bg); border-radius: 2px; }
.lxst-src-links { white-space: nowrap; font-size: 14px; }

/* Kompakte Liste */
.lxst-compact { max-width: none; margin: 24px 0; }
.lxst-compact ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lxst-line); }
.lxst-compact li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--lxst-line); }
.lxst-compact-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--lxst-ink) !important; text-decoration: none; }
.lxst-compact-title:hover, .lxst-compact-title:focus { color: var(--lxst-accent) !important; text-decoration: underline; }
.lxst-compact .lxst-cite { display: block; margin: 3px 0 8px !important; }
.lxst-compact-all { margin: 14px 0 0 !important; }

/* Einträge ohne Bewertung und Download */
.lxst-chip-u { background: #fff; color: var(--lxst-muted); border: 1px dashed #aab6c2; }
.lxst-plain { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.lxst-plain dt { font-size: 13px; font-weight: 600; color: var(--lxst-muted); margin: 0; }
.lxst-plain dd { font-size: 16px; margin: 0; }
.lxst-sum:empty { display: none; }
.lxst-download { border-left: 5px solid var(--lxst-accent); }
@media (max-width: 640px) { .lxst-plain { grid-template-columns: minmax(0, 1fr); } }
