/* Grundlayout */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}


.bgbody {
  margin: 0;
            padding: 0;
            background-image: url('../images/bgbody.png'); /* Ersetze durch deinen Bildpfad */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
	        }

.beta a {
	color: #2563eb;
	text-decoration: underline;
}

/* Standardansicht */
.logo {
  content: url('../images/logo.webp'); /* Standard-Logo */
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .logo {
    content: url('../images/logo-mobile.webp'); /* Anderes Logo für mobile Geräte */
  }
}


/* Container */
.container {
    width: 100%;
    max-width: 992px;

/* Titel */
h2, h3 {
    color: #333;
    text-align: center;
}

.left {
	text-align: left;	
}

/* Link-Liste */
ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Stil für inaktive Karten */
.card-inactive {
    background-color: #e0e0e0 !important;
    color: #aaa !important;
    opacity: 0.6;
}

/* Sicherstellen, dass Export- und Delete-Buttons sowie QR-Code immer sichtbar sind */
.card-inactive .export-btn,
.card-inactive .delete-btn,
.card-inactive img {
    opacity: 1 !important;
    color: #ffffff !important;
    pointer-events: auto !important;
    filter: none !important;
    z-index: 10;
}

[id^="link-card-"]:hover  {
	transform: scale(1.02);
}


/* Hover-Effekt für Karten */
#linkForm, .container ul li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#linkForm:hover, .container ul li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Entfernt den Hover-Effekt ausschließlich vom Formular */
#linkForm:hover {
    box-shadow: none !important; /* Kein Schatten für das Formular */
    transform: none !important; /* Keine Verschiebung für das Formular */
}

/* Hover-Effekt für Karten */
.container ul li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container ul li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nocard {
    background: none;
    box-shadow: none;
    padding: 0 0 0 10px;
    margin: 0;
}

/* Mobile-optimierte Kartenansicht */
@media (max-width: 640px) {
    html {
        font-size: 18px;
    }

    .container ul li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .container ul li .absolute {
        position: static;
        margin-top: 0.5rem;
    }

    .container ul li .sm\:w-3\/4 {
        width: 100%;
    }

    .container ul li a {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .bg-red-500, .bg-green-500, button {
        padding: 0.8rem 1.5rem;
        width: 100%;
        font-size: 1.125rem;
        margin-top: 0.5rem;
    }
}

/* Export- und Delete-Button */
.export-btn,
.delete-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 10px;
    color: #ffffff !important;
    background-color: #1a73e8 !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-btn {
    background-color: #dc3545 !important;
}

.export-btn:hover {
    background-color: #155bb5 !important;
}

.delete-btn:hover {
    background-color: #c82333 !important;
}

.bg-red-500, .bg-green-500 {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 0.375rem;
}

.bg-red-500:hover, .bg-green-500:hover {
    transform: scale(1.05);
}

/* QR-Code */
img {
    display: block;
    opacity: 1 !important;
    filter: brightness(1) !important;
}


#qrCodeModal {
    display: none;
}
#qrCodeModal:not(.hidden) {
    display: flex;
}

/* Nachricht-Stil für Feedback-Nachrichten */
.message {
    opacity: 1;
    transition: opacity 0.5s ease-out;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    max-width: 800px;
}

.feedback-message {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch i {
    font-size: 1.25rem;
    color: #aaa;
    transition: color 0.3s ease;
}

.toggle-switch input:checked ~ i {
    color: #4CAF50;
}

/* Optische Anpassung des deaktivierten Toggles */
.toggle-switch input:disabled + .slider {
    background-color: #ccc;
    cursor: not-allowed;
}


.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Stil für die Suchleiste */
.search-container {
    margin-bottom: 20px;
}

#searchInput {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

/* Container für Filter und Sortieroptionen */
.filter-sort-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

/* Dropdown-Design */
.dropdown {
    appearance: none; /* Entfernt Standard-Dropdown-Styling */
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-width: 150px; /* Setzt eine Mindestbreite für Konsistenz */
}

/* Pfeil für Dropdown anzeigen */
.dropdown::after {
    content: '▼';
    font-size: 0.75rem;
    color: #555;
    position: absolute;
    right: 1rem;
    pointer-events: none;
}

/* Hover- und Fokus-Effekt für Dropdown */
.dropdown:hover,
.dropdown:focus {
    border-color: #4a90e2;
    background-color: #fff;
    outline: none;
}

  .progress-bar-container {
        background-color: #e2e8f0;
        border-radius: 0.25rem;
        height: 8px; /* Kleinere Höhe für eine dezente Anzeige */
        width: 50%;
        margin-top: 0.5rem;
    }

    .progress-bar {
        background-color: #3b82f6; /* Blaue Farbe für die Fortschrittsanzeige */
        height: 100%;
        border-radius: 0.25rem;
        transition: width 0.3s ease-in-out; /* Übergang für sanfte Animation */
        width: 50%
    }

    .progress-text {
        font-size: 0.75rem; /* Kleinere Schriftgröße */
        color: #4b5563; /* Neutrale Farbe */
        margin-top: 0.25rem;
        text-align: left; /* Text rechtsbündig für eine klare Anzeige */
    }
    
    /* Tooltip */
    .tooltip {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }

    .tooltip .tooltip-text {
        visibility: hidden;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%; /* Position über dem Element */
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Ablaufdatum-Hervorhebung */
    .expiring-soon {
        color: #d97706; /* Goldene Farbe für bald ablaufende Links */
    }

    .expiring-soon-icon {
        color: #d97706;
        margin-right: 0.25rem;
    }


.card-footer form {
    display: flex;
    align-items: center;
    margin: 0; /* Entferne unnötige Ränder */
    padding: 0; /* Entferne unnötige Polsterung */
}
.card-footer button {
    margin: 0; /* Entferne zusätzliche Ränder */
    padding: 0; /* Entferne zusätzliche Polsterung */
}


/* CSS für fehlerhafte Felder */
.input-error {
    border-color: #e3342f; /* Rot für Fehler */
    box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25);
    }

.hidden {
    display: none;
}

.error-message {
    color: #e3342f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

    /* Maximiere die Button-Breite für größere Texte */
    .pricing-button {
        display: block;
        max-width: 200px;
        margin: 0 auto;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Passe Schriftgröße und Padding an, damit der Button kompakter wird */
    .pricing-button.small {
        font-size: 0.875rem; /* Kleinere Schriftgröße */
        padding: 0.5rem 1.25rem;
    }


.statistik-section {
    background-color: #ffffff;
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.statistik-section h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #333;
}

/* Chart spezifisch */
canvas {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
}


/* Stile für den Referrer-Link */
.referrer-link {
    display: block; /* Block-Level-Element */
    width: 70%; /* Begrenze die Breite auf 70% des Containers */
    white-space: nowrap; /* Verhindere Zeilenumbrüche */
    overflow: hidden; /* Verstecke überlaufenden Text */
    text-overflow: ellipsis; /* Zeige "..." für abgeschnittenen Text */
}

.error-message.hidden {
    display: none;
}

/* Medienabfragen für größere Bildschirme */
@media (min-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .statistik-section {
        padding: 1.5em;
    }

    .statistik-section h2 {
        font-size: 1.4em;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 900px;
        margin: 0 auto;
        padding: 2em;
    }
}


.pagination-container {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-item a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
}

.page-item.active a {
    background-color: #007bff;
    color: white;
}

.page-item.disabled a {
    color: #6c757d;
    pointer-events: none;
}


.dashboard-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-status .grid {
    display: grid;
    gap: 1rem;
}

.dashboard-status .bg-blue-50 {
    background-color: #ebf8ff;
}

.dashboard-status .bg-yellow-50 {
    background-color: #fefcbf;
}

.dashboard-status .bg-red-600:hover {
    background-color: #dc2626;
}

.card-footer {
	font-size: 1.25rem;
	padding-right: 10px;
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 64.93%; /* Seitenverhältnis von 1663x1080 */
    overflow: hidden;
    border-radius: 0.5rem; /* Abgerundete Ecken */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Skaliert das Video ohne Verzerrung */
    border-radius: 0.5rem; /* Optional */
}

.fa-instagram, .fa-twitter {
	color: #ec4899;
	font-size: 24px;
}