/* Grund-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #424242;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-left {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.nav-right {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 2em;
}

.navbar li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.2s, color 0.2s;
    border-radius: 6px;
    text-align: center;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 2em auto 2em auto;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* === ML-Section === */
.ml-section {
    background: #9E9E9E;
    padding: 18px 12px 28px 18px;
    border-radius: 12px 12px 20px 20px;
    margin-bottom: 18px;
}

.ml-section h2 {
    color: #222;
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 1.3em;
    letter-spacing: 0.02em;
}

.ml-boxes {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ml-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
    border-left: 5px solid #a50000;
    padding: 22px 22px 14px 22px;
    min-width: 220px;
    flex: 1 1 0;
    font-size: 1em;
    color: #222;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    flex-direction: column;
}
.ml-box ul {
    padding-left: 18px;
    margin: 0 0 0 0;
}
.ml-box li {
    margin-bottom: 6px;
}

details ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

details ul li {
    background: #fff;
    border-radius: 14px;
    border: 2px solid #a50000;
    padding: 14px 22px;
    font-size: 1em;
    color: #222;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

details ul li:first-child {
    margin-left: 48px;  /* 2x gap */
}
details ul li:last-child {
    margin-right: 48px; /* 2x gap */
}

/* === t-SNE === */


/* === Sections === */
.section {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 15px;
    border-left: 5px solid #a50000;
    padding-left: 10px;
}

.section1 {
    background: #f4f4f4;
}

.section2 {
    background: #e0e0e0;
}

.section3 {
    background: #cccccc;
}

.section4 {
    background: #bdbdbd;
}

.section5 {
    background: #9e9e9e;
}

.section6 {
    background: #757575;
}

.section2 svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

/* === OWNER GRID === */
.owner-grid {
    display: flex;
    gap: 2em;
    margin-top: 2em;
    justify-content: center;
}

.owner-box {
    flex: 1 1 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 1.5em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 350px;
    border-left: 6px solid #a50000;
}

.owner-box img {
    width: 80%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1em;
    background: #ccc;
}

.owner-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.owner-box ul li {
    font-size: 1.05em;
    margin: 0.5em 0;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* === Accordion Details === */
details summary {
    padding: 15px 20px;
    cursor: pointer;
    background: #f7f7f7;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

details summary:hover {
    background: #ececec;
}

details div {
    padding: 20px;
}

/* === Code Blocks (Prism handles colors) === */
pre {
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}
/* === Ethics Grid === */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin: 2em 0 1em 0;
}

.ethics-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  padding: 1.5em 1em;
  font-size: 1.1em;
  text-align: center;
  border-left: 6px solid #a50000;
  font-weight: 500;
  transition: box-shadow 0.2s;
}

.ethics-item:hover {
  box-shadow: 0 6px 24px rgba(44, 44, 44, 0.13);
  background: #fffbe5;
}


/* === GitHub Link Button === */
.github-btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.github-btn:hover {
    background: #555;
}

/* === Footer === */
footer {
    background: #424242;
    color: #fff;
    padding: 1em 0 1em 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer-names {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.uni-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        height: auto;
        gap: 0.5em;
    }

    .navbar {
        gap: 1em;
    }

    main {
        max-width: 95vw;
        padding: 0 5px;
    }

    .section {
        font-size: 1em;
        padding: 1em;
    }

    .owner-grid {
        flex-direction: column;
        gap: 1.5em;
        align-items: center;
    }

    .owner-box {
        max-width: 90vw;
        border-left: 6px solid #a50000;
    }
}

html {
  scroll-behavior: smooth;
}

