/* Viperman2k GitHub Pages – gemeinsame Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #e0e4e8;
    background-image: radial-gradient(#bac5d0 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page--narrow {
    max-width: 800px;
}

.page--showcase {
    max-width: 1180px;
}

.project-card--intro {
    max-width: 720px;
    margin: 0 auto;
}

.header {
    background: #0056b3;
    color: white;
    padding: 28px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    margin: 0 0 8px;
    font-size: 1.85em;
    line-height: 1.15;
}

.header h1 .header-owner {
    display: block;
    margin-top: 0.15em;
    font-size: 0.62em;
    font-weight: 500;
}

.header p {
    margin: 0;
    opacity: 0.95;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.link-box {
    display: block;
    background: white;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    border: 1px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.link-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.links-stack {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.project-card h2 {
    margin: 0;
    color: #0056b3;
    font-size: 1.35em;
}

.project-card p {
    margin: 0;
    flex: 1;
    font-size: 0.95em;
}

.project-card__meta {
    font-size: 0.85em;
    color: #666;
}

.project-card__actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.project-card__actions > .btn--primary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.project-card__actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.project-card__actions-row .btn {
    text-align: center;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid #0056b3;
}

.btn--primary {
    background: #0056b3;
    color: white;
}

.btn--secondary {
    background: white;
    color: #0056b3;
}

.project-card--placeholder {
    opacity: 0.85;
    border-style: dashed;
}

.project-card--placeholder h2 {
    color: #666;
}

footer.site-footer {
    margin-top: 48px;
    font-size: 0.8em;
    color: #555;
    text-align: center;
}

/* App screenshots (MediPartner landing) – horizontal, große Karten */
.screenshots-section {
    margin-top: 40px;
}

.screenshots-section h2 {
    text-align: center;
    color: #0056b3;
    font-size: 1.25em;
    margin-bottom: 8px;
}

.screenshots-section .lead {
    text-align: center;
    color: #555;
    font-size: 0.95em;
    margin: 0 auto 20px;
    max-width: 560px;
}

.screenshot-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid #bbb;
    border-radius: 50%;
    background: white;
    color: #0056b3;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0 0 4px;
}

.carousel-nav:hover {
    background: #e8f4fc;
    border-color: #0056b3;
}

.carousel-nav:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.screenshot-carousel {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 12px;
    padding: 12px 8px 28px;
    margin: 0 -8px;
    -webkit-overflow-scrolling: touch;
}

.screenshot-carousel:focus {
    outline: 2px solid #0056b3;
    outline-offset: 4px;
    border-radius: 8px;
}

.screenshot-carousel figure {
    flex: 0 0 auto;
    width: min(300px, 72vw);
    margin: 0;
    scroll-snap-align: start;
    background: white;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.screenshot-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
}

.screenshot-thumb:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.screenshot-carousel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(560px, 68vh);
    object-fit: contain;
    object-position: center center;
}

.screenshot-carousel figcaption {
    margin-top: 12px;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

@media (min-width: 900px) {
    .screenshot-carousel figure {
        width: 320px;
    }

    .screenshot-carousel img {
        max-height: min(600px, 72vh);
    }
}

@media (max-width: 520px) {
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Lightbox */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.88);
    align-items: center;
    justify-content: center;
    padding: 48px 56px 24px;
    box-sizing: border-box;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__content {
    max-width: min(520px, 92vw);
    max-height: 90vh;
    text-align: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(90vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
    margin: 14px 0 0;
    color: #f1f5f9;
    font-size: 0.95em;
    font-weight: 600;
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding-bottom: 4px;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox__prev {
    left: 12px;
}

.lightbox__next {
    right: 12px;
}

/* Legal pages */
.legal h1 {
    color: #0056b3;
}

.legal h2 {
    color: #0056b3;
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal h3 {
    margin-top: 18px;
    font-size: 1.05em;
}

.legal .note {
    background: #fff8e6;
    border-left: 4px solid #e0a800;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95em;
}

.legal a {
    color: #0056b3;
}

.legal footer {
    margin-top: 50px;
    font-size: 0.8em;
    color: #777;
    text-align: center;
}
