/* ===========================
   Grundlegendes Layout
=========================== */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #1a1b2f; /* Dunkles Lila-Blau */
    color: #f3f4f6;
    line-height: 1.6;
	margin-top: 70px; !important;/* damit Inhalt nicht unter Navbar liegt */
}


h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    color: #d1d5db;
}

.container, .container-fluid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.text-center { text-align: center; }
.text-start { text-align: left; }

/* ============================
   🌈 Flash Nachrichten Styles
============================ */

/* Wrapper für alle Flash-Meldungen */
.flash-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Klicks auf dahinterliegende Elemente erlauben */
	margin-top: 80px;
}

/* Allgemeines Styling für jede Flash-Nachricht */
.flash-message {
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease-out;
    pointer-events: auto;
}

/* Icon Styling */
.flash-icon {
    font-size: 1.2rem;
}

/* ============================
   ToDo Flash Styles
============================ */
.todo-flash.success { 
    background: linear-gradient(135deg, #27ae60, #2ecc71); /* grün */
}
.todo-flash.warning { 
    background: linear-gradient(135deg, #5dade2, #85c1e9); /* hellblau */
}
.todo-flash.danger  { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* rot */
}

/* ============================
   Notes Flash Styles
============================ */
.note-flash.success { 
    background: linear-gradient(135deg, #27ae60, #2ecc71); /* grün */
}
.note-flash.warning { 
    background: linear-gradient(135deg, #5dade2, #85c1e9); /* hellblau */
}
.note-flash.danger  { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* rot */
}

/* ============================
   Animationen
============================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===========================
   Navbar
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c2a4d;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#main-content {
  padding-top: 80px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fbbf24;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hamburger */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
	margin-right:25px;
}

.navbar-toggler span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
	margin-right: 25px;
}

.navbar-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.navbar-list li {
    position: relative;
}

.navbar-list li a {
    text-decoration: none;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-list li a:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}

/* Dropdown */
.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2c2a4d;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-direction: column;
}

.dropdown-content li a {
    padding: 10px 15px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

/* Dropdown auf Mobil */
@media (max-width: 768px) {
    .navbar-menu { display: none; flex-direction: column; width: 100%; }
    .navbar-menu.open { display: flex; }

    .dropdown-content { 
        position: relative; 
        top: 0; 
        right: 0; 
        display: none; 
        flex-direction: column; 
        background-color: #3a2f6b;
        border-radius: 8px;
        margin: 5px 0;
        padding: 0;
    }

    .dropdown.open .dropdown-content { display: flex; }
}

/* Buttons */
.btn-login {
    border: 2px solid #fbbf24;
    padding: 6px 12px;
    border-radius: 5px;
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.btn-login:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
}

.btn-register {
    background-color: #fbbf24;
    color: #1a1b2f;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
	
    font-weight: 600;
}

.btn-register:hover {
    background-color: #ffc107;
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}

/* Profile Pic */
.profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    background: linear-gradient(135deg, #2c2a4d, #3a2f6b);
    text-align: center;
    padding: 100px 20px;
    color: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
	margin-top: 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-subtext {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.2s;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 2.2s;
}

.hero-buttons a {
    text-decoration: none;
    font-size: 1.1rem;
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-btn-register,
.hero-btn-dashboard {
    background-color: #fbbf24;
    color: #1a1b2f;
    border: 2px solid transparent;
}

.hero-btn-register:hover,
.hero-btn-dashboard:hover {
    background-color: #ffc107;
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(251,191,36,0.5);
}

.hero-btn-login {
    background-color: transparent;
    border: 2px solid #fbbf24;
    color: #fbbf24;
}

.hero-btn-login:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(251,191,36,0.5);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtext { font-size: 1.15rem; }
}

@media (max-width: 768px) {
    .navbar-toggler { display: flex; }
    .navbar-menu { display: none; flex-direction: column; width: 100%; margin-top: 8px; }
    .navbar-menu.open { display: flex; }
    .navbar-list { flex-direction: column; gap: 10px; align-items: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtext { font-size: 1rem; }
    .hero-buttons a { width: 100%; padding: 12px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtext { font-size: 0.95rem; }
}

/* ===========================
   Keyframes für Text
=========================== */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtext { font-size: 1rem; }
    .hero-buttons a { width: 100%; padding: 12px 30px; }
}

/* Optional: Animierter Hintergrund-Radial-Gradient */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(251,191,36,0.1), transparent 70%);
    animation: bgMove 10s linear infinite;
    z-index: 0;
}

@keyframes bgMove {
    0% { transform: translate(0,0); }
    50% { transform: translate(10px,10px); }
    100% { transform: translate(0,0); }
}

.hero-section * { position: relative; z-index: 1; }

/* ===========================
   Features Section mit Hover
=========================== */
.features-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a1b2f;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.feature-card {
    background-color: #2c2a4d;
    border-radius: 1rem;
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Hover Effekt */
.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    background-image: linear-gradient(135deg, #3a2a5d, #2c2a4d);
}

.feature-card:hover .feature-icon {
    transform: scale(1.3);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-title {
    color: #fbbf24;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-text {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Icon */
.icon-circle {
    background-color: #fbbf24;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 2rem;
    color: #1a1b2f;
    transition: all 0.3s ease;
}

/* Titel & Text */
.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-text {
    font-size: 1rem;
    color: #d1d5db;
    transition: color 0.3s ease;
    text-align: center;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1024px) {
    .feature-card {
        padding: 25px;
    }
    .icon-circle {
        width: 55px;
        height: 55px;
    }
    .feature-icon {
        font-size: 1.8rem;
    }
    .feature-title {
        font-size: 1.2rem;
    }
    .feature-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .feature-item {
        max-width: 90%;
    }
    .feature-card {
        padding: 20px;
    }
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    .feature-icon {
        font-size: 1.6rem;
    }
    .feature-title {
        font-size: 1.15rem;
    }
    .feature-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 18px;
    }
    .icon-circle {
        width: 45px;
        height: 45px;
    }
    .feature-icon {
        font-size: 1.4rem;
    }
    .feature-title {
        font-size: 1.05rem;
    }
    .feature-text {
        font-size: 0.85rem;
    }
}

/* ===========================
   Buttons
=========================== */
.cta-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Premium Button */
.cta-btn-register {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
  color: #1a1b2f;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(251,191,36,0.4);
}

.cta-btn-register:hover {
  background: linear-gradient(90deg, #fbbf24, #ffc107);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(251,191,36,0.6);
}

/* Dashboard Button */
.cta-btn-dashboard {
  background-color: #fbbf24;
  color: #1a1b2f;
  border: 2px solid transparent;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-btn-dashboard:hover {
  background-color: #ffc107;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(251,191,36,0.5);
}

/* Login Button */
.cta-btn-login {
  background-color: transparent;
  border: 2px solid #fbbf24;
  color: #fbbf24;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-btn-login:hover {
  background-color: #fbbf24;
  color: #1a1b2f;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(251,191,36,0.5);
}

/* ===========================
   Premium Glow + Funken
=========================== */
.cta-btn-glow {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 70%);
  opacity: 0.6;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.cta-btn-register:hover .cta-btn-glow {
  opacity: 1;
}

/* Funken Effekt */
.cta-btn-sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.cta-btn-sparks span {
  position: absolute;
  bottom: 20%;
  width: 4px;
  height: 4px;
  background: #fff3a3;
  border-radius: 50%;
  opacity: 0.8;
  animation: sparkUp 1.5s infinite ease-out;
}

.cta-btn-sparks span:nth-child(1) { left: 10%; animation-delay: 0s; }
.cta-btn-sparks span:nth-child(2) { left: 30%; animation-delay: 0.2s; }
.cta-btn-sparks span:nth-child(3) { left: 50%; animation-delay: 0.4s; }
.cta-btn-sparks span:nth-child(4) { left: 70%; animation-delay: 0.6s; }
.cta-btn-sparks span:nth-child(5) { left: 90%; animation-delay: 0.8s; }

@keyframes sparkUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1); opacity: 1; }
  100% { transform: translateY(-40px) scale(0.5); opacity: 0; }
}

/* ===========================
   Click Explosion Effekt
=========================== */
.cta-btn-sparks span.clicked {
  animation: sparkClick 0.6s forwards;
}

@keyframes sparkClick {
  0% { transform: translateY(0) scale(0.5); opacity: 0.8; }
  50% { transform: translateY(-25px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-50px) scale(0); opacity: 0; }
}

/* ===========================
   Animations FadeIn
=========================== */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .cta-title { font-size: 2rem; }
  .cta-subtext { font-size: 1rem; }
  .cta-buttons a { width: 100%; padding: 14px 25px; }
}


/* ===========================
   Footer – Modern & Responsive
=========================== */
.footer {
    background-color: #2c2a4d;
    color: #d1d5db;
    padding: 20px 20px 20px 20px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer h5 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer p {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: center; /* zentriert auf Mobile */
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-bottom: 0px;
}

/* Footer Links – Hover wie Social Icons */
.footer-links ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: #d1d5db;
    font-size: 1.5rem; /* Icon Größe */
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
    transform: scale(1.2);
}

/* Social Icons */
.footer-social .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.footer-social .social-icons a:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
    transform: scale(1.2);
}

/* Footer Kontakt Button */
.footer-contact .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #fbbf24;
    color: #1a1b2f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-contact .contact-btn:hover {
    background-color: #ffc107;
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
    color: #1a1b2f;
}

/* Copyright */
.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #9ca3af;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

/* Footer Kontakt-Link */
.footer-contact {
    display: flex;
    align-items: center;
}

.footer-contact .contact-link {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-link:hover {
    color: #ffc107;
}

/* Footer-Container: Copyright links, Kontakt rechts */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Responsive: auf Mobil zentrieren */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-contact {
        margin-top: 10px;
    }
}

/* ===========================
   Animations
=========================== */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsivität
=========================== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.3rem; }
    .hero-subtext { font-size: 1rem; }
    .features-container { flex-direction: column; gap: 20px; }
    .feature-item { max-width: 90%; }
    .footer .container { flex-direction: column; text-align: center; }
}



/* ===========================
   Dashboard Karten – Sanftes Hover
=========================== */
/* Dashboard Header */
.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-title {
  font-size: 2.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideIn 1s ease-out forwards;
  opacity: 0;
}

.dashboard-title .icon {
  font-size: 2.5rem;
  display: inline-block;
  animation: bounceIcon 1s infinite alternate;
}

.dashboard-subtitle {
  font-size: 1.2rem;
  color: #d1d5db;
  margin-top: 10px;
  animation: fadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
}

/* Animations */
@keyframes bounceIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 2.2rem;
  }

  .dashboard-title .icon {
    font-size: 2rem;
  }

  .dashboard-subtitle {
    font-size: 1rem;
  }
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.dashboard-card {
    background-color: #2c2a4d;
    color: white;
    border-radius: 1rem;
    padding: 20px;
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Sanfter Hover */
.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    background-color: #332e57; /* dezente Aufhellung */
}

/* Inhalt der Karte */
.card-content h6 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.card-content h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

/* Icon */
.card-icon {
    background-color: #fbbf24;
    color: #1a1b2f;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Sanftes Hover für Icon */
.dashboard-card:hover .card-icon {
    transform: scale(1.15);
    background-color: #ffc107;
    box-shadow: 0 6px 18px rgba(251,191,36,0.3);
}

/* Karten Fade-In Animation */
@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dashboard-card.show {
    animation: cardFadeIn 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-row {
        gap: 15px;
    }

    .dashboard-card {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .dashboard-row {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-card {
        width: 90%;
        max-width: 95%;
        justify-content: space-between;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content h6 {
        font-size: 0.85rem;
    }

    .card-icon {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* Dashboard Karten – Standardfarben */
.dashboard-card h3 {
    color: #f3f4f6; /* Standard hell */
    transition: color 0.3s ease;
}

/* Hover Farben für Zahlen */
.dashboard-card.saldo:hover h3 {
    color: #3b82f6; /* Blau */
}

.dashboard-card.einnahmen:hover h3 {
    color: #22c55e; /* Grün */
}

.dashboard-card.ausgaben:hover h3 {
    color: #ef4444; /* Rot */
}

/* Hover-Effekt für Icons */
.dashboard-card .card-icon {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dashboard-card.saldo:hover .card-icon {
    background-color: #60a5fa; /* hellblau */
    transform: scale(1.1);
}

.dashboard-card.einnahmen:hover .card-icon {
    background-color: #4ade80; /* hellgrün */
    transform: scale(1.1);
}

.dashboard-card.ausgaben:hover .card-icon {
    background-color: #f87171; /* hellrot */
    transform: scale(1.1);
}

/* Optional: Leichter Lift der gesamten Karte beim Hover */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* --------------------------
   New Transaction Form Styling
--------------------------- */
.new-transaction-card {
  background-color: #2c2a4d;
  padding: 35px 25px;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  max-width: 700px;
  margin: 30px auto;
  color: #fff;
}

.new-transaction-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input Groups */
.input-group {
  display: flex;
  align-items: center;
  background-color: #1a1b2f;
  border: 2px solid #444267;
  border-radius: 12px;
  padding-left: 45px; /* Platz für Icon */
  position: relative;
}

.input-group:focus-within {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251,191,36,0.4);
}

/* Icon */
.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1.3rem;
  color: #fbbf24;
}

/* Input Fields */
.digital-input {
  flex: 1;
  height: 50px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
  padding-right: 90px; /* Platz für Buttons */
  border-radius: 0;
}

/* Buttons inside input */
.input-buttons {
  position: absolute;
  right: 10px;
  display: flex;
  gap: 6px;
}

.btn-input {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background-color: #fbbf24;
  color: #1a1b2f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-input:hover {
  background-color: #ffc107;
  transform: scale(1.05);
}

/* Entfernt die Standard-Pfeile bei Number Inputs */

/* Chrome, Edge, Safari */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Entfernt die Standard-Pfeile/Icons bei Number und Date Inputs */

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    -webkit-appearance: none;
    display: none;
    margin: 0;
}

/* Firefox Number Input */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Optional: Cursor im Date Input weiterhin normal */
input[type="date"] {
    cursor: text;
}

/* Submit Button */
.add-btn {
  width: 100%;
  height: 56px;
  border-radius: 50px;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1b2f;
  background-color: #fbbf24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251,191,36,0.5);
}

/* Select Styles */
.digital-input[type="select"], .digital-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.digital-input {
  padding-right: 35px;
  cursor: pointer;
}

select.digital-input option {
  background-color: #1a1b2f;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  .digital-input {
    padding-right: 70px;
  }

  .btn-input {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* ===========================
   Chart Section Full Width
=========================== */
.chart-section {
  padding: 40px 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.chart-card {
  background-color: #2c2a4d;
  border-radius: 1rem;
  padding: 25px;
  width: 95%;
  max-width: 1200px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* Header Titel + Buttons */
.chart-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
}

.chart-title {
  font-size: 1.5rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  justify-content: center;
  width: 100%;
}

/* Chart-Typ Buttons */
.chart-type-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* Immer in einer Reihe */
  gap: 10px;
  width: 100%;
  overflow-x: auto;
}

.chart-type-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  border: 2px solid #444267;
  background-color: #1a1b2f;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  justify-content: center;
  text-align: center;
  min-width: 70px;
  white-space: nowrap;
}

.chart-type-btn.active {
  background-color: #fbbf24;
  color: #1a1b2f;
  border-color: #fbbf24;
}

.chart-type-btn i {
  font-size: 0.9rem;
}

/* Filter Buttons */
.chart-filters {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* Immer in einer Reihe */
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  overflow-x: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 50px;
  border: 2px solid #444267;
  background-color: #1a1b2f;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  justify-content: center;
  text-align: center;
  min-width: 60px;
  white-space: nowrap;
}

.filter-btn.active {
  background-color: #fbbf24;
  color: #1a1b2f;
  border-color: #fbbf24;
}

.filter-btn i {
  font-size: 0.85rem;
}

/* Chart Container */
.chart-container {
  background: linear-gradient(145deg, #3b3b64, #4a4a78);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  overflow-x: auto;
  transition: background 0.4s ease;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

/* ===========================
   Responsive Anpassungen
=========================== */
@media (max-width: 992px) {
  .chart-card {
    padding: 20px;
  }

  .chart-title {
    font-size: 1.3rem;
  }

  .chart-type-btn,
  .filter-btn {
    flex: 0 0 auto; /* Buttons nicht umbrechen */
    font-size: 0.9rem;
    padding: 5px 10px;
  }
}

@media (max-width: 576px) {
  .chart-card {
    width: 100%;
    padding: 15px;
    border-radius: 0.8rem;
  }

  .chart-title {
    font-size: 1.15rem;
  }

  .chart-type-buttons,
  .chart-filters {
    gap: 5px;
  }

  .chart-type-btn,
  .filter-btn {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .chart-container {
    padding: 15px;
    max-height: 400px;
  }
}




/* ============================
   Transaktions-Sortierer
=========================== */
.transaction-category-list {
    margin: 30px 0;
}

.category-group {
    margin-bottom: 20px;
    border-radius: 1rem;
    background-color: #2c2a4d;
    padding: 20px;
}

/* ===========================
   Collapsible Kategorien
=========================== */
.category-toggle {
    width: 100%;
    background-color: #3a2f6b;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 8px;
}

.category-toggle:hover {
    background-color: #4a3b7b;
}

.toggle-icon {
    font-size: 1.2rem;
}

/* Collapsible Content */
.category-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    margin-bottom: 15px;
}

/* Sortierbuttons */
.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sort-btn {
    padding: 6px 10px;
    border-radius: 30px;
    border: 2px solid #444267;
    background-color: #1a1b2f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-btn.active {
    background-color: #fbbf24;
    color: #1a1b2f;
    border-color: #fbbf24;
}

.sort-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}

/* ===========================
   Transaktionsliste
=========================== */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    background-color: #2c2a4d;
    padding: 12px 15px;
    border-radius: 0.75rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-icon {
    font-size: 1.5rem;
}

.transaction-item.income .type-icon {
    color: #28a745;
}

.transaction-item.expense .type-icon {
    color: #dc3545;
}

.transaction-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tx-amount {
    font-weight: 600;
}

/* ============================
   Sortierbuttons im gleichen Stil wie Filter-Buttons
=========================== */
.sort-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.sort-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    background-color: #1a1b2f;
    color: white;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
}


.sort-btn.active {
    background-color: #fbbf24;
    color: #1a1b2f;
    border-color: #fbbf24;
}

.sort-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.sort-btn.active i {
    transform: rotate(180deg);
}

/* Anpassungen für mobile Ansichten */
@media (max-width: 768px) {
    .sort-btn {
        padding: 5px 10px; /* Kleinere Buttons für mobile Geräte */
        font-size: 0.75rem; /* Noch kleinere Schrift */
    }
}




/* ===========================
   Transaktionsliste
=========================== */
.transaction-category-list {
    margin-top: 20px;
}

.category-toggle {
    width: 100%;
    background-color: #2c2a4d;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: left;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.category-toggle:hover {
    background-color: #3a2f6b;
}

.toggle-icon {
    font-size: 1.2rem;
}

.category-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sort-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
    justify-content: center;
}

.sort-btn {
    padding: 5px 12px;
    border-radius: 30px;
    border: 2px solid #444267;
    background-color: #1a1b2f;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-btn.active {
    background-color: #fbbf24;
    border-color: #fbbf24;
    color: #1a1b2f;
}

.sort-btn:hover {
    background-color: #3a2f6b;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.transaction-item {
    background-color: #3a2f6b;
    padding: 12px 15px;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
    flex-wrap: wrap;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.type-icon {
    font-size: 1.4rem;
}

.transaction-item.income .type-icon {
    color: #28a745;
}

.transaction-item.expense .type-icon {
    color: #dc3545;
}

.transaction-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tx-amount {
    font-weight: 600;
    min-width: 70px;
}

.tx-details small {
    display: inline-block;
    margin-right: 10px;
}

.tx-details {
    margin-top: 6px;
    font-size: 0.85rem;
}

.tx-details .income {
    color: #28a745;
}

.tx-details .expense {
    color: #dc3545;
}

.edit-btn, .delete-btn {
    padding: 5px 12px;
    border-radius: 30px;
    border: 2px solid #fbbf24;
    background-color: transparent;
    color: #fbbf24;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover, .delete-btn:hover {
    background-color: #fbbf24;
    color: #1a1b2f;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(251,191,36,0.4);
}

.delete-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}


.reminder-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(90deg, #fbbf24, #d4a520);
  color: #1a1b2f;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  animation: slideUp 0.6s ease, fadeOut 0.5s ease 5.5s forwards;
}
.reminder-popup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.reminder-popup i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #000;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}


:root{
  --bp-bg:#1b182e;
  --bp-card:#2a2742;
  --bp-border:#3b365a;
  --bp-text:#e8e9f0;
  --bp-muted:#b8b8c6;
  --bp-accent:#ffd05a;
  --bp-green:#2ecc71;
  --bp-red:#e74c3c;
}

/* Container */
.bp-section{
  margin:24px 0;
  border:1px solid rgba(255,208,90,.25);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(27,24,46,.7), rgba(27,24,46,.45));
  box-shadow:0 0 0 1px rgba(255,208,90,.06) inset, 0 12px 24px rgba(0,0,0,.25);
  overflow:hidden;
}

/* Header / Collapse */
.bp-header{
  width:100%;
  background:transparent;
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  cursor:pointer;
  color:var(--bp-text);
  font-weight:700;
}
.bp-header-title{ font-size:1.05rem; }
.bp-header-count{ color:var(--bp-accent); margin-left:8px; font-weight:600; }
.bp-toggle{ margin-left:12px; opacity:.8; }

.bp-content{ display:none; border-top:1px solid var(--bp-border); padding:16px; }
.bp-content.is-open{ display:block; }

/* Sortbar */
.bp-sortbar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.bp-sortbtn{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,208,90,.45);
  background:transparent;
  color:var(--bp-accent);
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.bp-sortbtn:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.2); }
.bp-sortbtn.is-active{ box-shadow:0 0 0 2px rgba(255,208,90,.35) inset; }

/* Liste + Items */
.bp-list{ display:flex; flex-direction:column; gap:14px; }

.bp-item{
  position:relative;
  display:flex;
  gap:16px;
  background:var(--bp-card);
  border:1px solid var(--bp-border);
  border-radius:14px;
  padding:14px 16px 16px 18px;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}

/* Seitlicher Farbbalken pro Item */
.bp-item::before{
  content:"";
  position:absolute;
  left:6px;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:4px;
}
.bp-item--income::before{ background:var(--bp-green); }
.bp-item--expense::before{ background:var(--bp-red); }

/* Inhalt */
.bp-item-left{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:160px;
}
.bp-trend{ font-size:1.05rem; line-height:1; }
.bp-item--income .bp-trend{ color:var(--bp-green); }
.bp-item--expense .bp-trend{ color:var(--bp-red); }
.bp-date{ color:var(--bp-text); font-weight:700; letter-spacing:.3px; }

.bp-item-right{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.bp-amount{
  font-weight:800;
  font-size:1.05rem;
}
.bp-item--income .bp-amount{ color:var(--bp-green); }
.bp-item--expense .bp-amount{ color:var(--bp-red); }

.bp-meta{ color:var(--bp-muted); font-style:italic; }

/* Aktionen */
.bp-actions{ margin-top:8px; display:flex; gap:8px; }
.bp-btn{
  border:1px solid rgba(255,208,90,.35);
  background:transparent;
  color:var(--bp-accent);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease;
}
.bp-btn:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.bp-btn--delete{ border-color:rgba(231,76,60,.5); color:#ff8a80; }
.bp-btn--primary{
  background:linear-gradient(180deg,#ffd05a,#f5b041);
  color:#1a182e;
  border-color:#ffd05a;
  font-weight:800;
}

/* Modal */
.bp-modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
.bp-modal.is-open{ display:flex; }
.bp-modal__dialog{
  width:min(520px, 92vw);
  background:#1f1c33;
  border:1px solid var(--bp-border);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.bp-field{ display:flex; flex-direction:column; gap:6px; margin:10px 0; }
.bp-field label{ color:var(--bp-muted); font-size:.9rem; }
.bp-field input, .bp-field select{
  background:#2a2742; color:var(--bp-text);
  border:1px solid var(--bp-border);
  border-radius:10px;
  padding:10px 12px;
}
.bp-modal__actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }

/* Responsive */
@media (max-width:700px){
  .bp-item{ padding:12px 12px 12px 16px; }
  .bp-item-left{ min-width:130px; }
}
