.custom-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0f7e9; /* heller Grünton */
  color: #2e7d32;       /* kräftiger Grünton */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: border 0.3s ease;
   border: 1px solid #a1a1a1ff; /* schwarze Border bei aktiv */
}

/* Nur wenn aktiv */
.custom-avatar.active-avatar {
  border: 2px solid #000; /* schwarze Border bei aktiv */
}

.avatar-link:hover .custom-avatar {
  border: 2px solid #000; /* schwarze Border bei aktiv */
}


/* ========== Reset & Basis-Setup ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* NICHT position: fixed oder inset! */
}


.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 150px;
}
/* ========== Navigation ========== */
.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.nav-link:not(.avatar-link):hover,
.nav-link:not(.avatar-link).active {
  background: rgba(0, 0, 0, 0.05);
}


/* ========== Layout Wrapper für Sticky-Footer ========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}
/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
  background: transparent;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  opacity: 0.75;
}

/* ========== Floating Action Button ========== */
.floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  border: 1px solid #ddd;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s ease;
}

.floating-button:hover {
  background: rgba(255, 255, 255, 0.75);
}

.floating-button i {
  font-size: 1.4rem;
  color: #333;
}

.floating-button .popover {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #333;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.floating-button:hover .popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
    .form-group {
      margin-bottom: 1.2rem;
    }

label {
    font-size: 0.95rem;
    font-weight: 600;
      color: #555;
      display: block;
      margin-bottom: 0.4rem;
    }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  padding-right: 2.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #f5f5f5;
  color: #333;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #3f88ff;
  box-shadow: 0 0 0 3px rgba(63, 136, 255, 0.15);
  outline: none;
}

    .submit-btn {
      width: 100%;
      padding: 0.75rem;
      background: #007BFF;
      color: white;
      font-size: 1rem;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .submit-btn:hover {
      background: #005fcc;
    }


.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.bottom-nav a {
  text-align: center;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.bottom-nav a i {
  font-size: 20px;
}


.bottom-nav a.active,
.bottom-nav a:hover {
  padding: 4px 0px;
  border-radius: 10px;
  transition: background 0.3s ease;
  background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .floating-button {
    bottom: 70px; /* auf Mobile höher platzieren */
  }
  .nav {
    display: none !important;
  }
 footer {
    margin-bottom: 50px; /* Platz für Bottom Navigation */
  }
}

body.onboarding-active {
  overflow: hidden;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.onboarding-slide {
  display: none;
  max-width: 600px;
  animation: fade 0.5s ease;
}

.onboarding-slide.active {
  display: block;
}

.onboarding-slide h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.onboarding-slide p {
  font-size: 1rem;
  color: #555;
}

.onboarding-next-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 1);
  color: white;
  border: none;
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10000;
}

.onboarding-next-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.language-switcher {
  margin-left: 1rem;
}

.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #777;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: #777;

}

.lang-menu {
  display: none;
  position: absolute;
  bottom: 140%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 9999;
  overflow: hidden;
}

.lang-menu button {
  display: block;
  padding: 8px 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

.lang-menu button:hover {
  background: #f0f0f0;
}


/* Hoher Kontrast */
body.high {
  background-color: #000 !important;
  color: #fff !important;
}

body.high a,
body.high .nav-link {
  color: #fff !important;
  background-color: transparent !important;
}

body.high label,
body.high h1,
body.high h2,
body.high h3,
body.high h4,
body.high h5,
body.high h6,
body.high p {
  background-color: transparent !important;
  color: #fff !important;
}

/* Schriftgrößen */
.font-normal { font-size: 1rem; }
.font-large { font-size: 1.2rem; }
.font-xlarge { font-size: 1.4rem; }

/* Schriftarten */
.font-default { font-family: "Inter", sans-serif; }
.font-open-dyslexic { font-family: "OpenDyslexic", sans-serif; }

button.submit-btn {
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.submit-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  animation: ripple-animation 0.6s linear;
  transform: scale(0);
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

button.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

button.submit-btn.loading span.label-text {
  display: none;
}

button.submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

button.submit-btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shared-badge {
  display: inline-block;
  margin-left: 8px;
  background: #f0f0f0;
  color: #333;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: help;
  position: relative;
  transition: background 0.2s ease;
}

.shared-badge:hover {
  background: #ddd;
}

.shared-badge[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  opacity: 1;
  pointer-events: none;
}
.delete-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1.1rem;
  padding: 4px;
  margin-left: 8px;
}

.delete-icon-btn:hover {
  color: #e53935;
}
/* Nur auf kleinen Bildschirmen sichtbar */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block; /* oder flex, wenn du Icons o. Ä. drin hast */
  }
}
.icon-animate {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover .icon-animate {
  transform: rotate(15deg) scale(1.1);
  color: #ff9800; /* optional: leuchtender Effekt */
}

label[for]:has(+ input[required]),
label[for]:has(+ textarea[required]),
label[for]:has(+ select[required]) {
  position: relative;
}

label[for]:has(+ input[required])::after,
label[for]:has(+ textarea[required])::after,
label[for]:has(+ select[required])::after {
  content: '*';
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

.custom-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff8e1;
  color: #8a6d3b;
  border: 1px solid #ffe082;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}
.custom-alert.warning i {
  font-size: 1.3rem;
}
.custom-alert .alert-link {
  color: #d17c00;
  text-decoration: underline;
  font-weight: 500;
  margin-left: auto;
}
.custom-alert .alert-link:hover {
  text-decoration: none;
}
