/* Tresor Bonn – static rebuild */

@font-face {
  font-family: "Francois One";
  src: url("../fonts/francois-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1b1d19;
  --panel: rgba(34, 36, 32, 0.92);
  --panel-solid: #30342d;
  --side: rgba(20, 21, 19, 0.94);
  --text: #e9e7df;
  --muted: #b2b2b2;
  --accent: #a5a146;      /* olive – buttons, links */
  --accent-dark: #7e7b30;
  --red: #d75959;         /* headings */
  --red-dark: #a04443;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 4px;
  --maxw: 1100px;
  --font-head: "Francois One", "Arial Narrow", Impact, sans-serif;
  --font-body: "Roboto Slab", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) url("../img/background.webp") center / cover fixed no-repeat;
  color: var(--text);
  font: 300 1rem/1.7 var(--font-body);
}
/* iOS ignores background-attachment: fixed – use a fixed pseudo layer instead */
@supports (-webkit-touch-callout: none) {
  body { background: var(--bg); }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/background.webp") center / cover no-repeat;
  }
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c9c463; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { color: var(--red); font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { color: var(--red); font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
h3 { color: var(--accent); font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 0.5em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header { padding-top: 24px; }
.banner {
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.banner img { width: 100%; }

.nav {
  background: var(--panel-solid);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.75em 1.4em;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav a[aria-current="page"] { background: var(--accent); color: #111; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 32px;
  flex: 1;
}
.content { background: var(--panel); padding: 36px 40px 40px; min-width: 0; }
.sidebar { background: var(--side); padding: 32px 26px; border-left: 1px solid var(--border); }

main.wrap { flex: 1; }

.lead {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: #d9a24f;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: 1.2em;
}

.sign-off { margin-top: 1.5em; }
.uws { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; margin: 1.5em 0 0; }
.uws img { border-radius: var(--radius); }
.uws p { font-family: var(--font-head); text-transform: uppercase; font-size: 1.2rem; margin: 0; }
.uws p span { display: block; font-family: var(--font-body); text-transform: none; font-size: 1rem; color: var(--muted); }

.section { margin-top: 2.5em; padding-top: 2em; border-top: 1px solid var(--border); }

.shop-teaser { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.shop-teaser img { background: #fff; border-radius: var(--radius); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.6em 1.4em;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.btn:hover { background: #c9c463; color: #111; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--ghost:hover { background: rgba(165, 161, 70, 0.15); color: #c9c463; }

/* ---------- Sidebar ---------- */
.sidebar h2 { font-size: 1.25rem; color: var(--accent); }
.sidebar .block + .block { margin-top: 2em; }
.hours { margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0 0 0.4em; color: var(--muted); }
.address { font-style: normal; }
.social {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--text); text-decoration: none;
}
.social svg { width: 28px; height: 28px; fill: #1877f2; background: #fff; border-radius: 50%; }
.social:hover { color: #fff; }

/* ---------- Click-to-load embeds (GDPR) ---------- */
.embed {
  position: relative;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed iframe { display: block; width: 100%; border: 0; }
.embed--map iframe { height: 260px; }
.embed--shop iframe { height: 1280px; background: #fff; }
.embed__consent { padding: 18px; font-size: 0.85rem; color: var(--muted); }
.embed__consent p { margin-bottom: 0.8em; }
.embed__consent .btn { font-size: 0.9rem; }
.embed__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal h3 { margin-top: 1.2em; font-size: 1.05rem; }
.legal ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(0, 0, 0, 0.85);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 64px 20px 0;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.to-top {
  position: fixed; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #111; text-decoration: none;
  font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; border-top: 3px solid var(--accent); }
  .content { padding: 28px 20px 32px; }
  .sidebar { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .site-header { padding-top: 0; }
  .site-header.wrap { padding: 0; }
  main.wrap { padding: 0; }
  .banner { border-radius: 0; }
  .shop-teaser, .uws { grid-template-columns: 1fr; }
  .shop-teaser img { max-width: 260px; }
  .uws img { max-width: 200px; }
  .nav a { flex: 1; text-align: center; }
  .embed--shop iframe { height: 1600px; }
}

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