/* Jahreiß-Gitarren – site styles. Mobile first; no framework. */

:root {
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #1d1d1b;
  --muted: #6b6a66;
  --line: #e2dfd8;
  --band: #f4f2ed;
  --accent: #8a5a2b;
  --accent-dark: #6d4420;
  --ok: #2f6b3a;
  --radius: 6px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::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;
  font-family: var(--text);
  font-size: clamp(18px, 1.05rem + 0.2vw, 19.5px);
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
/* Lining figures in headings, so "№ 11" does not read as "№ II". */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.3rem, 1.7rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1em; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* One text column: prose, lists, tables and forms in narrow sections share both edges. */
.container--narrow { max-width: calc(660px + 2 * var(--gutter)); }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.site-logo img { width: 150px; height: auto; }
.site-nav { display: none; width: 100%; flex-direction: column; border-top: 1px solid var(--line); padding-top: 8px; }
.site-nav a { padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); }
.site-header.is-open .site-nav { display: flex; }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
@media (min-width: 760px) {
  .site-header__inner { flex-wrap: nowrap; padding-top: 18px; padding-bottom: 18px; }
  .site-logo img { width: 190px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; width: auto; flex-direction: row; gap: clamp(14px, 2.5vw, 32px); border-top: 0; padding-top: 0; }
  .site-nav a { padding: 6px 0; border-bottom: 2px solid transparent; font-size: 1rem; }
  .site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--accent); }
}

/* Sections */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--band { background: var(--band); }
.section__title { text-align: center; margin-bottom: 0.8em; }
.section__lead { text-align: center; color: var(--muted); max-width: 640px; margin: -0.4em auto 1.6em; }
.section__more { text-align: center; margin-top: 2em; }
.prose { max-width: 70ch; margin: 0 auto; }
.container--narrow .prose { max-width: none; }
.prose p { margin-bottom: 1.1em; }
.prose h1, .prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-top: 1.6em; }
.prose--legal { font-size: 0.95rem; }
.prose--legal h1 { margin-top: 2em; }
.trix-content .attachment-gallery { display: none; }

/* Hero */
.hero { padding: clamp(28px, 5vw, 56px) 0 0; text-align: center; }
.hero__slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); color: var(--muted); margin: 0 0 0.2em; }
.hero__title { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.2rem); margin-bottom: 0.25em; }
.hero__subline { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.slideshow { position: relative; display: grid; margin-top: clamp(24px, 4vw, 40px); aspect-ratio: 4 / 3; max-height: 75vh; overflow: hidden; background: #1d1d1b; border-radius: var(--radius); }
.slideshow__slide { grid-area: 1 / 1; opacity: 0; transition: opacity 1.6s ease-in-out; }
.slideshow__slide.is-active { opacity: 1; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow__toggle { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(29, 29, 27, 0.45); color: #fff; cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease, background 0.2s ease; }
.slideshow__toggle[hidden] { display: none; }
.slideshow__toggle:hover, .slideshow__toggle:focus-visible { opacity: 1; background: rgba(29, 29, 27, 0.7); }
.slideshow__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Pause symbol: two bars; play symbol: a triangle. */
.slideshow__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.slideshow__toggle.is-stopped .slideshow__icon { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
@media (min-width: 760px) {
  .slideshow { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow__slide { transition-duration: 0.4s; }
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 3vw, 28px); }
@media (min-width: 900px) {
  .card-grid--cols-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
  .card-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
  .card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card { display: block; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); color: inherit; }
.card__media { aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #efece6, #efece6 10px, #f6f4ef 10px, #f6f4ef 20px); }
.card__body { padding: 14px 16px 16px; }
.card__title { font-size: 1.2rem; margin: 0 0 0.2em; }
.card__meta { margin: 0; color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

.badge { display: inline-block; font-variant-numeric: lining-nums; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; background: var(--band); color: var(--muted); white-space: nowrap; }
.badge--verfuegbar { background: #e6f2e8; color: var(--ok); }
.badge--verkauft { background: #f1efeb; color: #7a7872; }
.badge--kundenauftrag { background: #f0e8df; color: var(--accent-dark); }

/* Guitar page */
.breadcrumb { margin-bottom: 1.2em; font-size: 0.95rem; }
.guitar__header { text-align: center; max-width: 760px; margin: 0 auto clamp(24px, 4vw, 40px); }
.guitar__title { margin-bottom: 0.4em; }
.guitar__year { color: var(--muted); }
.guitar__specs { font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.5; margin: 1em 0; }
.guitar__cta { margin-top: 1.2em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); grid-auto-flow: dense; gap: 10px; }
.gallery__item { display: block; background: var(--band); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item--portrait { aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery__item:hover img { transform: scale(1.02); }
@media (min-width: 760px) { .gallery__item--portrait { grid-row: span 2; aspect-ratio: auto; } }
.video { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.video video, .sample video { max-height: 75vh; margin: 0 auto; background: #000; border-radius: var(--radius); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: rgba(12, 12, 12, 0.96); color: #fff; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox__figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { margin-top: 10px; color: #ccc; font-size: 0.95rem; min-height: 1.4em; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* Lists on the homepage */
.festivals { margin-top: 2em; border-top: 1px solid var(--line); padding-top: 1.5em; }
.festivals__intro { font-weight: 600; }
.festivals__list { list-style: none; padding: 0; margin: 0; }
.festivals__list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.festivals__period { color: var(--muted); white-space: nowrap; }
.samples { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.sample__title { font-size: 1.15rem; text-align: center; }
.sample audio { width: 100%; }
.player__ui { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; background: var(--band); border: 1px solid var(--line); border-radius: 999px; }
.player__ui[hidden] { display: none; }
.player__button { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.player__button:hover { background: var(--accent-dark); }
.player__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Play symbol: a triangle; pause symbol: two bars. */
.player__icon { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.player__button.is-playing .player__icon { width: 11px; height: 13px; margin-left: 0; border-width: 0 3px; border-color: currentColor; }
.player__seek { flex: 1 1 auto; min-width: 0; height: 4px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 2px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--progress, 0%), var(--line) var(--progress, 0%)); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.player__seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.player__time { flex: 0 0 auto; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); font-size: 0.95rem; }
.sample--video video { width: min(100%, 420px); }
.prices__title { margin-top: 1.8em; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.prices th, .prices td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.prices td { text-align: right; white-space: nowrap; padding-left: 16px; }
.references { list-style: none; padding: 0; margin: 0; }
.references li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 2em; }
.contact-link { font-size: 1.05rem; }
.contact-form { margin: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c9c5bc; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; margin: 0; }
.field input[type="file"] { padding: 8px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__privacy { font-size: 0.9rem; color: var(--muted); }
.button, input[type="submit"].button { display: inline-block; font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 22px; cursor: pointer; text-decoration: none; }
.button:hover, input[type="submit"].button:hover { background: var(--accent-dark); color: #fff; }
.button--secondary { background: #fff; color: var(--ink); border: 1px solid #c9c5bc; }
.button--secondary:hover { background: var(--band); color: var(--ink); }
.button--small { padding: 6px 12px; font-size: 0.9rem; }
.button--danger { background: #b23b3b; }
.button--danger:hover { background: #8e2d2d; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; background: var(--band); }
.flash--alert { background: #fbe9e7; color: #8e2d2d; }
.flash--notice { background: #e6f2e8; color: var(--ok); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.95rem; color: var(--muted); text-align: center; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: inherit; }
