@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: rgb(33, 33, 33);
  font-weight: 400;
}

body {
    font-family: "Playfair Display", serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 18px;
}

main {
  flex: 1; /* füllt Platz, drückt Footer nach unten */
}

nav {
    background-color: rgb(33, 33, 33);
    color: white;
    padding: 20px 50px;
    margin: 0;
    font-size: 20px;
}

fieldset {
    border: 1.5px solid white;
    border-radius: 4px;
    padding: 10px;
}

a {
    color: transparent;
    text-decoration: none;
}



footer {
  background-color: rgb(33, 33, 33);
  color: #8d6e63;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

main {
  flex: 1; /* nimmt den restlichen Platz ein */
}

.navText fieldset{
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 8px;
}

.logo {
    cursor: pointer;
}

.navTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navBottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: transparent;
}

.hyperHead {
    color: transparent;
    text-decoration: none;
}

.menuItem {
    cursor: pointer;
    margin: 50;
    font-weight: 500;
    color: #8d6e63;
    text-decoration-line: none;
    transition: color 0.3s;
}

.menuItem:hover {
    color: #ffffff;
}

.footerNav {
  display: flex;                  /* Elemente nebeneinander */
  justify-content: center;        /* Zentriert sie horizontal */
  align-items: center;            /* Vertikal ausgerichtet */
  background-color: #1e1e1e;
  gap: 40px;                      /* Abstand zwischen den Links */
  padding: 20px 0;
}

.footerLink {
  text-decoration: none;
}

.footerItems {
  margin: 0;                      /* Entfernt Standardabstände */
  color: #8d6e63;
  font-size: 18px;
  transition: color 0.3s;
}

.footerItems:hover {
  color: #ffffff;                 /* Beispiel für Hover-Effekt */
}

.copyright {
    color: #8d6e63;
}

.btn {
    position: relative;
    padding: 15px 40px;
    background-color: #8d6e63;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
    display: inline-block;
    width: auto;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    transform: skewX(-20deg);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #b18b7d; 
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1f1f1f;
    color: #8d6e63;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.modal-actions button {
    margin: 10px;
    padding: 8px 16px;
    border: none;
    background: #333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-actions button:hover {
    background: #555;
}

/* --- GLOW Grundstruktur (wird durch Rolle gefärbt) --- */
.profileAvatar::before,
.avatar-small::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: 1;
  animation: rotateGlow 4s linear infinite;
  filter: blur(6px);
}

/* Glatter Ring über dem Glow */
.profileAvatar::after,
.avatar-small::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  z-index: 3;
}

/* === FARBCODES NACH ROLLE === */

/* MEMBER (weiß) */
.profileAvatar.member::before,
.avatar-small.member::before,
.avatar-ring.member::before {
  background: conic-gradient(
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.9)
  );
}

/* ADMIN (rot) */
.profileAvatar.admin::before,
.avatar-small.admin::before,
.avatar-ring.admin::before {
  background: conic-gradient(
    rgba(255, 40, 40, 0.9),
    rgba(255, 40, 40, 0.3),
    rgba(255, 40, 40, 0.9),
    rgba(255, 40, 40, 0.3),
    rgba(255, 40, 40, 0.9)
  );
}

/* MOD (blau) */
.profileAvatar.mod::before,
.avatar-small.mod::before,
.avatar-ring.mod::before {
  background: conic-gradient(
    rgba(90, 170, 255, 0.9),
    rgba(90, 170, 255, 0.3),
    rgba(90, 170, 255, 0.9),
    rgba(90, 170, 255, 0.3),
    rgba(90, 170, 255, 0.9)
  );
}

/* Animation bleibt bestehen */
@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Grundlayout für alle Avatare */
.avatar-ring {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Avatar Bild selbst */
.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/* Größenunterschiede */
.profile .avatar-ring {
    width: 130px;
    height: 130px;
}

.avatar-small.avatar-ring {
    width: 42px;
    height: 42px;
}

/* Rollenfarben */
.avatar-ring.admin {
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.85);
    border: 2px solid rgba(255, 60, 60, 0.9);
}

.avatar-ring.mod {
    box-shadow: 0 0 12px rgba(0, 140, 255, 0.85);
    border: 2px solid rgba(0, 140, 255, 0.9);
}

.avatar-ring.member {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.menuItem.active {
    color: #ffffff !important;
}


 .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #333;
            color: #8d6e63;
            padding: 15px;
            text-align: center;
            display: none; /* Standardmäßig ausgeblendet */
            z-index: 9999;
        }
        .dsgvo-link{
          color: white;
        }
        .cookie-banner p {
            margin: 0;
            font-size: 14px;
        }
        .cookie-banner button {
            padding: 10px 20px;
            margin: 5px;
            color: white;
            border: none;
            cursor: pointer;
        }

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 1200px) {
    nav {
        padding: 15px 30px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    nav {
        padding: 15px 20px;
        font-size: 16px;
    }

    .navTop,
    .navBottom {
        flex-direction: column;
        gap: 15px;
    }

    .menuItem {
        margin: 10px 0;
        font-size: 14px;
    }

    .footerNav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    .footerItems {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
        max-width: 300px;
        padding: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .avatar-ring {
        width: 42px;
        height: 42px;
    }

    .profile .avatar-ring {
        width: 80px;
        height: 80px;
    }

    fieldset {
        padding: 8px;
    }

    .navText fieldset {
        height: 40px;
        font-size: 12px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    nav {
        padding: 10px 15px;
        font-size: 14px;
    }

    .menuItem {
        margin: 5px 0;
        font-size: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
        max-width: 200px;
    }

    .modal-content {
        width: 95%;
        max-width: 280px;
        padding: 12px;
    }

    .modal-actions button {
        margin: 5px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .footerNav {
        flex-direction: column;
        gap: 10px;
    }

    .footerItems {
        font-size: 12px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    footer {
        padding: 10px;
        font-size: 12px;
    }
}