:root {
    --sds-color-button-secondary-background: rgba(191, 180, 166, 0.25);
    --sds-color-button-secondary-background-hover: rgba(191, 180, 166, 0.4);
    --sds-color-button-secondary-background-active: rgba(191, 180, 166, 0.4);
    --sds-color-button-secondary-label-brand: #5920c0;
    --sds-color-seperator-default: rgba(0, 0, 0, 0.15);
    --sds-color-surface-standard-02-default: #ffffff;
    --sds-color-surface-standard-02-hover: #f8f7f5;
    --sds-color-surface-highlight-02-hover: #f8f7f5;
    --sds-color-text-01-default: #0c0c0c;
    --sds-color-surface-highlight-01-default: #1d0b40;
    --sds-color-text-01-invert-constant: #fff;
    --_dialogHeight: 474px;
}

@media (prefers-color-scheme: dark) {
    :root {

        --sds-color-button-secondary-background: rgba(255, 255, 255, 0.2);
        --sds-color-button-secondary-background-hover: rgba(255, 255, 255, 0.35);
        --sds-color-button-secondary-background-active: rgba(255, 255, 255, 0.15);
        --sds-color-button-secondary-label-brand: #a8a1f9;
        --sds-color-seperator-default: rgba(255, 255, 255, 0.2);
        --sds-color-surface-standard-02-default: #393a3b;
        --sds-color-surface-standard-02-hover: #515152;
        --sds-color-surface-highlight-02-hover: #481a9c;
        --sds-color-text-01-default: #f8f7f5;
        --sds-color-surface-highlight-01-default:#1d0b40;
        --sds-color-text-01-invert-constant: #fff;
    }
}
/* ==================================== */
/* ======= Topline und Headline ======= */
/* ==================================== */

.aquarium .topline {
    font-size: var(--sds-number-article-typo-topline);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.aquarium h1.headline {
    font-size: var(--sds-number-article-typo-headline);
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 0;
}

:where(h1, h2, h3, h4, h5, h6) {
    overflow-wrap: break-word;
    text-wrap: wrap;
}
.aquarium .lead {
    font-size: var(--sds-number-article-typo-leadtext);
    font-weight: 500;
    line-height: 1.25;
    margin: 16px 0 0;
}

.meta-description {
    margin-top: 16px;
}

/* ==================================== */
/* =========== Share-Button =========== */
/* ==================================== */

.interaction-bar {
    border-top: 1px solid var(--sds-color-seperator-default);
    border-bottom: 1px solid var(--sds-color-seperator-default);
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    margin-block: 16px;
    padding-block: 8px;
}

:is(.interaction-bar, dialog) .btn {
    align-items: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: var(--_color);
    display: inline-flex;
    font-weight: 500;
    gap: 4px;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 24px;
    padding: var(--_padding, 0);
    position: relative;
    text-decoration: none;
    width: -moz-max-content;
    width: max-content;
    z-index: 1;
}

:is(.interaction-bar, dialog) .btn:is(:hover, :focus) {
        cursor: pointer;
}

:is(.interaction-bar, dialog) .btn:before {
    background-color: var(--_background-color, transparent);
    border-radius: 4px;
    content: "";
    display: block;
    height: 48px;
    position: absolute;
    width: 100%;
    z-index: -1;
}

:is(.interaction-bar, dialog) .btn:after {
    background-color: transparent;
    border-radius: 4px;
    content: "";
    display: block;
    height: 48px;
    opacity: 0;
    outline: 2px solid var(--_color-outline);
    outline-offset: 2px;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.interaction-bar .btn-secondary {
    --_background-color: var(--sds-color-button-secondary-background);
    --_color: var(--sds-color-button-secondary-label-brand);
    --_padding: 12px 16px;
}

.interaction-bar .btn-small {
    font-size: 0.875rem;
}

.interaction-bar .btn-small svg,
dialog .btn svg {
    height: 20px;
    width: 20px;
    color: var(--_color);
    stroke: none;
    max-width: 100%;
    display: block;
}

.interaction-bar .btn-small:after,
.interaction-bar .btn-small:before {
    height: 32px;
}

.interaction-bar .btn-secondary:is(:hover, :focus) {
    --_background-color: var(--sds-color-button-secondary-background-hover);
    outline: none;
}


/* ==================================== */
/* ============= DIALOG ================ */
/* ==================================== */

/* Die Seite hinter dem Dialog "sperren" */
html:has(dialog[open]) {
    overflow: hidden;
}

/* Abdunkelung */
::backdrop {
    background-color: rgba(15, 15, 15, 0.85);
}

.dialog {
    background-color: transparent;
    border: none;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    max-height: none;
    max-width: none;
    padding: 0;
    width: 100%
}
.container {
    --_color-text: var(--sds-color-text-01-default);
    --_color-text-02: var(--sds-color-text-02-default);
}
@media (min-width: 640px) {
    .dialog {
        margin-bottom: auto
    }
}

.dialog:not([open]) {
    display: none
}

.dialog .dialog-wrapper {
    background-color: var(--sds-color-surface-standard-02-default);
    border: 1px solid var(--sds-color-border-tertiary-default);
    border-radius: 4px;
    display: grid;
    grid-template-rows: auto 1fr;
    max-height: calc(100vh - 32px);
    min-height: min(50vh, var(--_dialogHeight));
    overflow-y: hidden;
    padding: 16px;
    width: 100%
}

@media (min-width: 640px) {
    .dialog .dialog-wrapper {
        margin-left: auto;
        margin-right: auto;
        max-width: 480px
    }
}

.dialog .dialog-header {
    align-items: center;
    display: flex;
    justify-content: space-between
}

.dialog .dialog-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--sds-color-text-01-default);
}

.dialog .dialog-header .btn[data-dialog-close=true] {
    margin: 0;
    width: -moz-max-content;
    width: max-content
}

.dialog .dialog-body {
    margin-bottom: 0;
    margin-top: 8px;
    overflow-y: auto
}

.dialog .dialog-body h3 {
    margin: 0
}

.dialog .dialog-body p:first-child {
    margin-top: 0
}

.dialog .dialog-body>p {
    font-size: var(--sds-number-article-typo-info-1)
}

.dialog .dialog-body .btn-primary {
    margin-top: 16px
}

.dialog .dialog-body ul {
    margin: 0;
    list-style-type: "";
    padding-left: 0;
}

.dialog .dialog-body li {
    line-height: 24px;
    padding-left: 0;
}

dialog .btn svg {
    width: 24px;
    height: 24px;
}

.dialog .btn-share {
    --_background-color: var(--sds-color-surface-standard-02-default);
    --_color: var(--sds-color-text-01-default);
    --_padding: 12px 16px;
    justify-content: flex-start;
    width: calc(100% - 32px);
    height:auto;
}

.dialog .btn-share:before {
    left: 0;
}

.dialog .btn-share:after {
    background-color: transparent;
    border-radius: 4px;
    content: "";
    display: block;
    height: 48px;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
    left: 0;
}

.dialog .btn-share:focus,
.dialog .btn-share:hover {
    --_background-color: var(--sds-color-surface-standard-02-hover);
}

.dialog .btn-share {
    --_background-color: var(--sds-color-surface-standard-02-default);
    --_color: var(--sds-color-text-01-default);
    --_padding: 12px 16px
}

.dialog .btn-share:focus,
.dialog .btn-share:hover {
    --_background-color: var(--sds-color-surface-standard-02-hover);
    cursor: pointer;
}

.dialog .btn-share:active {
    --_background-color: var(--sds-color-surface-standard-02-active);
    transform: none
}

.dialog .btn-share:focus-visible {
    --_background-color: var(--sds-color-surface-standard-02-default);
    --_color-outline: var(--sds-color-border-primary-default)
}

.dialog .btn-share:focus-visible:after {
    border-radius: 0;
    outline-offset: -1px
}

.btn-share svg {
    margin-right: 16px
}

.btn-share span + svg {
    position: absolute;
    right: 0
}
/* schließen-button */
#share-close {
    margin: 0;
    width: max-content;
}
.btn-tertiary {
    --_background-color: var(--sds-color-button-tertiary-background);
    --_padding: 12px 8px;
}
.btn-tertiary-neutral {
    --_color: var(--sds-color-button-tertiary-label-neutral);
    --_color-outline: var(--sds-color-button-tertiary-label-neutral);
}

#snackbar {
    visibility: hidden;
    width: 300px;
    display: flex;
    gap: 8px;
    margin-left: -125px;
    color: var(--sds-color-text-01-invert-constant);
    background: var(--sds-color-surface-highlight-01-default);
    text-align: center;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    font-weight: normal;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--sds-color-text-01-invert-constant);
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}