/* ============================================================
   HeyduckKeramik — temporäre Landingpage
   Design-Tokens: siehe Variablen unten. Rot ist ausschließlich
   für den Status "verkauft" reserviert — sonst nirgends im Design.
   ============================================================ */

/* space-grotesk-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/space-grotesk-v22-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ibm-plex-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-mono-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* work-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/work-sans-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/work-sans-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
  /* Farben — angelehnt an Rohton (--bg), gebrannte Scherbe (--ink)
     und die Regale selbst: weiß mit schwarzer Kante (--shelf-*) */
  /*--bg: #f6f5f1;*/
  --bg: #fff;
  --paper: #ffffff;
  --ink: #1c1b18;
  --ink-soft: #55534c;
  --line: #d8d5cb;
  --line-strong: #1c1b18;

  --red: #b8242b;      /* ausschließlich: verkauft */
  --amber: #ad7a2e;    /* ausschließlich: reserviert */
  --green-ring: #1c1b18; /* verfügbar = Ring in Tinte, kein Extra-Farbton */

  --shelf-white: #ffffff;
  --shelf-black: #1c1b18;

  --radius-s: 2px;
  --maxw: 1080px;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { 	scroll-behavior: smooth; 
		scrollbar-gutter: stable;
	}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:not(.btn):not(.marker) { text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  border-bottom: 3px solid var(--line-strong);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index:100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav.main-nav a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Abschnitte ---------- */

section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

section.block:last-of-type { border-bottom: none; }

.block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.block .col-text {
  max-width: 62ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.note-box {
  border: 1px solid var(--line-strong);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--paper);
}

.note-box strong { font-family: var(--font-body); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 3px solid var(--line-strong);
  padding: 32px 0 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a { text-decoration: underline; }

/* ============================================================
   Regal-Seite: Fotos + generative Status-Marker
   ============================================================ */

.legend {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 28px 0 44px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.legend-item { display: flex; align-items: center; gap: 9px; }

.legend-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink);
  flex: none;
}

.legend-dot.verfuegbar { background: transparent; }
.legend-dot.reserviert { background: var(--amber); border-color: var(--amber); }
.legend-dot.verkauft { background: var(--red); border-color: var(--red); }

.regal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.regal-item h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.regal-photo-wrap {
  position: relative;
  background: var(--shelf-white);
  border: 3px solid var(--shelf-black);
  padding: 10px;
  line-height: 0;
}

.regal-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.regal-photo-wrap.no-photo {
  aspect-ratio: 4 / 3;
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.no-photo-msg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

/* Marker — Position wird per JS als inline style (left/top in %) gesetzt */

.marker {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.marker:hover,
.marker:focus-visible {
  background: rgba(255, 255, 255, 0.75);
}

.marker.reserviert {
  border-color: var(--amber);
  background: var(--amber);
  opacity: 0.9;
  cursor: default;
}

.marker.verkauft {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 36, 43, 0.18);
  cursor: default;
}

.marker .tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 9px;
  border-radius: var(--radius-s);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.marker:hover .tooltip,
.marker:focus-visible .tooltip {
  opacity: 1;
}

.regal-empty-msg {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 20px;
  border: 1px dashed var(--line-strong);
}

/* Debug-Modus (regal.html?debug=1) */

.debug-readout {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 12px 16px;
  max-width: 300px;
  z-index: 50;
  line-height: 1.5;
}

.debug-readout strong { color: var(--red); }

body.debug-mode .regal-photo-wrap img { cursor: crosshair; }
