/* 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 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px; /* Increased padding */
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

main h2 {
    font-size: 2.5em; /* Increased font size */
    border-bottom: 2px solid #3498DB;
    padding-bottom: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

main h3 {
    font-size: 2em; /* Increased font size */
    margin-top: 20px;
    color: #34495E;
    transition: color 0.3s ease;
}

main p {
    font-size: 1.3em; /* Increased font size */
    line-height: 1.8;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Section: Cyber Domain */
.question1flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.cyberdomaincont {
    flex: 2;
}

.cyberdomainimg {
    flex: 1;
    text-align: center;
}

.cyberdomainimg img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.cyberdomainimg img:hover {
    transform: scale(1.05);
}

.cyberdomainimg a {
    display: block;
    font-size: 1.1em; /* Increased font size */
    color: #3498DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cyberdomainimg a:hover {
    text-decoration: underline;
    color: #2980B9;
}

/* Table Styling */
.table-container {
    margin: 20px 0;
    overflow-x: auto; /* Make table scrollable horizontally */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px; /* Increased padding */
    text-align: center;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

@media screen and (max-width: 480px) {
    table {
        display: block;
        width: 100%;
        border: 0;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    table td {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    table td::before {
        content: attr(data-label); /* Name der Spalte */
        font-weight: bold;
        margin-right: 10px;
        color: #2C3E50;
    }

    table td:last-child {
        margin-bottom: 0;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button Styling */
.open-modal {
    background-color: #FFFFFF;
    color: black;
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.open-modal:hover {
    background-color: #2C3E50;
    color: #FFFFFF;
    transform: scale(1.05);
}

.open-modal::after {
    content: "Drücke für mehr Informationen";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.open-modal:hover::after {
    opacity: 1;
}


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;
}

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

.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;
}

/* Responsive styles */
@media (max-width: 768px) {
    .topnav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .topnav a.icon {
        position: absolute;
        right: 10px;
        top: 5px;
        padding: 0;
        margin: 0;
    }

    .header-logo {
        margin: 0;
        padding: 0;
    }

    .topnav #myLinks {
        display: none;
    }

    .topnav.responsive #myLinks {
        display: block;
        width: 100%;
    }

    .topnav.responsive {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    main h2 {
        font-size: 1.8em;
    }

    main p {
        font-size: 1em;
    }

    .open-modal {
        padding: 8px 16px;
    }

    .modal-content {
        width: 95%;
    }

    table {
        display: block;
        width: 100%;
        border: 0;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    table td {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        color: #2C3E50;
    }

    table td:last-child {
        margin-bottom: 0;
    }
}