:root {
  --primary-color: #4488ff;
  --hover-color: #5599ff;
  --shade-one: #83b3ff;
  --shade-two: #b9d3f1;
  --shade-three: #edf7ff;
  --shade-four: #0f2f59;
  --shade-five: #e8f1f8;
  --shade-six: #d0eaff;
  --shade-seven: #eff6ff;
  --secondary-color: #2A2A72;
  --text-color: #333;
  --bg-color: #fff;
  --scrollbar-color: #dedede;
  --scrollbar-bg-color: #efefef;
  --halftone-color: #ccc;
  --darker-halftone-color: #999;
  --lighter-halftone-color: #dedede;
  --card-bg: #f8f9fa;
  --card-contrast-color: #e8e9ea;;
  --dashboard-bg: #f0f0f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --note-color: #fff9c4;
  --free-color: #18b3e6;
  --basic-color: #0280fb;
  --premium-color: #9f27d9;
  --ultimate-color: #e6075a;
  --expert-color: #16BD95;
}

.dark-theme {
  --primary-color: #5599ff;
  --hover-color: #66AAff;
  --shade-one: #b9d7f1;
  --shade-two: #83b3ff;
  --shade-three: #0f2f59;
  --shade-four: #e8f1f8;
  --shade-five: #32383f;
  --shade-six: #333799;
  --shade-seven: #31343a;
  --secondary-color: #3F3D56;
  --text-color: #fff;
  --bg-color: #000000;
  --scrollbar-color: #292929;
  --scrollbar-bg-color: #404040;
  --halftone-color: #333333;
  --darker-halftone-color: #111111;
  --lighter-halftone-color: #666666;
  --card-bg: #252525;
  --card-contrast-color: #3d3d3d;
  --dashboard-bg: #111111;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --note-color:  #454540;
}

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



*{
  scrollbar-width: thin !important;
  scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
}

html{
  scrollbar-color: var(--primary-color) var(--bg-color);
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-width: 20rem;
  justify-content: center;
  margin: auto;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100vh;
  font-size: clamp(0.9rem,1rem + 1vh, 1.1rem);
}

    .custom-alert {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      background: var(--bg-color);
      padding: 20px 30px;
      border-radius: 10px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.2);
      z-index: 11000;
      min-width: 300px;
      max-width: 500px;
      text-align: center;
      border: 2px solid var(--primary-color);
    }
    
    .alert-title {
      font-size: 1.1rem;
      margin-bottom: 15px;
      font-weight: bold;
    }
    
    .alert-message {
      margin-bottom: 20px;
    }
    
    .alert-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
    }
    
    .alert-button {
      padding: 8px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
    }
    
    .alert-ok {
      background:var(--primary-color);
      color: white;
    }
    
    .alert-cancel {
      background: #dc3545;
      color: white;
    }

    .cart-item-icon{
      width: 3.5rem;
      height: 3.5rem;
      min-width: 3.5rem;
      min-height: 3.5rem;
      font-size: 2rem;
      margin-right: 0.5rem;
      background: var(--primary-color);
      color: white;
      border-radius: 8px; 
      display: flex; 
      align-items: center; 
      justify-content: center;
    }
    
   #upgradeWindow h2{
      line-height: 100%;
      margin: 0px auto 1rem;
      color: var(--primary-color);
    }

  #upgradeWindow select{
      background: var(--bg-color);
      color: var(--text-color);
      border-color: var(--halftone-color);
    }

    .upgradeWindowText{
      display: block;
      width: 100%;
      text-align: center;
      font-size: 1.2rem;
      padding: 0.5rem;
      margin: 1rem auto;
      min-height: 5rem;
      max-height: 10rem;
      overflow: auto;
    }
    
    .upgrade-lock{
      width: 9rem;
      height: 9rem;
      justify-content: center;
      align-content: center;
      font-size: 6.5rem;
      margin: 1rem;
    }
    .upgrade-lock img{
      width: 3.5rem !important;
      height: auto;
      left: 50%;
      top: 63%;
      transform: translate(-50%, -50%);
    }

    .upgrade-buttonarea{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-content: center;
      gap: 1rem;
    }

    .upgrade-buttonarea a{
      display: inline-flex;
      justify-content:  center;
      align-items: center;
    }

.loader {
  border: 5px solid var(--shadow-color);
  border-radius: 50%;
  border-top: 5px solid #3a8efb;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 0 auto 20px;
}

#loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

main{
  padding: 5rem 20px 0rem 20px;
  min-height: 100vh;
}

.main-container{
  padding: 5rem 20px 0rem 20px;
  margin: 0px auto;
  max-width: 1200px;
}

main.indexMain{
  padding: 0rem;
}

.theme-toggle{
  position: relative;
}
#designtooltip, #accounttooltip{
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  font-size: 0.8rem;
  padding: 0.2rem;
  border-radius: 5px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  white-space: nowrap;
}

.tooltip{
    position: relative;
}
.tooltip p{
    position: absolute;
    background: var(--bg-color);
    font-size: 0.8rem;
    padding: 0.15rem 0.25rem;
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    opacity: 0.9;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    display: none;
    border-radius: 5px;
    z-index: 99;
}

.tooltip:hover p{
    display: block;
}


.note-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    cursor: move;
    flex-shrink: 0;
    width: auto;
    border-radius: 10px 10px 0px 0px;
    margin: -15px -15px 0px -15px;
}

.note-modal .modal-header h3 {
    margin: 0;
}

.note-modal .modal-header.moving {
    background-color: var(--hover-color);
}

.theme-toggle{
  width: 2rem;
  min-width: 2rem !important;
}

.theme-toggle:hover{
  color: var(--primary-color);
}

.theme-toggle:hover p{
  display: table;
}

.errorContainer{
  min-height: 2rem;
  display: flex;
  flex-flow: wrap;
}

.loginrequired{
 display: flex;
  color: var(--text-color);
  font-size: 1.4rem;
  text-align: center;
  justify-self: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  max-width: 30rem;
  margin: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  flex-flow: column;
}

.error-message{
  background: var(--lightred);
  color: var(--crimson);
  border-radius: 4px;
  padding: 0.25rem;
  font-size: 0.9rem;
  width: 100%;
  margin: 0px auto;
  line-height: 110%;
  display: none;
  justify-content: center;
  align-content: center;
  flex-flow: wrap;
  text-align: center;
  min-height: 2rem;
}

.success-message{
  background: var(--pastel-green);
  color: var(--forestgreen);
  border-radius: 4px;
  padding: 0.25rem;
  font-size: 0.9rem;
  width: 100%;
  margin: 0px auto;
  line-height: 110%;
  display: none;
  justify-content: center;
  align-content: center;
  flex-flow: wrap;
  text-align: center;
  min-height: 2rem;
}

/*Plans*/

  .freetext{
      color: var(--free-color) !important;
  }
  .free-bg{
      background: var(--free-color) !important;
  }
  .basictext{
      color: var(--basic-color) !important;
  }
  .basic-bg{
      background: var(--basic-color) !important;
  }
  .premiumtext{
      color: var(--premium-color) !important;
  }
  .premium-bg{
      background: var(--premium-color) !important;
  }
  .ultimatetext{
      color: var(--ultimate-color) !important;
  }
  .ultimate-bg{
      background: var(--ultimate-color) !important;
  }
  .experttext{
      color: var(--expert-color) !important;
  }
  .expert-bg{
      background: var(--expert-color) !important;
  }

.alert{
  display: inline-flex; /* Ändere von flex zu inline-flex */
  flex-direction: column; /* Korrigiere von flex-flow zu flex-direction */
  flex-wrap: wrap; /* Ermöglicht Umbruch der Elemente */
  align-items: flex-start; /* Verhindert, dass Kinder die volle Breite einnehmen */
  max-width: 100%; /* Verhindert Überlauf */
  margin: 0.5rem 0rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 2px 2px 5px -2px var(--shadow-color);
}

.alert-danger{
  background: var(--lightred);
  color: var(--crimson);
}

.alert-success{
  background: var(--palegreen);
  color: var(--darkgreen);
}

.alert-warning{
  background: var(--lemonchiffon);
  color: var(--saddlebrown);
}

.btn-success{
  background: var(--forestgreen) !important;
  color: white !important;
}

.btn-warning{
  background: var(--darkgoldenrod) !important;
  color: white !important;
}

.btn-danger{
  background: var(--crimson) !important;
  color: white !important;
}

.alert-info{
  background: var(--aliceblue);
  color: var(--navy);
}

.alert-default{
  background: var(--card-bg);
  color: var(--text-color);
}

.alert-danger > *, .alert-success > *{
    width: auto;
    align-self: flex-start;
}

  .button{
      border-radius: 5px;
      padding: 0.25rem 0.5rem;
      cursor: pointer;
      color: var(--text-color);
      border: 1px solid var(--text-color);
  }
  .button:hover{
      cursor: pointer;
      color: var(--primary-color);
      border: 1px solid var(--primary-color);
  }

  .btn-primary{
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    background: var(--primary-color);
    color: white !important;
    border: 1px solid var(--primary-color);
    text-decoration: none;
  }
  .btn-primary:hover{
    background: var(--hover-color);
    border: 1px solid var(--hover-color);
  }
  
  
  .bluebutton{
      border-radius: 5px;
      padding: 0.25rem 0.5rem;
      color: white;
      background: var(--primary-color);
      border: 1px solid transparent;
  }
  
  .bluebutton:hover{
      cursor: pointer;
      background: var(--hover-color);
  }
  
  .top-menu{
    width: 100%;
    display: flex;
    margin: auto;
    align-self: center;
    flex-flow: row;
    justify-content: space-between;
    max-width: 80rem;
    height: 2.5rem;
    align-content: center;
  }
  
  
.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
  min-width: 11rem;
}

.nav-links i::before{
  color: var(--text-color);
  opacity: 0.75;
}

.nav-links i.channelIcons::before{
  padding: 1px 3px;
  font-size: 0.8rem !important;
  display: inline-flex;
  border: 2px solid var(--text-color);
  border-radius: 3px;
  line-height: 0%;
  width: 15px;
  height: 12px;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.nav-links a:hover i::before{
  color: var(--primary-color);
}

.nav-links a:hover i.channelIcons::before{
  border-color: var(--primary-color);
}

.fa-meteor{
  transform: rotate(180deg) !important;
}

.dashboardToggle, .learningToggle, .libToggle, .userToggle, .submenuToggle {
  cursor: pointer;
  display: flex;
  text-decoration: none;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid transparent;
  border-radius: 5px;
  position: relative;
  margin: 0;
  height: 2.5rem;
  align-items: center;
  justify-content: left;
  padding: 0.5rem;
  width: 100%;
  min-width: 11rem;
}

.libToggle{
  min-width: 12rem;
  white-space: nowrap;
  max-width: 15rem;
}

.learningToggle{
  min-width: 7.5rem;
  padding: 0.5rem;
  margin: 0;
}

.userToggle{
    width: 3.5rem;
    min-width: 3.5rem;
}

.dashboardDropdown li, .learningDropdown li, .libDropdown li, .userDropdown li  {
padding: 0px;
cursor: pointer;
display: block;
text-decoration: none;
background: none;
color: var(--text-color);
position: relative;
margin: 0;
border: 0px;
min-height: 2.5rem;
padding: 0px;
width: 100%;
min-width: 10rem;
}

.dashboardDropdown a, .learningDropdown a, .libDropdown a, .userDropdown a, .submenuToggle, .nav-links .fakelink {
padding: 0.5rem;
cursor: pointer;
display: block;
text-decoration: none;
border: 1px solid transparent;
border-top: 1px solid var(--shadow-color);
border-radius: 0px;
color: var(--text-color);
position: relative;
margin: 0;
min-height: 2.5rem;
width: 100%;
}

.dashboardDropdown, .dashboardToggle{
    min-width: 9rem;
}

/* Standardmäßig Dropdowns verstecken */
.dashboardDropdown, .libDropdown, .userDropdown, .dashboardSubmenuList, .learningDropdown {
  display: none;
  position: absolute;
  background: var(--bg-color);
  color: var(--text-color);
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  border-radius: 5px;
}

.dashboardDropdown, .dashboardSubmenuList{
  min-width: 9rem;
}

.learningDropdown {
  min-width: 6rem;
}

.dashboardToggle:hover, .dashboardDropdown a:hover, .learningToggle:hover, .learningDropdown a:hover, .submenuToggle:hover, .libToggle:hover, .libDropdown a:hover, .userToggle:hover, .userDropdown a:hover, .nav-links .fakelink:hover {
color: var(--primary-color);
border: 1px solid var(--primary-color);
cursor: pointer;
}

.dashboardDropdown.open, .learningDropdown.open, .libDropdown.open, .userDropdown.open  {
  display: block;
}

.chevron{
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}


.dashboardMenu:has(.dashboardDropdown.open) .dashboardToggle .chevron, 
.libMenu:has(.libDropdown.open) .libToggle .chevron, 
.userMenu:has(.userDropdown.open) .userToggle .chevron, 
.learningMenu:has(.learningDropdown.open) .learningToggle .chevron, 
.dashboardSubmenu:has(.dashboardSubmenuList.open) .submenuToggle .chevron {
transform: rotate(180deg);
top: 35%;
}

.dashboardSubmenuList.open,
.libSubmenuList.open,
.userSubmenuList.open,
.learningSubmenuList.open {
  display: block;
}


.card {
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.card-body {
  position: relative;
}
.card-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s;
}
.card-btn:hover {
  background-color: var(--hover-color);
}


.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
  padding: 2%;
  width: 100%;
  margin: 1rem 0;
  overflow-y: auto;
}
.doc-card {
  background: var(--bg-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  text-align: center;
  padding: 20px;
  position: relative;
  border: 1px solid var(--primary-color);
  position: relative;
}



.doc-card-img img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin: 15px 0;
  border: 1px solid var(--shadow-color);
}

.videoscontainer .doc-card-img img{
  width: 100%;
  height: auto;
  max-height: 200px;
}

.doc-card-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--text-color);
  opacity: 0.9;
}
.doc-card-description, .doc-card-info {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.4;
  min-height: 40px;
  overflow-x: hidden;
  overflow-y: auto;
}
.doc-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

#loadingSpinner {
  display: none;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-color);
  color: var(--text-color);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 5px 15px var(--shadow-color);
}


.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  line-height: 1;
  color: #666;
}
.modal-close:hover {
  color: #333;
}

.bg{
    background: var(--bg-color);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 20, 60, 0.75);
  z-index: 1000;
}
.modal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  width: 90%; 
  min-width: 20rem;
  max-width: 30rem;
  box-shadow: 0 4px 5px rgba(0,0,0,0.2);
  border-radius: 5px;
  border: 2px solid var(--primary-color);
}

.modal h2 { margin: 0; color: var(--primary-color); }
.modal input, .modal select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: var(--almostwhite);
  color: var(--black);
}

.modal button { font-size: 1.2rem; width: 100%; padding: 10px; margin-top: 10px; border: none; border-radius: 4px; background-color: var(--primary-color); color: white; cursor: pointer; }
.modal button:hover { opacity: 0.9; }
.error-message { display: none; color: red; margin-top: 10px; }


.editable-content {
  min-height: 150px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow-y: auto;
  background: var(--bg-color);
  font-family: Arial, sans-serif;
}

.editable-content[contenteditable="false"] {
  border-color: transparent;
  background: transparent;
}

.edit-description-toggle {
  padding: 6px 12px;
  font-size: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px 0px
}

.edit-description-toggle:hover {
  opacity: 0.9;
}

.view-mode-buttons {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  width: 90%;
  float: right;
}

.view-mode-buttons button {
  padding: 6px 12px;
  font-size: 0.875rem;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
}

.view-mode-buttons button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.lib-button{
  padding: 0.25rem 1rem !important;
  color: white !important;
  background: var(--primary-color);
  border-radius: 5px;
  white-space: nowrap;
}

.lib-button:hover{
  background: var(--hover-color);
}


/* Navigation Styles */
.top-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px var(--shadow-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  left: 0;
  position: fixed;
  z-index: 99999;
}

.logo {
  align-self: center;
  display: block;
}

.logo:hover{
  filter: brightness(110%);
}

.register-btn:hover, .login-btn:hover{
  opacity: 0.9;
}

#register-firstname, #register-lastname{
  width: 49.4%;
}


.theme-toggle, .login-btn, .register-btn {
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 5.5rem;
  text-align: center;
}

.login-btn, .register-btn {
  padding: 0.25rem 0.5rem;
  font-size: 1.05rem;
}

.theme-toggle {
  background: none;
  color: var(--text-color);
  font-size: 1rem;
  padding: 0.25rem;
}

.closeX{
  position: absolute;
  top: 5%;
  right: 5%;
}

.closeX:hover{
  cursor: pointer;
  color: #dc3545;
}

.login-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.logout-btn {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.register-btn {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.logout-btn:hover {
  color: #dc3545 !important;
  border: 1px solid #dc3545 !important;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.75rem;
  cursor: pointer;
  width: 2rem;
  height: 1.5rem;
  text-align: center;
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  align-self: center;
}

.mobile-menu:hover{
    opacity: 0.8;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem,3.5rem + 1vh, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

h1{
  font-size: clamp(2rem,3rem + 1vh, 3rem);
}

h2{
  font-size: clamp(1.25rem,2rem + 1vh, 2rem);
}

h3{
  font-size: clamp(1.1rem,1.3rem + 1vh, 1.3rem)
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.cta-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover, a.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.hero-image {
  flex: 1;
  max-width: 650px;
}

.hero-image svg{
  margin: 0rem -2rem 0rem 2rem;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  background-color: var(--bg-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.5rem,2.5rem + 1vh, 3rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
  padding: 4rem 2rem;
  background-color: var(--bg-color);
}

.pricing h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
}

.pricing-card li {
  margin: 0.5rem 0;
}

.select-plan {
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 4rem 2rem 1rem;
  margin-top: 4rem;
}


.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

main.index{
  background: linear-gradient(var(--primary-color) -25%, var(--bg-color) 40%);
}

.gradient{
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 50%, #db2777 100%) !important;
}

.btn.gradient:hover{
  background: linear-gradient(135deg, var(--primary-color) 0%, #8a49fb 50%, #e83384 100%) !important;
}

.gradient-text {
    color: var(--primary-color);
  }

  @supports (-webkit-background-clip: text) {
    .gradient-text {
      background: linear-gradient(135deg, var(--primary-color) 0%, #db2777 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      /* Auch Firefox unterstützen */
      background-clip: text;
      background-size: 100%;
      background-position: 50% 50%;
      color: transparent;
    }
  }

.bluegradient{
  background: linear-gradient(45deg, var(--hover-color), var(--primary-color));
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
}

.blob-animation {
  animation: move 8s ease-in-out infinite, rotate 8s linear infinite;
}

    #libHeaderTitle { 
      padding-right: 25px; 
      word-break: break-word;
      max-width: 10rem;
      line-height: 110%;
      max-height: 2.5rem;
  }

@keyframes move {
  0% { transform: translate(50px, -50px); }
  50% { transform: translate(50px, -50px); }
  100% { transform: translate(50px, -50px); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pulse{
  animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}


@media screen and (max-width: 992px) {
  .hero-image{
    display: none !important;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  } 
}

@media screen and (max-width: 768px) {

  .dashboardMenu, .learningMenu, .libMenu, .userMenu {
      width: 100%;
  }

  .dashboardToggle, .learningToggle, .lib-button, .user-button, .login-btn, .register-btn {
    padding: 0.5rem !important;
}

  .dashboardDropdown, .dashboardSubmenuList, .learningDropdown, .libDropdown, .userDropdown {
      position: static;
      box-shadow: none !important;
  }

.loginrequired{
  font-size: 1.2rem;
}

.chevron{
  right: 20px;
}


  #register-firstname, #register-lastname{
    width: 100%;
  }
  

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }


  .feature-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .hero-image{
    width: 100%;
    min-width: 20rem;
    max-width: 30rem;

  }

  .spinner{
    left: 50%;
  }

  .nav-links{
  position: fixed;
  top: 2.6rem;
  background: var(--bg-color);
  width: 100%;
  padding: 1rem;
  left: 50%;
  transform: translateX(-50%);
  }
  

  .nav-links a, .nav-links button, .dashboardToggle, .submenuToggle, .learningToggle, .libToggle, .userToggle {
    width: 100%;
    display: block;
    border: 1px solid var(--halftone-color);
    padding: 0.5rem;
    margin: 0.25rem auto;
    text-align: center;
    font-size: 1.25rem;
    min-height: 3rem;
  }
  
    .nav-links a:hover, .nav-links button:hover, .dashboardToggle:hover, .submenuToggle:hover, .learningToggle:hover, .libToggle:hover, .userToggle:hover{
    border: 1px solid var(--primary-color) !important;
  }
  
  #libHeaderTitle{
    max-width: 100%;
    height: 2rem;
    display: block;
    padding: 0.25rem 25px 0.25rem;
  }
 

  .dashboardDropdown li, .learningDropdown li, .libDropdown li, .userDropdown li {
    border: none;
    }
    

  .dashboardDropdown a, .learningDropdown a, .dashboardSubmenuList a, .libDropdown a, .userDropdown a  {
    border: 1px solid transparent;
    background: rgba(100, 100, 100, 0.1);
  }
 


  #designtooltip, #accounttooltip{
    background: none;
    border: none;
    padding: 0rem;
    position: relative;
    transform: translateX(0%);
    display: inline-block;
    left: 0;
    top: 0;
    font-size: 1.25rem;
  }
  
  #faUser{
      display: none;
  }
  
  

  .theme-toggle:hover i, .theme-toggle:hover p{
    color: var(--primary-color);
  }

  .libToggle{
  min-width: 12rem;
  white-space: nowrap;
  max-width: 100%;
}

 
}

/* Note Modal as a draggable window */
.note-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 350px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-color);
    z-index: 1010;
    padding: 15px;
    display: flex;
    flex-direction: column;
}


.note-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.note-modal .modal-body {
    flex-grow: 1;
    margin-bottom: 15px;
}

.note-modal .modal-footer {
    text-align: right;
}

.note-textarea {
    width: 100%;
    height: 100%;
    border: 1px solid var(--halftone-color);
    border-radius: 5px;
    padding: 10px;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-color);
    resize: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 60, 0.75);
    z-index: 1005;
}

/* New note button */
#newNoteBtn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Note Modal as a draggable window */
.note-modal {
    position: fixed;
    width: 300px;
    height: 350px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-color);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.note-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.note-modal .modal-body {
    flex: 1;
    padding: 1rem 0rem;
    overflow: hidden;
    display: flex;
}

.note-modal .modal-footer {
    padding: 10px 15px;
    text-align: right;
    border-top: 1px solid var(--halftone-color);
    flex-shrink: 0; /* Prevent footer from shrinking */
}

#noteContent{
    padding: 0.5rem !important; 
}

#closeNoteModal:hover i::before, #closeNoteModal:hover i, #closeNoteModal:hover{
    color: white !important;
}

.note-textarea {
    width: 100%;
    height: 100%;
    border: 1px solid var(--halftone-color);
    border-radius: 5px;
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    resize: none;
}

/* Improved floating note button */
.floating-note-btn {
    position: fixed;
    left: 30px; /* Position on left side */
    bottom: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-note-btn i {
    color: white; /* Ensure the icon is white */
}

.floating-note-btn:hover {
    background: var(--hover-color);
}

.moving {
    cursor: grabbing !important;
}


#top-knowlib-logo{
        display: block;
        max-width: 11rem;
}

#top-knowlib-icon{
        display: none;
        position: absolute;
        left: 1rem;
        top: 0.9rem;
        width: 2rem;
        height: auto;
        cursor: pointer;
}
    
@media screen and (max-width: 300px) {
    
    .logo{
        position: absolute;
        left: 1rem;
        top: 0rem;
        width: 2rem;
        height: auto;
        cursor: pointer;
    }
    
    #top-knowlib-logo{
        display: none;
    }
    #top-knowlib-icon{
        display: block;
    }
}
