/* Typewriter-Komponenten */
.type-block {
  display: none;
  max-width: 800px;
  margin: 1rem auto;
}
.type-block.active {
  display: block;
}
.typewriter-container {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}
.highlight {
  color: #dfb924;
  font-weight: bold;
  font-size: 2em;
  margin-right: .25rem;
}
.cursor {
  display: inline-block;
  width: 1ch;
  background: var(--cursor-color);
  animation: blink .6s step-end infinite;
  height: 1.5em;
  vertical-align: middle;
  margin-left: .1rem;
}

/* Hauptnavigation */
.nav {
  display: flex;
  gap: 1rem;
}
.nav a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: transform .3s;
font-size: 1.25rem; }
.nav a:hover {
  transform: scale(1.1);
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
}

/* Burger-Button */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 12;
}
.burger img {
  width: 24px;
  height: 24px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 100%;
  max-width: 320px;
  background: #fff;
  z-index: 20;
  transition: right .3s ease;
}
.sidebar.open {
  right: 0;
}
.close {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: .35rem;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}

.close img {
  width: 24px;
  height: 24px;
}
.sidebar-nav {
  margin-top: calc(1rem + 24px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1.5rem;
}
.sidebar-nav a {
  color: #333;
  font-size: 1.25rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
}
.sidebar.open .sidebar-nav a {
  animation: slideIn .3s forwards;
}

/* „Weiter“-Button */
.next-btn {
  display: flex;
  justify-content: center;
  margin: 1rem auto 0;
  background: none;
  border: none;
  cursor: pointer;
}
.next-btn img {
  width: 40px;
  height: 40px;
  display: none;
}
.next-btn .inactive-icon {
  display: block;
  transform-origin: center center;
}
.next-btn.active .inactive-icon {
  display: none;
}
.next-btn.active .active-icon {
  display: block;
}
.next-btn.active:hover .active-icon {
  content: url('/x3apimg/hover_next.png');
}
.next-btn.active:active {
  transform: scale(.9);
}

/* Education Box Hover */
.edu-box:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Sidebar slide-in keyframe */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* === Burger & Sidebar Tweaks (Requested) === */
/* Make burger fixed so it stays visible across sections on mobile */
@media (max-width: 1050px){
  .burger{
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }
}

/* Sidebar light theme */
.sidebar{
  background: #ffffff !important;
  color: #111111 !important;
  border-left: 1px solid rgba(0,0,0,0.08);
  box-shadow: -12px 0 28px rgba(0,0,0,0.15);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Close button: rotate on hover, use provided icon */
.sidebar .close {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: .35rem;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}

.sidebar .close:hover{ transform: rotate(90deg) scale(1.06); background: rgba(0,0,0,0.06); }

/* Sidebar title */
.sidebar-title{
  position: relative;
  margin: 1.1rem 1rem 0.5rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2px;
  color: #111111;
}

/* Nav links in light theme */
.sidebar-nav{
  margin-top: 0.5rem;
}
.sidebar-nav a{
  color: #111111 !important;
  background: rgba(0,0,0,0.03) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
}
.sidebar-nav a:hover{
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.2) !important;
}
.sidebar-nav a::after{
  color: rgba(0,0,0,0.45);
}

/* Emoji tint stays subtle on light background */
.sidebar-nav a .emoji{
  filter: none;
}

/* Ensure hero overlay doesn't wash out the fixed burger on mobile */
.hero::before{ pointer-events: none; }


/* === Burger & Sidebar — Refined Light Design === */
/* Keep burger visible below 1050px across all sections */
@media (max-width: 1050px){
  .burger{
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: .55rem .65rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
  }
  .burger:hover{ transform: translateY(-1px) scale(1.03); }
}

/* Sidebar: bright, clean, subtle dividers */
.sidebar{
  background: #ffffff !important;
  color: #0b0c0e !important;
  border-left: 1px solid rgba(0,0,0,0.06);
  box-shadow: -16px 0 40px rgba(0,0,0,0.10);
}

/* Header inside sidebar */
.sidebar__header{
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .75rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.92));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1;
}
.sidebar__title{
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .2px;
  color: #0b0c0e;
}
.sidebar .close{
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
}
.sidebar .close:hover{
  transform: rotate(90deg) scale(1.06);
  background: rgba(0,0,0,0.08);
}

/* Nav spacing & look */
.sidebar-nav{
  margin: .5rem 0 0;
  padding: .75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.sidebar-nav a{
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: #111111 !important;
  background: #f6f7f8 !important;
  border: 1px solid #e8eaee !important;
  border-radius: 12px;
  padding: .8rem .95rem;
  opacity: 0;
  transform: translateX(24px);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.sidebar-nav a:hover{
  color: #0f3b88 !important;
  background: #eef2f8 !important;
  border-color: #d8deea !important;
  box-shadow: 0 6px 18px rgba(15,59,136,0.08);
  transform: translateX(20px);
}
.sidebar-nav a:active{
  transform: translateX(18px) scale(.995);
}
.sidebar-nav a::after{
  content: '›';
  margin-left: auto;
  color: rgba(0,0,0,0.35);
}

/* Emoji: keep visible and aligned */
.sidebar-nav a .emoji{
  font-size: 1.05rem;
  line-height: 1;
  margin-right: .05rem;
  opacity: .9;
}

/* Staggered fly-in remains */
.sidebar.open .sidebar-nav a{
  animation: flyInRight .5s cubic-bezier(.2,.8,.2,1) forwards;
}
.sidebar.open .sidebar-nav a:nth-child(1) { animation-delay: .04s; }
.sidebar.open .sidebar-nav a:nth-child(2) { animation-delay: .10s; }
.sidebar.open .sidebar-nav a:nth-child(3) { animation-delay: .16s; }
.sidebar.open .sidebar-nav a:nth-child(4) { animation-delay: .22s; }
.sidebar.open .sidebar-nav a:nth-child(5) { animation-delay: .28s; }
.sidebar.open .sidebar-nav a:nth-child(6) { animation-delay: .34s; }
.sidebar.open .sidebar-nav a:nth-child(7) { animation-delay: .40s; }

/* === Burger visibility fix for mobile === */
@media (max-width: 1050px){
  .burger{
    display: block !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
  }
}

/* === Sidebar link style tweak (no borders, bold text) === */
.sidebar-nav a{
  border: none !important;
  background: #f7f8f9 !important;
  font-weight: 700;
}
.sidebar-nav a:hover{
  background: #eef2f8 !important;
}
/* Close button without border */
.sidebar .close{
  background: transparent;
  border: none;
}
.sidebar .close:hover{
  background: rgba(0,0,0,0.06);
}

/* === Burger over-hero state === */
/* Default: white box look */
@media (max-width: 1050px){
  .burger{
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: .55rem .65rem;
  }
  .burger.over-hero{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: .55rem .65rem; /* keep hit area */
  }
}


/* === Scoped hero navbar color on hover (desktop width) === */
.hero .nav a {
  transition: color .2s, transform .3s; /* keep existing zoom + add smooth color change */
}
.hero .nav a:hover,
.hero .nav a:focus-visible {
  color: #dfb824;
}

