/* static/css/styles.css - Mobile First Design */

/* ==========================================================================
   Mobile First Base Styles (320px+)
   ========================================================================== */

/* Globale Overflow-Kontrolle */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    /* Touch-Events sicherstellen - weniger restriktiv */
    touch-action: pan-x pan-y;
}



*, *:before, *:after {
    box-sizing: inherit;
}

/* Fullscreen Hintergrundbild für alle Seiten */
body {
    padding-top: 60px; /* Reduziert für mobile */
    padding-bottom: 80px; /* Mehr Padding unten für Footer-Abstand */
    position: relative;
    font-size: 16px; /* Basis-Schriftgröße für mobile */
    line-height: 1.5; /* Bessere Lesbarkeit auf kleinen Bildschirmen */
    background-color: #f8f9fa; /* Fallback-Hintergrundfarbe */
    min-height: 100vh; /* Mindesthöhe für besseres Layout */
}

/* Hintergrundbild als separates Element für bessere Safari-Kompatibilität */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/TMZ_3329_optimized.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none; /* Verhindert Blockierung von Touch-Events */
    /* Safari-spezifische Fixes */
    -webkit-background-size: cover;
    -webkit-background-position: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Mobile-optimierte Container */
.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    overflow-x: hidden;
    /* Touch-Events sicherstellen */
    position: relative;
    z-index: 1;
}

/* Overlay für bessere Lesbarkeit - Mobile optimiert */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Etwas stärker für mobile Lesbarkeit */
    z-index: -1;
    pointer-events: none; /* Verhindert Blockierung von Touch-Events */
    /* Safari-spezifische Fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Zusätzliche Safari-Optimierungen */
    -webkit-perspective: 1000;
    perspective: 1000;
    will-change: auto;
}

/* Container für bessere Lesbarkeit - Mobile First */
.container {
    background-color: rgba(255, 255, 255, 0.85); /* Stärker für mobile Lesbarkeit */
    border-radius: 12px; /* Größere Rundung für Touch */
    padding: 15px; /* Reduziert für mobile */
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Stärkerer Schatten für mobile */
    margin-left: 10px;
    margin-right: 10px;
    max-width: calc(100vw - 20px); /* Verhindert Overflow */
    overflow-x: hidden;
    /* Touch-Events sicherstellen */
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Startseite Mobile Optimierung
   ========================================================================== */

/* Service-Karten für mobile */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px;
    overflow: hidden;
    /* Touch-Events sicherstellen */
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .display-4 {
    font-size: 3rem;
}

/* SD-WAN Karte mobile optimiert */
.sdwan-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Touch-Events sicherstellen */
    position: relative;
    z-index: 1;
}

.sdwan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Kontakt-Elemente mobile optimiert */
.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.contact-item .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Changelog mobile optimiert */
.changelog-header {
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.changelog-header:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.changelog-header .collapse-icon {
    transition: transform 0.2s ease;
}

.changelog-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* Mobile-optimierte Typografie */
@media (max-width: 767.98px) {
    .display-6 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .small {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .display-6 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Navigation - Mobile First
   ========================================================================== */

/* Mobile Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98) !important; /* Stärker für mobile */
    backdrop-filter: blur(8px);
    padding: 8px 15px; /* Kompakter für mobile */
    min-height: 60px;
}

/* Mobile-optimierte Navigation Items */
.navbar-nav .nav-link {
    padding: 12px 16px !important; /* Größere Touch-Targets */
    font-size: 16px; /* Mindestgröße für Touch */
    line-height: 1.4;
    /* Touch-Optimierungen */
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3);
    tap-highlight-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    user-select: none;
}

/* Dropdown-Menüs für Touch optimiert */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-item {
    padding: 12px 20px; /* Größere Touch-Targets */
    font-size: 16px;
    line-height: 1.4;
    /* Touch-Optimierungen */
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3);
    tap-highlight-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    user-select: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hamburger-Menü optimiert */
.navbar-toggler {
    padding: 8px 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 44px; /* Mindest-Touch-Target */
    min-height: 44px;
    /* Touch-Optimierungen */
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3);
    tap-highlight-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    user-select: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* ==========================================================================
   Buttons & Touch Elements - Mobile First
   ========================================================================== */

/* Mobile-optimierte Buttons */
.btn {
    min-height: 44px; /* Mindest-Touch-Target */
    padding: 12px 20px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    touch-action: pan-x pan-y; /* Weniger restriktiv für bessere Bedienbarkeit */
    /* Zusätzliche Touch-Optimierungen */
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3);
    tap-highlight-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    user-select: none;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    min-height: 50px;
    padding: 16px 24px;
    font-size: 18px;
}

/* Touch-optimierte Form Controls */
.form-control,
.form-select {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Labels für bessere Touch-Zugänglichkeit */
.form-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}

/* Cards für Touch-Optimierung */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    background-color: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 20px;
}

/* Mobile-optimierte Cards für Dashboard */
@media (max-width: 767.98px) {
    .card-body {
        padding: 15px;
    }
    
    .card-body.text-center.p-3 {
        padding: 12px !important;
    }
    
    .h6, .h5 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Accordions - Mobile First
   ========================================================================== */

.accordion-button {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 12px !important;
    box-shadow: none;
    touch-action: pan-x pan-y; /* Weniger restriktiv für bessere Bedienbarkeit */
    /* Zusätzliche Touch-Optimierungen */
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3);
    tap-highlight-color: rgba(13, 110, 253, 0.3);
    cursor: pointer;
    user-select: none;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 12px 12px 0 0 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-color: transparent;
}

.accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-body {
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

@media (max-width: 767.98px) {
    .accordion-button {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .accordion-body {
        padding: 15px;
    }
}

/* ==========================================================================
   Modals - Mobile First
   ========================================================================== */

.modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
}

.btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 18px;
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

/* Mobile: Full-screen Modals für bessere UX */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
        display: flex;
        align-items: stretch;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 20px;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
        flex-shrink: 0;
    }
    
    .modal-footer {
        padding: 12px 20px 16px;
        flex-shrink: 0;
    }
    
    .modal-title {
        font-size: 16px;
    }
}

/* Minimale Modal-Fixes - lasse Bootstrap die Arbeit machen */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .modal-dialog {
        margin: 20px auto;
        max-width: 90%;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .modal-dialog {
        margin: 30px auto;
    }
    
    .modal-lg {
        max-width: 900px;
    }
}

/* ==========================================================================
   Performance Optimizations - Mobile First
   ========================================================================== */

/* Optimierte Animationen für mobile Geräte */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU-beschleunigte Transformationen */
.btn,
.card,
.modal-content,
.dropdown-menu,
.accordion-button {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimierte Scroll-Performance */
.table-responsive,
.modal-body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Verhindere Layout-Shifts */
.card,
.btn,
.form-control,
.modal-dialog {
    contain: layout style;
}

/* Optimierte Font-Loading */
@media (max-width: 767.98px) {
    body {
        font-display: swap;
        text-rendering: optimizeSpeed;
    }
}

/* Reduzierte Schatten auf mobilen Geräten für bessere Performance */
@media (max-width: 575.98px) {
    .card,
    .modal-content,
    .dropdown-menu {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .container {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Optimierte Hover-States nur für Nicht-Touch-Geräte */
@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .card:hover,
    .dropdown-item:hover {
        transition: all 0.2s ease;
    }
}

/* Touch-optimierte States */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .dropdown-item:hover {
        transition: none;
    }
    
    .btn:active,
    .card:active,
    .dropdown-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Critical CSS für Above-the-fold Content */
.navbar,
.container:first-of-type,
body::before {
    will-change: auto;
    contain: layout;
}

/* Lazy-Loading-Placeholder */
[data-lazy] {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   Responsive Tables - Mobile First
   ========================================================================== */

/* Mobile-First: Tabellen als Cards */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
    font-size: 14px;
}

/* Mobile: Verstecke Tabellen-Layout, zeige als Cards */
@media (max-width: 767.98px) {
    .mobile-card-table {
        display: none;
    }
    
    .mobile-card-view {
        display: block;
    }
    
    .mobile-card-item {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-left: 4px solid #0d6efd;
    }
    
    .mobile-card-item .card-title {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 8px;
        color: #212529;
    }
    
    .mobile-card-item .card-subtitle {
        font-size: 14px;
        color: #6c757d;
        margin-bottom: 12px;
    }
    
    .mobile-card-item .card-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        padding: 4px 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .mobile-card-item .card-info:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .mobile-card-item .info-label {
        font-weight: 500;
        font-size: 13px;
        color: #6c757d;
        min-width: 100px;
    }
    
    .mobile-card-item .info-value {
        font-size: 14px;
        color: #212529;
        text-align: right;
        flex: 1;
    }
    
    .mobile-card-actions {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f8f9fa;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-card-actions .btn {
        flex: 1;
        min-width: 120px;
        font-size: 14px;
        padding: 8px 12px;
        min-height: 36px;
    }
}

/* Tablet und Desktop: Normale Tabellen */
@media (min-width: 768px) {
    .mobile-card-view {
        display: none;
    }
    
    .mobile-card-table {
        display: table;
        width: 100%;
    }
    
    .table th {
        font-weight: 600;
        font-size: 14px;
        border-top: none;
        padding: 16px 12px;
        background-color: rgba(248, 249, 250, 0.8);
        color: #495057;
    }
    
    .table td {
        padding: 16px 12px;
        vertical-align: middle;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .table tbody tr:hover {
        background-color: rgba(248, 249, 250, 0.5);
    }
}
.no-wrap {
    white-space: nowrap;
}
/* Stil für das größere "D" im Status */
.status-disabled {
    font-size: 1.5em; /* Erhöht die Schriftgröße um 50% */
    font-weight: bold; /* Optional: Fett darstellen */
    color: darkgrey; 
    display: inline-block;
    line-height: 1; /* Verhindert zusätzlichen vertikalen Abstand */
}
.status-online {
    font-size: 1.5em; /* Erh  ht die Schriftgr   ^=e um 50% */
    font-weight: bold; /* Optional: Fett darstellen */
    color: darkgreen; 
    display: inline-block;
    line-height: 1; /* Verhindert zus  tzlichen vertikalen Abstand */
}
.status-offline {
    font-size: 1.5em; /* Erh  ht die Schriftgr   ^=e um 50% */
    font-weight: bold; /* Optional: Fett darstellen */
    color: darkred; 
    display: inline-block;
    line-height: 1; /* Verhindert zus  tzlichen vertikalen Abstand */
}
.card {
    margin-bottom: 20px;
}

.card-header {
    font-size: 1.2em;
    font-weight: bold;
}
/* Spezifische Anpassungen für Readonly-Felder */
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
/* footer styles - sehr flach und dezent */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05) !important; /* Noch dezenterer Hintergrund */
    padding: 8px 0; /* Etwas mehr Padding für bessere Lesbarkeit */
    z-index: 1000;
    backdrop-filter: blur(3px);
    font-size: 0.7rem; /* Noch kleinere Schrift */
    border: none; /* Kein Rahmen */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtile Trennlinie */
}

/* Nachrichten innerhalb des Footers */
.footer .alert {
    margin-bottom: 0.5rem;
}

/* Zusätzlicher Abstand für den letzten Container */
.container:last-of-type {
    margin-bottom: 20px;
}

/* Sicherstellung, dass der Inhalt nicht hinter dem Footer verschwindet */
main, .content-wrapper {
    padding-bottom: 20px;
}

/* Mobile-spezifische Footer-Optimierungen */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 100px; /* Mehr Abstand auf mobilen Geräten */
    }
    
    .footer {
        padding: 6px 0;
    }
    
    /* Zusätzlicher Abstand für den letzten Container auf mobilen Geräten */
    .container:last-of-type {
        margin-bottom: 20px;
    }
    
}

/* ==========================================================================
   Safari-spezifische Fixes
   ========================================================================== */

/* Safari-spezifische Hintergrundbild-Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body::after {
        background-image: url('../images/TMZ_3329_optimized.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        pointer-events: none; /* Verhindert Blockierung von Touch-Events */
        -webkit-background-size: cover;
        -webkit-background-position: center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
        will-change: auto;
    }
    
    body::before {
        pointer-events: none; /* Verhindert Blockierung von Touch-Events */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
        will-change: auto;
    }
}

/* ==========================================================================
   Mobile First Media Queries
   ========================================================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
    body {
        padding-top: 65px;
        padding-bottom: 90px;
        font-size: 16px;
    }
    
    .container {
        padding: 18px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .footer .alert {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 100px;
        background-attachment: fixed; /* Parallax-Effekt auf größeren Bildschirmen */
    }
    
    .container {
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
        max-width: 720px;
    }
    
    .footer .alert {
        max-width: 600px;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 25px;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 30px;
    }
}

/* Entfernt die Unterstreichung und passt die Farbe an den umgebenden Text an */
.portal-footer a {
    color: inherit; /* Übernimmt die Farbe des übergeordneten Elements */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

/* Beibehaltung der gleichen Stile beim Hover */
.portal-footer a:hover {
    color: black; /* Optional: Kann auch eine leicht dunklere Farbe sein */
    text-decoration: none; /* Entfernt die Unterstreichung beim Hover */
}

/* Fokus-Stile für Zugänglichkeit */
.portal-footer a:focus {
    outline: none; /* Entfernt den Standard-Fokusrahmen */
    /* Optional: Eigene Fokus-Stile hinzufügen */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Collapse-Buttons Styling */
.btn-link {
    text-decoration: none;
    color: #0d6efd;
    padding: 0;
    border: none;
    background: none;
    margin-bottom: 10px;
    display: block;
}

.btn-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.btn-link:focus {
    box-shadow: none;
}

.collapse .card-body {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    margin-top: -10px;
}

/* Dynamische Collapse-Icons */
.collapse-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-right: 8px;
    font-size: 16px;
}

.btn[aria-expanded="true"] .collapse-icon {
    transform: rotate(45deg);
}

/* Hover-Effekt für Buttons */
.btn-link:hover .collapse-icon {
    color: #0a58ca;
}

/* Spinning-Animation für DNS-Überprüfung */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* DNS-Status-Badges */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}