/* 
 * Netztools24 - Custom CSS
 * Optimiert für SEO
 */

/* Allgemeine Stile */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Header-Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hauptcontainer-Styling */
.container {
    max-width: 1200px;
}

/* Card-Styling */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Tool-Container-Styling */
.tool-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tool-container h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.tool-container h2 {
    font-size: 1.4rem;
    color: #3498db;
    margin-top: 30px;
    margin-bottom: 15px;
}

.tool-description {
    margin-bottom: 25px;
    color: #555;
}

.tool-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

/* Form-Styling */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}


.ad-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    display: none; /* Standardmäßig versteckt, bis Cookies akzeptiert werden */
}

/* Platzhalter für Anzeigen (nur für Entwicklung) */
.ad-placeholder {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.ad-placeholder-mobile {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 10px;
    font-size: 0.8rem;
    border-radius: 5px;
}

/* Mobile Anzeige unten */
.ad-container-mobile {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none; /* Standardmäßig versteckt, bis Cookies akzeptiert werden */
}

/* Responsive Anpassungen */
/* Laptop-Größen */
@media (min-width: 769px) and (max-width: 1366px) {
    .ad-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    /* Optimierte Anzeigengröße für Laptops */
    .ad-container ins {
        display: inline-block;
        width: 100%;
        max-width: 728px;
        height: auto;
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .tool-container h1 {
        font-size: 1.8rem;
    }
    
    .tool-container h2 {
        font-size: 1.2rem;
    }
    
    /* Mehr Platz am unteren Rand für mobile Anker-Anzeige */
    body {
        padding-bottom: 60px;
    }
}

/* Tool-spezifische Stile */

/* Traceroute */
.traceroute-visualization {
    padding: 20px 0;
    position: relative;
}

.hop-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.hop-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.hop-line {
    height: 2px;
    background-color: #007bff;
    flex-grow: 1;
    margin: 0 10px;
    position: relative;
}

.hop-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007bff;
}

.hop-timeout {
    background-color: #ffc107;
}

.hop-timeout::after {
    background-color: #ffc107;
}

.hop-details {
    min-width: 150px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.hop-item:last-child .hop-line {
    display: none;
}

.hop-destination .hop-number {
    background-color: #28a745;
}

.hop-destination .hop-details {
    border-left-color: #28a745;
}

.hop-ip {
    font-weight: bold;
}

.hop-time {
    font-size: 0.9em;
    color: #6c757d;
}

.traceroute-output {
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* IP-Check */
.ip-info-table {
    margin-top: 20px;
}

/* JSON Formatter */
.json-input {
    font-family: monospace;
    min-height: 200px;
}

.json-output {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

/* Base64 */
.base64-output {
    word-break: break-all;
}

/* Password Generator */
.password-strength {
    margin-top: 10px;
}

.password-strength-meter {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
}

/* QR Code Generator */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

/* Animationen */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SEO-Optimierungen */
/* Verbesserte Lesbarkeit für bessere Nutzererfahrung */
p, li, td, th {
    font-size: 1rem;
    line-height: 1.6;
}

/* Hervorhebung wichtiger Inhalte */
.highlight {
    background-color: #fffde7;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}

/* Pagespeed-Optimierungen */
/* Reduzierte Schatten für bessere Renderleistung auf mobilen Geräten */
@media (max-width: 576px) {
    .card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .tool-container {
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    }
}