/* ================================
   Dekotheorie – Kurs-Header
   ================================ */

.deco-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  position: relative;
  z-index: 20;
}

/* ================================
   Innenlayout
   ================================ */

.deco-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0.75rem;

  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ================================
   Obere Zeile: Titel + Login
   ================================ */

.deco-top {
  display: flex;
  align-items: center;
}

/* Kurstitel (kein Link mehr) */
#deco-title{
  font-size: 1.6rem;
  font-weight: 700;
  color: #3b22a3;
  text-decoration: none;
  line-height: 1.2;
  cursor: default;
}

/* Kein Hover-Underline mehr */
#deco-title:hover{
  text-decoration: none;
}


/* Login ganz nach rechts */
.deco-user {
  margin-left: auto;            /* schiebt nach rechts */
  white-space: nowrap;
}

/* ================================
   Login-Button
   ================================ */

.deco-login {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.deco-login:hover {
  background: #f4c542;          /* Punkfish Gelb */
  border-color: #f4c542;
}

/* ================================
   Navigation (zweite Zeile)
   ================================ */

.deco-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
}

.deco-nav li {
  margin: 0;
  padding: 0;
}

.deco-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #444;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.deco-nav a:hover {
  color: #3b22a3;
}

.deco-nav a.active {
  color: #3b22a3;
  border-color: #f4c542;
  font-weight: 600;
}

/* ================================
   Responsive Anpassungen
   ================================ */

@media (max-width: 900px) {
  .deco-title {
    font-size: 1.35rem;
  }

  .deco-nav {
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .deco-nav::-webkit-scrollbar {
    height: 6px;
  }

  .deco-nav::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
  }
}

@media (max-width: 500px) {
  .deco-header-inner {
    padding-top: 0.8rem;
  }

  .deco-title {
    font-size: 1.2rem;
  }

  .deco-login {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}

.deco-user {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.deco-login,
.deco-logout {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.06);
}

.deco-login[disabled] {
  opacity: .7;
  cursor: default;
}

.deco-user-email {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
  opacity: .95;
}

.deco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.25);
}

.deco-badge--ok { background: rgba(0,255,120,.12); }
.deco-badge--warn { background: rgba(255,200,0,.12); }

