body {
  background-image: var(--bgimg);
  background-color: var(--bg);
  background-size: cover;
  background-position: bottom;
  background-attachment: fixed;
  color: var(--body);
  font: 400 13px/200% var(--bodyfont);
  margin: 0;
  letter-spacing: 0.5px;
  overflow-x: hidden; /* NEU */
  width: 100%; /* NEU */
  max-width: 100vw; /* NEU */
}


a { text-decoration: none; color: inherit; }
b { color: var(--accent); }
.hover { transition: 0.3s; }
.hover:hover { box-shadow: 0 0 25px var(--t1); }

/* ─────────────────────────────────────────────────────
   TOP NAVIGATION BAR
───────────────────────────────────────────────────── */
#top {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  background: var(--t0);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
#top left {
  display: flex;
  align-items: center;
}

#top left x {
  font: 500 10px var(--smallfont);
  text-transform: uppercase;
  margin: 0 13px;
}

.theme-switch-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.theme-switch input { display: none; }
.theme-switch {
  display: inline-block;
  width: 22px;
  height: 14px;
  position: relative;
}
.slider {
  background: var(--t2);
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  border-radius: 6px;
  transition: .4s;
}
.slider:before {
  content: "";
  position: absolute;
  background: rgba(var(--r2), 0.9);
  width: 10px; height: 10px;
  border-radius: 50%;
  bottom: 2px;
  left: 2px;
  transition: .4s;
}
input:checked + .slider:before {
  transform: translateX(8px);
}
#top right {
padding: 0 40px;
  display: flex;
  align-items: center;
}
#top right a {
  width: 40px; height: 40px;
  margin: 0 13px;
  border-radius: 50%;
  background: var(--t2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

/* ─────────────────────────────────────────────────────
   AVATAR + SIDEBAR
───────────────────────────────────────────────────── */
avatar {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 102;
  width: 120px; height: 120px;
  background: var(--t2);
  border-radius: 50%;
  padding: 5px;
}
avatar img {
  width: 100px; height: 100px;
  border-radius: 50%;
  position: absolute;
  bottom: 15px;
  right: 15px;
}

#navbar {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--t2);
  padding: 15px 0;
  border-radius: 7px;
  text-transform: uppercase;
  font: 500 10px var(--smallfont);
  letter-spacing: 1px;
}
#sidebar a i {
  font-size: 18px;
}
#sidebar x {
  flex-grow: 1;
  width: 1px;
  background: var(--body);
  margin: 30px 0;
}

/* ─────────────────────────────────────────────────────
   HEADER-BEREICH
───────────────────────────────────────────────────── */
#header {
  display: grid;
  padding: 0 60px;
  width: 100%;
  max-width: 100vw; /* GEÄNDERT */
  min-height: 800px;
  max-height: 1000px;
  margin-top: -75px;
  grid-template: auto 200px / auto 3fr 300px;
  grid-gap: 40px;
  position: relative;
  box-sizing: border-box; /* NEU */
}

#header top {
  position: fixed;
  top: 90px;
  width: 100%;
  z-index: 1;
}
#header svg {
  width: 100%;
  transform: scaleY(0.4) rotateY(180deg);
  transform-origin: top;
}
#header main {
  grid-area: 1 / 1 / 2 / 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#header main x {
  font: 20px var(--smallfont);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-size: clamp(12px, 3vw, 20px); /* NEU - responsive */
}

#header main y {
  font: 150px var(--Ques);
  text-transform: lowercase;
  letter-spacing: -1px;
  background: linear-gradient(to top right, var(--color5), var(--col3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: -0.15em;
  font-size: clamp(40px, 15vw, 150px); /* NEU - responsive */
  word-break: break-word; /* NEU */
}

/*#header main y:hover {
  background: linear-gradient(to right, var(--color3), red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.2);
}*/ 
#header links {
  display: flex;
  gap: 15px;
}
#header links a {
  background: var(--t2);
  padding: 8px 15px;
  border-radius: 7px;
  font: 500 10px var(--smallfont);
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* ─────────────────────────────────────────────────────
   TOGGLE HEADER
───────────────────────────────────────────────────── */

.grid {
  list-style: none;
  margin-left: -40px;
}

.gc {
  box-sizing: border-box;
  display: inline-block;
  margin-right: -.25em;
  min-height: 1px;
  padding-left: 40px;
  vertical-align: top;
}

.gc--1-of-3 { width: 32%; }
.gc--2-of-3 { width: 66%; }

.naccs {
  position: relative;
  width: 800px;
  margin: 100px 10px 0;
}

.naccs .menu div {
  margin-bottom: 10px;
  color: var(--color4);
  background: var(--t3);
  padding: 8px 15px;
  border-radius: 7px;
  font: 500 13px var(--Afa);
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  font-weight: 700;
  transition: 1s all;
}

.naccs .menu div:hover { 
	transition: 1s;
box-shadow: 0 0 25px var(--t1);
}

.naccs .menu div.active span.light {
  background: var(--t3);
}

.naccs .menu div.active {
  color: var(--color2);
}

ul.nacc {
  position: relative;
  min-height: 110px;
width:600px;
  list-style: none;
  margin: 0 5px;
  padding: 0;
  transition: 1s;
  background: var(--t3);
  padding: 8px 5px;
  border-radius: 7px;
  font: 500 10px var(--Afa);
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
}

ul.nacc li {
 position: absolute;     
  top: 0;
  left: 0;
  width: 100%;          
  opacity: 0;
  transition: 1s all;
  display: flex;          
  justify-content: space-between;
}

ul.nacc li.active {
  transition-delay: .3s;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
margin: 5px 5px;
}

ul.nacc li p {
    font-size: 13px;
    font-family: var(--Afa);
    line-height: 14px;
    margin: 2px 20px;
    text-align: justify;
}


ul.nacc li.two-col > div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

ul.nacc li.two-col .pm {
  flex: 1;              /* beide gleich breit */
  margin: 5px 10px;
  font-size: 13px;
  font-family: var(--Afa);
  line-height: 14px;
  text-align: justify;
}

.üb {
color: var(--color4);
    font-weight: 700;
    font-size: 16px;
    line-height: 25px;
    font-family: var(--Afa);
    letter-spacing: 1.5px;
}


.header-icons i {
    font-size: 50px;
    color: var(--color4);
    margin: 15px 10px;
    padding-left: 10px;     
}