* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    color: #3a3a3a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

#header {
    top: 0;
    position: sticky;
    z-index: 1000;
}

header {
    height: 90px;
    font-weight: 400;
    background-color: #fcfcfc;
    /* background-color: rgba(250, 250, 250, 0.85); */
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 80%;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 15px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1d3d55;
    line-height: 1.3;
    max-width: 300px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    display: flex;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #f2f2f2;
}

.link-btn {
    background-color: #0092f6;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    padding: 10px 15px;
    text-decoration: none;
}

.link-btn:hover {
    background-color: #0073c0;
}

/* Dropdown Menu */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1000;
}

nav ul li ul.dropdown li {
    width: 150px;
}

nav ul li ul.dropdown li a {
    padding: 10px 15px;
    display: block;
    text-align: left;
}

nav ul li ul.dropdown li a:hover {
    background-color: #f2f2f2;
}

/* Show Dropdown on Hover */
nav ul li:hover>ul.dropdown {
    display: block; /* Show dropdown when hovering over parent <li> */
}

footer {
    height: 40px;
    background: #3a3a3a;
    font-weight: 400;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a, footer p  {
    color: #eee;
    font-size: 12px;
    text-align: center;
}

.news {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    line-height: 25px;

    /* Scroll */
    flex: 1;
    overflow-y: auto;
}

.news li {
    margin: 10px 0px;
    text-decoration: none;
}

.news a,
.text-page a {
    color: #f97c00;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 90px - 40px);
}

.cover {
    display: flex;
    height: calc(100vh - 90px);
    align-items: center;
    justify-content: left;
    padding-left: 25px;
    background-image: url("images/internet-netzwerk-verknupfung.jpg");
    background-position: center;
    background-size: cover;
    width: 100%;
}

.cover-content {
    max-width: 50%;
    padding: 22px 22px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.content {
    background-color: rgb(247, 251, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 90px - 40px);
    padding: 45px 0px;
}

.content-left {
    height: 100%;
    display: flex;
    width: 55%;
    margin-right: 20px;
}

.content-right {
    height: 100%;
    display: flex;
    width: 30%;
}

.content-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px 22px;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 5px;

    flex: 1;
    overflow-y: auto;
}

/* Better paragraph spacing */
.content-text p {
    line-height: 1.8;
    margin: 20px 0;
}

/* Highlighted content box */
.highlight-box {
    background: linear-gradient(135deg, #f7fbff 0%, #e8f4ff 100%);
    border-left: 4px solid #0092f6;
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 146, 246, 0.1);
}

.highlight-box h4 {
    color: #0092f6;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Styled topic list */
.topics-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.topics-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.topics-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0092f6;
    font-size: 18px;
    font-weight: bold;
}

.sponsors {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: auto;
    padding: 45px 0px;
}

.sponsors div {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 60%;
}

.cover .sponsors {
    padding: 10px 0;
    align-items: flex-start;
}

.cover .sponsors div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: auto;
}

.cover .sponsors img {
    width: auto;
    max-height: 80px;
    margin: 0;
}

.sponsors h3 {
    font-size: 35px;
    padding: 20px 0px;
}

.sponsors a {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

.sponsors a:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.sponsors img {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin: 25px 20px;
}

main h1 {
    font-size: 48px;
    color: #3d64a7;
}

.cover-content h1 {
    color: #0092f6;
}

main h2 {
    font-size: 26px;
    color: #142a3a;
    font-weight: 800;
    margin: 8px 0px;
}

main h3 {
    font-size: 20px;
    color: #1d3d55;
    font-weight: 600;
    margin: 8px 0px;
}

main h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 3px 0;
}

main p {
    line-height: 25px;
    margin: 8px 0;
}


/* .action-btn a {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}

.action-btn:hover {
    background-color: #0073c0;

}

.action-btn {
    padding: 10px 15px;
    margin-top: 20px;
    margin-bottom: 8px;
    background: #0092f6;
    color: #fff;
    outline: none;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
} */

.text-page {
    width: 80%;
    margin: 40px 0px;
}

.text-page ul {
    margin-left: 30px;
}

.text-page li {
    padding: 5px 0px;
}

.text-page p {
    font-weight: 400;
    line-height: 25px;
    margin: 15px 0;
}

.text-page h1 {
    margin: 25px 0px;
    font-size: 32px;
}

.text-page h2 {
    font-size: 26px;
    margin: 25px 0px;
}

.text-page h3 {
    margin: 25px 0px;
}

.content-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0px 20px 20px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 15px 0px;
}

.table th {
    display: flex;
    justify-content: left;
}
.table tr{
    line-height: 30px;
}

.content-group {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.content-box-small {
    display: flex;
    width:40%;
    flex-direction: column;
    padding: 0px 20px 20px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 15px 0px;
}

.content-group img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 10px;
    height: 46vh;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* Speaker Cards */
.speakers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 30px 0;
}

.speaker-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: calc((100% - 80px) / 5);
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #0092f6;
}

.speaker-card h4 {
    color: #1d3d55;
    margin: 5px 0 3px 0;
    font-size: 16px;
}

.speaker-card .affiliation {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.3;
}

.speaker-card .bio {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 15px;
    color: #3a3a3a;
    line-height: 1.6;
    text-align: center;
    z-index: 1000;
    font-size: 13px;
}

.speaker-card:hover .bio {
    display: block;
}

.speaker-card.bio-active .bio {
    display: block;
}

.speaker-card.last-row .bio {
    top: auto;
    bottom: 100%;
}

.speaker-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.speaker-links a {
    color: #0092f6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
}

.speaker-links a:hover {
    color: #0073c0;
}

/* Schedule/Timeline Styles */
.schedule-day {
    margin-bottom: 40px;
}

.schedule-item {
    background-color: #fff;
    border-left: 4px solid #0092f6;
    padding: 20px 25px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.schedule-time {
    color: #0092f6;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.schedule-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d3d55;
    margin-bottom: 5px;
}

.schedule-speaker {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
}

.schedule-description {
    color: #3a3a3a;
    line-height: 1.6;
    margin-top: 10px;
}

/* Committee Cards */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    margin: 30px 0;
}

.committee-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.committee-card h4 {
    color: #1d3d55;
    margin: 10px 0 5px 0;
}

.committee-card .role {
    color: #0092f6;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

.committee-card .affiliation {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.committee-card .email {
    margin-top: 10px;
}

.committee-card .email a {
    color: #f97c00;
    font-size: 13px;
    text-decoration: none;
}

.committee-card .email a:hover {
    text-decoration: underline;
}

.bx-menu {
    font-size: 30px;
}

.box-icon {
    display: none;
}

@media only screen and (max-width: 1024px) {

    /* ── Header & Navigation ── */
    header {
        position: relative;
        overflow: visible;
    }

    nav {
        position: static;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .box-icon {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 10;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        width: 200px;
        background-color: #fcfcfc;
        padding: 10px 6px;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
        flex-direction: column;
    }

    nav ul.showmenu {
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        padding: 6px 0;
    }

    nav ul li a {
        color: #222;
    }

    .logo-text {
        display: none;
    }

    /* ── Typography ── */
    main h1 {
        font-size: 28px;
    }

    main h2 {
        font-size: 18px;
    }

    /* ── Cover section — prevent top/bottom cutoff ── */
    .cover {
        height: auto;
        min-height: calc(100vh - 90px);
        padding: 20px;
        align-items: flex-start;
    }

    .cover-content {
        max-width: 100%;
    }

    .cover .sponsors div {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cover .sponsors img {
        max-height: 60px;
    }

    /* ── Content sections ── */
    .content {
        flex-direction: column;
        height: auto;
    }

    .content-left {
        width: 90%;
        margin: 10px 0;
    }

    .content-right {
        width: 90%;
        margin: 10px 0;
    }

    .content-box-small {
        width: 100%;
    }

    /* ── Topics & Grids ── */
    .topics-list {
        grid-template-columns: 1fr;
    }

    .sponsors div {
        width: 90%;
        justify-content: center;
    }

    .speakers-grid {
        gap: 15px;
    }

    .speaker-card {
        width: calc((100% - 30px) / 3);
    }

    /* ── Text pages — use more horizontal space ── */
    .text-page {
        width: 95%;
    }

    /* ── Prevent long URLs / emails from overflowing ── */
    .committee-card .email a,
    .text-page a {
        overflow-wrap: break-word;
        word-break: break-all;
    }

}

@media only screen and (max-width: 600px) {

    .speaker-card {
        width: calc((100% - 15px) / 2);
    }

    .speaker-photo {
        width: 90px;
        height: 90px;
    }

}
