* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--color-bg);
    color: var(--color-text);
}

main {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-surface);
}

section {
    padding: 55px 24px;
}

.hero {
    min-height: 90vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #f2ebe3,
            var(--color-surface)
        );
}

.hero h1 {
    margin: 10px 0;

    font-size: clamp(
        3rem,
        12vw,
        5rem
    );

    font-weight: 400;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.date {
    font-size: 1.35rem;
    margin-top: 10px;
}

h2 {
    font-size: 2rem;
    font-weight: 500;

    margin-top: 0;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

p {
    font-size: 1.08rem;
    line-height: 1.7;
}

.guest-card {
    margin: 32px 0;

    padding: 24px;

    border-radius: 18px;

    background: var(--color-bg);
}

.question {
    font-weight: 600;
    margin-top: 26px;
}

.option {
    display: block;

    padding: 9px 0;

    font-size: 1rem;

    cursor: pointer;
}

.option input {
    margin-right: 10px;
}

.textarea-label {
    display: block;

    margin-top: 25px;

    line-height: 1.5;
}

textarea {
    display: block;

    width: 100%;

    margin-top: 10px;

    padding: 12px;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    font: inherit;

    resize: vertical;
}

button {
    width: 100%;

    padding: 16px;

    border: 0;
    border-radius: 12px;

    font-size: 1.05rem;
    font-weight: 600;

    background: var(--color-button-bg);
    color: var(--color-button-text);

    cursor: pointer;
}

.success {
    margin: 20px 0;

    padding: 16px;

    border-radius: 12px;

    background: #e7f3e8;

    line-height: 1.5;
}

.hero-image {
    width: 100%;
    max-height: 52vh;
    object-fit: cover;

    border-radius: 18px;

    margin-bottom: 28px;

    display: block;
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-image {
        max-height: 48vh;
        border-radius: 14px;
        margin-bottom: 24px;
    }
}

.witness-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.witness-card {
    text-align: center;
    padding: 22px;
    border-radius: 18px;
    background: var(--color-bg);
}

.witness-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: block;
}

.witness-role {
    color: var(--color-secondary);
    margin-top: -6px;
}

.witness-phone {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.witness-phone:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .witness-grid {
        grid-template-columns: 1fr;
    }

    .witness-photo {
        width: 140px;
        height: 140px;
    }
}

.cms-block {
    padding-top: 40px;
    padding-bottom: 40px;
}

.cms-body {
    white-space: pre-line;
}

.cms-image-grid {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.cms-image-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.cms-image-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.cms-image-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cms-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

@media (max-width: 600px) {
    .cms-image-grid[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .cms-image-grid[data-columns="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.text-image-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.text-image-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.text-image-content {
    min-width: 0;
}

@media (max-width: 600px) {
    .text-image-layout {
        grid-template-columns: 1fr;
    }

    .text-image-layout.right .text-image-content {
        order: 2;
    }

    .text-image-layout.right .text-image-photo {
        order: 1;
    }
}

/* Mobile Optimierung */
@media (max-width: 640px) {

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    main,
    .content,
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }

    section,
    .cms-block {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.05;
    }

    h2 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-image {
        width: 100%;
        max-height: 60vh;
        object-fit: cover;
    }

    input,
    textarea,
    select,
    button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    input,
    textarea,
    select {
        min-height: 46px;
    }

    textarea {
        min-height: 110px;
    }

    button,
    .button,
    .calendar-button {
        min-height: 48px;
        padding: 12px 16px;
    }

    .image-grid,
    .cms-image-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .image-grid img,
    .cms-image-grid img {
        width: 100%;
        height: auto;
        max-height: 65vh;
        object-fit: cover;
    }

    .text-image,
    .cms-text-image {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .witness-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .witness-card img,
    .witness-photo {
        max-height: 360px;
        object-fit: cover;
    }

    .rsvp-form label {
        display: block;
        margin-bottom: 14px;
    }
}

/* RSVP Anwesenheit: untereinander, Herz links, Text rechts */

.attendance-options {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
    margin-bottom: 22px;
}

.attendance-option {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100%;
    gap: 10px;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: left !important;
    line-height: 1.35;
}

.attendance-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    pointer-events: none;
}

.attendance-option .heart-icon {
    display: inline-flex !important;
    flex: 0 0 24px;
    width: 24px;
    align-items: center;
    justify-content: center;
}

.attendance-option .heart-icon::before {
    content: "♡";
    font-size: 1.45rem;
    line-height: 1;
}

.attendance-option input[type="radio"]:checked + .heart-icon::before {
    content: "♥";
}

.attendance-option > span:last-child {
    display: inline-block;
    width: auto;
    text-align: left;
}

@media (max-width: 640px) {
    .attendance-options {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .attendance-option {
        width: auto !important;
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 1rem;
    }
}

/* Finale RSVP-Korrektur */

.attendance-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.attendance-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
}

.attendance-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    pointer-events: none;
}

.attendance-option .heart-icon {
    display: inline-flex;
    width: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
}

.attendance-option .heart-icon::before {
    content: "♡";
    font-size: 1.45rem;
    line-height: 1;
}

.attendance-option input[type="radio"]:checked + .heart-icon::before {
    content: "♥";
}

/* Normale Radio-Buttons, z.B. Essenswunsch */
.option input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    margin-right: 10px;
    vertical-align: middle;
}

@media (max-width: 640px) {

    .attendance-option {
        width: auto !important;
        font-size: 1rem;
    }

    .option input[type="radio"] {
        width: 16px !important;
        height: 16px !important;
    }
}


/* Essenswunsch mit Herz-Auswahl */

.meal-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
}

.meal-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    pointer-events: none;
}

.meal-option .heart-icon {
    display: inline-flex;
    width: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
}

.meal-option .heart-icon::before {
    content: "♡";
    font-size: 1.45rem;
    line-height: 1;
}

.meal-option input[type="radio"]:checked + .heart-icon::before {
    content: "♥";
}

@media (max-width: 640px) {
    .meal-option {
        width: auto !important;
        font-size: 1rem;
    }
}



/* CMS Bildformen */

.image-shape-rectangle {
    border-radius: 0;
}

.image-shape-rounded {
    border-radius: 18px;
}

.image-shape-circle {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.image-shape-oval {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 50%;
}


/* Rich-Text Schriftgrößen */

.cms-body font[size="2"] {
    font-size: 0.85em;
}

.cms-body font[size="3"] {
    font-size: 1em;
}

.cms-body font[size="5"] {
    font-size: 1.35em;
}


/* Nicht-destruktive Bildausschnitte */

.cms-crop-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cms-crop-frame.image-shape-rectangle,
.cms-crop-frame.image-shape-rounded {
    aspect-ratio: 4 / 3;
}

.cms-crop-frame.image-shape-circle {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.cms-crop-frame.image-shape-oval {
    aspect-ratio: 4 / 5;
    border-radius: 50%;
}

.cms-crop-frame.image-shape-rounded {
    border-radius: 18px;
}

.cms-crop-frame.image-shape-rectangle {
    border-radius: 0;
}

.cms-crop-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform-origin: center center;
}


/* Titelbild-Ausschnitt */

.hero-crop-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    max-height: 60vh;
}

.hero-crop-frame .hero-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: cover;
    transform-origin: center center;
}


/* Titelbild-Crop: identisch zur Vorschau im Backend */

.hero-crop-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: none;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 28px;
}

.hero-crop-frame .hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    max-height: none;
    margin: 0;

    border-radius: 0;

    object-fit: cover;
    transform-origin: center center;
}

@media (max-width: 600px) {

    .hero-crop-frame {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .hero-crop-frame .hero-image {
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
    }
}


/* Titelbild-Seitenverhältnisse */

.hero-crop-frame.hero-ratio-43 {
    aspect-ratio: 4 / 3;
}

.hero-crop-frame.hero-ratio-32 {
    aspect-ratio: 3 / 2;
}

.hero-crop-frame.hero-ratio-169 {
    aspect-ratio: 16 / 9;
}


/* Design-Akzentfarben */

h1,
h2,
h3 {
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
}

.eyebrow,
.hint,
.date {
    color: var(--color-secondary);
}

.heart-icon::before {
    color: var(--color-primary);
}

.location-card,
.witness-card,
.guest-card {
    border-color: var(--color-border);
}


/* Typografie & Kartenoptik */

body {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: clamp(3.2rem, 11vw, 5.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.015em;
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 500;
    line-height: 1.3;
}

p,
.cms-body {
    line-height: 1.8;
}

section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.guest-card,
.location-card,
.witness-card {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.035);
}

.guest-card {
    padding: 28px;
}

.witness-card {
    padding: 26px;
}

.location-card {
    padding: 24px;
}

.eyebrow {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
}

.date {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {

    section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .guest-card,
    .location-card,
    .witness-card {
        border-radius: 16px;
    }

    .guest-card {
        padding: 20px;
    }
}


/* Deko-Blöcke */

.decoration-block {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.decoration-color-primary {
    color: var(--color-primary);
}

.decoration-color-secondary {
    color: var(--color-secondary);
}

.decoration-line {
    display: block;
    width: min(180px, 32vw);
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.decoration-line.short {
    width: min(90px, 20vw);
}

.decoration-symbol {
    font-size: 1.1rem;
    line-height: 1;
}

.decoration-floral-symbol {
    font-size: 2.6rem;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.decoration-ornament .decoration-symbol {
    font-size: 1.35rem;
}

@media (max-width: 640px) {
    .decoration-block {
        padding: 16px 18px;
        gap: 10px;
    }

    .decoration-line {
        width: min(110px, 28vw);
    }

    .decoration-line.short {
        width: min(65px, 18vw);
    }

    .decoration-floral-symbol {
        font-size: 2.2rem;
    }
}


/* Seitliche Ranken an Inhaltsblöcken */

.block-decoration-shell {
    position: relative;
}

.side-decoration {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 78px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.78;
}

.side-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
}

.side-decoration-left {
    left: 2px;
}

.side-decoration-right {
    right: 2px;
    transform: scaleX(-1);
}

.side-color-primary {
    color: var(--color-primary);
}

.side-color-secondary {
    color: var(--color-secondary);
}

.side-position-left .side-decoration-right {
    display: none;
}

.side-position-right .side-decoration-left {
    display: none;
}

.side-position-both .side-decoration-left,
.side-position-both .side-decoration-right {
    display: block;
}

/* Inhalt bleibt über der Dekoration */

.block-decoration-shell > section {
    position: relative;
    z-index: 1;
}

/* Etwas Platz, damit die Ranken nicht in den Text laufen */

.block-decoration-shell:not(.side-decoration-none)
> section {
    padding-left: 88px;
    padding-right: 88px;
}

.side-position-left:not(.side-decoration-none)
> section {
    padding-right: 24px;
}

.side-position-right:not(.side-decoration-none)
> section {
    padding-left: 24px;
}


/* Mobile */

@media (max-width: 640px) {

    .side-decoration {
        width: 48px;
        height: 100%;
        top: 0;
        bottom: 0;
        opacity: 0.58;
    }

    .side-decoration-left {
        left: 0;
    }

    .side-decoration-right {
        right: 0;
    }

    .block-decoration-shell:not(.side-decoration-none)
    > section {
        padding-left: 50px;
        padding-right: 50px;
    }

    .side-position-left:not(.side-decoration-none)
    > section {
        padding-right: 18px;
    }

    .side-position-right:not(.side-decoration-none)
    > section {
        padding-left: 18px;
    }
}


/* Deko-Modus: Rahmen */

.side-decoration-frame {
    color: var(--color-secondary);
    padding: 18px;
}

.side-decoration-frame.side-color-primary {
    color: var(--color-primary);
}

.side-decoration-frame.side-color-secondary {
    color: var(--color-secondary);
}

.side-decoration-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid currentColor;
    border-radius: 18px;
    opacity: 0.72;
    pointer-events: none;
    z-index: 0;
}

.side-decoration-frame::after {
    content: "♡";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 12px;
    background: var(--color-bg);
    color: currentColor;
    font-size: 1.2rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

/* Rahmen braucht nicht den großen Platz für Seitenranken */

.block-decoration-shell.side-decoration-frame > section {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 640px) {
    .side-decoration-frame {
        padding: 12px;
    }

    .side-decoration-frame::before {
        inset: 4px;
        border-radius: 14px;
    }

    .block-decoration-shell.side-decoration-frame > section {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* =========================================================
   Deko Variante A – modulare Ranken, niemals gestreckt
   ========================================================= */

.side-decoration {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 58px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* alte lange SVGs nicht mehr anzeigen */
.side-decoration > svg {
    display: none !important;
}

.decor-segment {
    flex: 0 0 150px;
    width: 58px;
    height: 150px;
    color: inherit;
}

.decor-segment svg {
    display: block;
    width: 100%;
    height: 100%;
}

.side-decoration-right {
    transform: scaleX(-1) !important;
}


/* Rahmen */

.side-position-frame {
    padding: 28px;
}

.decor-frame {
    position: absolute;
    inset: 5px;
    z-index: 0;
    pointer-events: none;
    color: inherit;
}

.decor-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid currentColor;
    border-radius: 16px;
    opacity: .32;
}

.decor-frame-side {
    position: absolute;
    overflow: hidden;
    display: flex;
}

.decor-frame-left,
.decor-frame-right {
    top: 0;
    bottom: 0;
    width: 54px;
    flex-direction: column;
}

.decor-frame-left {
    left: 0;
}

.decor-frame-right {
    right: 0;
    transform: scaleX(-1);
}

.decor-frame-top,
.decor-frame-bottom {
    left: 0;
    right: 0;
    height: 54px;
    flex-direction: row;
}

.decor-frame-top {
    top: 0;
}

.decor-frame-bottom {
    bottom: 0;
    transform: scaleY(-1);
}

.decor-frame-side .decor-segment {
    flex: 0 0 auto;
}

.decor-frame-left .decor-segment,
.decor-frame-right .decor-segment {
    width: 54px;
    height: 145px;
}

.decor-frame-top .decor-segment,
.decor-frame-bottom .decor-segment {
    width: 145px;
    height: 54px;
}


/* Rahmen braucht eigenen Innenabstand */

.block-decoration-shell.side-position-frame > section {
    padding-left: 32px !important;
    padding-right: 32px !important;
    padding-top: 26px;
    padding-bottom: 26px;
}


@media (max-width: 640px) {

    .side-decoration {
        width: 42px;
    }

    .decor-segment {
        width: 42px;
        height: 125px;
        flex-basis: 125px;
    }

    .side-position-frame {
        padding: 18px;
    }

    .decor-frame-left,
    .decor-frame-right {
        width: 38px;
    }

    .decor-frame-top,
    .decor-frame-bottom {
        height: 38px;
    }

    .decor-frame-left .decor-segment,
    .decor-frame-right .decor-segment {
        width: 38px;
        height: 115px;
    }

    .decor-frame-top .decor-segment,
    .decor-frame-bottom .decor-segment {
        width: 115px;
        height: 38px;
    }

    .decor-frame::before {
        inset: 12px;
        border-radius: 12px;
    }

    .block-decoration-shell.side-position-frame > section {
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}



/* =========================================================
   Variante A – botanische Papeterie V2
   ========================================================= */

.side-decoration {
    width: 72px !important;
    opacity: .82 !important;
}

.side-decoration-left {
    left: 4px !important;
}

.side-decoration-right {
    right: 4px !important;
}


/* Ein Segment behält immer seine Proportionen */

.decor-segment-vertical {
    width: 72px;
    height: 205px;
    min-height: 205px;
    flex: 0 0 205px;
}

.decor-segment-vertical svg {
    display: block !important;
    width: 100%;
    height: 100%;
}


/* leichte Variation der Wiederholungen */

.side-decoration .decor-segment-vertical:nth-child(2n) {
    transform: scaleX(.94);
}

.side-decoration .decor-segment-vertical:nth-child(3n) {
    transform: translateX(3px);
}


/* Rahmen */

.decor-frame {
    inset: 2px !important;
    overflow: visible;
}

.decor-frame::before {
    inset: 25px !important;
    border-width: 1px !important;
    opacity: .24 !important;
}


.decor-frame-left,
.decor-frame-right {
    width: 72px !important;
    top: 36px !important;
    bottom: 36px !important;
}

.decor-frame-top,
.decor-frame-bottom {
    height: 62px !important;
    left: 38px !important;
    right: 38px !important;
}


/* horizontale Module */

.decor-segment-horizontal {
    width: 210px;
    height: 62px;
    min-width: 210px;
    flex: 0 0 210px;
}

.decor-segment-horizontal svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* florale Eckelemente */

.decor-frame-corner {
    position: absolute;
    width: 92px;
    height: 92px;
    z-index: 3;
    pointer-events: none;
}

.decor-frame-corner svg {
    display: block;
    width: 100%;
    height: 100%;
}

.decor-frame-corner-tl {
    top: 0;
    left: 0;
}

.decor-frame-corner-tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.decor-frame-corner-bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.decor-frame-corner-br {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}


/* Im Rahmen etwas mehr Abstand zum Inhalt */

.block-decoration-shell.side-position-frame > section {
    padding: 42px 42px !important;
}


/* Seitendeko bekommt genügend Luft zum Text */

.block-decoration-shell:not(.side-decoration-none):not(.side-position-frame) > section {
    padding-left: 86px !important;
    padding-right: 86px !important;
}

.side-position-left:not(.side-decoration-none) > section {
    padding-right: 24px !important;
}

.side-position-right:not(.side-decoration-none) > section {
    padding-left: 24px !important;
}


/* Mobile */

@media (max-width: 640px) {

    .side-decoration {
        width: 54px !important;
        opacity: .72 !important;
    }

    .side-decoration-left {
        left: 1px !important;
    }

    .side-decoration-right {
        right: 1px !important;
    }

    .decor-segment-vertical {
        width: 54px;
        height: 165px;
        min-height: 165px;
        flex-basis: 165px;
    }

    .block-decoration-shell:not(.side-decoration-none):not(.side-position-frame) > section {
        padding-left: 62px !important;
        padding-right: 62px !important;
    }

    .side-position-left:not(.side-decoration-none) > section {
        padding-right: 20px !important;
    }

    .side-position-right:not(.side-decoration-none) > section {
        padding-left: 20px !important;
    }


    /* mobiler Rahmen */

    .decor-frame-corner {
        width: 64px;
        height: 64px;
    }

    .decor-frame-left,
    .decor-frame-right {
        width: 50px !important;
        top: 28px !important;
        bottom: 28px !important;
    }

    .decor-frame-top,
    .decor-frame-bottom {
        height: 46px !important;
        left: 28px !important;
        right: 28px !important;
    }

    .decor-segment-horizontal {
        width: 175px;
        min-width: 175px;
        height: 46px;
        flex-basis: 175px;
    }

    .block-decoration-shell.side-position-frame > section {
        padding: 34px 30px !important;
    }

    .decor-frame::before {
        inset: 18px !important;
    }
}

