/* ══════════════════════════════
   DOCS LAYOUT
══════════════════════════════ */

/* Hero banner – centered to match header, with rounded corners */
.hero_banner {
  max-width: 1200px;
  margin: 24px auto;
  border-radius: 13.5px;
  overflow: hidden;
}

/* Outer shell – full width, carries the sidebar background strip */
.docs_wrapper {
  display: flex;
  align-items: flex-start;
  min-height: 80vh;
  position: relative;
}

/* Inner centering container – mirrors header's max-width */
.docs_inner {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
}

/* ── Sidebar ── */
.docs_sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 28px 16px 48px;
  border-right: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #fafafa;
  display: none; /* mobile: hidden by default */
}

/* scrollbar styling */
.docs_sidebar::-webkit-scrollbar { width: 4px; }
.docs_sidebar::-webkit-scrollbar-track { background: transparent; }
.docs_sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.docs_sidebar_group {
  margin-bottom: 24px;
}

.docs_sidebar_label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #aaa;
  padding: 0 10px;
  margin-bottom: 6px;
}

.docs_nav_item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #444;
  font-size: 13.5px;
  font-weight: 400;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 2px;
}
.docs_nav_item span { font-size: 15px; flex-shrink: 0; }
.docs_nav_item:hover { background: rgba(85,201,81,0.08); color: #2a8a27; }
.docs_nav_item.active {
  background: rgba(85,201,81,0.13);
  color: #1f7a1c;
  font-weight: 600;
}

/* ── Mobile toggle button ── */
.docs_mobile_toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: var(--header-height, 56px);
  z-index: 990; /* below header (1001) but above page content */
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 20px;
  height: 48px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: #444;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
}
.docs_mobile_toggle #docs_mobile_toggle_label {
  flex: 1;
  text-align: left;
}
.docs_mobile_toggle .docs_toggle_chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #aaa;
}
.docs_mobile_toggle.open {
  color: #1f7a1c;
  background: rgba(85,201,81,0.06);
  border-bottom-color: #55c951;
}
.docs_mobile_toggle.open .docs_toggle_chevron {
  transform: rotate(180deg);
  color: #55c951;
}

/* ── Overlay backdrop ── */
.docs_sidebar_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 995;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.docs_sidebar_overlay.open {
  display: block;
}

/* Mobile: sidebar slides in as drawer */
.docs_sidebar.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(300px, 85vw);
  z-index: 1000;
  box-shadow: 6px 0 32px rgba(0,0,0,0.15);
  padding-top: 0;
  overflow-y: auto;
  /* Slide-in animation */
  animation: docs_sidebar_slide_in 0.25s ease;
}

@keyframes docs_sidebar_slide_in {
  from { transform: translateX(-100%); opacity: 0.6; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* Sidebar header bar (mobile only) */
.docs_sidebar_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.docs_sidebar_header_title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
}
.docs_sidebar_close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s;
}
.docs_sidebar_close:hover { background: #e0e0e0; }

/* ── Main Content ── */
.docs_content {
  flex: 1;
  padding: 24px 16px 56px;
  max-width: 760px;
  min-width: 0; /* prevent overflow */
  overflow-x: hidden;
}

/* ── Section ── */
.docs_section { scroll-margin-top: 80px; }

.docs_section_tag {
  display: inline-block;
  background: rgba(85,201,81,0.12);
  color: #2a8a27;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 13.5px;
  margin-bottom: 10px;
}

.docs_section h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 600;
  color: #130D0C;
  line-height: 1.15;
  margin: 0 0 14px;
}
.docs_section h2 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: #130D0C;
  line-height: 1.2;
  margin: 0 0 14px;
}
.docs_section h3 {
  font-size: clamp(14px, 2vw, 19px);
  font-weight: 600;
  color: #1f1f1f;
  margin: 24px 0 8px;
}
.docs_section p {
  font-size: clamp(13px, 1.8vw, 15.5px);
  color: #444;
  line-height: 1.75;
  margin: 0 0 14px;
}
.docs_intro {
  font-size: clamp(14px, 2vw, 17px) !important;
  color: #333 !important;
  margin-bottom: 20px !important;
}

/* Info box */
.docs_info_box {
  display: flex;
  gap: 12px;
  background: rgba(85,201,81,0.08);
  border-left: 3px solid #55c951;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.docs_info_box > span { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.docs_info_box p { margin: 0; font-size: 13.5px; color: #2a6e28; line-height: 1.6; }
.docs_info_box a { color: #1f7a1c; font-weight: 600; }

/* Warning box */
.docs_warn_box {
  display: flex;
  gap: 12px;
  background: rgba(255, 193, 7, 0.08);
  border-left: 3px solid #f0b400;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.docs_warn_box > span { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.docs_warn_box p { margin: 0; font-size: 13.5px; color: #7a5800; line-height: 1.6; }

/* Step list */
.docs_steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: steps;
}
.docs_steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: clamp(13px, 1.8vw, 15px);
  color: #444;
  line-height: 1.6;
  counter-increment: steps;
}
.docs_steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: #55c951;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Image placeholder for screenshots */
.docs_img_placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: 13.5px;
  background: #f4f4f4;
  border: 1px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0;
}
.docs_img_placeholder span { font-size: 2.5rem; }

/* Divider */
.docs_divider {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 40px 0;
}

/* Placeholder state */
.docs_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  border-radius: 13.5px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  text-align: center;
}
.docs_placeholder span { font-size: 2rem; }
.docs_placeholder p { margin: 0; color: #aaa; font-size: 14px; }

/* ── Type Cards (AG-Wahl vs. Umfrage) ── */
.docs_type_cards {
  display: grid;
  gap: 12px;
  margin: 16px 0 28px;
}
.docs_type_card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f9f9f9;
  border: 1px solid #ebebeb;
  border-radius: 13.5px;
  padding: 16px 18px;
}
.docs_type_card_icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(85,201,81,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.docs_type_card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #130D0C;
  margin-bottom: 5px;
}
.docs_type_card p {
  margin: 0;
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
}

/* ── Unordered list ── */
.docs_ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.docs_ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: clamp(13px, 1.8vw, 15px);
  color: #444;
  line-height: 1.6;
}
.docs_ul li::before {
  content: '✓';
  color: #55c951;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Overview Cards Grid ── */
.docs_overview_grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.docs_overview_card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 13.5px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.docs_overview_card:hover {
  box-shadow: 0 4px 18px rgba(85,201,81,0.13);
  border-color: #55c951;
}
.docs_overview_card > span { font-size: 1.5rem; }
.docs_overview_card strong {
  font-size: 15px;
  font-weight: 700;
  color: #130D0C;
}
.docs_overview_card p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}
.docs_overview_link {
  font-size: 13px;
  font-weight: 600;
  color: #2a8a27;
  margin-top: 4px;
}

/* ── SVGs: always scale, never overflow ── */
.docs_section svg[viewBox] {
  max-width: 100%;
  height: auto;
}

/* ── Password reset steps ── */
.docs_pwreset_steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fafafa;
  border-bottom: 1px solid #ebebeb;
}

.docs_pwreset_step {
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}
.docs_pwreset_step.last {
  border-right: none;
}

.docs_pwreset_num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3aaa36;
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.docs_pwreset_title {
  font-size: 11.5px;
  font-weight: 700;
  color: #130D0C;
  margin-bottom: 3px;
}

.docs_pwreset_desc {
  font-size: 10.5px;
  color: #888;
  line-height: 1.5;
}

/* ══════════════════════════════
   LOGIN / REGISTER MOCK CARDS
══════════════════════════════ */

/* Two-column card used for login & register mockups */
.docs_auth_card {
  margin: 20px 0 28px;
  border: 1px solid #e4e4e4;
  border-radius: 13.5px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.docs_auth_card_inner {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

/* Left green illustration panel – hidden on mobile to save space */
.docs_auth_panel_left {
  background: linear-gradient(145deg, #3aaa36 0%, #2a8a27 100%);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.docs_auth_panel_left_text {
  text-align: center;
}
.docs_auth_panel_left_text .title {
  color: white;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.docs_auth_panel_left_text .sub {
  color: rgba(255,255,255,0.72);
  font-size: 11.5px;
  margin-top: 5px;
}

.docs_auth_panel_right {
  background: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.docs_auth_tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.docs_auth_tab {
  flex: 1;
  text-align: center;
  padding: 7px;
  border-radius: 8px;
  font-size: 12.5px;
}
.docs_auth_tab.inactive {
  font-weight: 600;
  color: #aaa;
  border: 1px solid #ebebeb;
}
.docs_auth_tab.active {
  font-weight: 700;
  color: #fff;
  background: #3aaa36;
}

.docs_auth_field_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.docs_auth_field {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #888;
}

.docs_auth_meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
  padding: 0 2px;
}
.docs_auth_meta .forgot { color: #3aaa36; font-weight: 600; }

.docs_auth_strength {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}
.docs_auth_strength span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
}

.docs_auth_btn {
  background: #3aaa36;
  color: white;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

/* Google button */
.docs_auth_google_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #444;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Ergebniskacheln (Result cards grid) ── */
.docs_result_cards {
  display: grid;
  gap: 12px;
  margin: 16px 0 28px;
  grid-template-columns: 1fr;
}

.docs_result_card {
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  overflow: hidden;
}

.docs_result_card_body {
  padding: 14px 16px 10px;
}
.docs_result_card_body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #130D0C;
  margin-bottom: 8px;
}
.docs_result_card_body p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.docs_result_card_body p.hit {
  color: #1f7a1c;
  font-weight: 700;
}
.docs_result_card_body .date {
  font-size: 10px;
  color: #bbb;
  margin-top: 6px;
}

.docs_result_card_footer {
  padding: 6px 16px;
  font-size: 9.5px;
  font-weight: 600;
}
.docs_result_card_footer.green  { background: #f0faf0; color: #2a8a27; }
.docs_result_card_footer.yellow { background: #fffbf0; color: #7a5800; }
.docs_result_card_footer.grey   { background: #f5f5f5; color: #888; }

/* ══════════════════════════════
   DESKTOP  ≥ 860px
══════════════════════════════ */
@media (min-width: 860px) {
  .docs_mobile_toggle { display: none; }

  .docs_sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--header-height, 56px);   /* sits flush below header */
    height: calc(100vh - var(--header-height, 56px)); /* fills remaining viewport */
    overflow-y: auto;                  /* sidebar scrolls independently */
  }

  /* Hide mobile-only elements */
  .docs_sidebar_header { display: none; }

  .docs_content {
    padding: 48px 56px 80px;
    /* Content area scrolls with the page naturally */
  }

  .docs_img_placeholder { min-height: 280px; }

  .docs_type_cards        { grid-template-columns: 1fr 1fr; }
  .docs_overview_grid     { grid-template-columns: repeat(3, 1fr); }
  .docs_result_cards      { grid-template-columns: repeat(3, 1fr); }
  .docs_pwreset_steps     { grid-template-columns: repeat(4, 1fr); }
  .docs_pwreset_step      { border-bottom: none; }
  .docs_pwreset_step.last { border-right: none; }

  /* Auth cards: show left panel side-by-side on desktop */
  .docs_auth_card_inner   { flex-direction: row; min-height: 300px; }
  .docs_auth_panel_left   { flex: 0 0 45%; }
  .docs_auth_panel_right  { flex: 1; padding: 28px 24px; }
}

@media (min-width: 1200px) {
  .docs_sidebar  { width: 280px; padding: 36px 20px 64px; }
  .docs_content  { padding: 56px 72px 96px; max-width: none; }
}