  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

  body {
    font-family: 'Roboto', -apple-system, sans-serif;
    background: var(--td-white);
    color: var(--td-text);
  }

  /* ─── BAR ─── */
  .td-bar {
    display: flex;
    align-items: center;
    height: var(--bar-h);
    padding: 0 clamp(8px, 2vw, 24px);
    background: var(--td-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: clamp(8px, 2vw, 24px);
  }

  /* Logo — white SVG, no subline */
  .td-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
  }
  .td-logo svg {
    height: clamp(24px, 3.5vw, 32px);
    width: auto;
  }

  /* ─── DESKTOP NAV (inline) ─── */
  .td-nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    gap: 0;
  }

  .td-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .td-nav-link {
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.005em;
  }
  .td-nav-link:hover {
    color: var(--td-white);
    border-bottom-color: var(--td-accent);
  }
  .td-nav-link .nav-chev {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    opacity: 0.5;
    transition: transform 0.2s;
  }
  .td-nav-item:hover .nav-chev { transform: rotate(180deg); opacity: 1; }

  /* Desktop dropdown — reduced shadow, stable feel */
  .td-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--td-white);
    border-radius: 0 0 var(--td-radius) var(--td-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-width: 280px;
    padding: 6px 0;
    z-index: 200;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
  }
  .td-nav-item:hover .td-nav-dropdown { display: block; }

  .td-nav-dd-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--td-text);
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.1s;
  }
  .td-nav-dd-link:hover {
    background: var(--td-light);
    color: var(--td-primary);
  }
  .td-nav-dd-link .dd-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.28);
    transition: color 0.15s;
  }
  .td-nav-dd-link .dd-ico svg { width: 18px; height: 18px; }
  .td-nav-dd-link:hover .dd-ico { color: var(--td-text); }
  .td-nav-dd-link strong { display: block; font-weight: 500; font-size: 0.85rem; }
  .td-nav-dd-link small { color: rgba(0,0,0,0.4); font-size: 0.72rem; }

  /* ─── RIGHT SIDE ─── */
  .td-bar-right {
    display: flex;
    align-items: center;
    gap: clamp(0px, 0.5vw, 4px);
    flex-shrink: 0;
    margin-left: auto;
  }

  .td-bar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--td-radius);
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
    position: relative;
    font-family: inherit;
  }
  .td-bar-btn:hover { background: rgba(255,255,255,0.08); color: var(--td-white); }
  .td-bar-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  /* Badge — Primary blue instead of Orange */
  .td-badge {
    position: absolute;
    top: 2px;
    right: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-white);
    font-size: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .td-bar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    margin: 0 clamp(2px, 0.5vw, 6px);
  }

  /* Phone desktop — prominent, Nähe priorisieren */
  .td-phone-desktop {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.12);
  }

  /* Phone popup — reduced shadow */
  .td-phone-wrap { position: relative; }
  .td-phone-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -12px;
    background: var(--td-white);
    border-radius: var(--td-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 16px 20px;
    white-space: nowrap;
    z-index: 300;
  }
  .td-phone-popup::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--td-white);
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .td-phone-popup a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--td-dark);
    font-size: 1rem;
    font-weight: 700;
  }
  .td-phone-popup a:hover { color: var(--td-primary); }
  .td-phone-popup .popup-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--td-radius);
    background: var(--td-accent);
    color: var(--td-white);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .td-phone-popup .popup-icon svg { width: 18px; height: 18px; stroke: var(--td-white); stroke-width: 2; fill: none; }
  .td-phone-wrap:hover .td-phone-popup { display: block; }

  /* ─── BURGER — strengthened ─── */
  .td-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--td-radius);
    transition: background 0.15s;
  }
  .td-burger:hover { background: rgba(255,255,255,0.12); }
  .td-burger b {
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 1px;
    transition: all 0.25s;
    display: block;
  }
  .td-burger:hover b { background: var(--td-primary); }
  .td-burger.open b { background: var(--td-white); }
  .td-burger.open b:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .td-burger.open b:nth-child(2) { opacity: 0; }
  .td-burger.open b:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* ─── MOBILE PANEL — #0F1A24, improved hierarchy ─── */
  .td-panel {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    background: var(--td-dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }
  .td-panel.open { transform: translateX(0); }

  .td-overlay {
    display: none;
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
  }
  .td-overlay.open { display: block; }

  .td-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    transition: background 0.12s;
  }
  .td-section-header:hover { background: rgba(255,255,255,0.04); }
  .td-section.open .td-section-header { background: rgba(255,255,255,0.04); }
  .td-section-header .chev {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s;
  }
  .td-section.open .chev { transform: rotate(180deg); }

  .td-section-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .td-section.open .td-section-links { max-height: 500px; }

  .td-mob-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px 14px 32px;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.12s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .td-mob-link:last-child { border-bottom: none; }
  .td-mob-link:hover { background: rgba(255,255,255,0.04); color: var(--td-white); }
  .td-mob-link .ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.42);
    transition: color 0.15s;
  }
  .td-mob-link .ico svg { width: 18px; height: 18px; }
  .td-mob-link:hover .ico { color: rgba(255,255,255,0.85); }

  /* ─── RESPONSIVE ─── */
  @media (min-width: 1024px) {
    .td-nav { display: flex; margin-left: clamp(32px, 4vw, 64px); }
    .td-burger { display: none; }
    .td-phone-mobile { display: none; }
  }

  @media (max-width: 1023px) {
    .td-nav { display: none; }
    .td-burger { display: flex; }
    .td-bar { gap: 0; }
  }

  @media (max-width: 767px) {
    .td-bar { height: 56px; --bar-h: 56px; }
    .td-bar-right { gap: 4px; }
    .td-bar-btn { width: 40px; height: 40px; }
    .td-bar-btn svg { width: 22px; height: 22px; }
    .td-burger { width: 42px; height: 42px; }
    .td-bar-divider { margin: 0 4px; }
    .td-phone-desktop { display: none !important; }
    .td-phone-mobile { display: inline-flex !important; }
    .td-phone-popup { display: none !important; }
    .td-panel { width: 100vw; top: 56px; }
    .td-overlay { top: 56px; }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .td-phone-mobile { display: none; }
  }

  /* ─── PAGE DEMO ─── */
  .page-demo {
    max-width: 800px;
    margin: 64px auto;
    padding: 0 24px;
    text-align: center;
  }
  .page-demo h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--td-dark);
    margin-bottom: 16px;
    font-weight: 700;
  }
  .page-demo p { color: var(--td-text); font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; opacity: 0.6; }
  .page-demo code { background: var(--td-light); padding: 2px 6px; border-radius: 3px; font-size: 0.82rem; }
  .page-demo .size-indicator {
    display: inline-block;
    margin-top: 24px;
    padding: 8px 16px;
    background: var(--td-dark);
    color: var(--td-white);
    border-radius: var(--td-radius);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: monospace;
  }
  .page-demo .checklist {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
    font-size: 0.82rem;
    line-height: 2;
    opacity: 0.7;
  }
  .page-demo .checklist span { color: #2a8; }
