/* MyRetinaGene - Complete Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* BUG-5 FIX: CSS custom properties declared in stylesheet (also set inline via PHP for dynamic values) */
:root {
    --primary: #1a73e8;
    --secondary: #34a853;
    --accent: #0d47a1;
    --bg: #f8fafc;
    --text: #1e293b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }

/* ── Skip Link ────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 10000;
    background: var(--primary); color: #fff; padding: 8px 16px;
    border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Navbar (sticky + burger menu) ─────────────────────── */
.ag-navbar { background: var(--primary); color: #fff; padding: .6rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.ag-navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ag-navbar__brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-size: 1.15rem; flex-shrink: 0; z-index: 1001; }
.ag-navbar__brand i { font-size: 1.3rem; opacity: .9; }
.ag-navbar__brand strong { font-weight: 800; }
.ag-navbar__logo-img { height: 50px; width: auto; }

.ag-navbar__collapse { display: flex; align-items: center; gap: 1rem; }
.ag-navbar__menu { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.ag-navbar__menu a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .85rem; padding: 7px 12px; border-radius: 6px; transition: all .15s; font-weight: 500; white-space: nowrap; }
.ag-navbar__menu a:hover, .ag-navbar__menu a.active { background: rgba(255,255,255,.15); color: #fff; }
.ag-navbar__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.ag-navbar__login-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.ag-navbar__login-btn:hover { background: rgba(255,255,255,.25); }
.locale-select { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: .8rem; min-height: 44px; }
.locale-select option { color: #333; background: #fff; }

/* Burger button (hidden on desktop) */
.ag-navbar__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; z-index: 1001; }
.burger-line { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 8px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-size: .9rem; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 5px 12px; font-size: .8rem; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: .8rem; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-medical { background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%); color: #fff; padding: 5rem 0 4rem; text-align: center; }
.hero-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .9; max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-size: .85rem; opacity: .75; }
.hero-trust span { display: flex; align-items: center; gap: .5rem; }

/* ── Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs { padding: .75rem 0; font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 .5rem; color: #94a3b8; }
.breadcrumbs a { color: #64748b; text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li:last-child { color: #1e293b; font-weight: 600; }
.breadcrumbs i { font-size: .75rem; }

/* ── Related Pages (Internal Linking) ─────────────────── */
.related-pages { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e2e8f0; }
.related-pages h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.related-pages ul { list-style: none; padding: 0; }
.related-pages li { padding: .5rem 0; border-bottom: 1px solid #f1f5f9; }
.related-pages li:last-child { border-bottom: none; }
.related-pages a { color: var(--primary); font-weight: 600; text-decoration: none; }
.related-pages a:hover { text-decoration: underline; }

/* ── How it works ─────────────────────────────────────── */
.how-it-works { background: #f8fafc; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.step-card { text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; transition: box-shadow .2s; }
.step-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.step-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: .5rem; }
.step-num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p { color: #64748b; font-size: .9rem; line-height: 1.5; }

/* ── Disclaimer ───────────────────────────────────────── */
.disclaimer-box { display: flex; gap: 1rem; padding: 1.25rem; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; }
.disclaimer-icon { font-size: 1.25rem; color: #3b82f6; flex-shrink: 0; margin-top: 2px; }
.disclaimer-content strong { color: #1e40af; display: block; margin-bottom: .25rem; }
.disclaimer-content p { color: #1e3a5f; font-size: .9rem; margin: 0; line-height: 1.5; }

/* ── Page Content ─────────────────────────────────────── */
.page-content { padding: 3rem 0; min-height: 50vh; }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #e2e8f0; }
.page-body { max-width: 800px; line-height: 1.8; }
.page-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--primary); }
.page-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.page-body p { margin-bottom: 1rem; }
.page-body ul, .page-body ol { margin: 1rem 0 1rem 1.5rem; }
.page-body li { margin-bottom: .5rem; }
.page-body a { color: var(--primary); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { margin-top: .5rem; font-size: .9rem; line-height: 1.6; }
.footer-links h4 { color: #e2e8f0; font-size: .9rem; margin-bottom: .75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .85rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: .8rem; }

/* ── Responsive / Mobile Burger Menu ───────────────────── */
@media (max-width: 900px) {
    .ag-navbar__burger { display: flex; }

    .ag-navbar__collapse {
        display: none; position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--primary); flex-direction: column;
        justify-content: center; align-items: center;
        gap: 2rem; z-index: 1000; padding: 2rem;
        opacity: 0; transition: opacity .25s ease;
    }
    .ag-navbar__collapse.open { display: flex; opacity: 1; }

    .ag-navbar__menu { flex-direction: column; align-items: center; gap: .5rem; }
    .ag-navbar__menu a { font-size: 1.2rem; padding: 12px 24px; border-radius: 10px; min-height: 48px; display: flex; align-items: center; }

    .ag-navbar__actions { flex-direction: column; align-items: center; gap: .75rem; margin-top: 1rem; }
    .ag-navbar__login-btn { font-size: 1rem; padding: 12px 28px; min-height: 48px; }
    .locale-select { font-size: 1rem; padding: 10px 16px; }

    /* Burger -> X Animation */
    .ag-navbar__burger.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .ag-navbar__burger.active .burger-line:nth-child(2) { opacity: 0; }
    .ag-navbar__burger.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-medical { padding: 3rem 0 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-trust { flex-direction: column; gap: .5rem; align-items: center; }
}

/* ── Focus visible ────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Member Area Layout ───────────────────────────────── */
.member-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; min-height: 60vh; padding: 2rem 0; }

/* Sidebar (Desktop/Tablet) */
.member-sidebar { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem; height: fit-content; position: sticky; top: 80px; }
.member-sidebar-title { font-size: .85rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; padding: .5rem .75rem; margin-bottom: .25rem; }
.member-nav { list-style: none; padding: 0; margin: 0; }
.member-nav-item { margin-bottom: 2px; }
.member-nav-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 8px; color: #475569; text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .15s; min-height: 44px; }
.member-nav-link:hover { background: #f1f5f9; color: var(--primary); }
.member-nav-link.active { background: #eff6ff; color: var(--primary); font-weight: 700; }
.member-nav-link i { width: 20px; text-align: center; font-size: .9rem; color: #94a3b8; }
.member-nav-link.active i { color: var(--primary); }

/* Member Content */
.member-content { min-width: 0; }
.member-content-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #e2e8f0; }
.member-content-header h1 { font-size: 1.5rem; font-weight: 800; }

/* Mobile Tabs (horizontal slideable, ersetzt Sidebar) */
.member-tabs, .member-tabs-bar {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* kein scroll-snap beim Wischen - nur bei Tab-Klick wird linksbündig gescrollt */
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding: 0;
    gap: 0;
    /* Scrollbar verstecken aber Scroll beibehalten */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* Fade-Indikatoren an den Seiten */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    position: relative;
}
.member-tabs::-webkit-scrollbar, .member-tabs-bar::-webkit-scrollbar { display: none; }

.member-tab {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.15rem;
    white-space: nowrap;
    color: #64748b;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    min-height: 48px;
    /* scroll-snap nur bei Klick via JS */
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.member-tab:hover { color: var(--primary); }
.member-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.member-tab i { font-size: .85rem; }

@media (max-width: 900px) {
    .member-layout { grid-template-columns: 1fr; gap: 0; }
    .member-sidebar { display: none; }
    .member-tabs, .member-tabs-bar { display: flex; }
}

/* ── Member Profile Widget (Sidebar) ──────────────────── */
.member-profile-widget { display: flex; align-items: center; gap: .75rem; padding: .75rem; margin-bottom: .5rem; }
.member-avatar { font-size: 2.5rem; color: #cbd5e1; line-height: 1; }
.member-profile-name { font-weight: 700; font-size: .9rem; color: #1e293b; }
.member-profile-email { font-size: .75rem; color: #94a3b8; }
.member-sidebar-divider, .member-nav-divider { border-top: 1px solid #e2e8f0; margin: .5rem .75rem; list-style: none; }
.member-nav-logout { color: #dc2626 !important; }
.member-nav-logout:hover { background: #fee2e2 !important; }
.member-nav-logout i { color: #dc2626 !important; }

/* Profile Card */
.member-profile .profile-card { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 2rem; }
.member-profile .profile-form .form-group { margin-bottom: 1rem; }
.member-profile .form-label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .9rem; }
.member-profile .form-input, .member-profile .form-select { width: 100%; padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: .95rem; }
.member-profile .form-input:focus, .member-profile .form-select:focus { border-color: var(--primary); outline: none; }

/* ── Member Page Grid (2-spaltig auf Desktop/Tablet) ──── */
.member-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.member-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}
.member-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
}
.member-card-empty {
    grid-column: 1 / -1;
}

/* member-page-grid bleibt IMMER 2-spaltig, auch auf kleinen Screens */

/* ── Member Dashboard Grid ─────────────────────────────── */
.member-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.member-dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
}
.member-dash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.member-dash-card i { font-size: 2rem; margin-bottom: .75rem; display: block; }
.dash-card-title { font-weight: 700; color: #1e293b; font-size: 1rem; }
.dash-card-sub { font-size: .8rem; color: #64748b; margin-top: .25rem; }
.member-recent h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: #475569; }
.member-activity-empty { color: #94a3b8; font-size: .9rem; padding: 2rem; text-align: center; background: #f8fafc; border-radius: 10px; }

/* ── Mobile: 2-Spalten Grid System (global) ───────────── */
@media (max-width: 900px) {
    /* Mobile: Immer 2-spaltig wo möglich */
    .steps-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; max-width: none !important; }
    .gene-grid, .trial-grid, .clinic-grid, .card-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
    .hero-actions { flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; }
    .hero-actions .btn { flex: 1 1 140px !important; max-width: 200px !important; justify-content: center !important; font-size: .85rem !important; padding: 12px 16px !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .pros-cons { grid-template-columns: repeat(2, 1fr) !important; }
    .methodology-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .ag-container, .container { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Alle Grids bleiben 2-spaltig auch auf kleinen Screens */

/* ── Burger Menu: Dynamische Farbe (Dark Mode + Barrierefreiheit) ─────── */
.ag-navbar { color: #fff; --burger-color: currentColor; }
.burger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--burger-color, #fff);
  border-radius: 2px;
  transition: all .3s ease;
}
.ag-navbar__burger {
  /* Force-Visible auch wenn von a11y-mode oder dark-mode ueberschrieben */
  color: #fff !important;
}
/* Light/System-Mode: navbar hat dunklen Hintergrund - Linien weiss */
@media (prefers-color-scheme: light) {
  .ag-navbar__burger { color: #fff !important; }
}
/* Dark-Mode: a11y-Plugin setzt body.a11y-dark-mode oder dark-Klasse */
.a11y-dark-mode .ag-navbar__burger,
body.dark-mode .ag-navbar__burger,
[data-theme="dark"] .ag-navbar__burger {
  color: #f1f5f9 !important;
}
.a11y-dark-mode .burger-line,
body.dark-mode .burger-line,
[data-theme="dark"] .burger-line {
  background: #f1f5f9 !important;
}
/* High-Contrast-Mode (a11y): zusaetzliche Outline */
.a11y-high-contrast .ag-navbar__burger {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.a11y-high-contrast .burger-line {
  height: 4px;
  background: currentColor !important;
}

/* ── Navbar: transparent + Backdrop-Blur (Desktop, Live-Style) ───── */
.ag-navbar {
  background: linear-gradient(135deg, rgba(26,115,232,0.25) 0%, rgba(13,71,161,0.35) 100%) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  color: #fff !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border-bottom: 2px solid var(--secondary, #34a853);
  padding: 0.6rem 0;
}

/* ── Mobile (<900px): Overlay-Menu mit kontrastreichem Hintergrund ── */
@media (max-width: 900px) {
  /* Burger immer sichtbar in Mobile */
  .ag-navbar__burger { display: flex !important; color: #fff !important; }
  .ag-navbar__burger .burger-line { background: #fff !important; }

  /* Collapsed-Menu: vollflaechig + dunkler+blur Overlay */
  .ag-navbar__collapse {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,71,161,0.95);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    padding: 4rem 2rem 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .ag-navbar__collapse.open {
    display: flex !important;
    opacity: 1;
  }

  /* Menu-Items: groß + gut lesbar */
  .ag-navbar__menu {
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem !important;
    width: 100%;
  }
  .ag-navbar__menu a {
    color: #fff !important;
    font-size: 1.25rem !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    min-height: 48px;
    background: rgba(255,255,255,0.08);
    width: 80vw;
    max-width: 360px;
    text-align: center;
  }
  .ag-navbar__menu a:hover, .ag-navbar__menu a.active {
    background: rgba(255,255,255,0.2) !important;
  }

  /* Burger -> X Animation wenn .active */
  .ag-navbar__burger.active {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
  }
  .ag-navbar__burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .ag-navbar__burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  .ag-navbar__burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Dark-Mode: Navbar opaker damit Schrift lesbar bleibt */
.a11y-dark-mode .ag-navbar,
body.dark-mode .ag-navbar,
[data-theme="dark"] .ag-navbar {
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.9) 100%) !important;
  border-bottom-color: #475569;
}
.a11y-dark-mode .ag-navbar__menu a,
body.dark-mode .ag-navbar__menu a,
[data-theme="dark"] .ag-navbar__menu a {
  color: #f1f5f9 !important;
}

/* ── Navbar Layout: Brand links | Menu Mitte | Login rechts ──────── */
.ag-navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ag-navbar__brand { flex: 0 0 auto; }
.ag-navbar__collapse {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 1rem;
}
.ag-navbar__menu {
  display: flex !important;
  list-style: none;
  margin: 0 auto !important;
  padding: 0;
  gap: .25rem;
}
.ag-navbar__login-btn {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  min-height: 40px;
  transition: all .15s;
  white-space: nowrap;
  margin-left: auto;
}
.ag-navbar__login-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.ag-navbar__login-btn.active {
  background: rgba(255,255,255,0.3);
}
.ag-navbar__login-btn i { font-size: .9rem; }

/* Mobile: Login-Button INSIDE collapse-Overlay */
@media (max-width: 900px) {
  .ag-navbar__login-btn {
    margin: 1rem 0 0 0 !important;
    padding: 14px 32px;
    font-size: 1rem;
    width: 80vw;
    max-width: 360px;
    justify-content: center;
  }
}

/* ── Hanchor: # Symbol verstecken (Anker bleibt funktional) ───────── */
.hanchor {
  visibility: hidden !important;
  position: absolute;
  pointer-events: auto;
  margin-left: 4px;
}
*:hover > .hanchor,
*:focus-within > .hanchor {
  visibility: visible !important;
  position: static;
}
