/* ============================================================
   gemeinfreie-lieder.de — Stylesheet
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}

@font-face {
	font-family: "Font Awesome 7 Free";
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url("/fonts/fa-solid-900.woff2") format("woff2");
}

.fa-solid {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
}

.fa-solid::before { content: var(--fa); }

.fa-house           { --fa: "\f015"; }
.fa-music           { --fa: "\f001"; }
.fa-magnifying-glass { --fa: "\f002"; }
.fa-circle-question { --fa: "\f059"; }
.fa-graduation-cap  { --fa: "\f19d"; }
.fa-download        { --fa: "\f019"; }
.fa-file-pdf        { --fa: "\f1c1"; }
.fa-tag             { --fa: "\f02b"; }
.fa-compact-disc    { --fa: "\f51f"; }
.fa-user            { --fa: "\f007"; }
.fa-chevron-left    { --fa: "\f053"; }

#navigation a .fa-solid {
	width: 1.1em;
	text-align: center;
	margin-right: 7px;
	font-size: 13px;
	opacity: 0.75;
	vertical-align: -0.05em;
	flex-shrink: 0;
}

.lied-category-chip .fa-solid {
	margin-right: 4px;
	font-size: 10px;
	opacity: 0.7;
	vertical-align: 0.05em;
}

/* ---------- Custom properties ---------- */

:root {
	--layout-max-w: 1040px;
	--sidebar-w: 300px;
	--gap: 36px;
	--max-w: 720px;

	--color-sidebar-from: #417ae6;
	--color-sidebar-to: #2d4f9e;
	--color-sidebar-text: #ffffff;
	--color-sidebar-text-muted: rgba(255, 255, 255, 0.72);
	--color-sidebar-active-bg: rgba(255, 255, 255, 0.16);

	--color-bg: #ffffff;
	--color-text: #1a1a1a;
	--color-muted: #707070;
	--color-link: #2d4f9e;
	--color-link-hover: #1a3370;
	--color-accent: #f5a623;
	--color-border: #e4e4e4;
	--color-border-strong: #c8c8c8;
	--color-row-hover: #f6f8fc;
	--color-surface: #fafbfd;
	--color-surface-hover: #f1f4fa;

	--font-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

	--radius: 8px;
	--radius-sm: 5px;
	--radius-lg: 12px;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

	--mobile-bp: 960px;
}

/* ---------- Reset / base ---------- */

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: calc(50vw - (var(--layout-max-w) / 2) + var(--sidebar-w));
	background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
	z-index: -1;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-link);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--color-link-hover);
	text-decoration-thickness: 2px;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 28px 0;
}

::selection {
	background: var(--color-sidebar-from);
	color: #fff;
}

/* ---------- Layout: page wrapper ---------- */

.page {
	max-width: var(--layout-max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: var(--sidebar-w) 1fr;
	column-gap: var(--gap);
	align-items: start;
	min-height: 100vh;
}

/* ---------- Sidebar ---------- */

#sidebar {
	background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
	color: var(--color-sidebar-text);
	padding: 32px 36px 32px 24px;
	position: sticky;
	top: 0;
	max-height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#sidebar::after {
	content: "\f001";
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	position: absolute;
	bottom: 20px;
	right: -24px;
	font-size: 200px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.07);
	transform: rotate(-20deg);
	pointer-events: none;
	z-index: -1;
}

#sidebar h1,
.sidebar-title {
	margin: 0 -12px 24px;
	padding: 0 12px 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--color-sidebar-text);
	white-space: nowrap;
}

#sidebar a.sidebar-title-link,
#sidebar h1 a {
	color: var(--color-sidebar-text);
	text-decoration: none;
}

#sidebar h1 .fa-solid {
	margin-right: 5px;
}

#sidebar nav {
	flex: 1 0 auto;
}

#navigation {
	list-style: none;
	margin: 0;
	padding: 0;
}

#navigation li {
	margin: 0 0 2px 0;
	padding: 0;
}

#navigation a {
	display: block;
	padding: 10px 12px;
	margin: 0 -12px;
	color: var(--color-sidebar-text);
	text-decoration: none;
	font-size: 15px;
	border-radius: var(--radius-sm);
	transition: background-color 120ms ease;
	position: relative;
}

#navigation a:hover {
	background-color: rgba(255, 255, 255, 0.10);
	color: var(--color-sidebar-text);
}

#navigation a.active {
	background-color: var(--color-sidebar-active-bg);
	font-weight: 600;
}


#navigation .subnav {
	list-style: none;
	margin: 0 -12px;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 220ms ease, opacity 180ms ease, margin 220ms ease;
}

#navigation .has-children.is-open .subnav {
	max-height: 200px;
	opacity: 1;
	margin-top: 6px;
	margin-bottom: 8px;
}

#navigation .subnav li {
	margin: 0 0 2px;
}

#navigation .subnav a {
	display: block;
	padding: 5px 8px 5px 33px;
	margin: 0;
	font-size: 13.5px;
	color: var(--color-sidebar-text-muted);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: background-color 120ms ease, color 120ms ease;
}

#navigation .subnav a:hover {
	background-color: rgba(255, 255, 255, 0.10);
	color: var(--color-sidebar-text);
}

#navigation .subnav a.active {
	color: var(--color-sidebar-text);
	font-weight: 600;
}


/* ---------- Suche ---------- */

.sidebar-search {
	position: relative;
	margin: 0 -12px 24px;
}

.search-input {
	width: 100%;
	padding: 9px 14px;
	font: inherit;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-sm);
	outline: none;
	transition: background-color 120ms ease, border-color 120ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.search-input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
	background: rgba(255, 255, 255, 0.20);
	border-color: rgba(255, 255, 255, 0.45);
}

.search-input--lg {
	font-size: 16px;
	padding: 14px 18px;
	background: #fff;
	color: var(--color-text);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.search-input--lg::placeholder {
	color: #a0a0a0;
}

.search-input--lg:focus {
	border-color: var(--color-link);
	box-shadow: 0 0 0 3px rgba(45, 79, 158, 0.15);
	background: #fff;
}

.search-results {
	position: absolute;
	background: #fff;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	z-index: 30;
	max-height: 360px;
	overflow-y: auto;
}

.search-results--sidebar {
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	color: var(--color-text);
}

.search-results--home {
	left: 0;
	right: 0;
	top: calc(100% + 6px);
}

.search-result {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--color-border);
	text-decoration: none;
	color: var(--color-text);
	transition: background-color 100ms ease;
}

.search-result:last-child {
	border-bottom: 0;
}

.search-result:hover,
.search-result:focus {
	background: var(--color-row-hover);
	outline: none;
	color: var(--color-text);
}

.search-result__title {
	font-size: 14.5px;
	font-weight: 600;
}

.search-result__cat {
	font-size: 11px;
	font-weight: 700;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.search-empty {
	padding: 14px;
	color: var(--color-muted);
	font-size: 14px;
	text-align: center;
	font-style: italic;
}

/* Home-Search-Block */
.home-search-block {
	margin: -16px 0 36px 0;
	position: relative;
}

.home-search-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.home-search-wrap {
	position: relative;
}

.sidebar-foot {
	margin: 40px -12px 0;
	padding: 6px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 13px;
	flex-shrink: 0;
}

.sidebar-foot a {
	display: inline-block;
	color: var(--color-sidebar-text-muted);
	text-decoration: none;
	margin-right: 14px;
}

.sidebar-foot a.active {
	color: var(--color-sidebar-text);
}

.sidebar-foot a:hover {
	color: var(--color-sidebar-text);
	text-decoration: underline;
}

/* ---------- Mobile bar & drawer ---------- */

.mobile-bar {
	display: none;
}

.mobile-burger {
	background: transparent;
	border: 0;
	color: var(--color-sidebar-text);
	cursor: pointer;
	padding: 8px;
	font-size: 22px;
	line-height: 1;
}

.mobile-burger:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.drawer-overlay {
	display: none;
}

/* ---------- Main content ---------- */

#content {
	max-width: var(--max-w);
	width: 100%;
	padding: 40px 0 80px 0;
	line-height: 1.65;
}

#content h2 {
	margin: 0 0 24px 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

#content .breadcrumb + h2 {
	padding-bottom: 20px;
	border-bottom: 2px solid var(--color-border);
}

#content h2 a {
	color: var(--color-text);
	text-decoration: none;
}

#content h2 a:hover {
	color: var(--color-link);
}

#content h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 32px 0 12px 0;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

#content h4 {
	font-size: 16px;
	font-weight: 600;
	margin: 20px 0 6px 0;
}

#content p {
	margin: 0 0 14px 0;
}

/* ---------- Tables ---------- */

table {
	border-collapse: collapse;
	width: 100%;
	margin: 8px 0 16px 0;
}

tr:hover {
	background-color: var(--color-row-hover);
}

th {
	background: var(--color-surface);
	font-weight: 600;
}

td,
th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

td.last {
	border-bottom: 0;
}

table.tonarten td,
table.tonarten th {
	vertical-align: middle;
}

/* ---------- Buchstaben-Leiste auf /lieder/<x>/ Seiten ---------- */

.letter-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 28px 0;
	padding: 8px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.letter-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	color: var(--color-link);
	transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.letter-chip:hover {
	background: #ffffff;
	box-shadow: var(--shadow-sm);
	color: var(--color-link-hover);
}

.letter-chip--current {
	background: var(--color-link);
	color: #ffffff;
}

.letter-chip--current:hover {
	background: var(--color-link);
	color: #ffffff;
	box-shadow: none;
}

.letter-chip--empty {
	color: #c0c0c0;
	cursor: not-allowed;
}

.letter-chip--empty:hover {
	background: transparent;
	box-shadow: none;
	color: #c0c0c0;
}

/* legacy class kept for any other uses */
.list-navigation {
	margin: 0 0 24px 0;
}

/* ---------- Lied-Liste: einspaltig, nummeriert ---------- */

.list {
	margin: 0 0 24px 0;
	padding: 0;
	list-style: none;
	counter-reset: song-counter;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}

.list li {
	position: relative;
	margin: 0;
	padding: 0;
	counter-increment: song-counter;
	border-bottom: 1px solid var(--color-border);
	transition: background-color 120ms ease;
}

.list li:last-child {
	border-bottom: 0;
}

.list li:hover {
	background-color: var(--color-row-hover);
}

.list li a {
	display: grid;
	grid-template-columns: 36px 1fr auto;
	align-items: center;
	column-gap: 16px;
	padding: 14px 18px;
	text-decoration: none;
	color: var(--color-text);
}

.list li a::before {
	content: counter(song-counter, decimal-leading-zero);
	font-size: 12px;
	font-weight: 700;
	color: var(--color-muted);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

#content .list li a h3 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--color-text);
}

.list li a > div.category {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-link);
	background: #eaf0fb;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	flex: 0 0 auto;
}

.list li a > div:not(.category) {
	display: none;
}

.list li .options {
	display: none;
}

.list .gas {
	border: 0;
	background: transparent;
}

.list .gas:hover {
	background: transparent;
}

.list .text {
	font-size: 14px;
	color: var(--color-muted);
	padding: 10px 18px;
}

/* Mobile: weniger Padding, Kategorie unter Titel */
@media (max-width: 600px) {
	.list li a {
		grid-template-columns: 28px 1fr;
		row-gap: 4px;
	}
	.list li a > div.category {
		grid-column: 2;
	}
}

/* ---------- Content-Cards (z. B. /musikwissen/) ---------- */

.content-cards {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.content-cards li {
	margin: 0 0 8px;
}

.content-cards li a {
	display: block;
	padding: 16px 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	text-decoration: none;
	color: var(--color-text);
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.content-cards li a:hover {
	border-color: var(--color-link);
	box-shadow: var(--shadow-md);
}

#content .content-cards li a h3 {
	margin: 0 0 4px;
	padding: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--color-link);
	line-height: 1.3;
}

#content .content-cards li a p {
	margin: 0;
	font-size: 14px;
	color: var(--color-muted);
	line-height: 1.5;
}

/* ---------- Generische Boxen ---------- */

.box {
	padding: 14px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.transpose-hint {
	line-height: 1.4;
	color: var(--color-muted);
	font-size: 13px;
}

/* ---------- Personen-Seiten ---------- */

.person-portrait {
	float: right;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin: 0 0 20px 28px;
}

.person-portrait img {
	width: 160px;
	display: block;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
}

.person-portrait figcaption {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.72rem;
	color: #b0b0b0;
	padding-right: 6px;
	line-height: 1;
}

@media (max-width: 600px) {
	.person-portrait {
		float: none;
		max-width: 140px;
		margin: 0 auto 20px;
	}
}

.person-meta {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	margin: -8px 0 20px 0;
}

.person-source {
	margin-top: 32px;
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.person-back {
	margin-top: 32px;
	font-size: 0.875rem;
}

.person-back .fa-solid {
	font-size: 0.65rem;
	vertical-align: 0.05em;
}

/* ---------- Lied-Detailseite ---------- */

.lied-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -8px 0 28px 0;
}

.lied-category-chip {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-link);
	background: #eaf0fb;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 120ms ease, color 120ms ease;
}

.lied-category-chip:hover {
	background: var(--color-link);
	color: #fff;
}

/* ---------- Kategorie-Karten ---------- */

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin: 0 0 12px 0;
}

.category-grid--full {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.category-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	text-decoration: none;
	color: var(--color-text);
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
	position: relative;
	overflow: hidden;
}

.category-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
	opacity: 0.85;
}

.category-card:hover {
	border-color: var(--color-link);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
	color: var(--color-text);
}

.category-card__name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--color-text);
	padding-left: 6px;
}

.category-card__count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-muted);
	padding-left: 6px;
}

.category-grid-more {
	margin: 8px 0 0 0;
	text-align: right;
	font-size: 14px;
}

.category-grid-more a {
	color: var(--color-link);
	text-decoration: none;
	font-weight: 600;
}

.category-grid-more a:hover {
	text-decoration: underline;
}

.cat-meta {
	color: var(--color-muted);
	font-size: 14px;
	margin: -16px 0 24px 0;
}

.lead {
	font-size: 17px;
	color: var(--color-muted);
	margin: 0 0 28px 0;
}

.empty-state {
	background: var(--color-surface);
	border: 1px dashed var(--color-border-strong);
	border-radius: var(--radius);
	padding: 32px 20px;
	text-align: center;
	color: var(--color-muted);
	font-style: italic;
	margin: 0;
}

.breadcrumb {
	display: block;
	margin: 0 0 10px 0;
	font-size: 13px;
	color: var(--color-muted);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.breadcrumb a {
	color: var(--color-muted);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--color-link);
	text-decoration: underline;
}

.lied h2 {
	font-size: 36px;
	line-height: 1.15;
	margin: 0 0 32px 0;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--color-border);
}

.lied h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
	font-weight: 600;
	margin: 32px 0 6px 0;
	padding: 0;
	border: 0;
}

.lied h3:first-of-type {
	margin-top: 0;
}

.lied > p {
	margin: 0 0 8px 0;
}

.lied-info {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 14px;
	row-gap: 3px;
	margin: 0 0 8px 0;
}

.lied-info dt {
	font-weight: 600;
	color: var(--color-muted);
	white-space: nowrap;
}

.lied-info dd {
	margin: 0;
}

.lied p:has(> a[href$=".pdf"]) {
	margin: 8px 0 24px 0;
	font-size: 0;
}

.notenblatt-vorschau {
	position: relative;
	overflow: hidden;
	height: 200px;
	border-radius: var(--radius) var(--radius) 0 0;
	border: 1px solid var(--color-border);
	border-bottom: none;
	margin: 8px 0 0 0;
}

.notenblatt-vorschau img {
	width: 100%;
	display: block;
}

.notenblatt-vorschau::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(to bottom, transparent, #fff);
	pointer-events: none;
}

.notenblatt-vorschau + p:has(> a[href$=".pdf"]) {
	margin-top: 0;
}

.lied p > a[href$=".pdf"] {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 var(--radius) var(--radius);
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	box-shadow: var(--shadow-sm);
}

.lied p > a[href$=".pdf"]:not(:last-of-type) {
	border-radius: 0;
}


.lied p > a[href$=".pdf"]::before {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	-webkit-font-smoothing: antialiased;
	content: "\f001";
	font-size: 14px;
}

.lied p:has(> strong:first-child),
.lied p.lied-strophe {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-link);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 0 0 14px 0;
	line-height: 1.75;
	font-size: 16.5px;
}

.lied p:has(> strong:first-child) strong {
	display: block;
	color: var(--color-link);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	margin-bottom: 12px;
}

.lied p:has(> strong:first-child) > strong + br {
	display: none;
}

.lied p a_ {
	color: var(--color-link);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Startseite (Hero) ---------- */

.home-hero {
	background: linear-gradient(135deg, #f6f8fc 0%, #eef3fc 100%);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 44px 40px;
	margin: 0 0 36px 0;
	position: relative;
	overflow: hidden;
}

.home-hero::before {
	content: "♪";
	position: absolute;
	right: -20px;
	bottom: -60px;
	font-size: 280px;
	color: var(--color-sidebar-from);
	opacity: 0.07;
	line-height: 1;
	pointer-events: none;
	font-family: serif;
}

.home-hero-title {
	margin: 0 0 14px 0;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--color-text);
}

.home-hero-sub {
	font-size: 17px;
	color: var(--color-muted);
	margin: 0 0 24px 0;
	max-width: 520px;
	line-height: 1.55;
}

.home-hero .cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
	cursor: pointer;
	border: 0;
}

.btn-primary {
	background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
	color: #fff;
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	color: #fff;
}

.btn-secondary {
	background: #fff;
	color: var(--color-link);
	border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
	background: var(--color-surface);
	color: var(--color-link-hover);
}

.home-section {
	margin: 36px 0;
}

.home-section-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px 0;
	letter-spacing: -0.01em;
}

/* ---------- Buchstaben-Kachel-Grid (Startseite) ---------- */

.letter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
	gap: 10px;
	margin: 0 0 14px 0;
}

.letter-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 8px;
}

.letter-grid--compact .letter-tile {
	min-height: 64px;
	padding: 8px 4px;
}

.letter-grid--compact .letter-tile__letter {
	font-size: 22px;
}

.letter-grid--compact .letter-tile__count {
	font-size: 10px;
}

.letter-grid--xs {
	grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
	gap: 5px;
	margin-bottom: 24px;
}

.letter-grid--xs .letter-tile {
	min-height: 38px;
	padding: 4px 2px;
	gap: 0;
}

.letter-grid--xs .letter-tile__letter {
	font-size: 16px;
}

.letter-grid--xs .letter-tile__count {
	display: none;
}

.letter-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	aspect-ratio: 1 / 1;
	min-height: 82px;
	padding: 10px 6px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--color-text);
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease,
		background-color 140ms ease;
	overflow: hidden;
}

.letter-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(65, 122, 230, 0.0) 0%, rgba(65, 122, 230, 0.08) 100%);
	opacity: 0;
	transition: opacity 140ms ease;
	pointer-events: none;
}

.letter-tile:hover {
	border-color: var(--color-link);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
	color: var(--color-text);
}

.letter-tile:hover::after {
	opacity: 1;
}

.letter-tile__letter {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-link);
}

.letter-tile__count {
	font-size: 11px;
	font-weight: 600;
	color: var(--color-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.letter-tile--empty {
	background: var(--color-surface);
	border-color: var(--color-border);
	cursor: not-allowed;
}

.letter-tile--empty:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--color-border);
}

.letter-tile--empty:hover::after {
	opacity: 0;
}

.letter-tile--empty .letter-tile__letter {
	color: #c4c4c4;
	font-weight: 600;
}

.letter-tile--empty .letter-tile__count {
	color: #c4c4c4;
}

.letter-tile--active {
	background: linear-gradient(135deg, var(--color-sidebar-from), var(--color-sidebar-to));
	border-color: transparent;
	cursor: default;
	pointer-events: none;
}

.letter-tile--active::after {
	display: none;
}

.letter-tile--active .letter-tile__letter {
	color: #fff;
}

.letter-tile--active .letter-tile__count {
	color: rgba(255, 255, 255, 0.75);
}

.letter-grid-summary {
	margin: 14px 0 0 0;
	font-size: 13px;
	color: var(--color-muted);
	text-align: right;
}

.home-info {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px 24px;
	font-size: 15.5px;
}

.home-info p {
	margin: 0 0 10px 0;
}

.home-info p:last-child {
	margin-bottom: 0;
}

/* ---------- Misc ---------- */

.cb {
	clear: both;
}

.dn {
	display: none;
}

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

/* ---------- Responsive: mobile (< 960px) ---------- */

@media (max-width: 959px) {
	body::before {
		display: none;
	}

	.page {
		display: block;
		max-width: 100%;
		min-height: auto;
	}

	.mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: linear-gradient(180deg, var(--color-sidebar-from), var(--color-sidebar-to));
		color: var(--color-sidebar-text);
		padding: 12px 16px;
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.mobile-title {
		font-size: 18px;
		font-weight: 700;
		flex: 1;
		text-align: center;
		margin-left: 38px;
	}

	.mobile-title a {
		color: var(--color-sidebar-text);
		text-decoration: none;
	}

	#sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: var(--sidebar-w);
		max-width: 85vw;
		max-height: none;
		transform: translateX(100%);
		transition: transform 220ms ease;
		z-index: 100;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
	}

	body.drawer-open #sidebar {
		transform: translateX(0);
	}

	.drawer-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 220ms ease;
		z-index: 90;
	}

	body.drawer-open .drawer-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	#content {
		padding: 24px 18px 56px 18px;
		max-width: 100%;
	}

	#content h2 {
		font-size: 24px;
	}

	.lied h2 {
		font-size: 28px;
	}

	.home-hero {
		padding: 32px 24px;
	}

	.home-hero-title {
		font-size: 28px;
	}

	.list {
		grid-template-columns: 1fr;
	}
}

/* ---------- Buchempfehlungen ---------- */

.buchempfehlungen {
	margin-top: 56px;
	padding: 24px 28px 20px;
	background: #fdf8f3;
	border: 1px solid #e8ddd0;
	border-radius: var(--radius-lg);
}

#content .buchempfehlungen__titel {
	margin-top: 0;
}

.buchempfehlungen__titel {
	font-size: 17px;
	font-weight: 700;
	color: var(--color-link);
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.buchempfehlungen__titel .fa-solid {
	color: var(--color-link);
	font-size: 14px;
	opacity: 0.75;
}

.buchempfehlungen__intro {
	font-size: 14px;
	color: #7a7068;
	margin: 0 0 18px;
	line-height: 1.55;
}

.buchempfehlungen__liste {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.buchkarte {
	display: flex;
	gap: 19px;
	padding: 19px;
	background: #ffffff;
	border: 1px solid #ede5db;
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	align-items: flex-start;
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

.buchkarte:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	border-color: #d4c9bc;
}

.buchkarte:hover .buchkarte__titel {
	color: var(--color-link);
}

.buchkarte__cover {
	width: 100px;
	flex-shrink: 0;
	object-fit: contain;
	align-self: flex-start;
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.buchkarte__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

#content .buchkarte__titel {
	margin-top: 0;
}

.buchkarte__titel {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: var(--color-text);
	transition: color 150ms ease;
}

.buchkarte__untertitel {
	font-size: 14.5px;
	color: #9a8e84;
	margin: 0;
	line-height: 1.4;
}

.buchkarte__beschreibung {
	font-size: 15px;
	color: #6b635a;
	margin: 2px 0 1px;
	line-height: 1.5;
}

.buchkarte__cta {
	font-size: 14.5px;
	color: var(--color-link);
	font-weight: 600;
	margin-top: 4px;
	opacity: 0.9;
}

#content .buchempfehlungen__hinweis {
	margin: 10px 0 0 0;
}

.buchempfehlungen__hinweis {
	font-size: 11px;
	color: #b8afa6;
	margin: 10px 0 0 0;
	line-height: 1.4;
}

@media (max-width: 640px) {
	.buchempfehlungen {
		padding: 18px 16px 16px;
	}
	.buchempfehlungen__liste {
		grid-template-columns: 1fr;
	}
}
