:root {
    --sidebar-width: 250px;
    --sidebar-collapsed: 0;
    --transition: 0.3s ease;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Aptos', 'Calibri', sans-serif;
    background-color: #303030;
    min-height: 100vh;
    background-image: url("https://jkz-group.de/bilder/Homepage_Banner.png");
    background-repeat: no-repeat; /* Prevents tiling */
    background-size: cover; /* Ensures the image covers the entire viewport */
    background-attachment: fixed; /* Keeps the image static while scrolling */
    background-position: center; /* Centers the image */
}

.log-in {
    font-size: 1.3rem;
}

footer a {
  font-size: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

footer img{
  width: 2rem;
  margin-left: 3em;
  margin-right: 3em;
  transform: scale(1);
  transition: .2s;
}
footer img:hover{
  transform: scale(1.3);
  transition: .2s;
}
.instagram img:hover{
  content: url("https://jkz-group.de/bilder/instagram_color.png");
}
.youtube img:hover{
  content: url("https://jkz-group.de/bilder/youtube_color.png");
}
.twitch img:hover{
  content: url("https://jkz-group.de/bilder/zucken_color.png");
}
.discord img:hover{
  content: url("https://jkz-group.de/bilder/discord_color.png");
}
.twitter img:hover{
  content: url("https://jkz-group.de/bilder/twitter_color.png");
}
.socials a:hover{
  text-decoration: none;
}
.jkz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  background: #4b4b4b;
  color: #fff;
  transition: background 0.15s ease, transform 0.05s ease;
}
.jkz-button:hover {
  background: #2c2c2c;
  transition: background 0.15s ease, transform 0.05s ease;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: white;
  text-decoration: underline;
}

.flex-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    flex: 1;
}

/* ---------- Header ---------- */
header {
    background-color: #000000;
    color: #FFFFFF;
    font-weight: bold;
    padding: 10px;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-size: 2rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
header img {
    width: 3rem;
}
.header-left {
    text-align: left;
}
.header-middle {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.header-right {
    text-align: right;
    visibility: hidden;
}
.profile-menu {
  position: relative;
  display: inline-block;
}

.profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid #fff;
}

.profile-menu { position: relative; }
.profile { width: 36px; height: 36px; border-radius: 50%; background-size: cover; background-position: center; cursor: pointer; }
.dropdown {
  font-size: 1.5rem;
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 300px; background:#111; color:#fff; border:1px solid #333; border-radius:12px; padding:8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); display:none; z-index: 1000;
}
.dropdown a, .dropdown .dropdown-header { display:block; padding:10px 12px; text-decoration:none; color:#fff; }
.dropdown a:hover { background:#1c1c1c; border-radius:8px; }



/* ---------- Burger Button ---------- */
.burger {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* ---------- Layout ---------- */
.layout {
    display: flex;
    flex: 1;
    transition: margin-left var(--transition);
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--sidebar-width);
    background: rgba(40, 40, 40, 1);
    color: #fff;
    overflow-y: auto;
    transform: translateX(-100%); /* standard: versteckt (Mobile) */
    transition: transform var(--transition), width var(--transition);
    z-index: 1000;
    padding-top: 5rem; /* Platz für Header */
}

.sidebar nav a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: #fff;
}

.sidebar nav a:hover {
    background: #3f3f3f;
}

/* Sidebar sichtbar im Mobile */
.sidebar.active {
    transform: translateX(0);
}

/* ---------- Inhalt ---------- */
.content {
    flex: 1;
    padding: 2rem;
    min-height: 80vh;
    width: 100%;
}

.meta{
  text-align: center;
}

section {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 2rem;
    margin: 1rem;
    color: #FFFFFF;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.title {
    background-color: rgba(0, 0, 0, 0.65);
}

.error-title {
    display: flex;
    justify-content: center;
    align-items: center;
  min-height: 65vh;
  font-size: 2rem;
}

.homepage_title {
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: rgba(0, 0, 0, 0.65);
    background-image: url("https://jkz-group.de/bilder/Homepage_Title.png");
    background-repeat: no-repeat; /* Prevents tiling */
    background-size: cover; /* Ensures the image covers the entire viewport */
}

.development_title {
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: rgba(0, 0, 0, 0.65);
    background-image: url("https://jkz-group.de/bilder/Development_Title.png");
    background-repeat: no-repeat; /* Prevents tiling */
    background-size: cover; /* Ensures the image covers the entire viewport */
}

.entertainment_title {
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: rgba(0, 0, 0, 0.65);
    background-image: url("https://jkz-group.de/bilder/Entertainment_Title.png");
    background-repeat: no-repeat; /* Prevents tiling */
    background-size: cover; /* Ensures the image covers the entire viewport */
    background-position: center;
}

.error-title h1 {
  font-size: 5rem;
}

.form-section {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

h1 {
    text-align: center;
    font-size: 2rem;
}

footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    bottom: 0;
    padding: 1rem;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

input,
button {
    width: 60%;
    height: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.error {
    color: rgb(255, 0, 0);
    background-color: #000000;
    width: 100%;
    text-align: center;
    height: 1rem;
    padding: 1rem;
}

/* Container */
.social-login {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Basis für beide Buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  transition: background 0.3s, transform 0.1s;
}

.btn-social img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}

/* Hover-Effekt */
.btn-social:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Google */
.btn-social.google {
  background: #fff;
  border: 1px solid #dadce0;
  color: #444;
}
.btn-social.google:hover {
  background: #f8f9fa;
}

/* Discord */
.btn-social.discord {
  background: #5865F2;
  color: #fff;
}
.btn-social.discord img {
  filter: brightness(0) invert(1); /* Logo weiß einfärben */
}
.btn-social.discord:hover {
  background: #4752c4;
}

/* Responsiv: unter 900px einspaltig stapeln */
@media (max-width: 900px) {
  .sections { grid-template-columns: 1fr; }
}

/* ---------- Desktop-Modus ---------- */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* immer sichtbar */
        background: rgba(15, 15, 15, 0.75);
        height: fit-content;
        width: 100%;
        padding-top: 4rem;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .header-left{
      visibility: hidden;
    }

    .layout {
        margin-top: 0;
    }

    .content, .sections{
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .content{
      margin-top: 5rem;
    }

    section{
      width: 75%;
    }

    nav{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        height: fit-content;
        flex: 1;
    }

    nav > * {
      flex: 1; /* jedes Item gleich breit */
      text-align: center;
    }

    nav a{
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Einklappbar auf Desktop */
    .sidebar.collapsed {
        width: var(--sidebar-collapsed);
    }

    .layout.collapsed {
        margin-left: var(--sidebar-collapsed);
    }
}
