/*
Theme Name: Fluchtmond Builder
Description: Guitar catalogue with editable text, photo galleries and MP4 videos.
Version: 1.3.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fluchtmond-baukasten
License: GPL-2.0-or-later
*/
@font-face {
  font-family: Roboto;
  src: url("assets/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("assets/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("assets/roboto-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #131318;
  --accent: #a9b7ff;
  --paper: #efebe4;
  --cream: #f5f1ea;
  --muted: #bcb9c4;
  --gutter: clamp(18px, 5vw, 76px);
  --section-space: clamp(60px, 8vw, 115px);
  font-family: Roboto, system-ui, sans-serif;
  background: var(--ink);
  color: var(--cream);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h2 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.frame {
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
}
.section-inner {
  padding-block: var(--section-space);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 12px 16px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  border-bottom: 1px solid #34343e;
}
.header-inner {
  min-height: 130px;
  padding-block: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.header-inner > .button {
  justify-self: end;
}
.brand {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-art {
  display: block;
  position: relative;
  overflow: hidden;
  width: clamp(180px, 21vw, 250px);
  max-width: 100%;
  aspect-ratio: 1190 / 550;
  flex: 0 0 auto;
}
.brand-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-art-original img {
  position: absolute;
  width: 172.10084%;
  max-width: none;
  height: auto;
  max-height: none;
  left: -36.13445%;
  top: -32.72727%;
  object-fit: unset;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  padding-block: 13px;
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
}
.main-nav a:hover {
  color: var(--cream);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.button-outline {
  background: transparent;
  border-color: #656571;
  color: var(--cream);
}
.button-outline:hover {
  background: #333341;
}
.button-primary {
  background: var(--accent);
  color: #141525;
}
.button-primary:hover {
  filter: brightness(1.1);
}
.button-dark {
  background: #232135;
  color: #fffdf7;
}
.button-dark:hover {
  background: #3b395b;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  font-weight: 700;
  font-size: 1rem;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  min-height: clamp(565px, 45vw, 690px);
  margin-block: clamp(22px, 3.1vw, 46px) clamp(26px, 4vw, 60px);
  border: 1px solid #373641;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(30px, 5.15vw, 78px);
  background:
    radial-gradient(ellipse at 5% 105%, #252740 0%, transparent 62%),
    linear-gradient(140deg, #1c1c25 0%, #16161e 75%);
}
.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 38px);
}
.hero h1 {
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  letter-spacing: -0.055em;
  font-weight: 900;
  line-height: 0.97;
  overflow-wrap: anywhere;
}
.hero-intro {
  margin-top: 26px;
  max-width: 36ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: #d0cdd6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.hero-photo {
  min-width: 0;
}
.hero-photo-link {
  display: block;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  border: 0;
  padding: 0;
  background: #b69e86;
  color: var(--cream);
}
.hero-photo-link > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}
.hero-photo-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #17151ce8;
  border: 1px solid #ffffff35;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 0.875rem;
}
.paper {
  color-scheme: light;
  background: var(--paper);
  color: #201f25;
}
.paper :focus-visible {
  outline-color: #3d4ba1;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 40px;
}
.section-heading p {
  max-width: 35ch;
  color: #56525b;
  line-height: 1.6;
  font-size: 1.05rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.gallery-card {
  min-width: 0;
}
.gallery-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #c1ad96;
}
.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.2s;
}
.gallery-photo:hover img {
  transform: scale(1.025);
}
.empty-photo {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  color: #332f3b;
}
.card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.card-heading h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.card-heading h3 a {
  text-decoration: none;
}
.instrument-status {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.2;
}
.status-available {
  color: #38734c;
}
.status-reserved {
  color: #8b6028;
}
.status-sold {
  color: #fff;
  background: #9c2441;
  border-color: #9c2441;
  padding: 9px 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.photo-status {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.photo-status .status-sold {
  font-size: 1.125rem;
  padding: 11px 18px;
  box-shadow: 0 3px 14px #0003;
}
.status-example {
  color: #6d6581;
}
.price {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-block: 15px;
}
.price-label {
  font-size: 0.875rem;
  opacity: 0.8;
}
.price strong {
  font-size: 1.5rem;
  line-height: 1.2;
}
.price-note {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
}
.card-actions {
  display: grid;
  gap: 14px;
  border-top: 1px solid #cbc3b9;
  margin-top: 6px;
  padding-top: 16px;
}
.card-actions .button {
  width: 100%;
  text-align: center;
}
.contact-section {
  background: #1c1c26;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
  align-items: center;
}
.contact-text {
  max-width: 43ch;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.08rem;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.contact-actions .button {
  background: var(--accent);
  color: #141525;
}
.email-address {
  display: block;
  width: fit-content;
  margin-top: 10px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.empty-note {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}
.site-footer {
  border-top: 1px solid #34343e;
}
.footer-inner {
  min-height: 115px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 24px;
}
.footer-note {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.875rem;
}
.detail-page {
  background: var(--paper);
  color-scheme: light;
  color: #201f25;
}
.detail-page :focus-visible {
  outline-color: #3d4ba1;
}
.detail-back {
  margin-bottom: 24px;
}
.detail-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 35px;
}
.detail-heading h1 {
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.section-label {
  font-size: 1rem;
  letter-spacing: 0.025em;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 15px;
}
.detail-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.photo-button {
  padding: 0;
  display: block;
  border: 0;
  background: #c1ad96;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.photo-button:first-child {
  grid-column: 1/-1;
  aspect-ratio: 4/5;
}
.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instrument-info {
  border: 1px solid #cbc3b9;
  background: #f8f5ef;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 4px;
}
.instrument-info > .price {
  margin-top: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #d3ccc4;
}
.instrument-info > .price strong {
  font-size: 2rem;
}
.description {
  font-size: 1rem;
  line-height: 1.65;
  margin-block: 24px;
}
.description p + p {
  margin-top: 14px;
}
.detail-contact {
  margin-top: 24px;
}
.instrument-info > .detail-contact:first-child {
  margin-top: 0;
}
.detail-contact .button-contact {
  width: 100%;
}
.video-section {
  margin-top: 65px;
}
.video-section > h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}
.video-card {
  max-width: 1000px;
  margin: 20px 0 0;
}
.video-card figcaption {
  font-weight: 700;
  margin-bottom: 10px;
}
.video-card video {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: #0d0d13;
  border-radius: 4px;
  aspect-ratio: 16/9;
}
.not-found {
  padding-block: 90px;
}
.not-found h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}
.not-found p {
  margin-block: 20px;
}
.photo-viewer {
  color-scheme: dark;
  color: var(--cream);
  background: #1a1922;
  padding: 0;
  width: min(850px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  border: 1px solid #666277;
  border-radius: 5px;
}
.photo-viewer::backdrop {
  background: #08080de8;
}
.viewer-inner {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.viewer-header,
.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.viewer-title {
  font-weight: 700;
  font-size: 1rem;
}
.viewer-stage {
  background: #101017;
}
.viewer-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: contain;
}
.photo-count {
  font-size: 0.875rem;
}
.preview-ribbon {
  background: #2c304b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px var(--gutter);
  font:
    400 0.875rem/1.5 Roboto,
    system-ui;
}
.preview-ribbon a {
  font-weight: 700;
}
@media (max-width: 1000px) {
  .hero-copy {
    padding-inline: 35px;
  }
  .hero {
    min-height: 530px;
  }
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 35px;
  }
  .hero h1 {
    font-size: clamp(3.6rem, 12vw, 6rem);
  }
  .hero-photo-link {
    height: clamp(330px, 95vw, 550px);
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-grid,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    gap: 20px;
  }
  .main-nav {
    display: none;
  }
}
@media (max-width: 530px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
  }
  .header-inner > .button {
    padding-inline: 12px;
  }
  .brand-art {
    width: clamp(145px, 44vw, 190px);
  }
  .hero-copy {
    padding: 26px 22px;
  }
  .hero h1 {
    font-size: 3.65rem;
  }
  .hero-intro {
    margin-top: 18px;
    font-size: 1rem;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 8px 16px;
  }
  .eyebrow {
    font-size: 0.875rem;
    margin-bottom: 18px;
    letter-spacing: 0.09em;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gallery-photo {
    aspect-ratio: 5/6;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-photos {
    gap: 9px;
  }
  .viewer-header {
    align-items: flex-start;
  }
  .viewer-actions .button {
    font-size: 0.875rem;
    padding-inline: 9px;
  }
  .preview-ribbon {
    font-size: 0.875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.legal-page{max-width:960px;min-height:60vh}.legal-page h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.1;margin-bottom:35px}.page-content{font-size:1rem;line-height:1.7}.page-content p{margin-block:16px}.page-content h2{font-size:2rem;letter-spacing:0;margin-block:30px 15px}
