@charset "UTF-8";
/* ==============================
   The ZL Flap Club: Global Styles
   Datei: global.css
============================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@300;400;500&display=swap');

html {
  scroll-behavior: smooth;
}


/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;  
}

body {
  background: none;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  margin: 0;
  line-height: 1.6;	
}


a {
  color: #111;                 /* vorher #b89161 */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #000;                 /* vorher #a47a50 */
}




/* =====================
   Buttons (Global Style)
====================== */
.cta-btn,
button {
  background-color: #111;      /* vorher #d4af7f */
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover,
button:hover {
  background-color: #000;      /* vorher #b89161 */
}
/* Ausnahme fÃƒÆ’Ã‚Â¼r Wechselklappen-Buttons */
.wechselklappe-btn {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background-color: #f2f2f2;   /* vorher #efebe5 */
  cursor: pointer;
  border: 1px solid #ccc;
  padding: 0;
  box-sizing: border-box;
}


/* Kleine Variante fÃƒÆ’Ã‚Â¼r Inline-Buttons */
.cta-btn.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 40px;
}



/* =====================
   Neuer Header (Facebook-Style)
====================== */


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);	
}

.navbar-left, .navbar-center, .navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  max-height: 40px;
  height: auto;
}

.nav-icon-link {
  font-size: 1.25rem;
  color: #333;
  position: relative;
  text-decoration: none;
}

.nav-icon-link:hover {
  color: #111;                 /* vorher #b89161 */
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #d9534f;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 16px;
  text-align: center;
}

.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.profile-dropdown {
  position: relative;
}


.profile-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #333;                 /* vorher #a47a50 */
  text-decoration: none;
  font-size: 0.95rem;
}

.profile-menu a:hover {
  background: #f5f5f5;         /* vorher #f8f5f0 */
  color: #111;                 /* vorher #b89161 */
}

.circle-button {
  width: 40px;
  height: 40px;
  background-color: #f2f2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;                 /* vorher #b89161 */
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.circle-button:hover {
  background-color: #e7e7e7;
  transform: scale(1.05);
}

.circle-button i {
  font-size: 1.1rem;
  color: #111;                 /* vorher #b89161 */
}

.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  position: relative; /* notwendig fÃ¼r ::after */
  z-index: 1;
}


.profile-dropdown:hover .profile-pic {
  box-shadow: 0 0 0 2px #111;  /* vorher #b89161 */
  transition: box-shadow 0.2s ease;
}



.profile-pic {
  position: relative;
  z-index: 1;
}


.navbar-center .nav-icon-link i {
  color: #111;                 /* vorher #b89161 */
  transition: color 0.3s ease;
}

.navbar-center .nav-icon-link:hover i {
  color: #000;                 /* vorher #a47a50 */
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: 4rem; /* â¬…ï¸ Hier kannst du den Abstand anpassen */
}


.nav-icon-link {
  position: relative;
}

.nav-icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px); /* etwas mehr Abstand */
  left: 50%;
  transform: translateX(-50%);
  background-color: #8A8888;
  color: white;
  padding: 6px 10px; /* â¬…ï¸ grÃ¶ÃŸerer Tooltip */
  font-size: 0.8rem;  /* â¬…ï¸ etwas grÃ¶ÃŸerer Text */
  white-space: nowrap;
  border-radius: 8px; /* â¬…ï¸ grÃ¶ÃŸerer Radius */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* optional: weicher Schatten */
}

.nav-icon-link::after{
  z-index: 5000;
}


.nav-icon-link:hover::after {
  opacity: 1;
}

.profile-dropdown.circle-button {
  background: transparent;       /* kein grauer Button-Kreis */
  box-shadow: none;              /* Schatten entfernen */
  padding: 0;                    /* kein Innenabstand */
}

.profile-dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* gleiche HÃ¶he wie .circle-button */
  width: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile-dropdown {
  position: relative; /* Wichtig, damit der Pfeil sich daran orientiert */
}

.profile-arrow {
  position: absolute;
  bottom: 0px;
  right: -2px;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.profile-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #111;   /* vorher #b89161 */
  position: relative;
  top: 1px;
}




.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}









/* =====================
   Footer ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Flap Club Elegant Look
====================== */

footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, transparent, #cfcfcf, transparent); /* vorher #d4af7f */
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Footer Container */
footer {
  background: #f6f6f6;          /* vorher #f8f5f0 */
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;                  /* vorher #5a4b44 */
  position: relative;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-links a {
  color: #555;                  /* vorher #5a4b44 */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #111;                  /* vorher #b89161 */
  text-decoration: underline;
}

/* Kleine Credits-Zeile darunter */
.footer-credits {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.8rem;
  line-height: 1.5;
}


/* =====================
   Scroll-To-Top Button
====================== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 1.2rem;
  border: none;
  outline: none;
  background-color: #111;       /* vorher #d4af7f */
  color: white;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #000;       /* vorher #b89161 */
  transform: scale(1.05);
}


.nav-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}



.notification-link {
  display: inline-block;
  position: relative;
}

.notification-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  color: #111;                  /* vorher #b89161 */
  stroke: #111;                 /* vorher #b89161 */
}

.notification-link:hover .notification-icon {
  stroke: #000;                 /* vorher #a47a50 */
  transform: scale(1.1);
  transition: all 0.3s ease;
}



.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #d9534f;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: bold;
}
/* Bei neuen Nachrichten: Hintergrund-Kreis */
.notification-link.has-new {
  background-color: #f2f2f2;    /* vorher #fff5e9 */
  box-shadow: 0 0 4px rgba(0,0,0,0.12); /* vorher warm */
}

/* ÃƒÂ°Ã…Â¸Ã¢â‚¬ÂÃ‚Â´ Der rote ZÃƒÆ’Ã‚Â¤hler-Badge */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #d9534f;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: bold;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}



/* =====================
   User-Badges
====================== */

.badge-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  color: #111;                  /* vorher #b89161 */
}
.badge-icon[title] {
  cursor: help;
}

.user-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.4rem;
}

.badge-online {
  width: 8px;
  height: 8px;
  background-color: #3bb043;
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}

.badge-icon[data-tooltip] {
  position: relative;
  cursor: default;
}

.badge-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -42px; /* über dem Badge */
  left: 50%;
  transform: translateX(-50%);
  background-color: #8A8888;
  color: white;
  padding: 6px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif; /* ← jetzt wie im Header */
  font-weight: 400;
}



.badge-icon[data-tooltip]:hover::after {
  opacity: 1;
}



/* =====================
   Chat-Panel
====================== */


#notification-panel {
  position: fixed;
  top: 60px;
  right: 0;
  width: 420px;
  max-height: 80vh; /* maximal 80% der FensterhÃƒÂ¶he */
  background: #fff;
  box-shadow: none;
  border-left: 1px solid #ccc;
  border-radius: 0;
  padding: 1em;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;   /* statt overflow-y:auto */

}

#notification-panel.visible {
  transform: translateX(0);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

#notification-content{
  height: calc(80vh - 70px);
  overflow-y: auto;
}



#notification-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

#notification-panel #close-panel {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

.notification-item.system-highlight {
  background-color: #FFF7F7; /* hellrot */
}


.hidden {
  display: none;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee; /* vorher #f0e9e0 */
  padding-bottom: 0.5rem;
}

.notification-list a {
  color: #111;                 /* vorher #b89161 */
  text-decoration: none;
  display: block;
}

.notification-list a:hover .notification-from,
.notification-list a:hover .notification-preview,
.notification-list a:hover .notification-thread,
.notification-list a:hover .notification-time {
  color: #000;                 /* vorher #a47a50 */
}



.notification-date {
  font-size: 0.8rem;
  color: #999;
}
#notification-panel h3 {
  font-size: 1.2rem;
  color: #111;                 /* vorher #b89161 */
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

#notification-panel a {
  color: #555;                 /* vorher #5a4b44 */
  font-size: 0.85rem;
  font-weight: 300;	
  line-height: 1.2;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}
.notification-preview {
  font-size: 0.8rem;
  color: #777;
}


.notification-time {
  font-size: 0.65rem;
  color: #aaa;
}

.notification-item {
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
}


#notification-panel a:hover {
  color: #111;                 /* vorher #b89161 */
  /* HintergrundÃƒÂ¤nderung entfernen */
  background: none;
}
.notification-item.unread .notification-from {
  font-weight: bold;
  color: #111;                 /* vorher #b89161 */
}
.notification-item.unread-message a {
  font-weight: bold;
}


.notification-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
}

.notification-from {
  font-weight: 500;
  color: #111;                 /* vorher #b89161 */
  margin-bottom: 4px;
}

.notification-preview {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.3;
}

.notification-time {
  font-size: 0.75rem;
  color: #999;
}



.notification-avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-block;
}

.notification-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.notification-type-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.badge-message {
  background-color: #4caf50; /* GrÃƒÂ¼n fÃƒÂ¼r Nachrichten */
}

.badge-reply {
  background-color: #1877f2; /* Blau fÃƒÂ¼r Threadantworten */
}

.badge-system {
  background-color: #ff9800; /* Orange fÃƒÂ¼r System */
}
.badge-system {
  background-color: #ff9800; /* Orange */
}

.notification-item.unread .notification-from,
.notification-item.unread .notification-thread,
.notification-item.unread .notification-preview {
  font-weight: bold;
}

#notification-panel .notification-text,
#notification-panel .notification-preview,
#notification-panel .notification-from,
#notification-panel .notification-thread,
#notification-panel .notification-time {
  text-align: left;
}





.hamburger {
  width: 26px; /* schmaler als vorher */
  height: 20px; /* minimal kleiner */
   margin-left: auto; /* ðŸ”¹ schiebt ihn ganz nach rechts */	
  position: relative;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px; /* zusÃ¤tzlicher Abstand zwischen den Linien */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px; /* dÃ¼nner */
  background-color: #111;      /* vorher #b89161 */
  border-radius: 1px;
  transition: all 0.3s ease-in-out;
}



@media (max-width: 768px) {
  [data-tooltip]::after,
  [data-tooltip]::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
  }
}



@media (max-width: 768px) {
.nav-container {
  width: 100%;
  max-width: 100%;
  padding: 0; /* â¬…ï¸ kein Abstand mehr */
  display: flex;
  flex-direction: column;
}

.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ðŸ‘ˆ wichtig */
  width: 100%;
}

.nav-icons-right {
  margin-left: auto; /* ðŸ‘ˆ das schiebt alles nach ganz rechts */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

  .notification-toggle,
  .profile-dropdown,
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
	 }

@media (max-width: 768px) {
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 100px !important;
  }
}

 
	 
.nav-links {
  position: fixed;
  top: 60px;                 /* unter der Navbar */
  right: 1rem;               /* etwas Abstand zum Rand */
  height: auto;
  max-height: 85vh;
  width: 80vw;
  max-width: 300px;
  background-color: #f6f6f6; /* vorher #fffdf9 */
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

.nav-links.show {
  display: flex;
  transform: translateX(0);
}

.nav-links li {
  list-style: none;
  margin-bottom: 1.2rem;
}

.nav-links a {
  color: #111;               /* vorher #b89161 */
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  display: block;
}

.nav-links a:hover {
  color: #000;               /* vorher #a47a50 */
}


  /* Panel: rechts öffnen (mobile override) */
#notification-panel{
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
  width: 70vw !important;
  top: 64px !important;
  max-height: 70vh !important;

  border-radius: 0 !important;           /* eckig */
  box-shadow: -2px 0 8px rgba(0,0,0,.2); /* Schatten nach links */
  border-left: 1px solid #ccc !important;
  border-right: 0 !important;

  overflow: hidden !important;           /* WICHTIG: keine 2. Scrollbar */
}


  #notification-panel.visible {
    transform: translateX(0) !important;
  }

  .main-content {
    margin-top: 130px;
  }
	


[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #8A8888;
  color: white;
  padding: 6px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-tooltip]:hover::after {
  opacity: 1;
}


[data-tooltip]:hover::before {
  opacity: 1;
}


.profile-dropdown[data-tooltip] {
  position: relative;
}

/* =========================
   Mega-Menü (Reset): Links 2 Bilder, rechts vertikales Profil-Menü
   -> bitte ganz ans ENDE der global.css
========================= */

/* =====================
   Neuer Header (Facebook-Style) + Tooltips + Mega-Menü (final)
====================== */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  padding:0.6rem 1rem;
  border-bottom:1px solid #ddd;
  position:fixed;
  width:100%;
  top:0;
  z-index:1000;
  box-shadow: 0 -1px 0 rgba(0,0,0,0);
  overflow:visible; /* wichtig: Tooltips nicht abschneiden */
}

.navbar-left, .navbar-center, .navbar-right{
  display:flex;
  align-items:center;
  gap:1rem;
  overflow:visible; /* wichtig */
}

.logo-img{ max-height:40px; height:auto; }

/* Icons */
.nav-icon-link{
  font-size:1.25rem;
  color:#333;
  position:relative;
  text-decoration:none;
}
.nav-icon-link:hover{ color:#111; }

.navbar-center .nav-icon-link i{
  color:#111;
  transition:color .3s ease;
}
.navbar-center .nav-icon-link:hover i{ color:#000; }

.navbar-center{
  display:flex;
  align-items:center;
  gap:4rem;
}

/* Tooltips (nur EIN System, nicht doppelt) */
.navbar [data-tooltip]{ position:relative; }

.navbar [data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  top:calc(100% + 18px); /* <-- weiter runter */
  left:50%;
  transform:translateX(-50%);
  background:#8A8888;
  color:#fff;
  padding:6px 10px;
  font-size:.8rem;
  white-space:nowrap;
  border-radius:8px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:99999; /* über Mega-Menü */
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.navbar [data-tooltip]:hover::after{ opacity:1; }

/* Buttons rechts */
.circle-button{
  width:40px;
  height:40px;
  background:#f2f2f2;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  transition:background-color .3s ease, transform .2s ease;
  position:relative;
}
.circle-button:hover{
  background:#e7e7e7;
  transform:scale(1.05);
}
.circle-button i{ font-size:1.1rem; color:#111; }

/* Badge */
.notification-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  background:#d9534f;
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:999px;
  font-weight:700;
  line-height:1;
  min-width:18px;
  text-align:center;
}

/* Profil */
.profile-dropdown{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  width:40px;
  border-radius:50%;
  overflow:visible; /* wichtig */
}

.profile-pic{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  cursor:pointer;
  position:relative;
  z-index:1;
}

.profile-dropdown:hover .profile-pic{
  box-shadow:0 0 0 2px #111;
  transition:box-shadow .2s ease;
}

.profile-arrow{
  position:absolute;
  bottom:0;
  right:-2px;
  width:18px;
  height:18px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
  pointer-events:none;
}

.profile-arrow::before{
  content:"";
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #111;
  position:relative;
  top:1px;
}

/* =====================
   Neuer Header (Facebook-Style) – FINAL CLEAN
   Tooltips über Mega-Menü + Profilmenü ohne Trennlinien & ohne Hover-Background
====================== */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  padding:0.6rem 1rem;
  border-bottom:1px solid #ddd;
  position:fixed;
  top:0; left:0; right:0;
  width:100%;
  z-index:10000;              /* Navbar über allem */
  box-shadow: 0 -1px 0 rgba(0,0,0,0);
  overflow:visible;           /* Tooltips nicht abschneiden */
}

.navbar-left, .navbar-center, .navbar-right{
  display:flex;
  align-items:center;
  gap:1rem;
  overflow:visible;
}

.logo-img{ max-height:40px; height:auto; }

/* Center Abstand */
.navbar-center{
  display:flex;
  align-items:center;
  gap:4rem;
}

/* Icons */
.nav-icon-link{
  font-size:1.25rem;
  color:#333;
  position:relative;
  text-decoration:none;
  overflow:visible;
}
.nav-icon-link:hover{ color:#111; }

.navbar-center .nav-icon-link i{
  color:#111;
  transition:color .3s ease;
}
.navbar-center .nav-icon-link:hover i{ color:#000; }

/* =========================================================
   EIN Tooltip-System – NUR für .nav-icon-link[data-tooltip]
   (Wichtig: KEIN [data-tooltip] global, KEIN .nav-icon-link::after ohne Attribut)
========================================================= */

.nav-icon-link[data-tooltip]::after{
  content: attr(data-tooltip);
  position:absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background:#8A8888;
  color:#fff;
  padding:6px 10px;
  font-size:.8rem;
  white-space:nowrap;
  border-radius:8px;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index: 99999;             /* Tooltip über Mega-Menü */
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.nav-icon-link[data-tooltip]:hover::after{
  opacity:1;
}

/* Mobile: Tooltips aus */
@media (max-width: 768px){
  .nav-icon-link[data-tooltip]::after{
    display:none !important;
    content:none !important;
  }
}

/* =========================================================
   Buttons rechts (Kreise)
========================================================= */

.circle-button{
  width:40px;
  height:40px;
  background:#f2f2f2;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  transition:background-color .3s ease, transform .2s ease;
  position:relative;
}
.circle-button:hover{
  background:#e7e7e7;
  transform:scale(1.05);
}
.circle-button i{ font-size:1.1rem; color:#111; }

/* Badge (rot) */
.notification-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  background:#d9534f;
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:999px;
  font-weight:700;
  line-height:1;
  min-width:18px;
  text-align:center;
}

/* =========================================================
   Profil-Button (Bild + Pfeil)
========================================================= */

.profile-dropdown{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  width:40px;
  border-radius:50%;
  overflow:visible;
}

.profile-pic{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  cursor:pointer;
  position:relative;
  z-index:1;
}

.profile-dropdown:hover .profile-pic{
  box-shadow:0 0 0 2px #111;
  transition: box-shadow .2s ease;
}

.profile-arrow{
  position:absolute;
  bottom:0;
  right:-2px;
  width:18px;
  height:18px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
  pointer-events:none;
}

.profile-arrow::before{
  content:"";
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #111;
  position:relative;
  top:1px;
}

/* =========================================================
   Mega-Menü: links 2 Bilder (kompakt), rechts Textlinks (dezent)
========================================================= */

.profile-menu{
  display:none;                /* JS setzt display:block */
  position:fixed;
  top:60px;
  left:0;
  right:0;
  width:100vw;
  background:#fff;
  border-top:1px solid #e6e6e6;
  border-bottom:1px solid #e6e6e6;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
  padding:18px 0;              /* etwas weniger Höhe */
  border-radius:0;
  transform:translateY(-8px);
  opacity:0;
  pointer-events:none;
  transition:transform 160ms ease, opacity 160ms ease;
  z-index:9000;
  overflow:visible;
}

/* sichtbar (JS) */
.profile-menu[style*="display: block"]{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* Grundlayout */
.profile-menu .menu-shell{
  max-width:1120px;            /* etwas schmaler */
  margin:0 auto;
  padding:0 36px;
  display:grid;
  grid-template-columns:1fr 280px; /* rechte Spalte schmaler */
  gap:36px;
  align-items:start;
}

/* Typo */
.profile-menu,
.profile-menu a{
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:300;
  letter-spacing:.15px;
}

/* =========================================================
   Linke Seite – Bilder kleiner & ruhiger
========================================================= */

.profile-menu .menu-media{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px, 260px)); /* kleiner */
  gap:22px;
  justify-content:center;
  align-items:center;
  padding-top:4px;
}

.profile-menu .menu-media-card{
  display:block;
  background:transparent;   
  border:0;
  box-shadow:none;
  overflow:hidden;
  aspect-ratio:5 / 3;          /* flacher = wirkt kleiner */
}


.profile-menu .menu-media-card img{
  width:100%;
  height:100%;
  object-fit:contain;   /* <- WICHTIG: kein Abschneiden */
  display:block;
  padding:10px;         /* optional, sieht edel aus */
}


/* =========================================================
   Rechte Seite – Textlinks clean & dezent
========================================================= */

.profile-menu .menu-right{
  justify-self:end;
  width:280px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

/* alte Linien / Backgrounds zuverlässig killen */
.profile-menu a{
  border:0 !important;
  border-top:0 !important;
  border-bottom:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-decoration:none !important;
}

/* falls irgendwo <hr> existiert */
.profile-menu hr{
  display:none !important;
}

/* Textlinks */
.profile-menu .menu-right a{
  display:inline-block;
  width:100%;
  padding:8px 0;               /* weniger vertikaler Raum */
  font-size:0.95rem;           /* kleiner als vorher */
  line-height:1.3;
  color:#222;                  /* etwas weicher als #111 */
  background:transparent !important;
}

/* Hover: NUR minimal heller */
.profile-menu .menu-right a:hover{
  background:transparent !important;
  color:#555;                  /* dezenter Hover */
  text-decoration:none !important;
}

/* ===== FIX: Profil-Tooltip AUS, wenn Profilmenü offen ===== */
body.profile-menu-open .profile-dropdown[data-tooltip]::after{
  display: none !important;
  content: none !important;
}

/* ===== Tooltip-System bereinigen: nur Icon-Links in Navbar dürfen Tooltips haben ===== */

/* 1) Allgemeines Tooltip-System AUS (aber NICHT für Navbar-Icons + Badge-Icons) */
[data-tooltip]::after{
  content:none;
  display:none;
}

/* 2) Badge-Tooltips wieder AN */
.badge-icon[data-tooltip]::after{
  content: attr(data-tooltip) !important;
  display: block !important;
}

/* 3) Navbar-Tooltips wieder AN (nur auf nav-icon-link) */
.nav-icon-link[data-tooltip]::after{
  content: attr(data-tooltip) !important;
  display: block !important;
}

/* =========================
   MOBILE OFFCANVAS PANELS (Hamburger + Notification)
   - öffnen von rechts
   - nur mobil
   - keine Rundungen
   - Panels fast volle Breite (100vw)
   - nur ein Panel gleichzeitig (per JS)
========================= */
@media (max-width: 768px) {

  /* Desktop-Header ausblenden / Mobile einblenden */
  .header-desktop { display: none !important; }
  .header-mobile  { display: block !important; }

  /* Navbar fix (falls global überschrieben wird) */
  .navbar{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 -1px 0 rgba(0,0,0,0);
  }

  /* Rechts-Icons: Glocke + Hamburger */
  .mobile-navbar .mobile-top-row{
    width:100%;
    display:flex;
    align-items:center;
  }

  .mobile-icons-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.6rem;
  }

  /* =========================
     HAMBURGER BUTTON (iOS-sicher) + X mittig
  ========================= */
.hamburger{
  background: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none;
  box-shadow: none;

  padding: 0 !important;          /* KILLT global button padding */
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;

  position: relative !important;
  width: 26px !important;
  height: 22px !important;
  cursor: pointer;
  z-index: 1100;
  display: inline-block !important;

  touch-action: manipulation;     /* Android Tap zuverlässig */
}



  .hamburger:focus,
  .hamburger:active{
    background: transparent !important;
    outline: none;
    box-shadow: none;
  }

  .hamburger::-moz-focus-inner{ border:0; }

  .hamburger span{
  position:absolute !important;
  left:50% !important;
  transform: translateX(-50%);
  width:18px !important;        /* << DAS macht die Linien sichtbar schmaler */
  height:1.8px !important;
  background:#111;
  border-radius:1px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin:center;
}


 .hamburger span:nth-child(1){ top:3px; }
.hamburger span:nth-child(2){ top:10px; }
.hamburger span:nth-child(3){ top:17px; }  /* passt jetzt, weil height 22px */


.hamburger.open span:nth-child(1){
  top:10px;
  transform: translateX(-50%) rotate(45deg);
}
.hamburger.open span:nth-child(2){
  opacity:0;
}
.hamburger.open span:nth-child(3){
  top:10px;
  transform: translateX(-50%) rotate(-45deg);
}


  /* =========================
     OVERLAY
  ========================= */
  .mobile-panel-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

body.mobile-panel-open .mobile-panel-overlay,
body.mobile-menu-open .mobile-panel-overlay,
body.notification-open .mobile-panel-overlay{
  opacity: 1;
  pointer-events: auto;
}


  /* =========================
     OFFCANVAS PANEL (Hamburger)
  ========================= */
  .mobile-panel{
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: -2px 0 10px rgba(0,0,0,.18);
    transform: translateX(110%);     /* ✅ wichtiger Fix */
    transition: transform .22s ease;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;           /* ✅ wichtiger Fix */
  }


  body.mobile-menu-open #mobileMenuPanel{
    transform: translateX(0);
  }

    body.mobile-menu-open #mobileMenuPanel{
    pointer-events: auto;
  }


  .mobile-panel-inner{
    padding: 16px 18px 24px;
  }

  /* Menü-Layout: enger */
  .mobile-panel-nav{
    display:flex;
    flex-direction:column;
    gap: 0; /* kein Extra-Gap */
  }

  /* Linien bleiben, Abstand kleiner */
  .mobile-panel-link{
    display:block;
    padding: 6px 0;            /* << kleiner */
    color:#111;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: none;
  }

  .mobile-panel-link.is-sub{
    padding: 6px 0 6px 12px;   /* << kleiner + etwas weniger Einzug */
    font-weight: 400;
  }

  .mobile-panel-heading{
    margin-top: 10px;
    padding-top: 10px;
    font-size: .85rem;
    letter-spacing: .06em;
    color:#666;
    text-transform: uppercase;
    border-top: 1px solid #ddd;
  }

  .mobile-panel-spacer{ height: 8px; }

  .mobile-panel-logout{
    padding-top: 12px;
    font-weight: 600;
    border-bottom: none;
  }

  /* =========================
     NOTIFICATION PANEL (mobile full width)
  ========================= */
  #notification-panel{
    right: 0 !important;
    left: auto !important;
    top: 60px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;

    border-radius: 0 !important;
    border-left: 1px solid #ccc !important;
    border-right: 0 !important;

    transform: translateX(100%) !important;
    transition: transform .22s ease !important;
    overflow: hidden !important;
    z-index: 9999 !important;
  }

  #notification-panel.visible{
    transform: translateX(0) !important;
  }

  #notification-content{
    height: calc(100vh - 60px - 70px) !important;
    overflow-y: auto !important;
  }
}
