/* =========================================================
   PAIRVIEW – SEITENRAHMEN UND AUFTEILUNG
   ========================================================= */

.pairview-page {
    width: 100%;
    margin: 20px auto;
}

#pairview_lists {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#pairview_lists .pairview_lists-body {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}


/* =========================================================
   FEHLERMELDUNG
   ========================================================= */

.pairview_lists-error {
    width: 100%;
    padding: 12px 20px;

    color: #e2c7a5;
    background: #351b13;

    border-bottom: 1px solid #75402f;
    border-left: 4px solid #a95a43;

    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 165%;
}

.pairview_lists-error:empty {
    display: none;
}


/* =========================================================
   HINZUFÜGEN-BEREICH
   ========================================================= */

.pairview_lists-add {
    width: 100%;

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(197, 139, 69, 0.012) 10px,
            rgba(197, 139, 69, 0.012) 11px
        ),
        #1a0f09;
}

.pairview_lists-add:empty {
    display: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 750px) {

    #pairview_lists {
        display: block;
    }

    #pairview_lists > .pairview_lists-body {
        width: 100%;
    }

}


/* =========================================================
   PAIRVIEW – GRUNDLAYOUT
   ========================================================= */

#pairview_lists {
    --pair-bg: #160d08;
    --pair-panel: #1c100a;
    --pair-panel-soft: #24140c;
    --pair-panel-light: #302014;
    --pair-border: #50321d;
    --pair-border-soft: #3f2818;
    --pair-accent: #98602d;
    --pair-accent-light: #c58b45;
    --pair-gold: #d6a363;
    --pair-gold-light: #ead0a1;
    --pair-text: #d9c4a5;
    --pair-muted: #9d856b;

    width: 100%;
    margin: 20px auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;

    color: var(--pair-text);
}

#pairview_lists,
#pairview_lists *,
#pairview_lists *::before,
#pairview_lists *::after {
    box-sizing: border-box;
}


/* =========================================================
   LISTENBEREICH
   ========================================================= */

#pairview_lists .pairview_lists-body {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    color: var(--pair-text);
    background: var(--pair-bg);

    border-top: 1px solid var(--pair-border);
    border-right: 1px solid var(--pair-border-soft);
    border-bottom: 1px solid var(--pair-border);
    border-left: 4px solid #8c572a;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30),
        inset 0 0 35px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HAUPTÜBERSCHRIFT
   ========================================================= */

#pairview_lists
.pairview_lists-body
.pairview_lists-headline {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    color: var(--pair-gold);

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.96),
            rgba(36, 20, 12, 0.96)
        );

    border-bottom: 1px solid #68401f;

    font-family: Saltwater, Cinzel, Georgia, serif;
    font-size: 27px;
    font-weight: 100;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-align: left;
}

#pairview_lists
.pairview_lists-body
.pairview_lists-headline::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(197, 139, 69, 0.55),
            transparent
        );
}


/* =========================================================
   BESCHREIBUNG UND LISTE
   ========================================================= */

#pairview_lists
.pairview_lists-body
.pairview_lists-description,
#pairview_lists
.pairview_lists-body
.pairview_lists-list {
    width: 100%;
    padding: 20px 24px;

    color: var(--pair-text);

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(197, 139, 69, 0.012) 10px,
            rgba(197, 139, 69, 0.012) 11px
        ),
        #1a0f09;

    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 180%;
    text-align: justify;
}

#pairview_lists
.pairview_lists-body
.pairview_lists-description {
    border-bottom: 1px solid var(--pair-border);
}

#pairview_lists
.pairview_lists-body
.pairview_lists-description a:link,
#pairview_lists
.pairview_lists-body
.pairview_lists-description a:visited,
#pairview_lists
.pairview_lists-body
.pairview_lists-description a:active,
#pairview_lists
.pairview_lists-body
.pairview_lists-list a:link,
#pairview_lists
.pairview_lists-body
.pairview_lists-list a:visited,
#pairview_lists
.pairview_lists-body
.pairview_lists-list a:active {
    color: #d1a064;
}

#pairview_lists
.pairview_lists-body
.pairview_lists-description a:hover,
#pairview_lists
.pairview_lists-body
.pairview_lists-list a:hover {
    color: #f0d3a7;
}


/* =========================================================
   KATEGORIEN-GRID
   ========================================================= */

#pairview_lists
.pairview_lists-body
.pairview_lists-content {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}


/* =========================================================
   EINZELNE KATEGORIE
   ========================================================= */

.pairview {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    color: var(--pair-text, #d9c4a5);
    background: rgba(28, 16, 10, 0.84);

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 1px solid #50321d;
    border-left: 3px solid #98602d;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   KATEGORIEÜBERSCHRIFT
   ========================================================= */

.pairview_cathead {
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #d6a363;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.90),
            rgba(36, 20, 12, 0.86)
        );

    border: 0;
    border-bottom: 1px solid #68401f;

    font-family: Saltwater, Cinzel, Georgia, serif;
    font-size: 22px;
    font-weight: 100;
    line-height: 1.25;
    letter-spacing: 1px;
    text-align: center;
}


/* =========================================================
   PAIRING-KARTE
   ========================================================= */

.pairview_pairbit {
    position: relative;
    width: calc(100% - 20px);
    min-height: 126px;
    margin: 10px;
    padding: 12px;

    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    gap: 13px;
    align-items: center;

    color: #d9c4a5;

    background:
        linear-gradient(
            110deg,
            rgba(197, 139, 69, 0.035),
            transparent 52%
        ),
        rgba(36, 20, 12, 0.78);

    border-top: 1px solid rgba(197, 139, 69, 0.20);
    border-right: 1px solid rgba(197, 139, 69, 0.12);
    border-bottom: 1px solid rgba(197, 139, 69, 0.20);
    border-left: 3px solid #875326;
}

.pairview_pairbit::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;

    width: 15px;
    height: 15px;

    pointer-events: none;

    border-top: 1px solid rgba(197, 139, 69, 0.20);
    border-right: 1px solid rgba(197, 139, 69, 0.20);
}


/* =========================================================
   PARTNERBEREICHE
   ========================================================= */

.pairpartner {
    min-width: 0;
    background: transparent;
}


/* =========================================================
   PARTNERBILDER
   ========================================================= */

.pairpic {
    display: block;
    width: 100px;
    height: 100px;

    object-fit: cover;
    object-position: center;

    background: #160d08;

    border: 1px solid #79502b;
    border-radius: 0;

    outline: 3px solid rgba(22, 13, 8, 0.85);
    outline-offset: -4px;

    filter:
        sepia(0.08)
        brightness(0.90)
        contrast(1.04);
}


/* =========================================================
   MITTLERER INFORMATIONSBEREICH
   ========================================================= */

.pairbit_infos {
    position: relative;
    min-width: 0;
    min-height: 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 8px;

    text-align: center;
}

.pairbit_infos::before {
    content: "&";
    position: absolute;
    inset: 0;
    z-index: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: rgba(197, 139, 69, 0.10);

    font-family: Georgia, serif;
    font-size: 82px;
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;

    pointer-events: none;
}


/* =========================================================
   NAMEN
   ========================================================= */

.pairbit_name {
    position: relative;
    z-index: 2;

    width: 100%;
    min-width: 0;

    color: #ead0a1;

    font-family: Antonio, Cinzel, Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.pairbit_name a:link,
.pairbit_name a:visited,
.pairbit_name a:active {
    color: #ead0a1;
    text-decoration: none;
}

.pairbit_name a:hover {
    color: #ffffff;
}


/* =========================================================
   OPTIONEN
   ========================================================= */

.pairbit_options {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pairbit_options a:link,
.pairbit_options a:visited,
.pairbit_options a:active {
    display: inline-block;
    padding: 6px 8px;

    color: #b98e5b;
    background: #2b190e;

    border: 1px solid #5e391e;

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}

.pairbit_options a:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   PAIRING HINZUFÜGEN
   ========================================================= */

.pairviewAdd {
    width: 100%;
    margin: 20px auto 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    color: #d9c4a5;
    background: #1a0f09;

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 0;
    border-left: 4px solid #8c572a;
}

.pairviewAdd_bit {
    width: 100%;
    min-width: 0;

    border-right: 1px solid rgba(197, 139, 69, 0.14);
}

.pairviewAdd_bit:last-child {
    border-right: 0;
}


/* =========================================================
   HINZUFÜGEN – ÜBERSCHRIFT
   ========================================================= */

.pairviewAdd_headline {
    min-height: 40px;
    padding: 10px 12px;

    color: #c99559;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.82),
            rgba(36, 20, 12, 0.78)
        );

    border: 0;
    border-bottom: 1px solid #68401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 145%;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   HINZUFÜGEN – INHALT
   ========================================================= */

.pairviewAdd_trow {
    min-height: 115px;
    height: auto;
    padding: 14px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 9px;

    color: #d9c4a5;
    background: rgba(36, 20, 12, 0.76);

    border: 0;
}

.pairviewAdd_iconsize {
    width: 100%;

    color: #927b62;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 150%;
    text-align: center;
}

.pairviewAdd_own {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;

    color: #dbc4a6;
    background: #160d08;

    border: 1px solid #57361f;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;

    outline: 0;
}

.pairviewAdd_own:focus {
    border-color: #9e6935;
    box-shadow: 0 0 0 1px rgba(197, 139, 69, 0.18);
}


/* =========================================================
   HINZUFÜGEN – BUTTON
   ========================================================= */

.pairviewAdd_button {
    width: 100%;
    margin: 0;
    padding: 12px;

    text-align: right;

    background: #1a0f09;

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 1px solid #50321d;
    border-left: 4px solid #8c572a;
}

.pairviewAdd_button input,
.pairviewAdd_button button,
.pairviewAdd_button .button {
    min-height: 36px;
    padding: 8px 14px;

    color: #d8af78;
    background: #2f1c10;

    border: 1px solid #70451f;
    border-radius: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    cursor: pointer;
}

.pairviewAdd_button input:hover,
.pairviewAdd_button button:hover,
.pairviewAdd_button .button:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   PAIRING BEARBEITEN
   ========================================================= */

.pairviewEdit {
    width: 100%;
    margin: 20px auto 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    color: #d9c4a5;
    background: #1a0f09;

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 0;
    border-left: 4px solid #8c572a;
}

.pairviewEdit_bit {
    width: 100%;
    min-width: 0;

    border-right: 1px solid rgba(197, 139, 69, 0.14);
}

.pairviewEdit_bit:last-child {
    border-right: 0;
}


/* =========================================================
   BEARBEITEN – ÜBERSCHRIFT
   ========================================================= */

.pairviewEdit_headline {
    min-height: 40px;
    padding: 10px 12px;

    color: #c99559;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.82),
            rgba(36, 20, 12, 0.78)
        );

    border: 0;
    border-bottom: 1px solid #68401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 145%;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   BEARBEITEN – INHALT
   ========================================================= */

.pairviewEdit_trow {
    min-height: 165px;
    height: auto;
    padding: 14px;

    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 14px;
    align-items: center;

    color: #d9c4a5;
    background: rgba(36, 20, 12, 0.76);

    border: 0;
}

.pairviewEdit_avatar {
    width: 105px;
    text-align: center;
}

.pairviewEdit_avatar img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto;

    object-fit: cover;
    object-position: center;

    border: 1px solid #79502b;
    border-radius: 0;

    outline: 3px solid rgba(22, 13, 8, 0.85);
    outline-offset: -4px;
}

.pairviewEdit_infos {
    width: 100%;
    min-width: 0;

    text-align: left;
}

.pairviewEdit_infos input[type="file"],
.pairviewEdit_infos input.textbox,
.pairviewEdit_infos input[type="text"],
.pairviewEdit_infos select {
    width: 100%;
    max-width: 100%;
    min-height: 37px;
    margin: 0 0 8px;
    padding: 8px 10px;

    color: #dbc4a6;
    background: #160d08;

    border: 1px solid #57361f;
    border-radius: 0;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;

    outline: none;
}

.pairviewEdit_infos input[type="file"] {
    padding: 6px;
}

.pairviewEdit_infos input:focus,
.pairviewEdit_infos select:focus {
    border-color: #9e6935;
}

.pairviewEdit_iconsize {
    width: 100%;

    color: #927b62;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 150%;
    text-align: center;
}

.pairviewEdit_name {
    width: 100%;
    margin: 0 0 10px;
    padding: 0;

    color: #ead0a1;
    background: transparent;

    border: 0;

    font-family: Antonio, Cinzel, Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;

    outline: 0;
}


/* =========================================================
   BEARBEITEN – BUTTON
   ========================================================= */

.pairviewEdit_button {
    width: 100%;
    margin: 0;
    padding: 12px;

    text-align: right;

    background: #1a0f09;

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 1px solid #50321d;
    border-left: 4px solid #8c572a;
}

.pairviewEdit_button input,
.pairviewEdit_button button,
.pairviewEdit_button .button {
    min-height: 36px;
    padding: 8px 14px;

    color: #d8af78;
    background: #2f1c10;

    border: 1px solid #70451f;
    border-radius: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    cursor: pointer;
}

.pairviewEdit_button input:hover,
.pairviewEdit_button button:hover,
.pairviewEdit_button .button:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   ALLGEMEINE FORMULARFELDER
   ========================================================= */

.pairviewAdd input.textbox,
.pairviewAdd input[type="text"],
.pairviewAdd input[type="file"],
.pairviewAdd select,
.pairviewEdit input.textbox,
.pairviewEdit input[type="text"],
.pairviewEdit input[type="file"],
.pairviewEdit select {
    box-sizing: border-box;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

#pairview_lists *,
.pairviewAdd *,
.pairviewEdit * {
    scrollbar-width: thin;
    scrollbar-color: #875326 #160d08;
}

#pairview_lists *::-webkit-scrollbar,
.pairviewAdd *::-webkit-scrollbar,
.pairviewEdit *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#pairview_lists *::-webkit-scrollbar-track,
.pairviewAdd *::-webkit-scrollbar-track,
.pairviewEdit *::-webkit-scrollbar-track {
    background: #160d08;
}

#pairview_lists *::-webkit-scrollbar-thumb,
.pairviewAdd *::-webkit-scrollbar-thumb,
.pairviewEdit *::-webkit-scrollbar-thumb {
    background: #875326;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 1000px) {

    #pairview_lists
    .pairview_lists-body
    .pairview_lists-content {
        grid-template-columns: 1fr;
    }

    .pairviewAdd,
    .pairviewEdit {
        grid-template-columns: 1fr;
    }

    .pairviewAdd_bit,
    .pairviewEdit_bit {
        border-right: 0;
        border-bottom: 1px solid rgba(197, 139, 69, 0.14);
    }

    .pairviewAdd_bit:last-child,
    .pairviewEdit_bit:last-child {
        border-bottom: 0;
    }

}

@media screen and (max-width: 650px) {

    #pairview_lists {
        display: block;
    }

    #pairview_lists
    .pairview_lists-body
    .pairview_lists-description,
    #pairview_lists
    .pairview_lists-body
    .pairview_lists-list {
        padding: 16px;
        text-align: left;
    }

    .pairview_pairbit {
        grid-template-columns: 82px minmax(0, 1fr) 82px;
        gap: 9px;
        padding: 10px;
    }

    .pairpic {
        width: 82px;
        height: 82px;
    }

    .pairbit_infos::before {
        font-size: 65px;
    }

    .pairbit_name {
        font-size: 14px;
    }

    .pairviewEdit_trow {
        grid-template-columns: 85px minmax(0, 1fr);
    }

    .pairviewEdit_avatar {
        width: 85px;
    }

    .pairviewEdit_avatar img {
        width: 80px;
        height: 80px;
    }

}

@media screen and (max-width: 450px) {

    #pairview_lists
    .pairview_lists-body
    .pairview_lists-headline {
        padding: 12px 15px;

        font-size: 22px;
    }

    .pairview_cathead {
        font-size: 19px;
    }

    .pairview_pairbit {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pairpartner {
        display: flex;
        justify-content: center;
    }

    .pairbit_infos {
        grid-column: 1 / -1;
        grid-row: 2;

        min-height: 70px;
    }

    .pairbit_infos::before {
        font-size: 55px;
    }

    .pairviewEdit_trow {
        display: block;
    }

    .pairviewEdit_avatar {
        width: 100%;
        margin-bottom: 12px;
    }

    .pairviewEdit_avatar img {
        width: 90px;
        height: 90px;
    }

}