@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
	color: white;
}

body {
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #112943;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.idance .classes-details ul.timetable {
    margin: 0 0 22px;
    padding: 0;
}
.idance .classes-details ul.timetable li {
    list-style: none;
    font-size: 15px;
    color: #7f7f7f;
}
.idance .timetable {
    max-width: 900px;
    margin: 0 auto;
}
.idance .timetable-item {
    border: 1px solid #d8e3eb;
    padding: 15px;
    margin-top: 20px;
    position: relative;
    display: block;
}
@media (min-width: 768px) {
    .idance .timetable-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}
.idance .timetable-item-img {
    overflow: hidden;
    height: 100px;
    width: 130px;
    display: none;
}
.idance .timetable-item-img img {
    height: 100%;
}
@media (min-width: 768px) {
    .idance .timetable-item-img {
        display: block;
    }
}
.idance .timetable-item-main {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    margin-top: 12px;
}
@media (min-width: 768px) {
    .idance .timetable-item-main {
        margin-top: 0;
        padding-left: 15px;
    }
}
.idance .timetable-item-time {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
}
.idance .timetable-item-name {
    font-size: 14px;
    margin-bottom: 19px;
}
.idance .btn-book {
    padding: 6px 30px;
    width: 100%;
}
.idance .timetable-item-like {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 20px;
    cursor: pointer;
}
.idance .timetable-item-like .fa-heart-o {
    display: block;
    color: #b7b7b7;
}
.idance .timetable-item-like .fa-heart {
    display: none;
    color: #f15465;
}
.idance .timetable-item-like:hover .fa-heart {
    display: block;
}
.idance .timetable-item-like:hover .fa-heart-o {
    display: none;
}
.idance .timetable-item-like-count {
    font-size: 12px;
    text-align: center;
    padding-top: 5px;
    color: #7f7f7f;
}
.idance .timetable-item-book {
    width: 200px;
}
.idance .timetable-item-book .btn {
    width: 100%;
}
.idance .schedule .nav-tabs {
    border-bottom: 2px solid #104455;
}
.idance .schedule .nav-link {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    color: #3d3d3d;
    font-weight: 500;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    border-radius: 2px 2px 0 0;
    padding-left: 0;
    padding-right: 0;
    cursor: pointer;
}
@media (min-width: 768px) {
    .idance .schedule .nav-link {
        font-size: 16px;
    }
}
.idance .schedule .nav-link.active {
    background: #104455;
    border-color: #104455;
    color: #fff;
}
.idance .schedule .nav-link.active:focus {
    border-color: #104455;
}
.idance .schedule .nav-link:hover:not(.active) {
    background: #46c1be;
    border-color: #46c1be;
    color: #fff;
}
.idance .schedule .tab-pane {
    padding-top: 10px;
}
.content-info {
    padding: 40px 0;
    background-size: cover!important;
    background-position: top center!important;
    background-repeat: no-repeat!important;
    position: relative;
    padding-bottom:100px;
}

.card[data-radius="none"] {
    border-radius: 0px;
    height: 320px;
}
.card[data-background="image"] .title, .card[data-background="image"] .stats, .card[data-background="image"] .category, .card[data-background="image"] .description, .card[data-background="image"] .content, .card[data-background="image"] .card-footer, .card[data-background="image"] small, .card[data-background="image"] .content a, .card[data-background="color"] .title, .card[data-background="color"] .stats, .card[data-background="color"] .category, .card[data-background="color"] .description, .card[data-background="color"] .content, .card[data-background="color"] .card-footer, .card[data-background="color"] small, .card[data-background="color"] .content a {
    color: #FFFFFF;
}

.card.card-just-text .content {
    padding: 50px 65px;
    text-align: center;
}

.card[data-color="blue"] .category {
        color: #7a9e9f;
}
    
.card .category, .card .label {
        font-size: 14px;
        margin-bottom: 0px;
}

/* Für die Karten: Sicherstellen, dass der Text nicht überläuft */
.card .content {
    padding: 20px;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* Verhindern, dass Text über die Karte hinausgeht */
.card {
    overflow: hidden;
    max-width: 100%;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .content-card {
        margin-top: 20px;
    }
    
    .card .content {
        padding: 15px;
    }

    .card h4, .card .description {
        font-size: 1.2rem;
    }

    /* Beispiel für flexibles Layout */
    .content-card {
        width: 100%;
        padding: 10px;
    }
}

/* h4, .h4 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.2em; 

h6, .h6 {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;}
}*/
.card .description {
    font-size: 16px;
    color: #66615b;
}
.content-card{
    margin-top:30px;    
}
a:hover, a:focus {
    text-decoration: none;
}

/*======== COLORS ===========*/
.card[data-color="blue"] {
    background: #b8d8d8;
}
.card[data-color="blue"] .description {
    color: #506568;
}

.card[data-color="green"] {
    background: #d5e5a3;
}
.card[data-color="green"] .description {
    color: #60773d;
}
.card[data-color="green"] .category {
    color: #92ac56;
}

.card[data-color="yellow"] {
    background: #ffe28c;
}
.card[data-color="yellow"] .description {
    color: #b25825;
}
.card[data-color="yellow"] .category {
    color: #d88715;
}

.card[data-color="brown"] {
    background: #d6c1ab;
}
.card[data-color="brown"] .description {
    color: #75442e;
}
.card[data-color="brown"] .category {
    color: #a47e65;
}

.card[data-color="purple"] {
    background: #baa9ba;
}
.card[data-color="purple"] .description {
    color: #3a283d;
}
.card[data-color="purple"] .category {
    color: #5a283d;
}

.card[data-color="orange"] {
    background: #ff8f5e;
}
.card[data-color="orange"] .description {
    color: #772510;
}
.card[data-color="orange"] .category {
    color: #e95e37;
}

ul.notes li {
    margin: 10px 80px 50px 0px;
    float: left;
  }
  
  ul.notes li, ul.tag-list li {
    list-style: none;
  }
  
  ul.notes li div small {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
  }
  
  div.rotate-1 {
    transform: rotate(-6deg);
    /*-webkit-transform: rotate(-6deg);
    -o-transform: rotate(-6deg);
    -moz-transform: rotate(-6deg);*/
  }
  
  div.rotate-2 {
    transform: rotate(4deg);
    /*-o-transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
    -moz-transform: rotate(4deg);*/
    position: relative;
    top: 5px;
  }
  
  .lazur-bg {
    background-color: #b8d8d8;
    color: #506568;
  }
  
  .red-bg {
    background-color: #ff8f5e;
    color: #772510;
  }
  
  .navy-bg {
    background-color: #d5e5a3;
    color: #60773d;
  }
  
  .yellow-bg {
    background-color: #ffe28c;
    color: #b28c25;
  }

  .purple-bg {
    background-color: #baa9ba;
    color: #3a283d;
  }

  .brown-bg {
    background-color: #d6c1ab;
    color: #75442e;
  }
  
  ul.notes li div {
    text-decoration: none;
    /*color: #ffffff;*/
    display: block;
    height: 260px;
    width: 300px;
    padding: 1em;
    -moz-box-shadow: 5px 5px 7px #212121;
    -webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.7);
    box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.7);
    /*-moz-transition: -moz-transform 0.15s linear;
    -o-transition: -o-transform 0.15s linear;
    -webkit-transition: -webkit-transform 0.15s linear;*/
  }

  .notes {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.notes li {
    display: inline-block;
    vertical-align: top;
    width: calc(20% - 20px); /* Breite anpassen je nach Anzahl der Karten pro Zeile */
    margin: 40px;
    padding: 10px;
    /*border: 1px solid #ccc;*/
    border-radius: 5px;
    /*background-color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);*/
}

.notes li h4 {
    margin-top: 0;
}

.notes li p {
    margin-bottom: 0;
}

/* Media Query für kleinere Bildschirme */
@media screen and (max-width: 768px) {
    .notes li {
        width: 100%; /* Karten nehmen die volle Breite auf kleinen Bildschirmen */
        margin: 20px 0; /* Größerer vertikaler Abstand zwischen den Karten */
    }
}

.dropdown-toggle::after {
    display: none !important;
  }
  .dropdown-menu {
    min-width: 6rem;
  }
  .dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .dropdown .btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 768px) {
    .text-center h1 {
      font-size: 1.5rem;
    }
    .table-sm th,
    .table-sm td {
      font-size: 1.0rem;
    }
    .form-group label {
      font-size: 0.8rem;
    }
  }


/* Verstecke die Sidebar auf Bildschirmen kleiner als 768px */
@media (max-width: 768px) {
    #sidebar {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .d-md-none {
        display: none;
    }
}

/* =========================================================
   Mobile Einkaufsliste
   ========================================================= */

.mobile-shopping-list,
.mobile-add-toggle,
.floating-add-btn {
    display: none;
}

@media (max-width: 767.98px) {

    /* Desktop-Tabelle auf Mobile ausblenden */
    .shopping-table {
        display: none;
    }

    /* Mobile Liste */
    .mobile-shopping-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 120px;
    }

    .mobile-shopping-card {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.03) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        padding: 14px;
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mobile-product-name {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .mobile-product-category {
        font-size: 0.72rem;
        opacity: 0.7;
        margin-top: 4px;
    }

    .mobile-quantity {
        min-width: 42px;
        min-height: 42px;
        border-radius: 14px;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 600;
        font-size: 1rem;
    }

    /* Mobile Karten-Aktionen */
    .mobile-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 4px;
    }

    .mobile-card-actions form {
        margin: 0;
    }

    .mobile-icon-btn {
        height: 44px;
        border-radius: 14px;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        font-size: 1.2rem;
        transition: 0.2s ease;
    }

    .mobile-icon-btn i {
        color: white;
    }

    .success-btn,
    .delete-btn {
        width: 48px;
        min-width: 48px;
        padding: 0;
    }

    .success-btn {
        background-color: #1f9d5c;
    }

    .edit-btn {
        flex: 1;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .delete-btn {
        background-color: #c92c4b;
    }

    /* Aufklappbares Formular */
    .mobile-add-toggle {
        display: none;
    }

    .mobile-add-sheet {
        margin-bottom: 16px;
        padding: 14px;
        border-radius: 18px;
        background-color: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-add-sheet .form-control {
        min-height: 48px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .mobile-add-sheet input[type="submit"] {
        width: 100% !important;
        min-height: 50px;
        border-radius: 14px;
        font-weight: 600;
    }

    .mobile-add-sheet label {
        margin-bottom: 4px;
    }

    /* Floating Add Button */
.floating-add-btn {
    position: fixed;
    right: 22px;
    bottom: 96px;

    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid #112943;

    background-color: #1f9d5c;
    color: white;

    font-size: 1.8rem;
    font-weight: 300;
    z-index: 999;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: 0.2s ease;
}

.floating-add-btn:active {
    transform: scale(0.96);
}

.mobile-add-sheet.show + .sheet-backdrop + .floating-add-btn {
    opacity: 0;
    pointer-events: none;
}   
}

.mobile-add-sheet.show ~ .mobile-bottom-nav {
    opacity: 0.35;
    pointer-events: none;
    transition: 0.2s ease;
}

/* Bottom Navigation */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {

    .mobile-bottom-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        height: 68px;

        background: rgba(14, 34, 56, 0.96);

        border: 1px solid rgba(255,255,255,0.10);

        border-radius: 24px;

        display: grid;
        grid-template-columns: repeat(4, 1fr);

        align-items: center;

        z-index: 998;

        backdrop-filter: blur(12px);

        box-shadow:
            0 10px 30px rgba(0,0,0,0.30);
    }

    .mobile-nav-item {
        color: rgba(255,255,255,0.55);

        text-decoration: none;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        font-size: 0.7rem;

        transition: 0.2s ease;
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
    }

    .mobile-nav-item.active {
    color: #1fdf7a;
    font-weight: 600;
}

.mobile-nav-item.active i {
    background-color: rgba(31,223,122,0.12);
    padding: 8px;
    border-radius: 12px;
}

    .floating-add-btn {
        bottom: 96px;
    }

    .mobile-shopping-list {
        padding-bottom: 140px;
    }
}

/* =========================================================
   Shopping Header
   ========================================================= */

.shopping-header {
    margin-bottom: 24px;
}

.shopping-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shopping-header-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #1fdf7a;

    opacity: 0.9;
}

.shopping-header h1 {
    margin: 0;

    font-size: 2rem;
    font-weight: 700;

    color: white;

    line-height: 1.1;
}

.shopping-header p {
    margin: 0;

    color: rgba(255,255,255,0.65);

    font-size: 0.95rem;
}

@media (max-width: 767.98px) {

    .shopping-header {
        margin-bottom: 20px;
        padding-inline: 4px;
    }

    .shopping-header h1 {
        font-size: 2rem;
    }

    .shopping-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .mobile-add-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        max-height: 58vh;
        overflow-y: auto;

        padding: 18px 18px 92px;
        border-radius: 24px 24px 0 0;

        background: rgba(14, 34, 56, 0.98);
        border: 1px solid rgba(255,255,255,0.14);
        box-shadow: 0 20px 45px rgba(0,0,0,0.45);
        backdrop-filter: blur(14px);
    }

    .mobile-add-sheet-handle {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255,255,255,0.25);
        margin: 0 auto 16px;
    }

    .mobile-add-sheet .form-control {
        min-height: 50px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .mobile-add-sheet input[type="submit"] {
        width: 100% !important;
        min-height: 52px;
        border-radius: 16px;
        font-weight: 600;
    }
}

/* Produktsuche Vorschläge */
#suggestions {
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 14px;
    margin-top: 6px;
}

#suggestions .list-group-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Mobile Dark Theme */
@media (max-width: 767.98px) {

    #suggestions {
        min-height: 0;
        max-height: 192px;

        border-radius: 14px;

        border: 1px solid rgba(255,255,255,0.12);

        background-color: #0e2238;
    }

    #suggestions:not(:empty) {
        min-height: 192px;
    }

    #suggestions .list-group-item {
        min-height: 48px;

        background-color: #0e2238;

        color: white;

        border-color: rgba(255,255,255,0.08);

        padding: 12px 14px;
    }

    #suggestions .list-group-item:hover,
    #suggestions .list-group-item:focus {
        background-color: rgba(31,157,92,0.18);
        color: white;
    }
}

.sheet-backdrop {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.35);

    z-index: 999;

    opacity: 0;
    pointer-events: none;

    transition: 0.2s ease;
    
    border: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    body.sheet-open .sheet-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.sheet-open .floating-add-btn {
        opacity: 0;
        pointer-events: none;
    }

    body.sheet-open .mobile-bottom-nav {
        opacity: 0.35;
        pointer-events: none;
    }
}

/* =========================================================
   Toasts
   ========================================================= */

.custom-toast-container {
    position: fixed;

    left: 50%;
    bottom: 110px;

    transform: translateX(-50%);

    z-index: 2000;

    display: flex;
    flex-direction: column;
    gap: 10px;

    pointer-events: none;
}

.custom-toast {
    min-width: 220px;
    max-width: 90vw;

    padding: 14px 18px;

    border-radius: 18px;

    background: rgba(18, 38, 58, 0.96);

    border: 1px solid rgba(255,255,255,0.10);

    color: white;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.30);

    backdrop-filter: blur(12px);

    opacity: 0;
    transform: translateY(20px);

    animation:
        toastIn 0.25s ease forwards,
        toastOut 0.25s ease forwards 2.8s;
}

.custom-toast i {
    color: #1fdf7a;
    font-size: 1.1rem;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* =========================================================
   Desktop Add Form zurückholen
   ========================================================= */

@media (min-width: 768px) {

    .mobile-add-sheet {
        display: block !important;

        position: static;

        margin-bottom: 20px;

        max-height: none;
        overflow: visible;

        padding: 0;

        border: 0;
        border-radius: 0;

        background: transparent;

        box-shadow: none;
        backdrop-filter: none;
    }

    .mobile-add-sheet-handle {
        display: none;
    }

    .floating-add-btn,
    .sheet-backdrop,
    .mobile-bottom-nav {
        display: none !important;
    }
}