/* General Styles */
body, h1, h2, h3, p, a {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #2C3E50;
}

body {
    background-color: #F8F9FA;
    animation: fadeIn 1s ease-in-out;
}

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

header {
    background-color: #2C3E50;
    color: white;
    padding: 15px 0;
    text-align: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Header Logo Styling */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    background-color: #2C3E50;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navigation Styling */
.topnav {
    background-color: #2C3E50;
    overflow: hidden;
    position: fixed; /* Fix the topnav at the top */
    top: 0; /* Position it at the top of the page */
    width: 100%; /* Make it span the full width of the page */
    z-index: 1000; /* Ensure it stays above other content */
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    align-items: center;
}

.topnav #myLinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.topnav.responsive #myLinks {
    max-height: 500px;
}

.topnav a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.topnav a.icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    padding: 6px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.topnav a.active {
    font-weight: bold;
    font-size: 20px;
}

#myLinks a:hover {
    background-color: #3498DB;
    color: white;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Main Content Styles */
.cyberattacks-main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff; /* Weißer Hintergrund für Klarheit */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Dezente Schatten */
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Boxen */
    justify-content: space-between; /* Zwei Boxen nebeneinander */
}

/* Styling für die Boxen */
.cyberattack-box {
    flex: 0 0 calc(50% - 10px); /* 2 Boxen nebeneinander, mit Abstand */
    box-sizing: border-box;
    border: 2px solid #ccc; /* Umrandung der Box */
    border-radius: 8px;
    padding: 15px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyberattack-box:hover, .cyberattack-box:focus {
    transform: scale(1.05); /* Vergrößern beim Hover oder Fokus */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Intensivere Schatten */
    border-color: #3498DB; /* Farbakzent beim Hervorheben */
}

.cyberattack-box img {
    width: 100%; /* Bilder sollen die gesamte Breite der Box einnehmen */
    height: auto; /* Höhe wird automatisch angepasst, um das Bildverhältnis zu wahren */
    max-height: 300px; /* Maximalhöhe des Bildes */
    object-fit: contain; /* Bild wird vollständig angezeigt, ohne es zuzuschneiden */
}

h2 {
    font-size: 1.8em;
    margin-top: 15px;
    border-bottom: 2px solid #3498DB; /* Akzentfarbe */
    padding-bottom: 5px;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-top: 15px;
    color: #34495E;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cyberattacks-main {
        flex-direction: column;
        gap: 20px; /* Abstand zwischen den Boxen */
    }

    .cyberattack-box {
        flex: 0 0 100%; /* Boxen untereinander auf kleinen Bildschirmen */
    }

    h2 {
        font-size: 1.6em;
    }

    p {
        font-size: 1em;
    }
}

/* Footer Styles */
footer {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer nav {
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

footer a:hover {
    color: #3498DB;
}

footer p {
    font-size: 14px;
    margin: 0;
}


/* Footer Styling */
footer {
    background-color: #2C3E50;
    color: white;
    padding: 20px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}

.footer-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.footer-section p, .footer-section ul {
    font-size: 1em;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #3498DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2980B9;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9em;
}

footer nav {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

footer a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

footer a:hover {
    color: #3498DB;
}

footer p {
    font-size: 14px;
    margin-top: 10px;
    color: white;
}


