/* Grundlayout */
html {
    box-sizing: border-box;
    background: #f8f8f8;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Inter', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #222;
    background: #f8f8f8;
}

/* Header */
header {
    text-align: center;
    padding: 0.8rem 0 0.5rem 0;
    background: none;
    border-bottom: none;
    box-shadow: none;
}

header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

header h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 400;
}

header a {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}
header a:hover {
    color: #d32f2f;
}

/* Main Content */
main {
    width: 100%;
    max-width: 100vw;
    margin: 0.7rem auto;
    padding: 0.7rem 0.2rem;
    text-align: left;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    font-size: 1.05rem;
}

/* Links */
a {
    color: #d32f2f;
    text-decoration: underline;
    font-weight: 600;
    word-break: break-word;
    font-size: 1.1rem;
    border-radius: 4px;
    padding: 0.1rem 0.2rem;
}

/* GitHub Repository Link Below Main */
.github-link {
    text-align: center;
    margin: 1.2rem auto 1rem auto;
    display: block;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 100vw;
    padding: 0.7rem 0.2rem;
    font-size: 1rem;
}

.github-link a {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: underline;
    background: none;
    border-radius: 6px;
    padding: 0.3rem 0.2rem;
}

/* Project Image */
.project-image {
    display: block;
    margin: 1.2rem auto 0.5rem auto;
    max-width: 98vw;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

/* Image Caption */
.image-caption {
    text-align: center;
    font-size: 1rem;
    color: #444;
    margin: 0.5rem auto 0.2rem auto;
    padding: 0.3rem 0.2rem;
    max-width: 95vw;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    box-shadow: none;
    font-weight: bold;
}

/* Image Row */
.image-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 2rem 0 1rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.image-row .project-image {
  height: auto;
  width: auto;
  max-height: 275px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  display: block;
}

@media (min-width: 600px) {
    header {
        padding: 2rem 0 1.2rem 0;
    }
    header h1 {
        font-size: 2rem;
    }
    header h2 {
        font-size: 1.15rem;
    }
    main {
        max-width: 700px;
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
        border-radius: 18px;
    }
    .github-link {
        max-width: 420px;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
    }
    .project-image {
        max-width: 420px;
        border-radius: 18px;
        margin: 2rem auto 0.7rem auto;
    }
    .image-caption {
        font-size: 1.08rem;
        max-width: 350px;
        padding: 0.4rem 0.8rem;
        margin: 0.7rem auto 0.2rem auto;
    }
    .image-row .project-image {
    max-height: 320px;
    border-radius: 18px;
  }
    footer {
        font-size: 1rem;
        padding: 1.2rem 0;
    }
}

@media (min-width: 900px) {
    main {
        max-width: 800px;
        font-size: 1.15rem;
        padding: 1.5rem 2rem;
    }
}

/* Footer */
footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2rem;
  background: #fff;
  border-top: 1px solid #eee;
}