/* ReferendarFachVerlag – Gestaltung
   Farben aus dem Cover-System des Verlags: Tiefblau, Cover-Hellblau, Signalgelb.
   Schrift: Literata (SIL Open Font License), selbst gehostet. */

@font-face {
	font-family: "Literata";
	src: url("schrift/literata-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url("schrift/literata-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--tiefblau: #0d1a63;
	--tiefblau-dunkel: #08113f;
	--coverblau: #4a8fd4;
	--coverblau-hell: #e3eefa;
	--gelb: #f2e600;
	--papier: #f4f6fb;
	--weiss: #ffffff;
	--tinte: #141a33;
	--tinte-leise: #4b5372;
	--linie: #d5dbea;
	--erfolg: #1b7a4b;
	--fehler: #b3261e;
	--breite: 72rem;
	--schrift: "Literata", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--papier);
	color: var(--tinte);
	font-family: var(--schrift);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--tiefblau); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--coverblau); }
:focus-visible { outline: 3px solid var(--coverblau); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

.v-breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

.v-sprung {
	position: absolute; left: 1rem; top: -4rem; z-index: 10;
	background: var(--gelb); color: var(--tiefblau); padding: .5rem 1rem; font-weight: 600;
}
.v-sprung:focus { top: 1rem; }

/* Knöpfe */
.v-knopf {
	display: inline-block;
	background: var(--gelb);
	color: var(--tiefblau);
	font-weight: 650;
	font-size: 1rem;
	line-height: 1.3;
	padding: .8rem 1.35rem;
	border: 2px solid var(--gelb);
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}
.v-knopf:hover { background: #fff35a; border-color: #fff35a; color: var(--tiefblau); }
.v-knopf-leise { background: transparent; border-color: var(--tiefblau); }
.v-knopf-leise:hover { background: var(--coverblau-hell); border-color: var(--tiefblau); }

/* Kopf */
.v-kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: relative; z-index: 5; }
.v-kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.v-marke { display: flex; align-items: center; gap: .8rem; min-width: 0; color: var(--tiefblau); text-decoration: none; }
.v-marke:hover { color: var(--tiefblau); }
.v-marke-zeichen {
	/* ein stilisierter Buchrücken: Tiefblau mit gelbem Band wie auf den Covern */
	width: 1.6rem; height: 2.3rem; background: var(--tiefblau); border-radius: 2px 3px 3px 2px;
	display: flex; align-items: center; flex-shrink: 0;
}
.v-marke-zeichen span { display: block; width: 100%; height: .42rem; background: var(--gelb); }
.v-marke-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; display: flex; flex-direction: column; }
.v-marke-text small { font-size: .8rem; font-weight: 400; color: var(--tinte-leise); letter-spacing: 0; margin-top: .2rem; }

.v-menue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.v-menue a {
	display: block; padding: .5rem .8rem; color: var(--tinte); text-decoration: none; font-size: 1rem;
	border-bottom: 3px solid transparent;
}
.v-menue a:hover { color: var(--tiefblau); border-bottom-color: var(--coverblau-hell); }
.v-menue a[aria-current="page"] { color: var(--tiefblau); font-weight: 650; border-bottom-color: var(--gelb); }
.v-menueknopf { display: none; }

/* Startseite: Bühne mit Bücherregal */
.v-buehne { background: var(--tiefblau); color: var(--weiss); overflow: hidden; }
.v-buehne-innen {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end;
	padding-top: 4.5rem;
}
.v-buehne-text { padding-bottom: 4.5rem; max-width: 34rem; }
.v-buehne h1 { color: var(--weiss); margin-bottom: .5em; font-weight: 750; }
.v-buehne p { font-size: 1.125rem; color: #dfe5f7; }
.v-buehne .v-knopf { margin-top: .75rem; }

.v-regal {
	position: relative; min-width: 0;
	display: flex; align-items: flex-end; justify-content: flex-start; gap: .75rem;
	padding: 0 1rem 1.35rem;
}
.v-regal::after {
	/* das Regalbrett */
	content: ""; position: absolute; left: 0; right: -30vw; bottom: 0; height: 1.35rem;
	background: var(--gelb);
	box-shadow: 0 -1px 0 rgba(255,255,255,.35) inset;
}
.v-regal-buch { display: block; flex: 1 1 0; min-width: 0; max-width: 12.5rem; transition: transform .25s ease; }
.v-regal-buch img {
	display: block; width: 100%; height: auto;
	border-radius: 1px 3px 3px 1px;
	box-shadow: -6px 0 0 -3px rgba(0,0,0,.18) inset, 6px 10px 22px rgba(0,0,0,.45);
}
.v-regal-buch:nth-child(2) { max-width: 11.75rem; }
.v-regal-buch:nth-child(4) { max-width: 12rem; }
.v-regal-buch:hover { transform: translateY(-.5rem); }
@media (prefers-reduced-motion: reduce) { .v-regal-buch { transition: none; } .v-regal-buch:hover { transform: none; } }

/* Verlagsprogramm */
.v-programm { padding: 4.5rem 0 3rem; }
.v-programm > .v-breite > h2 { margin-bottom: 1.5rem; }
.v-titelliste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tiefblau); }
.v-titel {
	display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.25rem;
	padding: 2.5rem 0; border-bottom: 1px solid var(--linie);
}
.v-titel-cover img {
	display: block; width: 100%; border-radius: 1px 3px 3px 1px;
	box-shadow: 4px 8px 18px rgba(13, 26, 99, .22);
}
.v-autor { color: var(--tinte-leise); font-size: .95rem; margin-bottom: .35rem; }
.v-titel h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .6rem; max-width: 40rem; }
.v-titel h3 a { color: var(--tiefblau); text-decoration: none; }
.v-titel h3 a:hover { text-decoration: underline; }
.v-anriss { max-width: 42rem; color: var(--tinte); }
.v-anriss p { margin-bottom: .6em; }
.v-anriss img { display: none; }

.v-ausgaben {
	list-style: none; margin: 1.25rem 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem;
	max-width: 44rem;
}
.v-ausgaben li {
	background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--tiefblau);
	border-radius: 3px; padding: 1rem 1.1rem 1.1rem;
	display: flex; flex-direction: column;
}
.v-ausgabe-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; }
.v-ausgabe-name { font-weight: 700; font-size: 1.1rem; color: var(--tiefblau); text-decoration: none; }
.v-ausgabe-name:hover { text-decoration: underline; }
.v-preis { font-weight: 700; font-size: 1.1rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.v-ausgabe-daten { font-size: .9rem; color: var(--tinte-leise); margin: .25rem 0 .2rem; font-variant-numeric: lining-nums; }
.v-status { font-size: .9rem; color: var(--erfolg); margin: 0 0 .8rem; }
.v-status::before {
	content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
	background: currentColor; margin-right: .45rem; vertical-align: .1em;
}
.v-kaufen {
	margin-top: auto; align-self: flex-start;
	display: inline-block; background: var(--tiefblau); color: var(--weiss);
	padding: .55rem .95rem; border-radius: 3px; text-decoration: none; font-size: .95rem; font-weight: 600;
}
.v-kaufen:hover { background: var(--coverblau); color: var(--weiss); }

/* Band unter dem Programm */
.v-band { background: var(--coverblau-hell); padding: 3.5rem 0; }
.v-band-innen { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.v-band h2 { font-size: 1.5rem; }
.v-band p { max-width: 32rem; }

/* Buchseite */
.v-pfad { font-size: .95rem; color: var(--tinte-leise); padding: 1.75rem 0 0; }
.v-pfad span[aria-hidden] { margin: 0 .35rem; }
.v-buch {
	display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3.5rem;
	padding: 2rem 0 3.5rem; align-items: start;
}
.v-buch-cover { position: sticky; top: 1.5rem; }
.v-buch-cover img {
	display: block; width: 100%; border-radius: 2px 4px 4px 2px;
	box-shadow: -8px 0 0 -4px rgba(0,0,0,.14) inset, 8px 14px 30px rgba(13, 26, 99, .28);
}
.v-buch h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem); color: var(--tiefblau); max-width: 38rem; }
.v-ausgabe-zusatz { font-weight: 400; color: var(--tinte-leise); font-size: .7em; white-space: nowrap; }
.v-daten {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0;
	margin: 1.5rem 0; border-top: 1px solid var(--linie); max-width: 42rem;
}
.v-daten div { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--linie); }
.v-daten dt { font-size: .85rem; color: var(--tinte-leise); }
.v-daten dd { margin: 0; font-weight: 600; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.v-statustext { max-width: 42rem; }
.v-aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2.5rem; }
.v-aktionen .v-knopf:not(.v-knopf-leise) { background: var(--tiefblau); border-color: var(--tiefblau); color: var(--weiss); }
.v-aktionen .v-knopf:not(.v-knopf-leise):hover { background: var(--coverblau); border-color: var(--coverblau); }
.v-beschreibung { border-top: 2px solid var(--tiefblau); padding-top: 1.75rem; max-width: 42rem; }
.v-beschreibung h2 { font-size: 1.5rem; }

.v-weitere { border-top: 1px solid var(--linie); padding: 2.5rem 0 4rem; }
.v-weitere h2 { font-size: 1.5rem; }
.v-weitere ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.75rem; }
.v-weitere a { display: block; text-decoration: none; color: var(--tinte); font-size: .95rem; line-height: 1.4; }
.v-weitere a:hover span { text-decoration: underline; color: var(--tiefblau); }
.v-weitere img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; margin-bottom: .7rem; border-radius: 1px 3px 3px 1px; box-shadow: 3px 6px 14px rgba(13,26,99,.2); }

/* Textseiten */
.v-seiteninhalt { padding-top: 3rem; padding-bottom: 4.5rem; }
.v-seiteninhalt h1 { color: var(--tiefblau); max-width: 42rem; }
.v-text { max-width: 42rem; }
.v-text h2 { font-size: 1.5rem; margin-top: 1.6em; }
.v-text h3 { font-size: 1.2rem; margin-top: 1.5em; }
.v-text ul, .v-text ol { padding-left: 1.3rem; margin: 0 0 1em; }
.v-text li { margin-bottom: .35em; }
.v-text em { font-style: italic; }
.v-text table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.v-text td, .v-text th { border: 1px solid var(--linie); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.v-text img { border-radius: 2px; }
.v-text .k-tabelle { overflow-x: auto; }

.v-hinweis { background: var(--gelb); color: var(--tiefblau); padding: .6rem 1rem; margin: 1.25rem 0 0; font-weight: 600; border-radius: 3px; }

/* Kontaktformular */
.v-formular {
	background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--tiefblau);
	border-radius: 3px; padding: 1.75rem; margin: 1.5rem 0;
}
.v-feld { margin-bottom: 1.15rem; }
.v-feld label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: 1rem; }
.v-feld input, .v-feld textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--tinte);
	background: var(--weiss); border: 1px solid #aeb7cf; border-radius: 3px; padding: .65rem .75rem;
}
.v-feld textarea { resize: vertical; min-height: 9rem; }
.v-feld input:focus, .v-feld textarea:focus { outline: 3px solid var(--coverblau); outline-offset: 0; border-color: var(--tiefblau); }
.v-feld-fehler input, .v-feld-fehler textarea { border-color: var(--fehler); }
.v-feldfehler { color: var(--fehler); font-size: .9rem; margin: .3rem 0 0; }
.v-fehlerhinweis { color: var(--fehler); font-weight: 600; margin-bottom: 1.25rem; }
.v-datenschutz { font-size: .9rem; color: var(--tinte-leise); }
.v-formular .v-knopf { background: var(--tiefblau); border-color: var(--tiefblau); color: var(--weiss); }
.v-formular .v-knopf:hover { background: var(--coverblau); border-color: var(--coverblau); }
.v-unsichtbar { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.v-erfolg { background: #e5f4ec; border-left: 4px solid var(--erfolg); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 3px; }
.v-erfolg p { margin: 0; }

/* Fuß */
.v-fuss { background: var(--tiefblau-dunkel); color: #cfd6ee; padding: 3rem 0 3.5rem; font-size: .95rem; }
.v-fuss-innen { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.v-fuss a { color: var(--weiss); text-decoration: none; }
.v-fuss a:hover { text-decoration: underline; color: var(--gelb); }
.v-fuss ul { list-style: none; margin: 0; padding: 0; }
.v-fuss li { margin-bottom: .45rem; }
.v-fuss-marke { color: var(--weiss); font-weight: 700; font-size: 1.1rem; }

/* Mobil */
@media (max-width: 960px) {
	.v-buehne-innen { grid-template-columns: 1fr; gap: 1rem; padding-top: 3rem; }
	.v-buehne-text { padding-bottom: 1rem; }
	.v-regal { justify-content: flex-start; }
	.v-buch { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2.25rem; }
}
@media (max-width: 760px) {
	body { font-size: 1rem; }
	.v-kopf-innen { gap: .75rem; }
	.v-menueknopf {
		flex-shrink: 0;
		display: inline-flex; align-items: center; gap: .5rem;
		font: inherit; font-weight: 600; color: var(--tiefblau); background: none;
		border: 2px solid var(--tiefblau); border-radius: 3px; padding: .4rem .8rem; cursor: pointer;
	}
	.v-menueknopf::before {
		content: ""; width: 1rem; height: .7rem;
		border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
		background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
	}
	.v-menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: 0 12px 24px rgba(13,26,99,.12); }
	.v-menue.offen { display: block; }
	.v-menue ul { flex-direction: column; padding: .5rem 1.25rem 1rem; gap: 0; }
	.v-menue a { padding: .8rem 0; border-bottom: 1px solid var(--linie); }
	.v-menue a[aria-current="page"] { border-bottom-color: var(--linie); box-shadow: inset 4px 0 0 var(--gelb); padding-left: .8rem; }
	.v-marke-text { font-size: 1.1rem; }
	.v-regal { gap: .55rem; padding-left: 0; padding-right: 0; }
	.v-regal-buch:nth-child(n+4) { display: none; }
	.v-titel { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; padding: 2rem 0; }
	.v-ausgaben { grid-column: 1 / -1; }
	.v-titel-text { display: contents; }
	.v-titel-text > :not(.v-ausgaben) { grid-column: 2; }
	.v-titel-cover { grid-row: 1 / span 3; }
	.v-anriss { grid-column: 1 / -1 !important; }
	.v-band-innen { grid-template-columns: 1fr; gap: 1.5rem; }
	.v-buch { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.25rem; }
	.v-buch-cover { position: static; max-width: 12rem; }
	.v-fuss-innen { grid-template-columns: 1fr; }
	.v-formular { padding: 1.25rem; }
}

@media print {
	.v-kopf, .v-fuss, .v-regal, .v-band, .v-weitere, .v-aktionen, .v-kaufen, .v-sprung { display: none !important; }
	body { background: #fff; color: #000; }
	.v-buehne { background: none; color: #000; }
	.v-buehne h1, .v-buehne p { color: #000; }
}
