/* ----------------------------------------------------------
   Allgemein
---------------------------------------------------------- */
.wp-block-seven-days-database-item {
    display: inline-block;
    width: 420px;
}

.wp-block-seven-days-database-item.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.wp-block-seven-days-database-item.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

.wp-block-seven-days-database-item.aligncenter {
    margin: 0 auto 24px;
}


.sddb {

    display: inline-block;
    width: 420px;
    margin: 0 24px 24px 0;
    vertical-align: top;

    color: #222;
    font-size: 16px;
    line-height: 1.6;

    background: #fff;
}

.sddb *,
.sddb *::before,
.sddb *::after {
    box-sizing: border-box;
}

.sddb h2,
.sddb h3,
.sddb h4 {
    margin: 0;
    color: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.sddb p {
    margin: 0;
}

.sddb p + p {
    margin-top: 1rem;
}

.sddb img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sddb figure {
    margin: 0;
}


/* ----------------------------------------------------------
   Item
---------------------------------------------------------- */

.sddb-item {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    overflow: hidden;
}

/* ----------------------------------------------------------
   Card
---------------------------------------------------------- */

.sddb-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;

    background: #fafafa;

    overflow: hidden;
}

/* ----------------------------------------------------------
   Header
---------------------------------------------------------- */

.sddb-item__header {
    display: block;
    padding: 16px 16px 30px 16px;
    border-bottom: 1px solid #d8d8d8;

    min-height: 122px; /* 90px Icon + 16px oben + 16px unten */
}

.sddb-item__figure {
    margin: 0;
}

.sddb-item__icon {
    float: left;
    width: 90px;
    height: 90px;
    margin: 0 20px 6px 0;
}

.sddb-item__title {
    margin: 0 0 2px;
    font-size: 1.9rem;
    line-height: 1.15;
}
.sddb .sddb-item__title a:link,
.sddb .sddb-item__title a:visited,
.sddb .sddb-crafting-station__name a:link,
.sddb .sddb-crafting-station__name a:visited
{
    Color:rgb(0, 174, 239) !important;
}

.sddb .sddb-item__title a:hover,
.sddb .sddb-crafting-station__name a:hover {
    Color:#fcb900 !important;
}
.sddb-item__description {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.45;
    text-align: left;
    hyphens: auto;
    color: #444;
}

.sddb-item__content {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    min-width: 0;
}


.sddb-item__description p + p {
    margin-top: 1rem; 
}



.sddb-crafting-station {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}



.sddb-crafting-station__name img {
    width:64px;
    height:64px;
}

.sddb-crafting-station__content {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.sddb-crafting-station__label {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 160px;
}

.sddb-crafting-station__name {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.5rem;
    font-weight: 700;
}

.sddb-crafting-station__label::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 32px;
    margin: 0 20px;
    vertical-align: middle;
    background: #ddd;
}


/* ----------------------------------------------------------
   Sections
---------------------------------------------------------- */

.sddb-properties,
.sddb-recipe {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sddb-section__header {
    padding: 0 16px 8px;

    border-bottom: 1px solid #d8d8d8;
}

.sddb-section__title {
    font-size: 1.4rem;
}

.sddb-section__content {
    display: flex;
    flex-direction: column;
    gap: 24px;

    padding: 0 16px 20px;
}


/* ----------------------------------------------------------
   Property List
---------------------------------------------------------- */

.sddb-property-list {
    display: grid;
    grid-template-columns: 220px auto;
    gap: 8px 16px;
    align-items: start;
    margin: 0;
}

.sddb-property-list dt {
    margin: 0;

    color: #666;
    font-weight: 600;
}

.sddb-property-list dd {
    margin: 0;

    color: #222;
    text-align: left;
    font-weight: 600;
    min-width: 0;

    overflow-wrap: break-word;
    word-break: break-word;

    white-space: normal;
}

.is-number {
    font-variant-numeric: tabular-nums;
}


/* ----------------------------------------------------------
   Details
---------------------------------------------------------- */

.sddb-details {
    margin-top: 8px;

    overflow: hidden;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    background: #fafafa;
}

.sddb-details summary {
    padding: 14px 18px;

    cursor: pointer;
    font-weight: 600;
    user-select: none;
    font-size:1.5rem;
}

.sddb-details[open] summary {
    border-bottom: 1px solid #d8d8d8;
}

.sddb-details > .sddb-property-list {
    padding: 18px;
}


/* ----------------------------------------------------------
   Ingredients
---------------------------------------------------------- */

.sddb-ingredients h3 {
    margin: 0 0 12px;
    padding: 8px 16px 4px 16px;

    font-size: 1.5rem;
}

.sddb-ingredients__list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.sddb-ingredient {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 24px 16px;
    transition: background-color 0.15s ease;
}

.sddb-ingredient + .sddb-ingredient {
    border-top: 1px solid #e5e5e5;
}
.sddb-ingredient:hover {
    background-color: #e4e4e4;
}


.sddb-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.sddb-ingredient__name {
    font-weight: 600;
    font-size:1.5rem;
}
.sddb-ingredient__name a:link,
.sddb-ingredient__name a:visited
{
    Color:rgb(0, 174, 239) !important;
}
.sddb-ingredient__name a:hover {
    Color:#fcb900 !important;
}

.sddb-ingredient__amount {
    color: #555;
    font-weight: 700;
    white-space: nowrap;
    font-size:1.25rem;
}
.sddb-ingredient__content {
    color:#000;
}

/* ----------------------------------------------------------
   Fehler
---------------------------------------------------------- */

.sddb-errors {
    padding: 16px;

    border: 1px solid #d9534f;
    border-radius: 6px;

    background: #fff5f5;
    color: #a94442;
}

.sddb-errors p + p {
    margin-top: 8px;
}

/* ----------------------------------------------------------
   Gutenberg Block
---------------------------------------------------------- */

.wp-block-seven-days-database-item {
    margin-bottom: 24px;
}

.wp-block-seven-days-database-item.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.wp-block-seven-days-database-item.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

.wp-block-seven-days-database-item.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-seven-days-database-item .sddb {
    width: 420px;
}



/* DATABASE ########################################################################################################*/
/* =========================================================
   Database Page Header
========================================================= */

.sddb-db .sddb-page-header {
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.sddb-db .sddb-page-header__body {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sddb-db .sddb-page-header__icon {
    flex-shrink: 0;
}

.sddb-db .sddb-page-header__icon img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.sddb-db .sddb-page-header__content {
    flex: 1 1 auto;
    max-width: 750px;
    min-width: 0;
}

.sddb-db .sddb-page-header__title {
    font-size:30px;
    line-height: 1.15;
    margin: 0 0 25px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.sddb-db .sddb-page-header__item-name {
    color: #ffd54a;
}

.sddb-db .sddb-page-header__description {
    font-size: 24px;
    line-height: 1.5;
}

.sddb-db .sddb-page-header__meta {
    font-size: 18px;
}


/* =========================================================
   Crafting Darstellung
========================================================= */

.sddb-db .sddb-crafting {
    margin-bottom: 40px;
}


.sddb-db .sddb-crafting-flow {

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 35px;

    width: 100%;

    padding: 25px 35px;
    margin: 0;

    border: 1px solid #555;
    border-radius: 14px;

    box-sizing: border-box;
}


/* Item Icon */

.sddb-db .sddb-crafting-flow__item {
    display: flex;
    align-items: center;
}


.sddb-db .sddb-crafting-flow__item img {

    width: 80px;
    height: 80px;

    object-fit: contain;
}



/* Herstellung */

.sddb-db .sddb-crafting-flow__label {

    font-size: 36px;
    font-weight: bold;

    white-space: nowrap;
}



/* Pfeil */

.sddb-db .sddb-crafting-flow__arrow {

    display: flex;
    align-items: center;
}


.sddb-db .sddb-crafting-flow__arrow img {

    width: 170px;
    height: auto;

    display: block;
}



/* Crafting Station */

.sddb-db .sddb-crafting-flow__station {

    display: flex;
    align-items: center;

    gap: 20px;
}


.sddb-db .sddb-crafting-flow__station img {

    width: 80px;
    height: 80px;

    object-fit: contain;
}


.sddb-db .sddb-crafting-flow__title {

    font-size: 36px;
    font-weight: bold;

    white-space: nowrap;
}


.sddb-db .sddb-crafting-flow__title a {

    color: inherit;
    text-decoration: none;
}



/* =========================================================
   Crafting Materials
========================================================= */

.sddb-db .sddb-crafting-materials {
    margin-top: 20px;
}

.sddb-db .sddb-crafting-materials h3 {

    font-size: 30px;
    margin-bottom: 15px;
    font-weight:600;
}


.sddb-db .sddb-crafting-material {

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 6px 0;
}


.sddb-db .sddb-crafting-material img {

    width: 40px;
    height: 40px;

    object-fit: contain;
}


.sddb-db .sddb-crafting-material__name {
    flex: 1;
}


.sddb-db .sddb-crafting-material__amount {

    font-weight: bold;

    min-width: 60px;

    text-align: right;
}



/* =========================================================
   Crafting Time
========================================================= */

.sddb-db .sddb-crafting-time {

    margin-top: 25px;

    padding-top: 15px;

    border-top: 1px solid #444;
}



/* =========================================================
   Database Container
========================================================= */

.sddb-db {
    width: 100%;
}



/* =========================================================
   Details / Additional Information
========================================================= */

.sddb-db .sddb-details {

    margin-top: 35px;

    border: 1px solid #555;

    border-radius: 12px;

    padding: 15px;
}


.sddb-db .sddb-details__summary {

    cursor: pointer;

    font-size: 26px;

    font-weight: bold;

    color: #000;
}


.sddb-db .sddb-details__content {

    margin-top: 20px;
}



/* =========================================================
   Database Page Properties
========================================================= */

.sddb-db .sddb-db__properties .sddb-property-list {

    display: grid;

    grid-template-columns: 260px 1fr;

    gap: 8px 25px;
}


.sddb-db .sddb-db__properties .sddb-property-list__label {

    font-weight: bold;

    white-space: nowrap;

    padding: 8px 10px;
}


.sddb-db .sddb-db__properties .sddb-property-list__value {

    padding: 8px 10px;
}


.sddb-db .sddb-db__properties .sddb-property-list__label:hover,
.sddb-db .sddb-db__properties .sddb-property-list__value:hover {

    background-color: rgba(147, 147, 147, 0.4);

}



/* =========================================================
   Database Search
========================================================= */

.sddb-db-search {
    position: relative;
    margin-bottom: 45px;
}


.sddb-db-search__results {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 760px;

    background: #fff;

    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    border-radius: 10px;

    overflow: hidden;

    z-index: 1000;

    max-height: 450px;
    overflow-y: auto;

    display: none;
}


.sddb-db-search__input-wrapper {
    display: flex;
    align-items: center;

    width: 760px;

    background: #fff;

    border-radius: 10px;

    padding: 6px 14px 6px 6px;

    box-sizing: border-box;
}


.sddb-db-search__icon {
    width: 48px;
    height: 48px;

    object-fit: contain;

    flex-shrink: 0;

    margin-right: 10px;
}


.sddb-db-search__input {
    flex: 1;

    width: 100%;

    height: auto;

    padding: 12px 0;

    border: none !important;

    background: transparent;

    outline: none;

    font-size: 1.5rem;

    color: #222;

    box-shadow: none !important;
}


.sddb-db-search__input::placeholder {
    color: #999;
}


.sddb-db-search__input:focus {
    outline: none;
    box-shadow: none;
}

/* =========================================================
   Database Search Results
========================================================= */

.sddb-db-search__results {
    display: block;
    max-width: 760px;
}


.sddb-db-search__result {
    display: flex !important;

    align-items: center;

    width: 100%;

    gap: 14px;

    padding: 10px 14px;

    text-decoration: none;

    color: #222 !important;

    background: #fff;

    border-bottom: 1px solid #eee;

    box-sizing: border-box;
}


.sddb-db-search__result:last-child {
    border-bottom: none;
}


.sddb-db-search__result:hover {
    background: #eeeeee;
}


.sddb-db-search__result img {
    flex-shrink: 0;
}


.sddb-db-search__content {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.sddb-db-search__name {
    color: #222 !important;

    font-size: 1.3rem;

    font-weight: 700;

    line-height: 1.3;
}


.sddb-db-search__type {
    margin-top: 2px;

    color: #777 !important;

    font-size: .85rem;

}