/* --- module: petition --- */

.petition #spenden_box {
    min-height: auto !important;
}

.petition a.button[rel="prettyPhoto"] {
    background-color: #D3D0C7;
    box-shadow: 0px 0px 0px transparent;
    color: #000000 !important;
}

.petitionDetail .petitionImage .headerImage {
    height: 200px;
    background-size: cover;
    background-position: center center;
	position: relative;
}

.petitionDetail .petitionImage .modTitleImage {
    color: #fff !important;
    padding: 10px 20px 10px 20px;
    font-size: 2.5rem;
    line-height: 2.8rem;
	bottom: 0;
	position: absolute;
	background-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
	width: 100%;
}

.petitionImage .progressStatus {
    padding: 30px 0px 0px 0px !important;
}

.formBox {
    padding: 8px 8px 8px 8px !important;
    background-color: #ed082e;
    border-radius: 16px;
}

.form_container {
    padding: 8px 8px 8px 8px;
    background-color: #F0F0F1;
    border-radius: 0px 0px 10px 10px;
}


/* --- detail --- */

.petitionDetailMain .row {
    padding: 30px 0px 0px 0px;
}

.petitionDetail .progressStatus .modTitle {}

.petitionDetail .header .modTitle {
    color: #ffffff;
	padding: 0px 8px 8px 8px;
}
.petitionDetail .copyright {
    padding: 8px 0px 8px 0px;
}

.petitionDetail #progressbar, .petitionDetail #progressbar_spenden {
	width: auto;
	background-color: #ffffff;
	overflow: hidden;
    border-radius: 8px;
}
.petitionDetail #progressbar .bar, .petitionDetail #progressbar_spenden .bar {
	width: 0px;
	overflow: hidden;
}
.petitionDetail #progressbar .progress, .petitionDetail #progressbar_spenden .progress { /* progressindicator */
	background-color: #ed082e;
	display: table;
	width: 100%;
}
.petitionDetail #progressbar .progress span, .petitionDetail #progressbar_spenden .progress span { /* progressindicator text */
	height: 30px;
	color: #ffffff;
	display: table-cell;
	vertical-align: middle;
	text-align:	center;
	overflow: hidden;
}

.petitionDetail .submitButton {
    width: 100%;
    box-shadow: none;
    background-color: #FEE11D;
    color: #000000 !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0px !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.petitionDetail input.button.submitButton:hover,
.petitionDetail .submitButton:hover {
    background-color: #ffffff;
    color: #ed082e !important;
    opacity: 1;
    transform: translateY(-1px);
}

.petitionDetail .supporter_box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.petitionDetail .supporter_box .swTableRow {
    opacity: 0;
    transform: translateX(-16px);
    animation: supporterFadeIn 250ms ease-out forwards;
}

.petitionDetail .supporter_box .swTableRow:nth-child(2) {
    animation-delay: 400ms;
}

.petitionDetail .supporter_box .swTableRow:nth-child(3) {
    animation-delay: 800ms;
}

.petitionDetail .supporter_box .swTableRow:nth-child(4) {
    animation-delay: 1200ms;
}

.petitionDetail .supporter_box .swTableRow:nth-child(5) {
    animation-delay: 1600ms;
}

@keyframes supporterFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .petitionDetail .supporter_box .swTableRow {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.progressStatus .modSubTitleSlim{
    font-size: 16px;
    float: left;
    margin-right: 10px;
    font-weight: 600;
}
.modSubTitleSlim{
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 800;
}

/* --- layout: content + sidebar inside module --- */

#contentBox .petitionDetail {
    padding: 20px 30px 30px 30px;
}

#contentBox .petitionDetailMain {
    padding: 0 24px 0 0;
}

.petitionDetailLayout.row {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
}

.petitionDetailLayout.row:before,
.petitionDetailLayout.row:after {
    content: none;
    display: none;
}

.petitionDetailMain {
    order: 1;
}

.petitionDetailSidebar {
    order: 2;
}

.petitionDetailExtra {
    order: 3;
}

.petitionDetailSidebar #rightBox {
    float: none;
    width: 100%;
    padding-left: 0;
}

.petitionDetailExtra {
    padding: 24px 0 0 0;
}

/* --- gestapeltes Layout: Bild, Formular, Text, Sidebar --- */

@media screen and (max-width: 1199px) {
    #contentBox .petitionDetail {
        padding: 16px 16px 24px 16px;
    }

    #contentBox .petitionDetailMain {
        padding: 0;
    }

    .petitionDetailLayout.row {
        flex-direction: column;
    }

    .petitionDetailMain,
    .petitionDetailExtra,
    .petitionDetailSidebar {
        width: 100%;
        float: none;
    }

    .petitionDetailExtra {
        order: 2;
        padding-top: 24px;
    }

    .petitionDetailSidebar {
        order: 3;
        margin-top: 24px;
    }
}

@media screen and (max-width: 991px) {
    .petitionDetailMain {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .petitionDetailMain > .topIcons {
        order: 1;
    }

    .petitionDetailMain > .petitionHeader {
        order: 2;
        padding-bottom: 0 !important;
    }

    .petitionDetailMain > .petitionForm {
        order: 3;
    }

    .petitionDetailMain > .petitionText {
        order: 4;
    }

    #contentBox .petitionDetail {
        padding: 12px 10px 20px 10px;
    }
}

@media screen and (max-width: 767px) {
    #contentBox .petitionDetail {
        padding: 12px 8px 16px 8px;
    }

    .petitionDetailMain {
        gap: 20px;
    }

    .petitionDetailSidebar {
        margin-top: 20px;
    }

    .petitionDetailExtra {
        padding-top: 20px;
    }
}

/* --- confirm landing --- */

.petitionConfirmLanding {
    max-width: 760px;
    margin: 0 auto 40px auto;
    padding: 20px 0;
}

.petitionConfirmLanding h1.modTitle {
    margin-bottom: 20px;
}

.petitionConfirmLanding__text,
.petitionConfirmLanding__share,
.petitionConfirmLanding__donate {
    margin-bottom: 30px;
}

.petitionConfirmLanding__shariff {
    margin: 16px 0;
}

.petitionConfirmLanding__copy {
    word-break: break-word;
}

.petitionConfirmLanding__donateBtn {
    display: inline-block;
    background-color: #ed082e;
    color: #ffffff !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.petition-instagram-share {
    margin-top: 10px;
}

/* --- petition sidebar share --- */

.petitionSidebarShare {
    margin: 0 0 20px 0;
    padding: 24px 24px 12px 24px;
    background-color: #F0F0F1;
    max-width: 300px;
}

.petitionSidebarShare__header {
    margin: 0 0 16px 0;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ed082e;
    color: #ffffff;
    border-radius: 100%;
    text-align: center;
    padding: 16px;
    transform: rotate(12deg);
}

.petitionSidebarShare__title {
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 2.2rem;
    color: #ffffff;
    margin-bottom: 8px;
    padding: 0 8px;
}

.petitionSidebarShare__text {
    font-size: 1.6rem;
    line-height: 2.0rem;
}

.petitionSidebarShare__arrow {
    display: none;
}

.petitionSidebarShare__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.petitionSidebarShare__list li {
    margin: 0 0 8px 0;
}

.petitionSidebarShare__link,
.petitionSidebarShare button.petitionSidebarShare__copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    background-color: transparent;
    color: #000000 !important;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    line-height: 1.3;
    padding: 2px 32px;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

.petitionSidebarShare__link:hover,
.petitionSidebarShare button.petitionSidebarShare__copy:hover {
    background: transparent;
    background-color: transparent;
    color: #000000 !important;
    opacity: 1;
}

.petitionSidebarShare__label {
    min-width: 0;
}

.petitionSidebarShare__icon {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

@media screen and (max-width: 1199px) {
    .petitionSidebarShare {
        max-width: 100%;
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 767px) {
    .petitionSidebarShare {
        max-width: 100%;
        flex-direction: column;
        padding: 24px 24px 24px 24px;
    }

    .petitionSidebarShare__header {
        max-width: 240px;
        transform: none;
        position: relative;
    }

    .petitionSidebarShare__arrow {
        display: block;
        position: absolute;
        bottom: 12px;
        width: 48px;
        height: 48px;
    }

    .petitionSidebarShare__list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .petitionSidebarShare__list li {
        margin: 0;
        flex: 0 0 auto;
    }

    .petitionSidebarShare__link,
    .petitionSidebarShare button.petitionSidebarShare__copy {
        position: relative;
        width: auto;
        padding: 4px;
        gap: 0;
        justify-content: center;
    }

    .petitionSidebarShare__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.petitionStickyCta {
    display: none;
}

@media screen and (max-width: 767px) {
    .petitionStickyCta {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        background-color: #FEE11D;
        color: #000000 !important;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 800;
        font-size: 18px;
        line-height: 1.2;
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
        transform: translateY(100%);
        transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .petitionStickyCta.is-visible {
        transform: translateY(0);
    }

    .petitionStickyCta:hover,
    .petitionStickyCta:active {
        background-color: #ffffff;
        color: #ed082e !important;
        opacity: 1;
    }

    body.petitionStickyCtaVisible {
        padding-bottom: 72px;
    }
}
