/* Ordessa Hilfe — Atelier-Noir-Stil (passend zur Marketing-Site) */

:root {
  --bg: #f5f4f2;
  --bg-warm: #e8e6e1;
  --paper: #ffffff;
  --ink: #0a0a0b;
  --ink-soft: #3d3d3f;
  --ink-faint: #82817f;
  --aubergine: #0a0a0b;
  --champagne: #b8a07a;
  --champagne-soft: #e0d4b8;
  --rose: #c4ac8c;
  --rose-deep: #8c7758;
  --line: #dcd9d4;
  --line-soft: #eceae5;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--rose-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a:hover {
  color: var(--aubergine);
  border-bottom-color: var(--rose);
}

/* Topbar */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--aubergine);
  border: none;
}
.brand .dot {
  color: var(--rose-deep);
  font-style: normal;
}
.topnav {
  display: flex;
  gap: 28px;
}
.topnav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: none;
}
.topnav a.active {
  color: var(--rose-deep);
}

/* Topbar-Burger (nur mobile) */
.topbar-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--aubergine);
  transition: background 0.2s, border-color 0.2s;
}
.topbar-burger:hover {
  background: var(--bg-warm);
  border-color: var(--aubergine);
}
.topbar-burger svg {
  width: 18px;
  height: 18px;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1280px;
  margin: 0 auto;
  gap: 48px;
  padding: 48px 32px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar-head-mobile {
  display: none;
}
.sidebar .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 12px;
}
.sidebar input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 20px;
}
.sidebar input[type="search"]:focus {
  outline: none;
  border-color: var(--aubergine);
}
.sidebar .modules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar .modules .group {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 16px 0 6px;
}
.sidebar .modules a {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  border: none;
}
.sidebar .modules a:hover {
  background: var(--bg-warm);
  color: var(--aubergine);
}
.sidebar .modules a.active {
  background: var(--aubergine);
  color: var(--paper);
}
.sidebar .footer-note {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-faint);
}

/* Content */
.content {
  max-width: 720px;
}
.content .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 16px;
}
.content h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--aubergine);
  margin: 0 0 24px;
}
.content h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--aubergine);
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}
.content h2 a.anchor {
  border: none;
  opacity: 0;
  margin-left: 8px;
  font-size: 0.7em;
  color: var(--ink-faint);
}
.content h2:hover a.anchor {
  opacity: 1;
}
.content h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin: 36px 0 10px;
  color: var(--aubergine);
}
.content p {
  margin: 0 0 16px;
}
.content ul,
.content ol {
  padding-left: 20px;
  margin: 0 0 16px;
}
.content li {
  margin-bottom: 6px;
}
.content strong {
  color: var(--aubergine);
}
.content code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--bg-warm);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--rose-deep);
}
.content blockquote {
  border-left: 3px solid var(--champagne);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
  color: var(--ink-soft);
  font-style: italic;
}
.content img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
  background: var(--paper);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.content img + em {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 13px;
  margin: -10px 0 24px;
}

/* Schritt-Listen — wenn ein <ol> direkt nach „Schritt für Schritt"-Heading kommt,
   stylen wir die als nummerierte Bubbles. */
.content ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}
.content ol li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
  margin-bottom: 16px;
}
.content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aubergine);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 500;
}

/* Tipps-Box */
.content .tip {
  background: var(--champagne-soft);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.content .tip strong:first-child {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}

/* Related-Footer */
.content .related {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.content .related p:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

/* Cookie-Hinweis */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--aubergine);
  color: var(--bg-warm);
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.cookie-notice-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cookie-notice p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-notice a {
  color: var(--rose);
  border-bottom: 1px solid currentColor;
}
.cookie-notice a:hover {
  color: var(--bg-warm);
}
.cookie-notice button {
  background: var(--bg-warm);
  color: var(--aubergine);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-notice button:hover {
  background: var(--rose);
}

/* Footer */
.sitefoot {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}

/* Backdrop (nur mobile sichtbar) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(10, 10, 11, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body.nav-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 860px) {
  .topbar {
    padding: 14px 18px;
  }
  .topnav {
    display: none;
  }
  .topbar-burger {
    display: inline-flex;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  /* Sidebar wird Off-Canvas-Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 86vw);
    max-height: 100vh;
    background: var(--paper);
    padding: 20px 22px 28px;
    box-shadow: -12px 0 40px rgba(10, 10, 11, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 20;
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-head-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .sidebar .eyebrow-desktop {
    display: none;
  }
  .sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: background 0.2s;
  }
  .sidebar-close:hover {
    background: var(--bg-warm);
  }
  .sidebar-close svg {
    width: 20px;
    height: 20px;
  }
}

/* Größere Touch-Targets für Sidebar-Links auf mobile */
@media (max-width: 860px) {
  .sidebar .modules a {
    padding: 11px 12px;
    font-size: 15px;
  }
}
