/* ─────────────────────────────────────────────
   ohoya — shared styles for /guide/ and /datenschutz/
   Reuses the main site's design tokens.
───────────────────────────────────────────── */
:root {
  --obsidian:  #1C1D1F;
  --amber:     #E6A12C;
  --amber-glow:#ffb45a;
  --white:     #FFFFFF;
  --arch-gray: #F4F4F6;
  --border:    #eaeaea;
  --muted:     #888;
  --ink:       #2a2b2e;
  --mono:      'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; background: var(--white); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.g-container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 420px) {
  .g-container { padding: 0 1.1rem; }
}

/* ── Skip link / focus */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--amber); color: var(--obsidian);
  padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── Header */
.g-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.g-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.g-logo {
  display: inline-flex;
  align-items: center;
}
.g-logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.g-cta {
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  background: var(--amber); color: var(--obsidian); text-decoration: none;
  padding: 0.55rem 1.1rem; border-radius: 7px; transition: opacity 0.2s; white-space: nowrap;
}
.g-cta:hover { opacity: 0.9; }

/* ── Header nav (between logo and CTA) */
.g-nav {
  display: flex; align-items: center; gap: 2rem;
}
.g-nav a {
  font-size: 0.68rem; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  opacity: 0.6; transition: opacity 0.2s; white-space: nowrap;
}
.g-nav a:hover { opacity: 1; }

/* ── Mobile hamburger */
.g-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; flex-direction: column; gap: 5px;
}
.g-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--obsidian);
  transition: transform 0.25s, opacity 0.25s;
}
.g-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.g-hamburger.open span:nth-child(2) { opacity: 0; }
.g-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.g-nav-mobile {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(28,29,31,0.97); backdrop-filter: blur(14px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; padding: 2rem;
}
.g-nav-mobile.open { display: flex; }
.g-nav-mobile a {
  font-family: 'Jost', 'Be Vietnam Pro', sans-serif; font-weight: 200;
  font-size: clamp(1.4rem, 5.5vw, 2rem); letter-spacing: 0.12em;
  color: rgba(255,255,255,0.82); text-decoration: none;
  transition: color 0.2s;
}
.g-nav-mobile a:hover, .g-nav-mobile a:focus { color: var(--amber); }
.g-nav-mobile-cta {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important; font-weight: 500 !important;
  letter-spacing: 0.14em !important; text-transform: uppercase;
  color: var(--obsidian) !important; background: var(--amber);
  padding: 0.8rem 2rem; text-decoration: none !important;
  border-radius: 4px; margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .g-nav { display: none; }
  .g-cta { display: none; }
  .g-hamburger { display: flex; }
}

/* ── Language picker */
.g-right { display: flex; align-items: center; gap: 0.8rem; }
.g-lang { position: relative; }
.g-lang-btn {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500;
  background: none; border: 1px solid var(--border); border-radius: 7px;
  color: var(--obsidian); padding: 0.4rem 0.65rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  transition: border-color 0.2s;
}
.g-lang-btn:hover { border-color: var(--amber); }
.g-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12); padding: 0.3rem; min-width: 150px;
  display: none;
}
.g-lang-menu.open { display: block; }
.g-lang-menu button {
  display: block; width: 100%; text-align: left;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--obsidian);
  background: none; border: none; border-radius: 6px; cursor: pointer;
  padding: 0.5rem 0.7rem;
}
.g-lang-menu button:hover,
.g-lang-menu button[aria-current="true"] { background: rgba(0,0,0,0.05); }

/* ── Article */
/* Use separate top/bottom padding so .g-container's 1.5rem side padding isn't overridden */
.g-article { padding-top: 3rem; padding-bottom: 2rem; }
.g-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.g-article h1 {
  font-family: 'Jost', 'Be Vietnam Pro', sans-serif; font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15;
  color: var(--obsidian); margin-bottom: 1.1rem; letter-spacing: -0.01em;
}
.g-lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 2rem; font-weight: 300; }
.g-article h2 {
  font-family: 'Jost', 'Be Vietnam Pro', sans-serif; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--obsidian);
  margin: 2.6rem 0 1rem; letter-spacing: -0.01em;
}
.g-article h3 {
  font-family: 'Jost', 'Be Vietnam Pro', sans-serif; font-weight: 400; font-size: 1.2rem;
  color: var(--obsidian); margin: 1.8rem 0 0.7rem;
}
.g-article p { margin-bottom: 1.2rem; }
.g-article ul, .g-article ol { margin: 0 0 1.4rem 1.3rem; }
.g-article li { margin-bottom: 0.55rem; }
.g-article strong { font-weight: 600; color: var(--obsidian); }
.g-article a:not(.g-cta):not(.btn-inline) {
  color: #b9791a; text-decoration: underline; text-underline-offset: 2px;
}
.g-rule { width: 48px; height: 2px; background: var(--amber); margin: 0 0 2rem; }

/* ── Callout / CTA box */
.g-callout {
  background: var(--arch-gray); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem 1.7rem; margin: 2.4rem 0;
}
.g-callout h3 { margin-top: 0; }
.g-callout p:last-child { margin-bottom: 0; }
.btn-inline {
  display: inline-block; margin-top: 0.4rem;
  background: var(--obsidian); color: var(--white); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; padding: 0.7rem 1.4rem; border-radius: 8px;
  transition: opacity 0.2s;
}
.btn-inline:hover { opacity: 0.9; }
.btn-inline.amber { background: var(--amber); color: var(--obsidian); }

/* ── Key facts table */
.g-facts { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2rem; font-size: 0.95rem; }
.g-facts th, .g-facts td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.g-facts th { font-weight: 600; color: var(--obsidian); width: 38%; }

/* ── Related links */
.g-related { margin: 2.6rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.g-related h2 { margin-top: 0; }
.g-related ul { list-style: none; margin-left: 0; }
.g-related a { font-weight: 400; }

/* ── Article figures / illustrations */
.g-figure { margin: 2.4rem 0; }
.g-figure img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.g-figure svg { max-width: 100%; height: auto; display: block; }
.g-figure figcaption {
  font-size: 0.82rem; color: var(--muted); margin-top: 0.65rem;
  text-align: center; font-style: italic; line-height: 1.5;
}

/* ── Guide index (hub) */
.guide-index { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.guide-index li {
  border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1.4rem;
  transition: border-color 0.2s;
}
.guide-index li:hover { border-color: var(--amber); }
.guide-index a { text-decoration: none; display: block; }
.guide-index a strong {
  font-family: 'Jost', 'Be Vietnam Pro', sans-serif; font-weight: 400; font-size: 1.2rem;
  color: var(--obsidian); display: inline-block; margin-bottom: 0.3rem;
}
.guide-index li:hover a strong { color: #b9791a; }
.guide-index a p { margin: 0; color: var(--ink); font-size: 0.95rem; }

/* ── Footer */
.g-footer { background: var(--obsidian); color: rgba(255,255,255,0.7); margin-top: 3rem; }
.g-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.4rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.g-footer a, .g-footer button.cc-reopen { color: rgba(255,255,255,0.7); text-decoration: none; }
.g-footer a:hover { color: var(--amber); }
.g-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.cc-reopen { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }

/* ── Cookie consent banner (shared with main site) */
.cc-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9998;
  max-width: 760px; margin: 0 auto;
  background: var(--obsidian); color: var(--white);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 1.1rem 1.3rem; display: none; flex-direction: column; gap: 0.9rem;
  font-size: 0.9rem; line-height: 1.5;
}
.cc-banner.show { display: flex; }
.cc-text { color: rgba(255,255,255,0.85); }
.cc-text a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cc-btn {
  flex: 1 1 auto; min-width: 130px; padding: 0.7rem 1.2rem; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 500; border: 1px solid transparent;
  transition: opacity 0.2s, background 0.2s;
}
.cc-accept { background: var(--amber); color: var(--obsidian); border-color: var(--amber); }
.cc-accept:hover { opacity: 0.9; }
.cc-decline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.cc-decline:hover { background: rgba(255,255,255,0.08); }
@media (min-width: 620px) {
  .cc-banner { flex-direction: row; align-items: center; gap: 1.3rem; }
  .cc-actions { flex: 0 0 auto; }
  .cc-btn { flex: 0 0 auto; min-width: 0; }
}
