/* ==========================================================
   ZSAA HorseBase Theme
========================================================== */


html,
body{

    background:#f7f5ef;

    font-family:Arial, Helvetica, sans-serif;

    color:#2d2d2d;

}


:root{

    --db-green:#2E6B3F;

    --db-green-light:#EDF6EF;

    --db-border:#D7E6D9;

    --db-bg:#F7FAF8;

    --db-shadow:0 2px 8px rgba(0,0,0,.08);

}

/* Seitenbreite */

.container,
.container-fluid{

    max-width:1600px !important;

}


/* ??berschrift */

h1{

    color:#233b83;

    font-family:Georgia, serif;

    font-size:4rem;

    margin-bottom:35px;

}


/* Buttons */

.btn{

    border-radius:8px;

}


/* Selectboxen */

select{

    border-radius:6px;

}


/* Karten */

.card{

    border-radius:12px;

    border:none;

    box-shadow:0 8px 24px rgba(0,0,0,.08);

}


/* Tabellen */

table{

    background:white;

}


/* Bilder */

img{

    max-width:100%;

    height:auto;

}


/* Kartenansicht */

.pferdekarte{

    background:white;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.25s;

}

.pferdekarte:hover{

    transform:translateY(-5px);

}

/* =====================================================
   Paarungstitel
===================================================== */

.zsaa-titel{

    margin-bottom:25px;

}

.zsaa-paarung{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:40px;

    flex-wrap:wrap;

    margin:0px;
}

.zsaa-pferd{

    flex:1;

    min-width:250px;

    text-align:center;

}

.zsaa-label{

    font-size:12px;

    color:#888;

    text-transform:uppercase;

    letter-spacing:1px;

    margin-bottom:6px;

}

.zsaa-name{

    font-size:24px;

    font-weight:bold;

    color:#2E6B3F;

}

.zsaa-text{

    margin-top:6px;

    color:#666;

}

.zsaa-kreuz{

    font-size:48px;

    color:#C8A14A;

    font-weight:bold;

}


/* ===========================================
   Pedigree
   =========================================== */

.zsaa-pedigree{

    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:20px;

}


/* -------------------------------------------
   Jede Generation
   ------------------------------------------- */

.pedigree-row{

    display:grid;
    grid-template-columns:repeat(8,1fr);
    gap:12px;

}


/* -------------------------------------------
   Generation 1
   ------------------------------------------- */

.pedigree-row-1 .pedigree-name{

    grid-column:span 4;

}


/* -------------------------------------------
   Generation 2
   ------------------------------------------- */

.pedigree-row-2 .pedigree-name{

    grid-column:span 2;

}


/* -------------------------------------------
   Generation 3
   ------------------------------------------- */

.pedigree-row-3 .pedigree-name{

    font-size:9px;
    line-height:1.2;
    padding:6px;

}

.pedigree-row-3 .pedigree-name strong{

    font-size:10px;

}

.pedigree-row-3 .pedigree-name span{

    font-size:8px;

}


.pedigree-row-3 .pedigree-name{

    position:relative;
    transition:all .15s ease;

}

.pedigree-row-3 .pedigree-name:hover{

    transform:scale(1.30);

    z-index:999;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    background:#fff;

}



/* -------------------------------------------
   Pedigree-Karten
   ------------------------------------------- */

.pedigree-name{

    background:#ffffff;

    border:1px solid #d8d8d8;

    border-left:5px solid #C8A14A;

    border-radius:8px;

    padding:10px 12px;

    font-size:13px;

    line-height:1.35;

    transition:0.2s;

    box-sizing:border-box;

}


.pedigree-name:hover{

    box-shadow:0 3px 8px rgba(0,0,0,.10);

    transform:translateY(-2px);

}


/* -------------------------------------------
   Vater / Mutter
   ------------------------------------------- */

.pedigree-horse{

    background:#f8faf8;

    border-left:6px solid #2E6B3F;

}


.pedigree-name strong{

    font-size:15px;

}


.pedigree-name span{

    display:block;

    margin-top:5px;

    color:#666666;

    font-size:12px;

    line-height:1.35;

}


/* =====================================================
   Paarungsplanung - Inzucht
===================================================== */

.zsaa-inzucht{

    display:flex;

    justify-content:center;

    padding:20px;

}

.zsaa-inzucht-wert{

    min-width:340px;

    text-align:center;

    background:#ffffff;

    border:1px solid #d9d9d9;

    border-radius:10px;

    padding:25px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

}

.zsaa-inzucht-titel{

    font-size:20px;

    font-weight:bold;

    color:#2E6B3F;

    margin-bottom:8px;

}

.zsaa-inzucht-hinweis{

    color:#888;

    font-size:13px;

    letter-spacing:1px;

    text-transform:uppercase;

}

.zsaa-inz-prozent{

    margin-top:20px;

    font-size:18px;

    font-weight:bold;

    color:#C8A14A;

}


/* =====================================================
   Paarungsplanung - Zuchtwerte
===================================================== */

.zsaa-zw{

    display:flex;
    flex-direction:column;
    gap:12px;

}

.zsaa-zw-row{

    display:flex;

    align-items:center;

    gap:20px;

    padding:12px 18px;

    background:#fff;

    border:1px solid #ddd;

    border-radius:8px;

}

.zsaa-zw-row:hover{

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.zsaa-zw-name{

    width:220px;

    font-weight:bold;

}

.zsaa-ggw-value{

    width:150px;

    text-align:center;

    font-weight:bold;

    font-size:18px;

    color:#2E6B3F;

    border:1px solid #C8A14A;

    border-radius:20px;

    padding:4px;

}


.zsaa-zw-value{

    width:70px;

    text-align:center;

    font-weight:bold;

    font-size:18px;

    color:#2E6B3F;

    border:1px solid #C8A14A;

    border-radius:20px;

    padding:4px;

}



.zsaa-zw-skala{

    position:relative;

    flex:1;

    height:20px;

}

.zsaa-zw-mitte{

    position:absolute;

    left:50%;

    top:0;

    bottom:0;

    width:2px;

    background:#999;

}

.zsaa-zw-bar-links{

    position:absolute;

    right:50%;

    height:14px;

    top:3px;

    border-radius:7px;

}

.zsaa-zw-bar-rechts{

    position:absolute;

    left:50%;

    height:14px;

    top:3px;

    border-radius:7px;

}



/* =====================================================
   Paarungsplanung - Gentests
===================================================== */

.zsaa-gentest{

    display:flex;
    flex-direction:column;

    gap:12px;

    margin-top:20px;

}

.zsaa-gentest-row{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    gap:30px;

    background:#ffffff;

    border:1px solid #dddddd;

    border-radius:8px;

    padding:12px 18px;

    transition:.2s;

}

.zsaa-gentest-row:hover{

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.zsaa-gentest-name{

    width:180px;

    font-weight:bold;

    color:#555555;

}

.zsaa-gentest-wert{

    min-width:90px;

    text-align:center;

    font-weight:bold;

    color:#2E6B3F;

    background:#fafafa;

    border:1px solid #C8A14A;

    border-radius:20px;

    padding:5px 15px;

}

.zsaa-drucken button{

    min-width:260px;

    padding:14px 30px;

    font-size:18px;

    border-radius:30px;

}


.zsaa-drucken{

    text-align:center;

    margin-top:40px;

    margin-bottom:40px;

}


/* =====================================================
   Paarungsplanung - Auswahl
===================================================== */

.zsaa-auswahl{

    width:100%;

    margin:20px 0;

    background:#F8FBF8;

    border:1px solid #d9e6d9;

    border-radius:10px;

    padding:16px;

    box-sizing:border-box;

}

.zsaa-form-row{

    display:flex;

    gap:15px;

    align-items:center;

    flex-wrap:wrap;

    margin-top:8px;

}

.zsaa-form-row input{

    flex:1;

    min-width:320px;

}

.zsaa-form-row button{

    white-space:nowrap;

}


/* =====================================================
   Paarungsplanung - Dialog
===================================================== */

.zsaa-paarung-dialog{

    background:#ffffff;

    border:1px solid #d5d5d5;

    border-radius:12px;

    box-shadow:0 4px 16px rgba(0,0,0,.10);

    margin:30px auto;

    overflow:hidden;

}

.zsaa-dialog-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 20px;

    background:#2E6B3F;

    color:#ffffff;

}

.zsaa-dialog-title{

    font-size:22px;
    color:white; 	
    font-weight:bold;

}

.zsaa-dialog-close{

    width:36px;

    height:36px;

    border:none;

    border-radius:50%;

    background:#ffffff;

    color:#2E6B3F;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

}

.zsaa-dialog-close:hover{

    background:#C8A14A;

    color:#ffffff;

}

.zsaa-dialog-body{

    padding:25px;

}



/* =====================================================
   Paarungsplanung - Wizard
===================================================== */

.zsaa-wizard{

    max-width:850px;

    margin:15px auto 30px auto;

    border-top:6px solid #C8A14A;

}


/* -----------------------------------------------------
   Fortschrittsanzeige
----------------------------------------------------- */

.zsaa-steps{

    display:flex;

    justify-content:center;

    gap:50px;

    margin:20px 0 35px 0;

    font-size:16px;

    font-weight:600;

}

.zsaa-step{

    color:#999;

}

.zsaa-step-active{

    color:#2E6B3F;

}

.zsaa-step-done{

    color:#3C8D40;

}


/* -----------------------------------------------------
   Abschnittsüberschriften
----------------------------------------------------- */

.zsaa-step-title{

    font-size:20px;

    font-weight:600;

    color:#2E6B3F;

    margin-top:25px;

    margin-bottom:6px;

}


/* -----------------------------------------------------
   Beschreibung
----------------------------------------------------- */

.zsaa-step-text{

    color:#777;

    font-size:15px;

    line-height:1.4;

    margin-bottom:12px;

}


/* -----------------------------------------------------
   Eingabefelder
----------------------------------------------------- */

.zsaa-wizard input{

    width:100%;

    height:42px;

    font-size:16px;

    margin-bottom:20px;

}


/* -----------------------------------------------------
   Berechnen-Button
----------------------------------------------------- */

.zsaa-btn-start{

    display:block;

    margin:40px auto 10px auto;

    padding:14px 40px;

    min-width:300px;

    background:#C8A14A;

    color:#fff;

    font-size:18px;

    font-weight:bold;

    border:none;

    border-radius:10px;

    cursor:pointer;

    transition:all .2s ease;

}

.zsaa-btn-start:hover{

    background:#2E6B3F;

}


/* -----------------------------------------------------
   Responsive
----------------------------------------------------- */

@media (max-width:700px){

    .zsaa-steps{

        flex-direction:column;

        gap:10px;

    }

    .zsaa-btn-start{

        width:100%;

        min-width:0;

    }

}


.zsaa-btn-print{

    background:#2E6B3F;

    color:#fff;

}

.zsaa-btn-print:hover{

    background:#1F4E2D;

}

/* =====================================================
   W2UI Suchfelder
===================================================== */

.w2ui-field-helper,
.w2ui-field-helper input{

    font-family:Verdana, Arial, Helvetica, sans-serif !important;

    font-size:14px !important;

}

.w2ui-overlay,
.w2ui-menu{

    font-family:Verdana, Arial, Helvetica, sans-serif !important;

    font-size:11px !important;

}

.w2ui-menu .menu-text{

    font-size:11px !important;

}



/************************************************
   Partnerwahl
************************************************/

.zsaa-partnerwahl{

    max-width:1200px;

    margin:20px auto;

}


.zsaa-partnerwahl .zsaa-card{

    background:#fff;

    border:1px solid #d9d9d9;

    border-radius:12px;

    padding:20px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

}


.zsaa-partnerwahl .zsaa-card-title{

    margin-bottom:10px;

}


.zsaa-partnerwahl .zsaa-step-text{

    margin-bottom:20px;

    color:#666;

    line-height:1.5;

}


#partner{

    display:flex;

    gap:20px;

    align-items:flex-start;

}

#partner > div{

    flex:1;

}

#schritt2{

    margin-top:20px;

}


#schritt3{

    margin-top:20px;

}


#erg2{

    margin-bottom:15px;

    font-weight:bold;

    color:#2E6B3F;

}


#pgrid{

    margin-top:15px;

}


.zsaa-info{

    background:#F3FAF3;

    border-left:4px solid #2E6B3F;

    padding:12px 16px;

    margin-bottom:20px;

    border-radius:6px;

    color:#444;

}


.zsaa-auswahl{

    background:#F8FBF8;

    border:1px solid #d9e6d9;

    border-radius:10px;

    padding:16px;

    margin-bottom:20px;

}

.zsaa-auswahl-header{

    display:flex;

    justify-content:space-between;

    align-items:left;

    font-weight:bold;

    color:#2E6B3F;

    margin-bottom:10px;

}

.zsaa-auswahl-header a{

    font-size:13px;

    text-decoration:none;

}



/* ==========================================================================
   DOGBASE UI 2.0
   Karteikarte / Nachkommen
   ========================================================================== */

.db-card{

    background:#fff;

    border:1px solid #D7E6D9;

    border-radius:12px;

    margin:18px 0;

    overflow:hidden;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.db-card-header *{

    color:white;

}

.db-card-header{

    background:#2E6B3F;
    color:#fff;

}


.db-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#2E6B3F;

    color:#fff;

    padding:12px 18px;

    font-weight:600;

    font-size:1rem;

}

.db-card-body{

    padding:18px;

}

.db-parent-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:16px;

    margin-bottom:18px;

}

.db-parent-card{

    background:#F8FBF8;

    border:1px solid #D7E6D9;

    border-radius:10px;

    padding:14px;

}

.db-parent-title{

    font-size:.75rem;

    color:#6F6F6F;

    text-transform:uppercase;

    letter-spacing:.05em;

    margin-bottom:8px;

}

.db-parent-name{

    font-size:1rem;

    font-weight:600;

    color:#2E6B3F;

    margin-bottom:10px;

}

.db-zw-container{

    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-bottom:16px;   /* statt bisher 8 oder 10 px */

}


.db-zw-badge{

    min-width:62px;

    background:#fff;

    border:1px solid #D7E6D9;

    border-radius:8px;

    padding:6px;

    text-align:center;

}

.db-zw-kuerzel{

    font-size:.70rem;

    color:#777;

}

.db-zw-wert{

    font-size:1rem;

    font-weight:700;

}

@media (max-width:900px){

    .db-parent-grid{

        grid-template-columns:1fr;

    }

}

.db-wurf-datum{

    font-size:.8rem;

    opacity:.8;

}

.db-wurf-statistik{

    text-align:right;

    font-weight:600;

}

/* ---------------------------------------------------------
   Informationsbereich (Titel, Prüfungen, Diagnosen ...)
----------------------------------------------------------*/

.db-info-panel{

    display:none;

    margin-top:10px;

    padding:12px 16px;

    background:#F7FAF8;

    border:1px solid #D7E6D9;

    border-radius:8px;

    font-size:.85rem;

    line-height:1.6;

    color:#444;

    animation:dbInfoOpen .25s ease;

}

.db-info-panel strong{

    display:block;

    margin-bottom:8px;

    color:#2E6B3F;

    font-size:.9rem;

}


.db-info-panel hr{

    border:0;

    border-top:1px solid #D7E6D9;

    margin:8px 0 10px 0;

}


@keyframes dbInfoOpen{

    from{

        opacity:0;
        transform:translateY(-6px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}


.db-info-btn{

    transition:all .2s ease;

}

.db-info-btn:hover{

    background:#2E6B3F;

    color:white;

    border-color:#2E6B3F;

    transform:translateY(-1px);

}

.db-parent-card{

    padding:16px;

}

.db-parent-name{

    margin-bottom:14px;

}

.db-card-body{

    padding:20px;

}


.db-row{

    display:grid;

    grid-template-columns:

        35px      /* Geschlecht */

        120px     /* ZBNR */

        1.6fr     /* Name */

        90px      /* geboren */

        120px     /* Farbe */

        auto      /* Zuchtwerte */

        240px;    /* Diagnose */

}



.db-nk-table{

    width:100%;

    border-collapse:collapse;

    margin-top:15px;

    font-size:0.85rem;

}


.db-nk-table thead th{

    padding:9px 8px;

    background:#F5F8F6;

    border-bottom:2px solid var(--db-green);

    color:var(--db-green);

    font-weight:600;

    white-space:nowrap;

    text-align:left;

}

.db-nk-table tbody td{

    padding:7px 8px;

    border-bottom:1px solid #ECECEC;

    vertical-align:middle;

}


.db-nk-table tbody tr:hover{

    background:#F8FBF8;

}

.db-nk-table tbody tr:nth-child(even){

    background:#FCFDFC;

}

.db-nk-name{

    font-weight:600;

}

.db-nk-name a{

    color:#1B5E20;

    text-decoration:none;

}

.db-nk-name a:hover{

    text-decoration:underline;

}

.db-sex-r{

    color:#0A5EA8;

    font-weight:700;

}

.db-sex-h{

    color:#B00060;

    font-weight:700;

}

.db-nk-zw{

    text-align:center;

    font-weight:700;

    width:38px;

}


.db-nk-zbnr{

    white-space:nowrap;

    color:#555;

}


.db-nk-date{

    white-space:nowrap;

}

.db-col-title,
.db-col-pruefung,
.db-col-diagnose,
.db-col-sonstiges{

    display:none;

}


.db-info-row{

    display:none;

}

.db-info-row td{

    background:#F8FBF8;

    padding:8px 20px;

    font-size:.82rem;

    color:#555;

    border-bottom:1px solid #E6E6E6;

}


/*************************************************************************
 *
 * Toolbar
 *
 *************************************************************************/

.db-toolbar{

    display:flex;

    gap:10px;

    margin:15px 0;

}

.db-toggle{

    padding:6px 12px;

    border:1px solid #D7E6D9;

    border-radius:20px;

    background:white;

    cursor:pointer;

    user-select:none;

    transition:all .18s ease;

}

.db-toggle:hover{

    background:#F7FAF8;

    border-color:var(--db-green);

    color:var(--db-green);

    transform:translateY(-1px);

}

.db-toggle.active{

    background:var(--db-green) !important;

    color:#fff !important;

    border-color:var(--db-green) !important;

}


.db-info-table{

    width:100%;

    border-collapse:collapse;

}

.db-info-label{

    width:120px;

    font-weight:600;

    color:#2E6B3F;

    white-space:nowrap;

    vertical-align:top;

}

.db-info-label::after{

    content: ":";

}

.db-info-value{

    color:#444;

    line-height:1.5;

}


.db-parent-info{

    display:none;

    margin-top:12px;

    padding:10px 14px;

    background:#FCFCFC;

    border-left:4px solid #2E6B3F;

    border:1px solid #E6E6E6;

    border-left:4px solid #2E6B3F;

    border-radius:8px;

}


.db-action{

    text-align:center;

    margin:20px 0 25px 0;

}

.db-button{

    padding:10px 22px;

    background:#2E6B3F;

    color:white;

    border:0;

    border-radius:25px;

    font-size:.95rem;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.db-button:hover{

    background:#255734;

    transform:translateY(-1px);

    box-shadow:0 4px 10px rgba(0,0,0,.15);

}

.db-zwinger-label{

    width:160px;

    font-size:1rem;

    font-weight:600;

    color:#2E6B3F;

    background:#F7FAF8;

    padding:12px 16px;

}


.db-zwinger-value{

    font-size:1rem;

    padding:12px 16px;

}



/*************************************************************************
 *
 * PEDIGREE CARD
 *
 *************************************************************************/

.db-ped-card{

    background:#fff;

    border:1px solid #D7E6D9;

    border-radius:12px;

    padding:12px;

    box-sizing:border-box;

    box-shadow:0 2px 7px rgba(0,0,0,.06);

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}


.db-ped-card:hover{

    transform:translateY(-2px);

    box-shadow:0 5px 14px rgba(0,0,0,.10);

}


/*************************************************************************
 * Name
 *************************************************************************/

.db-ped-name{

    font-weight:700;

    font-size:15px;

    line-height:1.25;

    margin-bottom:4px;

}


.db-ped-link{

    color:#26352b;

    text-decoration:none;

}


.db-ped-link:hover{

    color:var(--db-green);

}


/*************************************************************************
 * Zuchtbuch / Farbe
 *************************************************************************/

.db-ped-basic{

    font-size:12px;

    color:#68746b;

    margin-bottom:9px;

}


.db-ped-color{

    margin-left:6px;

    padding-left:7px;

    border-left:1px solid #D7E6D9;

}


/*************************************************************************
 * Zuchtwerte
 *************************************************************************/

.db-ped-zw-container{

    display:flex;

    flex-wrap:wrap;

    gap:4px;

    margin-bottom:7px;

}


.db-ped-zw{

    display:inline-flex;

    align-items:center;

    border-radius:6px;

    overflow:hidden;

    font-size:11px;

    line-height:1;

    background:#F4F6F4;

}


.db-ped-zw-key{

    padding:4px 4px 4px 5px;

    font-weight:600;

}


.db-ped-zw-value{

    padding:4px 5px 4px 3px;

    font-weight:700;

}


/*************************************************************************
 * Farben der Zuchtwerte
 *************************************************************************/

.db-ped-zw.green{

    background:#E8F6EC;

    color:#218447;

}


.db-ped-zw.red{

    background:#FCEAEA;

    color:#C62828;

}


.db-ped-zw.black{

    background:#F2F3F2;

    color:#424842;

}


/*************************************************************************
 * GGW / P-Wert
 *************************************************************************/

.db-ped-ggw-container{

    display:flex;

    flex-wrap:wrap;

    gap:5px;

    margin:7px 0;

}


.db-ped-ggw{

    display:flex;

    align-items:center;

    gap:5px;

    padding:4px 7px;

    border-radius:6px;

    background:#F7F8F7;

    border:1px solid #E1E6E2;

    font-size:11px;

}


.db-ped-ggw-key{

    font-weight:600;

    color:#69736C;

}


.db-ped-ggw-value{

    font-weight:700;

    color:#303832;

}


/*************************************************************************
 * Info Buttons
 *************************************************************************/

.db-ped-info-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:5px;

    margin-top:8px;

}


.db-ped-info-btn{

    padding:5px 8px;

    border:1px solid #D7E6D9;

    border-radius:15px;

    background:white;

    color:#4E5B51;

    font-size:11px;

    cursor:pointer;

    user-select:none;

    transition:all .18s ease;

}


.db-ped-info-btn:hover{

    background:#F7FAF8;

    border-color:var(--db-green);

    color:var(--db-green);

    transform:translateY(-1px);

}


.db-ped-info-btn.active{

    background:var(--db-green) !important;

    color:white !important;

    border-color:var(--db-green) !important;

}


/*************************************************************************
 * Info Inhalt
 *************************************************************************/

.db-ped-info-content{

    margin-top:7px;

}


.db-ped-info{

    display:none;

    grid-template-columns:72px 1fr;

    gap:7px;

    padding:7px;

    border-radius:7px;

    background:#F7FAF8;

    font-size:11px;

    line-height:1.4;

}


.db-ped-info.active{

    display:grid;

}


.db-ped-info-label{

    font-weight:700;

    color:#526057;

}


.db-ped-info-value{

    color:#354038;

    overflow-wrap:anywhere;

}


.pedigree-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

