/* ============================================================
   xPortfolio – portfolio.css
   ============================================================ */

.xp-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   Header
   ============================================================ */

.xp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 0;
    margin-bottom: 36px;
}

.xp-brand-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    white-space: nowrap;
}

.xp-brand-title .xp-accent {
    color: var(--accent);
}

.xp-brand-tagline {
    font-size: 0.65rem;
    color: var(--text-subtle);
    font-family: var(--font-mono);
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* ============================================================
   Panel — wie .xg-search-card: rgba(12,9,22,0.84), kein blur
   ============================================================ */

.xp-panel {
    background: rgba(12, 9, 22, 0.84);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   HERO — max-width 1400px wie xg-main
   ============================================================ */

.xp-hero { width: 100%; }

.xp-hero-row {
    display: flex;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px;
    gap: 24px;
}

.xp-photo {
    width: 280px;
    height: 320px;
    flex-shrink: 0;
    overflow: hidden;
}

.xp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xp-photo-left { border-radius: 0 999px 999px 0; }
.xp-photo-left img { object-position: center 10%; }
.xp-photo-right { border-radius: 999px 0 0 999px; }
.xp-photo-right img { object-position: center 20%; }

.xp-hero-text {
    flex: 1;
    display: flex;
}

.xp-text-right { justify-content: flex-end; }
.xp-text-left  { justify-content: flex-start; }

.xp-hero-text .xp-panel {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.xp-text-right .xp-panel { align-items: flex-end; text-align: right; }
.xp-text-left  .xp-panel { align-items: flex-start; text-align: left; }

/* ============================================================
   Hero Typography
   Punkt: "Über mich" / "Mein Hund" Tags gleich groß wie Section-Labels
   ============================================================ */

.xp-tag {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.xp-divider {
    width: 36px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.xp-name {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.xp-accent { color: var(--accent); }

.xp-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.xp-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.xp-facts { display: flex; gap: 7px; flex-wrap: wrap; }
.xp-text-right .xp-facts { justify-content: flex-end; }
.xp-text-left  .xp-facts { justify-content: flex-start; }

.xp-fact {
    font-size: 0.72rem;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 0.5px solid rgba(232, 99, 122, 0.25);
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================
   Sections — max-width 1400px
   ============================================================ */

.xp-section { padding: 48px 0; }
.xp-section-last { padding-bottom: 72px; }

.xp-section-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.xp-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 8px;
}

.xp-section-label::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* ============================================================
   Über mich
   Punkt: linkes Panel gleiche Höhe wie rechte Stats-Spalte
   ============================================================ */

.xp-about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Panel streckt sich auf volle Grid-Zellen-Höhe */
.xp-about-grid .xp-panel {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xp-about-grid .xp-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.xp-about-grid .xp-panel p + p { margin-top: 14px; }

.xp-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Stats wie xp-skill-cat */
.xp-stat {
    background: rgba(12, 9, 22, 0.84);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.xp-stat-num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-mono);
}

.xp-stat-lbl {
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 5px;
}

/* ============================================================
   Skills — 3+3 Karten für mehr Höhe
   ============================================================ */

.xp-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.xp-skill-cat {
    background: rgba(12, 9, 22, 0.84);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
}

.xp-skill-cat-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.xp-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xp-skill-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 0.5px solid rgba(232, 99, 122, 0.2);
    color: var(--text-muted);
    transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
    cursor: default;
}

.xp-skill-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 99, 122, 0.6);
    color: var(--text-primary);
    background: rgba(232, 99, 122, 0.15);
}

/* ============================================================
   Bilder — größere Kacheln (~3 pro Reihe), Lightbox
   ============================================================ */

.xp-strip-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    padding-bottom: 8px;
    cursor: grab;
}

.xp-strip-wrapper:active { cursor: grabbing; }

.xp-strip-wrapper::-webkit-scrollbar { height: 4px; }
.xp-strip-wrapper::-webkit-scrollbar-track { background: transparent; }
.xp-strip-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}

.xp-strip-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* ~3 Bilder sichtbar bei 1400px → ca. 420px pro Bild */
.xp-strip-img {
    width: 420px;
    height: 260px;
    flex-shrink: 0;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.xp-strip-wrapper.dragging .xp-strip-img {
    cursor: grabbing;
    pointer-events: none;
}

.xp-strip-img:hover {
    border-color: rgba(232, 99, 122, 0.55);
    transform: translateY(-3px);
}

/* Lightbox — 1:1 aus gallery.css, ohne Body-Abschnitt */
.xp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.xp-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.xp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.xp-lightbox-panel {
    position: relative;
    z-index: 1;
    background: var(--surface-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s ease;
}

.xp-lightbox.open .xp-lightbox-panel {
    transform: scale(1) translateY(0);
}

.xp-lightbox-img-wrap {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
    overflow: hidden;
}

.xp-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.xp-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.xp-lightbox-close:hover {
    background: var(--accent-soft);
    color: #fff;
}

/* ============================================================
   FAQ → Fragen & Antworten
   Punkt: offenes Item bekommt pinke Schrift
   ============================================================ */

.xp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xp-faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(12, 9, 22, 0.84);
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
}

.xp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-muted);
    text-align: left;
    transition: color var(--transition);
}

.xp-faq-q:hover { color: var(--text-primary); }

/* Punkt: offenes Item → pinke Schrift */
.xp-faq-item.open .xp-faq-q { color: var(--accent); }

.xp-faq-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-subtle);
    transition: transform var(--transition), color var(--transition);
}

.xp-faq-item.open .xp-faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.xp-faq-a {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.xp-faq-item.open .xp-faq-a { display: block; }

/* ============================================================
   Kontakt
   ============================================================ */

.xp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.xp-contact-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xp-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(12, 9, 22, 0.84);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.xp-contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 0.5px solid rgba(232, 99, 122, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.xp-contact-icon svg { width: 16px; height: 16px; }

.xp-contact-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.xp-contact-value {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: var(--font-mono);
}

.xp-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.xp-contact-link:hover {
    color: var(--accent);
}

.xp-socials-block {
    background: rgba(12, 9, 22, 0.84);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.xp-socials-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.xp-socials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    flex: 1;
}

.xp-soc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.xp-soc-btn:hover {
    border-color: rgba(232, 99, 122, 0.4);
    background: var(--accent-soft);
}

.xp-soc-btn svg {
    width: 15px;
    height: 15px;
    fill: var(--text-subtle);
    transition: fill var(--transition);
}

.xp-soc-btn:hover svg { fill: var(--accent); }

.xp-soc-btn span {
    font-size: 0.58rem;
    color: var(--text-subtle);
    transition: color var(--transition);
    letter-spacing: 0.02em;
    text-align: center;
}

.xp-soc-btn:hover span { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .xp-skills-grid { grid-template-columns: repeat(2, 1fr); }
    .xp-strip-img { width: 300px; height: 200px; }
}

@media (max-width: 900px) {
    .xp-header { padding: 24px 18px 0; margin-bottom: 24px; }

    .xp-hero-row {
        flex-direction: column;
        padding: 28px 20px;
        gap: 20px;
    }

    .xp-photo { width: 100%; height: 220px; order: 0; }
    .xp-photo-left, .xp-photo-right { border-radius: 0; }

    .xp-hero-text { justify-content: flex-start !important; order: 1; }

    /* Gismo-Row: Text ist im DOM zuerst, Foto rechts — auf Mobile Foto nach oben */
    .xp-hero-row:nth-child(2) .xp-photo { order: 0; }
    .xp-hero-row:nth-child(2) .xp-hero-text { order: 1; }

    .xp-hero-text .xp-panel {
        max-width: 100%;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .xp-text-right .xp-facts,
    .xp-text-left  .xp-facts { justify-content: flex-start; }

    .xp-section { padding: 36px 0; }
    .xp-section-inner { padding: 0 18px; }

    .xp-about-grid { grid-template-columns: 1fr; }
    .xp-skills-grid { grid-template-columns: 1fr; }
    .xp-contact-grid { grid-template-columns: 1fr; align-items: start; }

    .xp-strip-img { width: 260px; height: 170px; }
}

@media (max-width: 480px) {
    .xp-name { font-size: 1.5rem; }
    .xp-socials-grid { grid-template-columns: repeat(4, 1fr); }
    .xp-strip-img { width: 200px; height: 130px; }
}
