body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

header:not(.invisible) {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#header-left, #header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
}

footer {
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

footer a {
  color: #1c1c1c;
  text-decoration: underline;
}

footer p {
 margin: 0.15cm;
}

@media (prefers-color-scheme: dark)
{
  header:not(.invisible) {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.2);
  }

  footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
  }

  footer a {
    color: #EEEEEE;
  }
}

#startpage-application-list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 20px;
}

.startpage-application-name {
  transform: scale(2.3);
  width: 24px;
  height: 24px;
}

#strawberry-title {
  margin-left: 10px;
  font-weight: 400;
  color: #FFD700;
  text-shadow:
    0 1px 0 #D4AF37,
    0 -1px 0 #FFF9C4,
    0 0 12px rgba(255, 215, 0, 0.9);
  letter-spacing: 1px;
  line-height: 1;
}

.main-padding
{
  padding: 10px;
}












#startpage-box-container-before {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  box-sizing: border-box;
}

#startpage-box-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
box-sizing: border-box;
max-width: 95%;
}


@media (min-height: 800px) {
  #startpage-box-container {
  margin-top: 20px;
  }
}

@media (min-height: 900px) {
  #startpage-box-container {
  margin-top: 135px;
  }
}

@media (min-height: 1000px) {
  #startpage-box-container {
    margin-top: 190px;
  }
}

@media (min-width: 768px) {
  #startpage-box-container {
    max-width: min(80%, 1000px);
  }
}

#startpage-box-logo {
margin-bottom: 20px;
}

#startpage-box-logo-img {
max-width: 160px;
height: auto;
}

#startpage-box-title {
font-size: 2.6rem;
margin: 0 0 10px 0;
font-weight: 400;
color: #FFD700;
text-shadow:
0 1px 0 #D4AF37,
0 -1px 0 #FFF9C4,
0 0 12px rgba(255, 215, 0, 0.9);
letter-spacing: 1px;
line-height: 1;
}

#startpage-box-description {
font-size: 1.1rem;
color: #555;
}

@media (prefers-color-scheme: dark)
{
  #startpage-box-description {
    color: #CCCCCC;
  }
}

/* Responsive Anpassungen */
@media (min-width: 768px) {

  #startpage-box-container {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  }

  #startpage-box-logo {
  margin-bottom: 0;
  margin-right: 30px;
  }

  #startpage-box-content {
  text-align: left;
  }
}






#startpage-search-frame {
z-index: 10;
background-color: #FFFFFF;
border: 1px solid rgba(255, 255, 255, 0.3);
top: 0px;
left: 0px;
right: 0px;
display: flex;
gap: 10px;
align-items: center;
padding: 15px 20px;
border-radius: 50px;
box-sizing: border-box;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
box-shadow: 0 0px 3px rgba(0, 0, 0, 0.3);
}


#startpage-search-form {
  z-index: 10;
  background-color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: min(95%, 1000px);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 50px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 0px 3px rgba(0, 0, 0, 0.3);
}


@media (min-width: 768px) {
  #startpage-search-form {
  width: min(80%, 1000px);
  }
}


@media (prefers-color-scheme: dark)
{
  #startpage-search-frame, #startpage-search-form {
    background: rgba(0, 0, 0, 0.8);
  }
}





@media only screen and (min-width: 769px) {

  header {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding: 4px;
    z-index: 100;
  }

  #open-login-button {
    padding: 10px;
  }

  #strawberry-title {
    font-size: 40px;
    margin-top: 20px;
  }

  #title_icon {
    width: 50px;
    height: 50px;
    margin-top: 4px;
  }

  main {
    overflow: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 1;
  }

  footer {
    height: 0.7cm;
    font-size: 0.35cm;
  }

}


@media only screen and (max-width: 768px) {

  header {
    width: 100%;
    height: 1.2cm;
    box-sizing: border-box;
    padding: 0.2cm;
    z-index: 100;
  }

  #open-login-button {
    padding: 7px;
    font-size: 15px;
  }

  #strawberry-title {
    font-size: 0.8cm;
    margin-top: 0.4cm;
  }

  #title_icon {
    width: 1cm;
    height: 1cm;
    margin-top: 0.12cm;
  }

  main {
    overflow: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 1;
  }

  footer {
    font-size: 0.24cm;
    padding-bottom: 0;
  }

}












/* Basis-Stil für die Kacheln (1,8x größer) */
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: #ffffff;
  border-radius: 16px; /* 1,8x 8px ≈ 14px */
  text-decoration: none;
  color: #333;
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
  position: relative;
  padding: 4px; /* 1,8x 4px ≈ 8px */
  box-sizing: border-box;
  box-shadow: 0px 1px 4px #aaaaaa;
  margin: 0;
}

/* Hover-Effekt */
.app-tile:hover {
  background-color: #fafafa;
  box-shadow: 0px 1px 4px #aaaaaa;
}

/* Symbol-Bereich (skaliert) */
.app-icon {
  position: relative;
  width: 60px; /* 1,8x 24px ≈ 43px */
  height: 60px;
  margin-bottom: 4px; /* 1,8x 2px ≈ 4px */
}

/* Symbol-Bild */
.app-icon img, .app-icon iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Benachrichtigungszahl (skaliert) */
.notification-badge {
  position: absolute;
  top: -3px; /* 1,8x -5px ≈ -8px */
  right: -15px;
  background-color: #ff8800;
  color: white;
  border-radius: 50%;
  width: 28px; /* 1,8x 18px ≈ 32px */
  height: 28px;
  font-size: 15px; /* 1,8x 10px ≈ 16px */
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

/* Zeige Benachrichtigungszahl nur, wenn data-count > 0 */
.notification-badge[data-count]:not([data-count="0"]) {
  visibility: visible;
}

/* App-Name (skaliert) */
.app-name {
  font-size: 12px; /* 1,8x 8px ≈ 14px */
  text-align: center;
  color: #444444;
  margin-top: 2px; /* 1,8x 2px ≈ 4px */
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}


@media (prefers-color-scheme: dark)
{
  .app-tile {
    background-color: #000;
    box-shadow: 0px 1px 4px #aaaaaa;
  }
  .app-tile:hover {
    background-color: #111;
    box-shadow: 0px 1px 4px #aaaaaa;
  }
  .app-name {
    color: #DEDEDE;
  }
}



#app-list {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
}