/* assets/css/base.css */
/* Global base styles: tokens, layout, navbar/offcanvas, forms, utilities, profile & calendar, footer */

/* --- Root / Design Tokens --- */
:root{
  --main-color:#37DBDB;
  --main-color-bright:#00ffd5;

  --bg-color:#f5f7fa;

  --card-radius:16px;

  --text-main:#0f172a;
  --text-muted:#64748b;

  --shadow-light:0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover:0 16px 36px rgba(15, 23, 42, 0.12);
}

/* --- Allgemeine Basis-Definitionen --- */
html, body{
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-color);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  color: #39464e;
}

html{ scroll-behavior: smooth; }

/* Container: vollflächig ohne Bootstrap-Seitenränder */
.container-fluid{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-container{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content{ flex: 1; }

/* Spinner in Zahlfeldern ausblenden – Chrome, Safari, Edge */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
/* Spinner in Firefox ausblenden */
input[type=number]{ -moz-appearance: textfield; }

/* Styles heissen noch dashboard-... werden aber in allen Seiten verwendet, deshalb in base.css */

.dashboard-content{
  padding: 18px 18px;
}
@media (min-width: 992px){
  .dashboard-content{ padding: 20px 22px; }
}

/* Header */
.dashboard-header{
  background: transparent;
  color: var(--text-main);
  padding: 6px 0 14px 0;
  margin-bottom: 14px;
  box-shadow: none;
  border-radius: 0;
}
.dashboard-header h1{
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-main);
}
.dashboard-subtitle{
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Section Head */
.dash-section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 10px;
}
.dash-section-title{
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}
.dash-section-sub{
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
}

/* --- Footer --- */
footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f2f2;
  padding: 15px;
  font-size: 0.9rem;
  position: relative;
  border-top: 1px solid rgba(0,0,0,.08);
}
footer a{
  color: #000;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.85rem;
}
footer a:hover{ text-decoration: underline; }
.footer-left{
  margin-left: 10px;
  font-size: 0.85rem;
  color: #888;
}

/* --- Hero, Features und Überschriften --- */
.hero{
  position: relative;
  height: 100vh;
  background: url('../images/background_startseite.jpg') no-repeat center center/cover;
}
.hero-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 8px;
}
.features .col-md-4{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 0;
}

/* --- Logos, Textzentrierung und Links --- */
.logo{
  width: 15vw;
  max-width: 200px;
  height: auto;
}

.text-center{ flex-grow: 1; text-align: center; }

.custom-link{
  text-decoration: none;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
}
.custom-link:hover{
  color: white;
  background-color: var(--main-color);
}

/* --- Utility-Klassen --- */
.d-flex{ display: flex; }
.gap-3{ gap: 15px; }

/* --- Media Queries (global) --- */
@media (max-width: 768px){
  .logo{ width: 25vw; }
}
@media (max-width: 576px){
  .dropdown-menu-center{
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Formulare und Fehler --- */
input.form-control.invalid{ border-color: red !important; }
.error-message{ font-size: 0.875rem; display: none; }
.error-message.active{ display: block; }

.custom-checkbox-container{
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.custom-checkbox-container input[type="checkbox"]{ margin-top: 4px; }

/* Form Controls */
.form-control, .form-select{
  border: none;
  border-bottom: 2px solid #ddd;
  border-radius: 0;
  transition: border-bottom-color 0.3s ease-in, border-bottom-width 0.3s ease-in;
}
.form-control:focus, .form-select:focus{
  border-bottom: 2px solid var(--main-color);
  box-shadow: none;
}

/* Custom Select */
.custom-select{
  padding-right: 0.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"></path></svg>');
  background-position: right 0.25rem center;
  background-size: 12px 12px;
}

/* --- Buttons (legacy) --- */
.btn-register{ background-color: #4C88C7; color: white; border: none; }
.btn-register:hover{ background-color: #3A6EAA; color: white; }

.btn-login{ background-color: #627D99; color: white; border: none; }
.btn-login:hover{ background-color: #4E637A; color: white; }

.btn-outline-info{ border-color: var(--main-color); color: #000; }
.btn-outline-info:hover{ background-color: var(--main-color); color: #fff; }
.btn-outline-info:focus, .btn-outline-info.focus{
  box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.5);
}

/* --- Zusätzliche Utility-Klassen --- */
input, textarea{ text-align: center; }

.fixed-width25{ width: 25px; box-sizing: border-box; }
.fixed-width35{ width: 35px; box-sizing: border-box; }
.fixed-width45{ width: 45px; box-sizing: border-box; }
.fixed-width70{ width: 70px; box-sizing: border-box; }
.fixed-width120{ width: 120px; box-sizing: border-box; }
.fixed-width115{ width: 120px; box-sizing: border-box; }

.custom-padding{ padding: 0.25rem 0.5rem; }
.custom-width{ width: 40px; }
.low-margin-bottom{ margin-bottom: 0.1rem; }

/* --- Sidenav / Offcanvas --- */
.navbar-default{ background-color: #FFF; }

#sidebarMenu.offcanvas{
  --te-sidebar-bg:#0f172a;
  --te-sidebar-surface:rgba(255,255,255,0.06);
  --te-sidebar-surface-strong:rgba(255,255,255,0.1);
  --te-sidebar-border:rgba(148,163,184,0.18);
  --te-sidebar-text:#e8eef9;
  --te-sidebar-text-muted:rgba(226,232,240,0.78);
  --te-sidebar-shadow:0 24px 56px rgba(2, 6, 23, 0.34);

  width: min(100vw, 360px);
  max-width: 100%;
  border-right: 1px solid var(--te-sidebar-border);
  background:
    radial-gradient(circle at top left, rgba(55, 219, 219, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  color: var(--te-sidebar-text);
  box-shadow: var(--te-sidebar-shadow);
}

@media (max-width: 575.98px){
  #sidebarMenu.offcanvas{
    width: 100vw;
    max-width: 100vw;
    border-right: none;
    box-shadow: none;
  }
}

@media (min-width: 992px){
  #sidebarMenu.offcanvas{
    position: sticky;
    top: 12px;
    transform: none;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    border: 1px solid var(--te-sidebar-border);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
  }

  #menuclosebutton{ visibility: hidden; }
}

.nav-offcanvas-fullheight{
  min-height: 100vh;
  min-height: 100dvh;
}

#sidebarMenu .offcanvas-header{
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--te-sidebar-border);
  color: var(--te-sidebar-text);
}

#sidebarMenu .offcanvas-title{
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#sidebarMenu #menuclosebutton{
  filter: invert(1) grayscale(1);
  opacity: 0.82;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#sidebarMenu #menuclosebutton:hover{
  opacity: 1;
  transform: rotate(90deg);
}

#sidebarMenu .offcanvas-body{
  padding: 0.9rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.46) transparent;
}

#sidebarMenu .offcanvas-body::-webkit-scrollbar{
  width: 10px;
}

#sidebarMenu .offcanvas-body::-webkit-scrollbar-thumb{
  background: rgba(148, 163, 184, 0.34);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

#sidebarMenu .offcanvas-body > .nav{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  gap: 0.55rem;
  min-height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sidebarMenu .offcanvas-body > .nav > .nav-item,
#sidebarMenu .submenu-wrapper > .nav > .nav-item{
  width: 100%;
  border: 0;
}

#sidebarMenu .offcanvas-body > .nav > .nav-item > .nav-link,
#sidebarMenu .submenu-wrapper > .nav > .nav-item > .nav-link{
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--te-sidebar-text);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

#sidebarMenu .submenu-wrapper{
  display: block;
  padding-left: 0.15rem;
}

#sidebarMenu .submenu-wrapper > .nav{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  gap: 0.4rem;
  min-height: 0;
  margin: 0.45rem 0 0 !important;
  padding: 0.2rem 0 0 0.85rem;
  list-style: none;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

#sidebarMenu .submenu-wrapper > .nav > .nav-item > .nav-link{
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.18);
  color: var(--te-sidebar-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

#sidebarMenu .nav-link > i:first-child{
  width: 1.1rem;
  text-align: center;
  color: var(--main-color-bright);
  opacity: 0.95;
}

#sidebarMenu .submenu-wrapper .nav-link > i:first-child{
  color: rgba(55, 219, 219, 0.88);
}

#sidebarMenu .nav-link:hover{
  color: #fff;
  background: var(--te-sidebar-surface);
  border-color: rgba(148, 163, 184, 0.22);
  transform: translateX(2px);
}

#sidebarMenu .offcanvas-body > .nav > .nav-item > .nav-link.active,
#sidebarMenu .submenu-wrapper > .nav > .nav-item > .nav-link.active,
#sidebarMenu .offcanvas-body > .nav > .nav-item > .nav-link[data-bs-toggle="collapse"]:not(.collapsed){
  color: #fff;
  background: linear-gradient(135deg, rgba(55, 219, 219, 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(55, 219, 219, 0.34);
  box-shadow: 0 14px 28px rgba(8, 15, 29, 0.22);
}

#sidebarMenu .offcanvas-body > .nav > .nav-item > .nav-link.active > i:first-child,
#sidebarMenu .submenu-wrapper > .nav > .nav-item > .nav-link.active > i:first-child,
#sidebarMenu .offcanvas-body > .nav > .nav-item > .nav-link[data-bs-toggle="collapse"]:not(.collapsed) > i:first-child{
  color: #7af7ec;
}

#sidebarMenu .nav-link:focus-visible{
  outline: 2px solid rgba(122, 247, 236, 0.52);
  outline-offset: 2px;
}

#sidebarMenu .nav-link[data-bs-toggle="collapse"]::after{
  font-family: "FontAwesome";
  content: "\f054";
  display: block;
  justify-self: end;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.72);
  transition: transform 0.22s ease, color 0.22s ease;
}

#sidebarMenu .nav-link[data-bs-toggle="collapse"].collapsed::after{
  transform: rotate(0deg);
}

#sidebarMenu .nav-link[data-bs-toggle="collapse"]:not(.collapsed)::after{
  transform: rotate(90deg);
  color: var(--main-color-bright);
}

#sidebarMenu .collapsing > .submenu-wrapper > .nav > .nav-item,
#sidebarMenu .collapse.show > .submenu-wrapper > .nav > .nav-item{
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* Navbar (robust, kein Umbruch, kein Reflow am Mobile)                */
/* ------------------------------------------------------------------ */
.te-navbar{ background-color: var(--main-color) !important; }

/* Innenabstand inkl. Safe Area (iOS) */
.te-navbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;

  padding-left: 16px;
  padding-right: 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: 10px;
}

/* Mobile etwas kompakter */
@media (max-width: 576px){
  .te-navbar-inner{
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }
}

/* Brand/Logo: darf shrinken */
.te-brand{
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.te-logo{
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding-left: 5px;
}
@media (max-width: 420px){
  .te-logo{ height: 40px; }
}

/* Rechte Seite: niemals shrinken */
.te-navbar-right{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 14px;
}

/* Mobile: nur Login/Register zentrieren (nicht User-Menü) */
@media (max-width: 991.98px){
  .te-navbar-right:not(:has(.dropdown)){
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
    margin-top: 6px;
    white-space: normal;
  }

  .te-navbar-inner{
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .te-navbar-right:has(.dropdown){
    width: auto;
    justify-content: flex-end;
    margin-left: auto !important;
    margin-top: 0;
    white-space: nowrap;
  }

  .te-navbar-inner:has(.te-navbar-right .dropdown){
    flex-wrap: nowrap;
    align-items: center;
  }
}

/* Burger */
.te-navbar-toggler{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.te-navbar-toggler:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.34);
  border-color: rgba(15, 23, 42, 0.18);
}
.te-navbar-toggler:focus,
.te-navbar-toggler:focus-visible{
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.18);
}

/* Bootstrap default icon entfernen */
.te-navbar-toggler .navbar-toggler-icon{ display: none; }

.te-toggler-icon{
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}
.te-toggler-icon span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.85);
  transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}
.te-toggler-icon span:nth-child(1){ top: 1px; }
.te-toggler-icon span:nth-child(2){ top: 6px; }
.te-toggler-icon span:nth-child(3){ top: 11px; }

/* Offcanvas offen => X */
.te-navbar-toggler.is-open .te-toggler-icon span:nth-child(1){ top: 6px; transform: rotate(45deg); }
.te-navbar-toggler.is-open .te-toggler-icon span:nth-child(2){ opacity: 0; }
.te-navbar-toggler.is-open .te-toggler-icon span:nth-child(3){ top: 6px; transform: rotate(-45deg); }

/* User Button + Dropdown */
.te-user-pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0 !important;
  border-radius: 999px;
  color: #0f172a !important;
  text-decoration: none;
  white-space: nowrap;
}
.te-user-pill.dropdown-toggle::after{ display: none !important; }
.te-user-pill:hover .te-user-avatar,
.te-user-pill:focus-visible .te-user-avatar,
.te-nav-icon-btn:hover,
.te-nav-icon-btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,0.18);
}

.te-user-avatar{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7f8fb 0%, #e8edf5 100%);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.te-user-avatar-img{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.te-user-caret{
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 8px 16px rgba(15,23,42,0.14);
}
.te-user-caret i{
  font-size: .68rem;
  transition: transform 140ms ease, color 140ms ease;
}
.dropdown.show .te-user-caret i{ transform: rotate(180deg); }

.te-user-menu{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  min-width: 220px;
  margin-top: 8px;
}

.te-nav-icon-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f8fb 0%, #e8edf5 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);
  color: #0f172a !important;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.te-nav-icon-btn.dropdown-toggle::after{
  display: none !important;
}

.te-nav-icon{
  font-size: 1.22rem;
  line-height: 1;
}

.te-nav-badge{
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #d62828;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  border: 2px solid #fff;
}

.te-notification-menu{
  width: min(560px, calc(100vw - 18px));
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  margin-top: 12px;
  background: #fff;
}

.te-notification-head,
.te-notification-foot{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 10px;
  background: #fff;
}

.te-notification-head{
  border-bottom: 0;
}

.te-notification-title{
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: #050505;
}

.te-notification-subtitle{
  margin-top: 8px;
  color: #65676b;
  font-size: .96rem;
}

.te-notification-head-actions{
  appearance: none;
  border: 0;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  color: #65676b;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.te-notification-head-actions:hover,
.te-notification-head-actions:focus{
  background: #e4e6eb;
  color: #1c1e21;
}

.te-notification-tabs{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 14px;
}

.te-notification-tab{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #050505;
  font-size: 1rem;
  font-weight: 700;
}

.te-notification-tab--active{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(55, 219, 219, 0.18);
  color: #148f97;
  box-shadow: inset 0 0 0 1px rgba(55, 219, 219, 0.18);
}

.te-notification-tab-badge{
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.te-notification-list{
  max-height: 68vh;
  overflow-y: auto;
  padding-bottom: 10px;
}

.te-notification-section{
  padding-top: 2px;
}

.te-notification-section-head{
  padding: 10px 22px 4px;
  color: #050505;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.te-notification-pane--hidden{
  display: none;
}

.te-notification-item{
  display: flex !important;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 22px !important;
  white-space: normal !important;
  position: relative;
}

.te-notification-item:last-child{
  border-bottom: none;
}

.te-notification-item:hover,
.te-notification-item:focus{
  background: #f0f2f5;
}

.te-notification-avatar-wrap{
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
}

.te-notification-avatar{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1f5;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}

.te-notification-avatar-img{
  width: 74px;
  height: 74px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.te-notification-avatar-badge{
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1877f2;
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
  font-size: .85rem;
}

.te-notification-copy{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
  flex: 1 1 auto;
}

.te-notification-message{
  color: #050505;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.34;
}

.te-notification-message strong{
  font-weight: 800;
}

.te-notification-meta{
  color: #1877f2;
  font-size: .98rem;
  font-weight: 700;
}

.te-notification-dot{
  margin: 0 6px;
  color: #bcc0c4;
}

.te-notification-status-dot{
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 28px;
  margin-left: 6px;
  border-radius: 999px;
  background: #1877f2;
}

.te-notification-empty{
  padding: 28px 22px 32px;
  color: #65676b;
  text-align: center;
  font-size: 1rem;
}

.te-notification-foot{
  justify-content: center;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #65676b;
  font-size: .92rem;
  padding-top: 14px;
  padding-bottom: 18px;
}

@media (max-width: 576px){
  .te-navbar-inner:has(.te-navbar-right .dropdown){
    gap: 6px;
  }

  .te-brand{
    flex: 1 1 0;
    overflow: hidden;
    padding-right: 6px;
  }

  .te-logo{
    height: 38px;
    padding-left: 0;
  }

  .te-navbar-toggler{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .te-toggler-icon{
    width: 18px;
    height: 12px;
  }

  .te-toggler-icon span:nth-child(2){ top: 5px; }
  .te-toggler-icon span:nth-child(3){ top: 10px; }

  .te-user-pill,
  .te-user-avatar,
  .te-user-avatar-img,
  .te-nav-icon-btn{
    width: 41px;
    height: 41px;
  }

  .te-navbar-right{
    padding-right: 12px;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto !important;
  }

  .te-user-caret{
    width: 18px;
    height: 18px;
    right: 0;
    bottom: -2px;
  }

  .te-user-caret i{
    font-size: .58rem;
  }

  .te-nav-icon{
    font-size: 1rem;
  }

  .te-notification-menu{
    width: auto;
    max-width: none;
    border-radius: 18px;
  }

  .te-notification-head{
    align-items: flex-start;
    gap: 10px;
    padding: 16px 16px 8px;
  }

  .te-notification-title{
    font-size: 1.5rem;
    line-height: 1.05;
  }

  .te-notification-subtitle{
    margin-top: 6px;
    font-size: .86rem;
    line-height: 1.35;
  }

  .te-notification-head-actions{
    width: 34px;
    height: 34px;
    font-size: .9rem;
    flex: 0 0 auto;
  }

  .te-notification-tabs{
    gap: 10px;
    padding: 0 16px 10px;
  }

  .te-notification-tab{
    font-size: .96rem;
  }

  .te-notification-tab--active{
    min-height: 38px;
    padding: 0 14px;
  }

  .te-notification-tab-badge{
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: .74rem;
  }

  .te-notification-list{
    max-height: calc(100dvh - env(safe-area-inset-top) - 210px);
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .te-notification-section-head{
    padding: 8px 16px 4px;
    font-size: 1rem;
  }

  .te-notification-item{
    gap: 12px;
    padding: 12px 16px !important;
  }

  .te-notification-avatar-wrap,
  .te-notification-avatar,
  .te-notification-avatar-img{
    width: 52px;
    height: 52px;
  }

  .te-notification-avatar-badge{
    width: 24px;
    height: 24px;
    font-size: .72rem;
    box-shadow: 0 0 0 3px #fff;
  }

  .te-notification-status-dot{
    width: 10px;
    height: 10px;
    margin-top: 18px;
    margin-left: 4px;
  }

  .te-notification-message{
    font-size: .94rem;
    line-height: 1.3;
  }

  .te-notification-meta{
    font-size: .88rem;
  }

  .te-notification-empty{
    padding: 20px 16px 24px;
    font-size: .94rem;
  }

  .te-notification-foot{
    font-size: .86rem;
    padding: 12px 16px 16px;
  }
}

/* Dropdown-Menü absolut, damit Navbar nicht höher wird */
.te-navbar .navbar-nav .dropdown-menu{
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 0 !important;
  z-index: 1100;
}
.te-navbar .navbar-nav .dropdown{ position: relative; }

@media (max-width: 576px){
  .te-navbar .navbar-nav .dropdown-menu.te-notification-menu{
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 88px) !important;
    right: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    inset: calc(env(safe-area-inset-top) + 88px) 12px auto 12px !important;
  }
}

/* --- Navigation: Club-Logo Block (unter Tools) --- */
.te-nav-clublogo{
  margin-top: 0.35rem;
  padding: 1rem 0.2rem 0.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.te-nav-clublogo-box{
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 28px rgba(2, 6, 23, 0.18);
}
.te-nav-clublogo-img{
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
  display: block;
}

@keyframes te-highlight-pulse{
  0%{
    background-color: rgba(251, 191, 36, 0.34);
  }
  100%{
    background-color: rgba(251, 191, 36, 0.12);
  }
}

.te-highlight-row td{
  background-color: rgba(251, 191, 36, 0.12) !important;
  animation: te-highlight-pulse 1.1s ease-out;
}
