/* Jörg Schlosser Guitars – gemeinsames Stylesheet für alle Seiten */

:root {
	--orange: #D85B07;
	--orange-text: #D86316;
	--orange-link: #D84E04;
	--orange-hover: #FC8341;
	--button-border: #914315;
	--bg: #000;
	/* Abstand des orangen Rahmens vom Seitenrand: 100px von 1200px in den Originalgrafiken */
	--frame-inset: 8.3333%;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--orange);
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a,
a:visited {
	color: var(--orange-link);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--orange-hover);
}

.site {
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
}

/* ---------- Navigation ---------- */

.nav-strip {
	aspect-ratio: 1200 / 22;
	background: url(../img/menue_top.jpg) center top / 100% auto no-repeat;
}

.nav {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 0;
	padding: 0 10.5% 0 10.4%;
}

.nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 38px;
	border: 2px solid var(--button-border);
	border-top: 0;
	border-radius: 0 0 7px 7px;
	background: linear-gradient(#000 0, #111 50%, #000 100%);
	/* Leuchten unter den Buttons (war früher fest ins Kopfbild eingebrannt) */
	box-shadow: 0 3px 10px rgba(216, 91, 7, 0.6);
	color: var(--orange);
	font-size: 13px;
	white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
	color: var(--orange-hover);
	font-weight: bold;
}

/* Lücke vor "Einblicke" wie im Original */
.nav .nav-gap {
	margin-left: auto;
}

/* ---------- Kopf, Rahmen, Fuß ---------- */

.header {
	line-height: 0;
}

.header img {
	width: 100%;
}

/* Die obersten 6 Bildzeilen (Oberkante des Logos) liegen wie im Original
   in der Lücke zwischen den Buttons. 6px von 1200px Breite = 0.5%. */
@media (min-width: 1001px) {
	.header {
		margin-top: -0.5%;
	}
}

/*
   Die Rahmenlinien kommen aus der Originalgrafik (aus center.jpg geschnitten),
   damit sie nahtlos an Kopf- und Fußbild anschließen: frame_top.jpg führt die
   runde Ecke des Kopfbilds fort, frame_mid.jpg wiederholt sich nach unten.
   Beide werden wie Kopf und Fuß auf die volle Breite skaliert.
*/
.frame {
	/* Linie bei 100-105px von 1200px, dazu 20px Abstand wie im Original */
	padding: 40px calc(var(--frame-inset) + 4px + 2%);
	background:
		url(../img/frame_top.jpg) center top / 100% auto no-repeat,
		url(../img/frame_mid.jpg) center top / 100% auto repeat-y,
		#000;
}

.footer-art {
	aspect-ratio: 1200 / 80;
	background: url(../img/footer.jpg) center top / 100% auto no-repeat;
}

/* links Instagram/Facebook, rechts die Beteiligten */
.footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 6px 9.5% 60px;
	text-align: right;
	font-size: 12px;
	font-weight: bold;
}

/* Beteiligte nebeneinander mit Trennstrich, auf dem Handy untereinander */
.credits span + span::before {
	content: " | ";
}

.social {
	display: flex;
	gap: 6px;
	margin-left: -3px;
}

.social a {
	display: block;
	padding: 3px;
	line-height: 0;
}

/* Symbol als Maske, eingefärbt mit der Linkfarbe (heller beim Hover) */
.social a::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.social-instagram {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.2' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

.social-facebook {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 0a12 12 0 1 0 0 24a12 12 0 1 0 0-24Z M10.2 24V13.4H7.6V10h2.6V7.8c0-2.9 1.7-4.4 4.4-4.4 1 0 1.8.1 2.1.15V6.6h-1.6c-1.2 0-1.5.6-1.5 1.5V10h3l-.5 3.4h-2.5V24Z'/%3E%3C/svg%3E");
}

/* ---------- Inhalte ---------- */

h1 {
	margin: 0 0 1.2em;
	font-size: 21px;
	font-weight: normal;
	text-align: center;
}

h2 {
	margin: 1.6em 0 0.6em;
	font-size: 17px;
}

.lead {
	max-width: 850px;
	color: var(--orange-text);
	font-size: 22px;
	font-style: italic;
	line-height: 1.35;
}

.lead p {
	margin: 0 0 1.2em;
}

.signature {
	display: block;
	margin: 0 0 24px auto;
}

.wide-image {
	display: block;
	width: 100%;
}

.button {
	display: inline-block;
	margin-top: 1em;
	padding: 10px 18px;
	border: 1px solid var(--button-border);
	border-radius: 3px;
	box-shadow: inset 0 -1px 0 #a04607;
	font-size: 14px;
}

.button:hover,
.button:focus-visible {
	font-weight: bold;
}

/* unsichtbare fette Kopie des Textes (data-label) reserviert die Breite,
   damit der Button beim Hover nicht breiter wird und nichts verrutscht */
.button[data-label]::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: bold;
}

/* Kontakt / Impressum */

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	justify-content: center;
}

.contact-photo {
	width: 260px;
}

.address {
	font-style: normal;
	text-align: center;
}

.address strong {
	font-style: italic;
}

.note {
	margin-top: 2.5em;
	text-align: center;
	font-size: 14px;
}

/* Service-Preisliste */

.prices {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	border-collapse: collapse;
}

.prices th,
.prices td {
	padding: 6px 0;
	vertical-align: top;
	text-align: left;
	font-weight: normal;
}

.prices th[scope="rowgroup"],
.prices th[scope="rowgroup"] + td {
	padding-top: 1.4em;
	font-weight: bold;
}

.prices th[scope="rowgroup"] + td {
	font-weight: normal;
}

.prices td.price {
	padding-left: 1.5em;
	text-align: right;
	white-space: nowrap;
}

.prices ul {
	margin: 0.3em 0 0;
	padding-left: 1.2em;
}

.prices .sub {
	padding-left: 1.2em;
}

/* Galerie (Einblicke) */

/*
   Jede Reihe (.set) zeigt die vier Bilder eines Instruments unbeschnitten in
   gleicher Höhe nebeneinander: jedes Bild wächst im Verhältnis seines
   Seitenverhältnisses --r (Breite/Höhe), so füllt die Reihe genau die Breite.
   Auf dem Handy wird jede Reihe in zwei Zeilen à zwei Bilder (.pair) geteilt.
*/
.gallery {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.set {
	display: flex;
	gap: 16px;
}

.pair {
	display: contents;
}

.set a {
	flex: var(--r) 1 0;
	min-width: 0;
	line-height: 0;
}

.set img {
	display: block;
	width: 100%;
	height: auto;
}

/* Instrumente */

.models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 32px;
}

.models a {
	display: block;
	text-align: center;
}

.models img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: 8px;
}

.model {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

.model-image {
	flex: 0 1 554px;
	line-height: 0;
}

.model-image img {
	width: 100%;
}

.specs {
	flex: 1 1 300px;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 2px 24px;
	margin: 0;
}

.specs dt {
	grid-column: 1;
}

.specs dd {
	grid-column: 2;
	margin: 0;
}

/* Leerzeile nach "Modell" wie im Original */
.specs dt:nth-of-type(2),
.specs dd:nth-of-type(2) {
	margin-top: 1em;
}

.thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 32px;
	max-width: 554px;
}

.thumbs a {
	line-height: 0;
}

.thumbs img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1000px) {
	.nav a {
		width: auto;
		flex: 1 1 0;
	}

	.nav .nav-gap {
		margin-left: 4%;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 15px;
	}

	/* Grafiken seitlich so beschneiden, dass der Rahmen bis an den Bildschirmrand reicht */
	.nav-strip,
	.footer-art {
		background-size: 120% auto;
	}

	.nav-strip {
		aspect-ratio: 1000 / 22;
	}

	.footer-art {
		aspect-ratio: 1000 / 80;
	}

	.header {
		overflow: hidden;
	}

	.header img {
		width: 120%;
		max-width: none;
		margin-left: -10%;
	}

	/* Buttons hängen direkt an der Leiste bzw. an der Reihe darüber */
	.nav {
		flex-wrap: wrap;
		gap: 0 6px;
		padding: 0 12px 8px;
	}

	.nav a {
		flex: 1 1 30%;
		height: 42px;
		font-size: 13px;
	}

	.nav .nav-gap {
		margin-left: 0;
	}

	.frame {
		padding: 24px 16px;
		background-size: 120% auto, 120% auto, auto;
	}

	.footer {
		flex-direction: column;
		padding: 6px 16px 40px;
		text-align: center;
		line-height: 1.7;
	}

	.social {
		gap: 14px;
		margin-left: 0;
	}

	.social a::before {
		width: 26px;
		height: 26px;
	}

	.credits span {
		display: block;
	}

	.credits span + span::before {
		content: none;
	}

	.lead {
		font-size: 18px;
	}

	.signature {
		width: 160px;
	}

	/* größerer Abstand zwischen den Instrumenten als innerhalb einer Reihe */
	.gallery {
		gap: 22px;
	}

	.set {
		flex-direction: column;
		gap: 6px;
	}

	.pair {
		display: flex;
		gap: 6px;
	}

	.thumbs {
		gap: 10px;
	}

	.contact {
		gap: 24px;
	}

	.contact-photo {
		width: 220px;
	}
}
