/* Juristenkoffer.de – gemeinsamer Kopf- und Fußbereich (Kommentarvermietung, RefNews, Ref-Infoseiten, Richter-Infoseiten) */

:root {
	--r-tinte: #1b2540;
	--r-blau: #3d5b99;
	--r-blau-dunkel: #2f4a82;
	--r-orange: #ff8000;
	--r-orange-hell: #ffa040;
	--r-papier: #f2f2ea;
	--r-weiss: #ffffff;
	--r-text-leise: #5b6478;
	--r-schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--r-breite: 1200px;
}

/* Die alten Stylesheets begrenzen html/body auf 1200 px – der neue Rahmen reicht über die ganze Breite */
html.r-neu, html.r-neu body { max-width: none; width: auto; height: auto; margin: 0; background: var(--r-papier); }
html.r-neu body { min-height: 100vh; }
html.r-neu #wrapper { max-width: var(--r-breite); margin: 0 auto; padding-top: 0 !important; height: auto; }
html.r-neu #content { min-height: 0; background: var(--r-weiss); }
/* Banner und orangefarbenes Menü der alten Seiten werden durch den neuen Kopf ersetzt */
html.r-neu .slideshow, html.r-neu #menu_haupt { display: none !important; }
html.r-neu .inhalt { padding-top: 8px; }

.r-bereich, .r-fuss, .r-sprung { font-family: var(--r-schrift); line-height: 1.4; -webkit-font-smoothing: antialiased; }
.r-bereich *, .rw-oben *, .r-fuss * { box-sizing: border-box; }
.r-bereich ul, .r-fuss ul { list-style: none; margin: 0; padding: 0; }
.r-bereich a, .r-fuss a { text-decoration: none; }
.r-breite { max-width: var(--r-breite); margin: 0 auto; padding: 0 24px; }
.r-symbol { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.r-sprung { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--r-orange); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.r-sprung:focus { top: 12px; }

/* Farbleiste der Referendarswelt */
.r-farbleiste { display: flex; height: 4px; }
.r-farbleiste span { flex: 1; }
.r-farbleiste span:nth-child(1), .r-farbleiste span:nth-child(9) { background: #9ff392; }
.r-farbleiste span:nth-child(2), .r-farbleiste span:nth-child(10) { background: #da4935; }
.r-farbleiste span:nth-child(3), .r-farbleiste span:nth-child(11) { background: #92f3dd; }
.r-farbleiste span:nth-child(4), .r-farbleiste span:nth-child(13) { background: #567ef0; }
.r-farbleiste span:nth-child(5) { background: #6cebef; }
.r-farbleiste span:nth-child(6), .r-farbleiste span:nth-child(12) { background: #e7e13f; }
.r-farbleiste span:nth-child(7) { background: #4e9edc; }
.r-farbleiste span:nth-child(8) { background: #ffb72c; }

/* Referendarswelt-Leiste: wie auf allen Seiten der Referendarswelt, bleibt beim Scrollen oben */
.rw-oben { position: sticky; top: 0; z-index: 900; max-width: var(--r-breite); margin: 0 auto; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.rw-oben::after {
	/* Schatten unter der Leiste wie bisher */
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 17px; pointer-events: none;
	background: url("https://www.juristenkoffer.de/images/schatten.png") center bottom / 100% 87px no-repeat;
}
.rw-kopf { display: flex; justify-content: space-between; align-items: center; height: 89px; padding: 15px 0 0 2%; box-sizing: border-box; }
.rw-logo { display: block; line-height: 0; padding-top: 3px; align-self: flex-start; }
.rw-logo img { display: block; width: 264px; height: auto; }
.rw-symbole { display: flex; align-self: flex-start; }
.rw-symbole a { display: flex; flex-direction: column; align-items: center; width: 65px; text-decoration: none; position: relative; }
.rw-symbole a + a::before { content: ""; position: absolute; left: 0; top: 2px; height: 52px; border-left: 1px solid #a09f9c; }
.rw-symbole img { display: block; width: 34px; height: auto; }
.rw-symbole span { font-size: 8pt; line-height: 1.15; color: #a09f9c; text-align: center; margin-top: 4px; }
.rw-symbole a:hover span { color: #6f6e6b; }

/* Juristenkoffer-Leiste */
.r-bereich { position: relative; max-width: var(--r-breite); margin: 0 auto; background: var(--r-blau); }
.r-bereich-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 0 20px 0 2%; }
.r-marke { display: block; line-height: 0; flex-shrink: 0; border-radius: 9px; }
.r-marke img { height: 54px; width: auto; display: block; }
.r-menue { flex: 1; display: flex; }
/* Das alte Menü-Skript (mmenu) blendet sonst alle nav-Elemente aus */
.rw-oben nav.rw-symbole, .r-bereich nav.r-menue { display: flex; }
.r-fuss nav.r-fuss-spalte { display: block; }
.r-hauptmenue { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.r-hauptmenue a { position: relative; display: block; padding: 10px 13px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .005em; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.r-hauptmenue a:hover { background: rgba(255, 255, 255, .12); }
.r-hauptmenue a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--r-orange); }
/* Kommentare mieten ist das Hauptangebot und steht als Knopf vorn */
.r-punkt-offer { margin-right: 8px; }
.r-punkt-offer a { background: var(--r-orange); color: #fff; padding: 10px 16px; }
.r-punkt-offer a:hover { background: var(--r-orange-hell); }
.r-punkt-offer a[aria-current="page"]::after { background: #fff; }
.r-menueknopf { display: none; }
.r-bereich a:focus-visible, .r-bereich button:focus-visible, .rw-oben a:focus-visible, .r-fuss a:focus-visible { outline: 3px solid var(--r-orange); outline-offset: 2px; }

/* Fuß */
.r-fuss { background: var(--r-tinte); color: #c8cede; font-size: 14.5px; margin-top: 48px; }
.r-fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 44px; }
.r-fuss-marke { display: inline-block; line-height: 0; margin-bottom: 18px; }
.r-fuss-marke img { height: 52px; width: auto; }
.r-fuss-ueber p { margin: 0 0 12px; line-height: 1.6; max-width: 34em; }
.r-fuss-ueber a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.r-fuss h2 { font-family: var(--r-schrift); font-size: 13px; font-weight: 700; color: #fff; margin: 4px 0 14px; letter-spacing: .02em; }
.r-fuss-spalte li { margin-bottom: 9px; }
.r-fuss-spalte a { color: #c8cede; }
.r-fuss-spalte a:hover, .r-fuss-recht a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.r-fuss-recht { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.r-fuss-recht-innen { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; }
.r-fuss-recht p { margin: 0; color: #8f98ae; }
.r-fuss-recht ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.r-fuss-recht a { color: #c8cede; }

/* Mittlere Breiten */
@media (max-width: 1120px) {
	.r-hauptmenue a { padding: 10px 9px; font-size: 14.5px; }
	.r-punkt-offer a { padding: 10px 13px; }
	.r-bereich-innen { gap: 14px; }
	.r-marke img { height: 46px; }
}

/* Tablet und Handy: Leiste der Referendarswelt über die ganze Breite (wie bisher), Menü hinter einem Knopf */
@media (max-width: 960px) {
	.r-breite { padding: 0 16px; }
	.r-bereich-innen { min-height: 62px; padding: 0 12px 0 16px; }
	.r-marke img { height: 44px; }
	.r-menueknopf {
		display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
		background: rgba(255, 255, 255, .14); color: #fff; border: 0; font: 600 15px var(--r-schrift); cursor: pointer;
	}
	.r-menueknopf[aria-expanded="true"] { background: #fff; color: var(--r-blau); }
	.r-bereich nav.r-menue {
		display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 800;
		background: #fff; box-shadow: 0 16px 32px rgba(20, 30, 60, .22);
		flex-direction: column; padding: 8px 16px 20px;
	}
	.r-bereich nav.r-menue.offen { display: flex; }
	.r-hauptmenue { flex-direction: column; align-items: stretch; gap: 0; }
	.r-hauptmenue li { border-bottom: 1px solid #ecebe4; }
	.r-hauptmenue a { color: var(--r-tinte); padding: 14px 4px; font-size: 16px; border-radius: 0; }
	.r-hauptmenue a:hover { background: none; color: var(--r-blau); }
	.r-hauptmenue a[aria-current="page"] { color: var(--r-blau); }
	.r-hauptmenue a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
	.r-punkt-offer { margin: 12px 0 6px; border-bottom: 0 !important; }
	.r-punkt-offer a { color: #fff; text-align: center; border-radius: 8px; padding: 13px; }
	.r-punkt-offer a:hover { color: #fff; background: var(--r-orange-hell); }
	.r-fuss-raster { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 36px; }
	.r-fuss-ueber { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
	.rw-oben { max-width: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
	.rw-oben::after { display: none; }
	.rw-kopf { height: auto; padding: 6px 2%; align-items: center; }
	.rw-logo { padding: 0; align-self: center; }
	.rw-logo img { width: auto; height: 40px; }
	.rw-symbole { align-self: center; flex-wrap: wrap; justify-content: center; }
	.rw-symbole a { width: 59px; height: 70px; padding-top: 8px; box-sizing: border-box; }
	.rw-symbole a + a::before { top: 0; height: 70px; }
	.rw-symbole span { font-size: 9pt; }
}
@media (max-width: 620px) {
	.rw-logo { display: none; }
	.rw-kopf { justify-content: center; }
}
@media (max-width: 560px) {
	.r-fuss-raster { grid-template-columns: 1fr; }
	.r-fuss-recht-innen { flex-direction: column; align-items: flex-start; }
}

@media print {
	.rw-oben, .r-bereich, .r-fuss { display: none !important; }
}
