* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    --bg: #030707;
    --panel: #071011;
    --panel-light: #0b1516;
    --border: rgba(150, 190, 190, 0.18);
    --text: #edf7f6;
    --muted: #91a7a8;
    --accent: #00d9c0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 4px
        ),
        #030707;

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    padding: 32px;
}


/* =========================================================
   HAUPTCONTAINER
   ========================================================= */

.page {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    border:
        1px solid var(--border);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(0, 217, 192, 0.08),
            transparent 35%
        ),
        rgba(3, 10, 10, 0.94);

    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.card-header {
    min-height: 250px;

    display: grid;

    grid-template-columns:
        120px
        1fr
        auto;

    align-items: center;

    gap: 28px;

    padding: 42px;

    border-bottom:
        1px solid var(--border);
}


/* =========================================================
   PROFILBILD
   ========================================================= */

.profile-image {
    width: 120px;
    height: 120px;

    border:
        1px solid rgba(0, 217, 192, 0.5);

    border-radius: 20px;

    overflow: hidden;

    background: #091414;
}


.profile-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   IDENTITÄT
   ========================================================= */

.eyebrow,
.section-title {
    color: var(--accent);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.28em;
}


.identity h1 {
    margin-top: 12px;

    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 0.95;

    letter-spacing: -0.05em;
}


.identity p {
    margin-top: 15px;

    color: var(--muted);

    font-size: 18px;
}


/* =========================================================
   QR BUTTON
   ========================================================= */

.qr-button {
    width: 70px;
    height: 70px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background: transparent;

    color: var(--text);

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s;
}


.qr-button:hover {
    border-color: var(--accent);

    color: var(--accent);

    transform: translateY(-2px);
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 14px;

    padding:
        28px 38px;
}


.info-box {
    min-height: 82px;

    padding:
        18px 20px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background:
        rgba(10, 20, 21, 0.85);
}


.info-box span {
    display: block;

    margin-bottom: 8px;

    color: #708485;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.info-box strong {
    display: block;

    font-size: 16px;

    word-break: break-word;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.actions {
    display: grid;

    grid-template-columns:
        1fr
        160px;

    gap: 14px;

    padding:
        0 38px 28px;
}


.actions button {
    min-height: 58px;

    border-radius: 15px;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s;
}


.primary-button {
    border:
        1px solid var(--accent);

    background:
        var(--accent);

    color: #001513;
}


.primary-button:hover {
    transform:
        translateY(-2px);
}


.secondary-button {
    border:
        1px solid var(--border);

    background: transparent;

    color: var(--text);
}


.secondary-button:hover {
    border-color:
        var(--accent);

    color:
        var(--accent);
}


/* =========================================================
   QUALIFIKATIONEN / SOCIAL MEDIA
   ========================================================= */

.lower-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 14px;

    padding:
        0 38px 28px;
}


.panel {
    min-height: 250px;

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        rgba(4, 12, 12, 0.8);
}


.qualification {
    margin-top: 12px;

    padding: 16px;

    border-radius: 13px;

    background:
        var(--panel-light);

    font-weight: 700;
}


.socials {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 18px;
}


.socials a {
    padding:
        13px 17px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    color: var(--text);

    text-decoration: none;

    font-weight: 700;

    transition: 0.25s;
}


.socials a:hover {
    border-color:
        var(--accent);

    color:
        var(--accent);

    transform:
        translateY(-2px);
}


/* =========================================================
   QR SHARE BOX
   ========================================================= */

.share-box {
    margin:
        0 38px 28px;

    padding: 30px;

    min-height: 180px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 30px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        rgba(4, 12, 12, 0.8);
}


.share-box h2 {
    margin-top: 20px;

    font-size: 28px;
}


.share-box p {
    margin-top: 8px;

    color: var(--muted);
}


/* =========================================================
   QR CODE UNTEN
   ========================================================= */

#qrcode {
    width: 140px;
    height: 140px;

    flex: 0 0 140px;

    padding: 10px;

    border-radius: 16px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


#qrcode img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px;

    border-top:
        1px solid var(--border);

    text-align: center;

    color: #667878;

    font-size: 14px;

    letter-spacing: 0.08em;
}


footer strong {
    color: var(--text);
}


/* =========================================================
   QR MODAL
   ========================================================= */

.modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.8);

    backdrop-filter:
        blur(12px);

    z-index: 100;
}


.modal.active {
    display: flex;
}


.modal-content {
    position: relative;

    width:
        min(400px, 100%);

    padding: 35px;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background:
        #071011;

    text-align: center;
}


.modal-content h2 {
    margin-bottom: 25px;
}


.modal-content p {
    margin-top: 20px;

    color: var(--muted);

    line-height: 1.5;
}


/* =========================================================
   GROSSER QR CODE
   ========================================================= */

#qrLarge {
    width: 240px;
    height: 240px;

    max-width: 100%;

    margin: 0 auto;

    padding: 12px;

    background: #ffffff;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


#qrLarge img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border:
        1px solid var(--border);

    border-radius: 50%;

    background: transparent;

    color: var(--text);

    font-size: 24px;

    cursor: pointer;
}


.close:hover {
    border-color:
        var(--accent);

    color:
        var(--accent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    body {
        padding: 10px;
    }


    .page {
        border-radius: 20px;
    }


    .card-header {
        grid-template-columns:
            80px
            1fr
            auto;

        gap: 16px;

        padding: 25px;
    }


    .profile-image {
        width: 80px;
        height: 80px;

        border-radius: 15px;
    }


    .identity h1 {
        font-size: 34px;
    }


    .identity p {
        font-size: 14px;
    }


    .eyebrow,
    .section-title {
        font-size: 10px;
    }


    .qr-button {
        width: 52px;
        height: 52px;
    }


    .contact,
    .lower-grid {
        grid-template-columns: 1fr;

        padding-left: 18px;
        padding-right: 18px;
    }


    .actions {
        grid-template-columns: 1fr;

        padding-left: 18px;
        padding-right: 18px;
    }


    .share-box {
        margin-left: 18px;
        margin-right: 18px;

        flex-direction: column;

        align-items: flex-start;
    }


    #qrcode {
        align-self: center;
    }
}


/* =========================================================
   IPHONE
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 7px;
    }


    .page {
        border-radius: 18px;
    }


    .card-header {
        grid-template-columns:
            65px
            1fr;

        padding: 20px;

        gap: 14px;
    }


    .profile-image {
        width: 65px;
        height: 65px;
    }


    .identity {
        padding-right: 45px;
    }


    .identity h1 {
        font-size: 28px;
    }


    .identity p {
        font-size: 13px;

        line-height: 1.4;
    }


    .eyebrow,
    .section-title {
        font-size: 9px;

        letter-spacing: 0.22em;
    }


    .qr-button {
        position: absolute;

        top: 25px;
        right: 20px;

        width: 48px;
        height: 48px;
    }


    .contact {
        padding:
            18px 14px;
    }


    .info-box {
        min-height: 76px;

        padding:
            16px;
    }


    .info-box strong {
        font-size: 14px;
    }


    .actions {
        padding:
            0 14px 18px;
    }


    .lower-grid {
        padding:
            0 14px 18px;
    }


    .panel {
        min-height: auto;

        padding: 22px;
    }


    .share-box {
        margin:
            0 14px 18px;

        padding: 22px;

        text-align: left;
    }


    .share-box h2 {
        font-size: 24px;
    }


    .share-box p {
        font-size: 14px;
    }


    #qrcode {
        width: 150px;
        height: 150px;

        flex-basis: 150px;

        align-self: center;
    }


    footer {
        padding: 24px 15px;

        font-size: 12px;
    }


    .modal-content {
        padding:
            30px 20px;
    }


    #qrLarge {
        width: min(240px, 75vw);
        height: min(240px, 75vw);
    }
}
