/* Grundlegende Styles */

:root{
    --white: #f9f9f9;
    --black: #36383F;
    --grey: #85888C;
}

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    transition: none !important;
}
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background-color: #f7f7f7;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        main {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: stretch;
            flex-direction: column;
            padding: 5px;
            max-width: 1200px;
            margin: auto;
    		width: 100%;
        }
.ad-meta,
.user-profile {
    align-self: flex-start; /* Explizite Ausrichtung links */
}     
/* Allgemeine Link-Styling */
a {
    color: #ff4d4d; /* Rot, passend zum Such-Button */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover-Effekt */
a:hover {
    color: #cc0000; /* Dunkleres Rot für Hover */
    text-decoration: underline;
}

/* Aktiver Link */
a:active {
    color: #990000; /* Noch dunkleres Rot für aktive Links */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
    width: 98%;
}

h1, h2 {
    /*text-align: center;*/
    font-size: 1.2rem;
}

ul{
    list-style: none;
}
/*Footer Bar*/
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

.footer-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.footer-item {
    text-decoration: none;
    color: #fff;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.footer-item .footer-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.footer-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-item:last-child::after {
    display: none;
}

/* Sichtbar nur auf kleinen Geräten */
@media (min-width: 768px) {
    .footer-bar {
        display: none;
    }
}

/* Header */
header{
z-index: 1000;
    background-color: var(--black);
    box-shadow: 1px 1px 5px 0px var(--grey);
    position: sticky;
    top: 0;
    height: 35px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 30px;
}
/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    top:35px;
    position: fixed;
    background-color: var(--black);
    overflow: hidden;
    
}

.menu a{
    display: block;
    padding: 25px;
    color: var(--white);

}

.menu a:hover{
    background-color: var(--grey);
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}
/* Menu Icon */

.hamb{
    cursor: pointer;
    float: right;
    padding: 14px 20px;
}


.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    
}

.hamb-line::before,
.hamb-line::after{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before{
    top: 5px;
}

.hamb-line::after{
    top: -5px;
}


.side-menu {
    display: none;
}

/* Toggle menu icon */

.side-menu:checked ~ nav{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;

}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

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

    .menu li {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 20px;
    }

    .user-avatar {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        object-fit: cover;
    }
.logo,
.user-info {
margin-right: auto;
position: relative;
}
/* Suchfeld */
.search-section {
    margin: 20px 0;
    padding: 0px 5px;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-button {
    background-color: #e63946; /* Rote Farbe */
    color: #ffffff; /* Weißer Text */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Weicher Hover-Effekt */
}

.search-button:hover {
    background-color: #b82835; /* Dunkleres Rot beim Hover */
}

.search-button:active {
    background-color: #8e1c26; /* Noch dunkleres Rot beim Klick */
}

.search-button:focus {
    outline: none; /* Entfernt den Standard-Fokusrahmen */
    box-shadow: 0 0 4px 2px rgba(230, 57, 70, 0.5); /* Visueller Fokus */
}

/* Anzeigenliste */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ad-card {
    display: flex;
    position: relative;
    gap: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.2s, background-color 0.2s;
}

.ad-fav-icon {
	position: absolute;
    right: 4px;
    top: 4px;
}

.fav-icon {
	width: 20px;
}

.ad-card:hover,
.ad-card.active { /* Hover und aktiver Zustand */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f7e0e0;
    cursor: pointer;
}

.ad-card:active {
    transform: scale(0.98); /* Leichter Klick-Effekt */
}

.ad-preview {
    position: relative;
    flex: 0 0 150px;
    height: 150px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-count-icon {
    width: 16px;
    height: 16px;
    background: url('https://portal.xiltis.com/assets/icons/camera-icon.svg') no-repeat center center;
    background-size: contain;
}

.ad-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}

.ad-description {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #666;
}

.ad-meta {
    font-size: 12px;
    color: #999;
    margin-top: 20px; /* Abstand von den oberen Elementen */
    text-align: left; /* Linksbündig ausrichten */
    line-height: 1.6; /* Bessere Lesbarkeit */
}

.ad-meta a {
    color: #d9534f;
    text-decoration: none;
}

.ad-meta a:hover {
    text-decoration: underline;
}

.ad-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.pagination {
    text-align: center;
    padding: 10px;
}

.collapsible a {
    color: red !important; /* Ersetzt "red" mit der gewünschten Farbe */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.collapsible a:hover {
    text-decoration: underline; /* Fügt eine Unterstreichung beim Hover hinzu */
    color: darkred; /* Optionale Hover-Farbe */
}

/* Zusätzlicher Stil für die Pfeile */
.collapsible .arrow {
    color: inherit; /* Gleiche Farbe wie der Text */
    font-size: 1em;
    margin-left: 5px;
}


/* Für aktive Links */
.collapsible a:active {
    color: #990000; /* Noch dunkleres Rot */
}
       ul.collapsible {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        ul.collapsible li {
            margin-bottom: 10px;
        }

        .collapsible-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
        }

        .collapsible-header a {
            text-decoration: none;
            color: #333;
            flex-grow: 1;
        }

        .collapsible-header a:hover {
            text-decoration: underline;
        }

        .collapsible-header .arrow {
            font-size: 14px;
            transition: transform 0.3s ease;
        }

        .collapsible-header.active .arrow {
            transform: rotate(90deg);
        }

        .collapsible-body {
            display: none;
            padding: 10px;
            border: 1px solid #ddd;
            border-top: none;
            background-color: #fff;
            margin-top: -1px;
            border-radius: 0 0 5px 5px;
        }

        .collapsible-header.active {
            background-color: #e0e0e0;
        }
        .login-container {
            width: 100%;
            margin: auto;
            max-width: 400px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid #ddd;
        }
        .login-container h1 {
            font-size: 24px;
            margin-bottom: 20px;
            text-align: center;
        }
        .login-container form {
            display: flex;
            flex-direction: column;
        }
        .login-container input[type="email"],
        .login-container input[type="password"],
        .login-container input[type="text"]{
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .login-container .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .login-container .checkbox-container input[type="checkbox"] {
            margin-right: 10px;
        }
        .login-container button {
            background-color: #d9534f;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .login-container button:hover {
            background-color: #c9302c;
        }
        .login-container a {
            text-align: center;
            display: block;
            margin-top: 15px;
            color: #d9534f;
            text-decoration: none;
        }
        .login-container a:hover {
            text-decoration: underline;
        }
        .error-message, .success-message {
            text-align: center;
            margin-bottom: 15px;
        }
        .error-message {
            color: red;
        }
        .success-message {
            color: green;
        }
        .password-container {
            position: relative;
        }
        .password-container input {
            width: 100%;
            box-sizing: border-box;
        }
        .toggle-password {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            cursor: pointer;
            font-size: 14px;
            color: #d9534f;
        }
		.reset-container {
            width: 100%;
            max-width: 400px;
            text-align: center;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid #ddd;
            margin: 40px auto;
        }
        .reset-container h1 {
            font-size: 24px;
            margin-bottom: 20px;
            text-align: center;
        }
        .reset-container form {
            display: flex;
            flex-direction: column;
        }
        .reset-container input[type="email"] {
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .reset-container button {
            background-color: #d9534f;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .reset-container button:hover {
            background-color: #c9302c;
        }
        .reset-container a {
            text-align: center;
            display: block;
            margin-top: 15px;
            color: #d9534f;
            text-decoration: none;
        }
        .reset-container a:hover {
            text-decoration: underline;
        }
        /* Bild-Galerie */
.image-gallery-container {
    position: relative;
    overflow: hidden; /* Wichtig, um das Scrollen zu begrenzen */
    width: 100%;
}

.image-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen */
    scroll-snap-type: x mandatory; /* Aktiviert den Snap-Effekt */
    scroll-behavior: smooth; /* Sanftes Scrollen */
    width: 100%; /* Passt die Galerie an die Breite des Containers an */
}

.image-gallery img {
    height: 300px; /* Maximalhöhe der Bilder */
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    scroll-snap-align: center; /* Zentriert jedes Bild beim Scrollen */
}

        .image-counter {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
        }
        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .lightbox img {
            max-height: 90%;
            max-width: 90%;
        }
        .lightbox .close {
            position: absolute;
            top: 10px;
            right: 20px;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }
        .lightbox .arrow {
            position: absolute;
            top: 50%;
            font-size: 40px;
            color: white;
            cursor: pointer;
            user-select: none;
            transform: translateY(-50%);
        }
        .lightbox .arrow.left {
            left: 20px;
        }
        .lightbox .arrow.right {
            right: 20px;
        }
        .lightbox .lightbox-counter {
            position: absolute;
            bottom: 20px;
            color: white;
            font-size: 14px;
        }
        /* Beschreibung und Preis */
        .ad-details-container {
            margin-top: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 15px;
            position: relative;
        }
        .ad-details-container h3 {
            position: absolute;
            top: -10px;
            left: 10px;
            background-color: white;
            padding: 0 5px;
            font-size: 12px;
            color: #666;
        }
        .ad-description {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 20px;
        }
        .ad-price {
            font-size: 1.2rem;
            font-weight: bold;
            color: #d9534f;
            text-align: right;
            margin-bottom: 30px;
        }
        .ad-meta {
            margin-top: 30px;
        }
        /* User-Profil */
.user-profile {
    display: flex;
    align-items: center; /* Vertikale Ausrichtung */
    justify-content: flex-start; /* Linksbündig */
    gap: 15px; /* Abstand zwischen Profilbild und Text */
    margin-top: 20px; /* Abstand von den oberen Elementen */
}

.user-profile img {
    width: 50px; /* Feste Breite des Profilbilds */
    height: 50px; /* Feste Höhe des Profilbilds */
    border-radius: 50%; /* Runde Form */
    object-fit: cover; /* Bild proportional skalieren */
}

.user-profile-details {
    display: flex;
    flex-direction: column; /* Text untereinander anordnen */
    align-items: flex-start; /* Text linksbündig */
}

.user-profile-details small {
    color: #666; /* Dezente Textfarbe */
    font-size: 14px; /* Kleinere Schriftgröße */
}
        /* Ähnliche Anzeigen */
        .similar-ads {
            margin-top: 40px;
        }
        .similar-ads h2 {
            margin-bottom: 20px;
        }
        .similar-ad-card {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            padding: 10px;
            border-radius: 5px;
            transition: transform 0.3s ease;
        }
        .similar-ad-card img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 5px;
        }
        .similar-ad-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

.user-follow {
    margin-left: auto; /* Sorgt dafür, dass der Button nach rechts ausgerichtet wird */
}
.notification-indicator {
	position: absolute;
	display: none;
    top: 1px;
    right: -4px;
    width: 7px;
    height: 7px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.notification-badge {
    position: absolute;
    display: none;
    top: -5px;
    right: -5px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
.badge-default-red {
	background-color: red;
}
.btn {
    background-color: #d9534f; /* Rot */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c9302c;
    color: white;
}

.btn-primary {
    background-color: #d9534f;
    color: white;
}
/*register account*/
        .register-container {
            width: 100%;
            max-width: 400px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid #ddd;
            margin: 40px auto;
        }
        .register-container h1 {
            font-size: 24px;
            margin-bottom: 20px;
            text-align: center;
        }
        .register-container form {
            display: flex;
            flex-direction: column;
        }
        .register-container input[type="text"],
        .register-container input[type="email"],
        .register-container input[type="password"] {
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .register-container .password-strength {
            height: 10px;
            border-radius: 5px;
            margin-bottom: 10px;
            background-color: #ddd;
            position: relative;
        }
        .register-container .password-strength .strength-bar {
            height: 100%;
            border-radius: 5px;
            transition: width 0.3s ease, background-color 0.3s ease;
        }
        .register-container .password-scale {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #666;
            margin-top: -5px;
        }
        .register-container button {
            background-color: #d9534f;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .register-container button:hover {
            background-color: #c9302c;
        }
        .register-container a {
            text-align: center;
            display: block;
            margin-top: 15px;
            color: #d9534f;
            text-decoration: none;
        }
        .register-container a:hover {
            text-decoration: underline;
        }
        .validation-message {
            font-size: 12px;
            margin-top: -8px;
            margin-bottom: 10px;
        }
        .validation-message.error {
            color: red;
        }
        .validation-message.success {
            color: green;
        }
/* Filterbox */
        .filter-container {
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }

        .filter-container h2 {
            font-size: 18px;
            margin-bottom: 15px;
        }

        .filter-item {
            margin-bottom: 10px;
        }

        .filter-item label {
            font-size: 14px;
            display: block;
            margin-bottom: 5px;
        }

        .filter-item input,
        .filter-item select {
            padding: 8px;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .range-slider {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Suggestionsbox */
        .suggestion-box {
            position: absolute;
            z-index: 1000;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 5px;
            max-height: 150px;
            overflow-y: auto;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        }

        .suggestion-item {
            padding: 10px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .suggestion-item:hover {
            background-color: #f5f5f5;
        }

        /* Anzeigen-Button */
#search-button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    text-align: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5; /* Standard: Deaktiviert */
    pointer-events: none; /* Deaktiviert für Klicks */
}

#search-button.enabled {
    opacity: 1; /* Aktiviert */
    pointer-events: auto; /* Klickbar */
}

#search-button.enabled:hover {
    background-color: #c9302c; /* Dunkleres Rot */
}


        #search-button:hover {
            background-color: #c9302c;
        }

/* Slider-Leiste */
    input[type="range"] {
        -webkit-appearance: none;
        width: 100%;
        height: 8px;
        background: #ddd;
        border-radius: 5px;
        outline: none;
        opacity: 0.9;
        transition: background 0.3s ease;
    }

    /* Thumb für Webkit-Browser (z. B. Chrome, Safari) */
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #ff0000; /* Rot */
        border: 2px solid #ccc;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
    }

    /* Hover-Effekt für Thumb */
    input[type="range"]::-webkit-slider-thumb:hover {
        background: #cc0000; /* Dunkleres Rot */
        transform: scale(1.1); /* Leicht vergrößern beim Hover */
    }

    /* Slider-Thumb für Firefox */
    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: #ff0000; /* Rot */
        border: 2px solid #ccc;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
    }

    /* Hover-Effekt für Firefox */
    input[type="range"]::-moz-range-thumb:hover {
        background: #cc0000;
        transform: scale(1.1);
    }
    
        .dashboard-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            padding: 20px;
        }

        .dashboard-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 250px;
            height: 150px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            color: #333;
            transition: transform 0.2s, box-shadow 0.2s;
            text-align: center;
        }

        .dashboard-button:hover {
            transform: scale(1.05);
            box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
        }

        .dashboard-icon {
            font-size: 40px;
            color: #d9534f;
            margin-bottom: 10px;
        }

        .dashboard-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .dashboard-description {
            font-size: 14px;
            color: #666;
        }

        .stats {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: #f9f9f9;
            min-width: 300px;
            max-width: 400px;
            margin: 0 auto 20px;
        }

        .stats-item {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .stats-title {
            font-size: 16px;
            font-weight: bold;
        }

        .stats-value {
            font-size: 16px;
            color: #333;
        }
.success-popup {
position: fixed;
top: 30px;
left: 50%;
transform: translateX(-50%);
background-color: #4CAF50;
color: white;
padding: 15px 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
font-size: 14px;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
width: 95%;
max-width: 370px;
}

.success-popup button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.success-popup.hidden {
    display: none;
}

.success-popup button:hover {
    color: #d4d4d4;
}
.success-popup.success {
    background-color: #4caf50;
}

.success-popup.error {
    background-color: #f44336;
}

#close-popup {
	width: 30px;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

.tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
}

.tooltip[data-arrow="top"]::after {
    border-width: 8px;
    border-color: transparent transparent #333 transparent;
    bottom: 100%; /* Pfeil an der oberen Boxkante */
    left: 50%;
    transform: translateX(-50%);
}

.tooltip[data-arrow="bottom"]::after {
    border-width: 8px;
    border-color: #333 transparent transparent transparent;
    top: 100%; /* Pfeil an der unteren Boxkante */
    left: 50%;
    transform: translateX(-50%);
}

.tooltip[data-arrow="right"]::after {
    border-width: 8px;
    border-color: transparent transparent transparent #333;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip[data-arrow="left"]::after {
    border-width: 8px;
    border-color: transparent #333 transparent transparent;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-icon {
	content: url(https://portal.xiltis.com/assets/icons/info-icon.svg);
	width: 20px;
    height: 20px;
    margin: 0 5px;
    cursor: pointer;
}
    
/* Footer */
        footer {
            background-color: #f1f1f1;
            text-align: center;
            padding: 10px 0;
            margin-top: 30px;
            font-size: 14px;
            border-top: 1px solid #ddd;
        }

/* Mobile Styles */
@media only screen and (min-width: 481px) and (max-width: 767px){
	.ad-card {
        width: 30%;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1024px){
	.header{
    	height: 60px;
	}
.success-popup {
top: 60px;
}
	.logo-img {
    	max-height: 50px;
	}
    .nav{
        max-height: none;
        top: 0;
        height:auto;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;

    }

    .menu li{
        float: left;
    }

    .menu a:hover{
        background-color: transparent;
        color: var(--grey); 
    }
    
    .hamb{
        display: none;
    }

    .search-input {
        width: 60%;
    }

}

@media only screen and (min-width: 1025px){
	main{
		margin: auto;
	}
.login-container,
.reset-container,
.register-container{
    width: 400px;
}
.success-popup {
top: 60px;
}
	.header{
    	height: 60px;
	}
	.logo-img {
    	max-height: 50px;
	}
    .nav{
        max-height: none;
        top: 0;
        height:auto;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;

    }

    .menu li{
        float: left;
    }

    .menu a:hover{
        background-color: transparent;
        color: var(--grey); 
    }
    
    .hamb{
        display: none;
    }

    .search-input {
        width: 60%;
    }

}