/* Share the Shares — Design im Stil von boslerboerse.de (Editorial Dark Premium) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0b0d10;
  --bg-elev: #14171c;
  --bg-elev-2: #1a1d22;
  --accent: #00e676;
  --accent-deep: #00c853;
  --accent-soft: rgba(0, 230, 118, 0.06);
  --accent-line: rgba(0, 230, 118, 0.25);
  --gold: #c9a96a;
  --text: #ffffff;
  --text-soft: #c8c5be;
  --muted: #8a8780;
  --muted-2: #666;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --error: #ff5252;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Eyebrow-Label ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Headlines ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--accent); }
.lead {
  color: var(--text-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 8px;
}

section { padding: clamp(80px, 9vw, 120px) 0; border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
header.site nav { display: flex; gap: 26px; font-size: 14px; color: var(--text-soft); }
header.site nav a:hover { color: #fff; }
@media (max-width: 720px) { header.site nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent); color: #04130a;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 30px rgba(0, 230, 118, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 12px 38px rgba(0, 230, 118, 0.34); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
  border-top: 0;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 40% at 50% 0%, var(--accent-soft), transparent 72%);
  opacity: 0.7;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.12; font-size: clamp(30px, 4.4vw, 50px); margin: 14px 0 20px;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: clamp(15px, 1.3vw, 18px); margin-bottom: 28px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Zweispaltiger Hero mit "neueste Geste"-Karte rechts */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-text { min-width: 0; }

.hero-latest {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-latest:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-line);
}
.hero-latest .hl-img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0e1014;
}
.hero-latest .hl-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(11, 13, 16, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent-line);
  padding: 5px 10px;
  border-radius: 999px;
}
.hero-latest .hl-body { padding: 16px 20px 18px; }
.hero-latest .hl-stock {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hero-latest .hl-story {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-latest .hl-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ---------- Manifest / Prinzip ---------- */
.principle { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .principle { grid-template-columns: 1fr; } }
.chain { display: flex; flex-direction: column; gap: 14px; }
.chain .link {
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  background: var(--bg-elev); border-radius: 12px; padding: 18px 20px;
}
.chain .link b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.chain .link span { color: var(--muted); font-size: 14px; display: block; margin-top: 3px; }
.chain .arrow { color: var(--accent); text-align: center; font-size: 18px; opacity: 0.7; }

/* ---------- Galerie ---------- */
.gallery { columns: 3 300px; column-gap: 22px; }
@media (max-width: 720px) { .gallery { columns: 1; } }
.card {
  break-inside: avoid; margin-bottom: 22px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card img { width: 100%; height: auto; background: #0e1014; }
.card .body { padding: 18px 20px 22px; }
.card .stock { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.card .stock b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.card .ticker { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.card .gift { color: var(--text-soft); font-size: 14px; margin-bottom: 10px; }
.card .gift .label { color: var(--gold); }
.card .story { color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.card .meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card .meta b { color: var(--text-soft); font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-family: var(--mono); font-size: 13px; }

/* ---------- Formular ---------- */
.form-wrap { max-width: 760px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: 11px; color: #fff; font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Einwilligung */
.consent { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 20px 22px; }
.consent h4 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin-bottom: 8px; }
.consent p { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.radio input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.radio span { font-size: 14px; color: var(--text-soft); }
.radio span b { color: #fff; font-weight: 500; }

/* Dropzone */
.drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 34px; text-align: center; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .icon { font-size: 26px; margin-bottom: 8px; }
.drop .t { font-size: 15px; }
.drop .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .previews { grid-template-columns: 1fr; } }
.previews:empty { display: none; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #0e1014; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: rgba(11, 13, 16, 0.78);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.thumb-x:hover { background: var(--error); }

.card-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.card-thumb {
  display: block; flex: 1;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  transition: border-color 0.15s ease;
}
.card-thumb:hover { border-color: var(--accent-line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.formmsg { margin-top: 16px; padding: 14px 18px; border-radius: 11px; font-size: 14px; display: none; }
.formmsg.ok { display: block; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.formmsg.err { display: block; background: rgba(255, 82, 82, 0.08); border: 1px solid rgba(255, 82, 82, 0.3); color: var(--error); }

/* ---------- Footer (Stil von boslerboerse.de) ---------- */
footer.site { border-top: 1px solid var(--line); padding: 72px 0 44px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 880px) { footer.site .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site .flogo { height: 30px; width: auto; margin-bottom: 18px; }
footer.site .blurb { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 360px; }
footer.site h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; font-weight: 500; }
footer.site .fcol a { display: block; color: var(--muted); padding: 6px 0; font-size: 14px; transition: color 0.15s ease; }
footer.site .fcol a:hover { color: var(--accent); }
footer.site .legal { padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--muted-2); }
footer.site .legal .sts { color: var(--muted); display: block; margin-bottom: 8px; }
.note { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.disclaimer { margin-top: 14px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.admin-bar .tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 14px; }
.admin-bar .tab.active { background: #fff; color: #0b0d10; border-color: #fff; }
.admin-bar .count { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.mod-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 22px; display: grid; grid-template-columns: 300px 1fr; }
@media (max-width: 700px) { .mod-card { grid-template-columns: 1fr; } }
.mod-card img { width: 100%; height: 100%; object-fit: cover; max-height: 360px; }
.mod-card .info { padding: 20px 24px; }
.mod-card .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 6px; letter-spacing: 0.05em; }
.tag.consent-ok { background: rgba(0, 230, 118, 0.12); color: var(--accent); }
.tag.consent-none { background: rgba(255, 255, 255, 0.08); color: var(--text-soft); }

/* ---------- Galerie: Karten als anklickbare Detail-Trigger ---------- */
.card[data-entry-index] { cursor: pointer; }
.card[data-entry-index]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-thumb { padding: 0; background: none; }
.card-thumb { cursor: pointer; }

/* ---------- Lightbox / Detail-Ansicht ---------- */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 7, 10, 0.82);
  backdrop-filter: blur(10px);
}

.lb-wrap {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  align-items: stretch;
}

.lb-card {
  position: relative;
  width: 100%;
  max-height: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
@media (max-width: 820px) {
  .lb-card { grid-template-columns: 1fr; max-height: calc(100vh - 32px); overflow: hidden; }
}

.lb-media {
  background: #0a0c0f;
  display: flex; flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
.lb-main-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #0a0c0f;
  display: block;
}
@media (max-width: 820px) {
  .lb-media { max-height: 55vh; }
  .lb-main-img { max-height: 50vh; }
}

.lb-thumbs {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex-wrap: wrap;
  justify-content: center;
}
.lb-thumb {
  border: 1.5px solid var(--line);
  background: #0e1014;
  padding: 0; border-radius: 8px; overflow: hidden;
  width: 72px; height: 54px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.lb-thumb.is-active { border-color: var(--accent); }

.lb-info {
  padding: clamp(20px, 2.5vw, 32px);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
@media (max-width: 820px) {
  .lb-info { max-height: 45vh; }
}
.lb-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 6px 0 22px;
}
.lb-fields { display: flex; flex-direction: column; gap: 18px; }
.lb-field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.lb-field-value {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.lb-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.85);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 3;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lb-close:hover { border-color: var(--accent); }

.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.85);
  color: #fff;
  font-family: var(--serif);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 3;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev { left: -10px; }
.lb-next { right: -10px; }
@media (max-width: 820px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
