/*
Theme Name: Vestita.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://useit.ch/
Description: 
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vestita-ch
Tags: 
*/

/* Global */
body {
    overflow-x: clip;
}

a {
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
a:focus,
input:focus,
button:focus {
    outline: none;
}

textarea {
    font-family: var(--wp--preset--font-family--open-sans);
}

.home header .header-wrapper {
    background: none !important;
}

.home-logos {
    background-color: #fff;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.home-logos > * {
    max-width: 100%;
}

header .hero .wp-block-post-featured-image {
    width: min(1300px, 100%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

header .hero .wp-block-post-featured-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    header .hero .wp-block-post-featured-image {
        width: 100%;
    }

    header .hero .wp-block-post-featured-image img {
        width: 100% !important;
        height: clamp(200px, 46vw, 340px) !important;
        object-fit: cover;
        object-position: center center;
    }
}

header .header-description,
header .vestita-header-description {
    width: min(1300px, 100%);
    max-width: min(1300px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1300px) {
    .wp-block-post-content,
    .wp-block-post-title,
    .wp-block-group:has(> .wp-block-post-navigation-link),
    header .header-description,
    header .vestita-header-description,
    .footer-contact,
    .home-logos {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    .wp-block-group:has(> .wp-block-post-navigation-link) {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        column-gap: 20px;
        width: 100%;
    }

    .post-navigation-link-previous,
    .post-navigation-link-next {
        flex: 1 1 0;
        min-width: 0;
    }

    .post-navigation-link-previous {
        text-align: left;
    }

    .post-navigation-link-next {
        text-align: right;
    }

    .home-logos .vestita-logos-slideshow {
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
    }
}

header nav a {
    text-transform: uppercase !important;
}

header .wp-block-site-logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

header .custom-logo-link {
    display: block;
    width: min(370px, 100%);
    margin-left: auto;
    margin-right: auto;
}

header .custom-logo {
    display: block;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

header .logo-nav > .wp-block-navigation {
    gap: 10px !important;
}

header .logo-nav .wp-block-navigation-item__content {
    display: inline-block;
    padding: 7px 12px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header .logo-nav .wp-block-navigation-item__content:hover,
header .logo-nav .wp-block-navigation-item__content:focus-visible,
header .logo-nav .current-menu-item > .wp-block-navigation-item__content,
header .logo-nav .current-menu-ancestor > .wp-block-navigation-item__content {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

header .logo-nav .wp-block-navigation__responsive-container-open,
header .logo-nav .wp-block-navigation__responsive-container-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

header .logo-nav .wp-block-navigation-submenu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0;
}

header .logo-nav .wp-block-navigation .wp-block-navigation-submenu__toggle svg {
    width: 12px;
    height: 12px;
}

header .logo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 8px;
}

header .logo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
header .logo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    padding-top: 0;
    gap: 4px;
}

@media (max-width: 1099px) {
    header .logo-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: inline-flex;
    }

    header .logo-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

@media (min-width: 1100px) {
    header .logo-nav .wp-block-navigation__responsive-container-open {
        display: none;
    }

    header .logo-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
    }

    header .logo-nav .wp-block-navigation__responsive-container-content {
        padding: 0;
    }

    header .logo-nav .wp-block-navigation__responsive-container-close {
        display: none;
    }

    header .logo-nav .wp-block-navigation__container {
        flex-wrap: nowrap;
    }

    header .logo-nav .wp-block-navigation__container > .wp-block-navigation-item {
        flex-shrink: 0;
    }

    header .logo-nav .wp-block-navigation-item__content,
    header .logo-nav .wp-block-navigation-item__label {
        white-space: nowrap;
    }
}

/* Mobile menu: three bars, panel slides in from the right. */
.mobile-nav {
    display: none;
}

.mobile-nav__toggle {
    position: relative;
    z-index: 1006;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-nav__bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 2px;
    margin-left: -13px;
    margin-top: -1px;
    background-color: #000;
    transition: transform 400ms cubic-bezier(0.84, 0.06, 0.52, 1.8), opacity 200ms ease;
}

.mobile-nav__bar--1 {
    transform: translateY(-7px);
}

.mobile-nav__bar--3 {
    transform: translateY(7px);
}

.mobile-nav.is-open .mobile-nav__bar--1 {
    transform: rotate(40deg);
}

.mobile-nav.is-open .mobile-nav__bar--3 {
    transform: rotate(-40deg);
}

.mobile-nav.is-open .mobile-nav__bar--2 {
    opacity: 0;
}

.mobile-nav__layer,
.mobile-nav__panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 0;
    height: 100dvh;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.mobile-nav__layer--1 {
    z-index: 1001;
    background: #e6dccb;
    transition: width 500ms cubic-bezier(0.62, 0.04, 0.3, 1.56) 50ms, opacity 500ms ease 50ms;
}

.mobile-nav__layer--2 {
    z-index: 1002;
    background: #f7f3ec;
    transition: width 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56) 100ms, opacity 600ms ease 100ms;
}

.mobile-nav__panel {
    z-index: 1005;
    display: flex;
    flex-direction: column;
    background: #f7f3ec;
    transition: width 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56) 100ms, opacity 600ms ease 100ms;
}

.mobile-nav.is-open .mobile-nav__layer,
.mobile-nav.is-open .mobile-nav__panel {
    width: min(86%, 360px);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
    overflow-y: auto;
}

.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 88px 20px 40px;
}

.mobile-nav__item {
    margin: 0;
}

.mobile-nav__item--submenu {
    padding-left: 16px;
}

.mobile-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    color: #000;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-nav__item--submenu .mobile-nav__link {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible,
.mobile-nav__item.current-menu-item .mobile-nav__link,
.mobile-nav__item.current-menu-ancestor > .mobile-nav__link {
    background-color: #000;
    color: #fff;
}

html.mobile-nav-open,
html.mobile-nav-open body {
    overflow: hidden;
}

@media (max-width: 1099px) {
    header .logo-nav {
        position: relative;
        padding-left: 0 !important;
        padding-right: 8px !important;
    }

    header .logo-nav .wp-block-site-logo {
        justify-content: flex-start;
        width: auto;
        max-width: calc(100% - 56px);
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left;
    }

    header .logo-nav .custom-logo-link,
    header .logo-nav .custom-logo {
        width: min(240px, calc(100vw - 96px));
        margin-left: 0;
        margin-right: 0;
    }

    header .logo-nav:has(.mobile-nav) .wp-block-navigation {
        display: none !important;
    }

    header .mobile-nav {
        display: block;
        height: 0;
        margin: 0 !important;
    }

    header .mobile-nav__toggle {
        position: absolute;
        top: 35%;
        right: 8px;
        transform: translateY(-50%);
    }
}

@media (min-width: 1100px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav__bar,
    .mobile-nav__layer,
    .mobile-nav__panel {
        transition: none;
    }
}

/* Accordion */
.wp-block-accordion:not(.has-text-color) {
    color: #c2a78a;
}

.wp-block-accordion .wp-block-accordion-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid currentColor;
}

.wp-block-accordion .wp-block-accordion-item:last-child {
    border-bottom: 1px solid currentColor;
}

.wp-block-accordion .wp-block-accordion-heading {
    margin: 0;
}

.wp-block-accordion .wp-block-accordion-heading__toggle {
    padding: 18px 0 !important;

    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible .wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-title {
    padding-right: 16px;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 0;
    line-height: 0;
    transform: none !important;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-top: -2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::before {
    margin-top: 2px;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.wp-block-accordion .wp-block-accordion-panel {
    padding: 0 0 18px !important;
}

.wp-block-accordion .wp-block-accordion-panel > :first-child {
    margin-top: 0;
}

.wp-block-accordion .wp-block-accordion-panel > :last-child {
    margin-bottom: 0;
}


/* Kollektion: keep editorial columns inside the viewport. */
.width-110,
.width-110-right {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.width-40-right,
.width-40-left {
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 100%;
}

.wp-block-post-content .wp-block-image[style*="margin-left:-"],
.wp-block-post-content .wp-block-image[style*="margin-right:-"],
.wp-block-post-content .wp-block-heading[style*="margin-left:-"],
.wp-block-post-content .wp-block-heading[style*="margin-right:-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

.wp-block-button a {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-button a:hover {
    background: #ece3d2 !important;
    color: #c2a78a !important;
}

@media (max-width: 781px) {
    .wp-block-columns + .wp-block-buttons {
        margin-top: 40px !important;
    }

    .wp-block-column[style*="padding-top:100px"],
    .wp-block-column[style*="padding-top:200px"] {
        padding-top: 40px !important;
    }

    .wp-block-columns > .wp-block-column:last-child {
        padding-bottom: 40px !important;
    }

    .wp-block-spacer[style*="height:100px"] {
        height: 40px !important;
    }

    .wp-block-image[style*="margin-top:100px"],
    .wp-block-image[style*="margin-top:150px"],
    .wp-block-heading[style*="margin-top:100px"],
    .wp-block-heading[style*="margin-top:150px"] {
        margin-top: 40px !important;
    }

    .wp-block-image + .wp-block-heading,
    .wp-block-column + .wp-block-column > .wp-block-heading:first-child:not(.vestita-typo--overlay) {
        margin-top: 32px !important;
    }
}

/* Team grid */
.vestita-team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
}

.vestita-team-item {
    width: calc((100% - 200px) / 3);
    min-width: 0;
    margin: 0;
    transition: opacity 0.35s ease;
}

.vestita-team-grid.is-spotlight .vestita-team-item:not(.is-active) {
    opacity: 0.35;
}

.vestita-team-item__image {
    position: relative;
    margin: 0 0 1rem;
}

.vestita-team-item__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.vestita-team-item__trigger:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 4px;
}

.vestita-team-item__photo {
    display: block;
    width: 100%;
    height: auto;
}

.vestita-team-item__bio {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 1.25rem 1rem 1rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vestita-team-item.is-active .vestita-team-item__bio {
    opacity: 1;
    visibility: visible;
}

.vestita-team-item__bio-text {
    display: block;
    max-height: 100%;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
}

.vestita-team-item__position,
.vestita-team-item__email {
    margin: 0;
}

.vestita-team-item__email:last-child,
.vestita-team-item__position:last-child {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .vestita-team-grid {
        gap: 40px 28px;
    }

    .vestita-team-item {
        width: calc((100% - 28px) / 2);
    }
}

@media (max-width: 600px) {
    .vestita-team-grid {
        gap: 32px;
    }

    .vestita-team-item {
        width: 100%;
    }

    .vestita-team-item__bio {
        padding: 1.5rem 1.1rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vestita-team-item,
    .vestita-team-item__bio {
        transition: none;
    }
}

/* CF7 — Private Shopping form */
.vestita-cf7 {
    box-sizing: border-box;
    color: #000;
}

.vestita-cf7 p {
    margin: 0;
}

.vestita-cf7__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.vestita-cf7__field {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

.vestita-cf7__field .wpcf7-form-control-wrap {
    display: block;
}

.vestita-cf7__field input[type="text"],
.vestita-cf7__field input[type="email"],
.vestita-cf7__field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.4;
}

.vestita-cf7__field input::placeholder {
    opacity: 1;
}

.vestita-cf7__field input:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7 p.vestita-cf7__label {
    margin: 8px 0 14px;
}

p.vestita-cf7__radio {
    margin: 24px 0;
}

.vestita-cf7__radio .wpcf7-form-control-wrap {
    display: block;
}

.vestita-cf7__radio .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.vestita-cf7__radio .wpcf7-list-item {
    margin: 0;
}

.vestita-cf7__radio .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
}

.vestita-cf7__radio input[type="radio"] {
    margin: 0;
    accent-color: #000;
}

.vestita-cf7__field--textarea {
    margin-top: 16px;
}

.vestita-cf7__field--textarea textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.vestita-cf7__field--textarea textarea::placeholder {
    opacity: 1;
}

.vestita-cf7__field--textarea textarea:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 36px;
}

.vestita-cf7__response-text {
    flex: 1 1 280px;
    max-width: 520px;
    color: #000;
    font-size: 14px;
    line-height: 1.5;
}

.vestita-cf7__submit {
    flex: 0 0 auto;
    margin: 0;
}

.vestita-cf7__submit input[type="submit"] {
    display: inline-block;
    min-width: 150px;
    padding: 12px 40px;
    border: 1px solid #c2a78a;
    border-radius: 8px;
    background: #c2a78a;
    color: #000;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vestita-cf7__submit input[type="submit"]:hover,
.vestita-cf7__submit input[type="submit"]:focus-visible {
    background: #b89678;
    border-color: #b89678;
    color: #000;
}

.vestita-cf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    position: absolute;
    bottom: -10px;
    background: #8b2e2e;
}

.vestita-cf7 .wpcf7-response-output {
    margin: 1.25em 0 0;
    padding: 0;
    border: 0;
    color: #000;
    font-size: 14px;
}

.vestita-cf7 .wpcf7-spinner {
    display: block;
    margin: 0 auto;
}

/* CF7 — Kontakt form */
.wp-block-contact-form-7-contact-form-selector:has(.vestita-cf7--kontakt) {
    max-width: none;
}

.vestita-cf7--kontakt .vestita-cf7__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 56px);
    gap: 16px;
    align-items: stretch;
}

.vestita-cf7--kontakt .vestita-cf7__field {
    flex: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    height: 100%;
}

.vestita-cf7--kontakt .vestita-cf7__field--box .wpcf7-form-control-wrap {
    flex: 1;
    display: flex;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--message {
    grid-column: 3;
    grid-row: 1 / 3;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--message .wpcf7-form-control-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vestita-cf7--kontakt .vestita-cf7__field--box input[type="text"],
.vestita-cf7--kontakt .vestita-cf7__field--box input[type="email"],
.vestita-cf7--kontakt .vestita-cf7__field--box input[type="tel"] {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.4;
}

.vestita-cf7--kontakt .vestita-cf7__field--box input:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7--kontakt .vestita-cf7__field--message textarea {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #CCBBAF;
    border-radius: 8px;
    background: rgba(236, 227, 210, 0.45);
    font: inherit;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
}

.vestita-cf7--kontakt .vestita-cf7__field--message textarea:focus {
    outline: none;
    border-color: #c2a78a;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center {
    margin-top: 28px;
    text-align: center;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"] {
    min-width: 150px;
    padding: 12px 40px;
    background: #c2a78a;
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid #c2a78a;
    font-size: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"]:hover,
.vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"]:focus-visible {
    background: #b89678;
    border-color: #b89678;
    color: #000;
}

@media (max-width: 768px) {
    .vestita-cf7--kontakt .vestita-cf7__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--message {
        grid-column: auto;
        grid-row: auto;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="text"],
    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="email"],
    .vestita-cf7--kontakt .vestita-cf7__field--box input[type="tel"] {
        flex: none;
        height: 56px;
    }

    .vestita-cf7--kontakt .vestita-cf7__field--message textarea {
        flex: none;
        min-height: 180px;
        height: 180px;
    }
}

@media (max-width: 640px) {
    .vestita-cf7__row {
        gap: 16px;
        margin-bottom: 16px;
    }

    .vestita-cf7 p.vestita-cf7__field {
        flex: 1 1 100%;
        margin-bottom: 0;
    }

    .vestita-cf7--kontakt .vestita-cf7__field {
        margin-bottom: 0;
    }

    .vestita-cf7__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .vestita-cf7__response-text {
        flex: none;
        max-width: none;
    }

    .vestita-cf7__submit input[type="submit"] {
        width: 100%;
    }

    .vestita-cf7--kontakt .vestita-cf7__submit--center input[type="submit"] {
        width: 100%;
    }
}

/* Footer */
footer {
    margin: 0;
    padding: 0;
}
.footer-contact {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    column-gap: 2.5rem;
    box-sizing: border-box;
    padding-bottom: 3.5rem !important;
}

.footer-contact > p,
.footer-contact > .wp-block-group {
    flex: 1 1 0;
    width: auto;
    max-width: none !important;
    min-width: 0;
    margin: 0;
}

.footer-contact > .wp-block-group {
    position: static;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-contact > p a {
    display: inline;
    padding: 0;
    line-height: inherit;
}

.footer-contact > .wp-block-group > p:has(a) {
    position: absolute;
    right: 20px;
    bottom: 0.35rem;
    width: auto;
    max-width: calc(100% - 40px);
    margin: 0;
    text-align: right;
}

@media (min-width: 1301px) {
    .footer-contact > .wp-block-group > p:has(a) {
        right: var(--wp--style--root--padding-right, 0px);
    }
}

@media (max-width: 782px) {
    footer .footer-contact {
        flex-wrap: wrap !important;
        row-gap: 24px !important;
    }

    footer .footer-contact > p,
    footer .footer-contact > .wp-block-group {
        flex: 1 1 100%;
    }
}

.footer-contact a {
    display: inline-block;
    padding: 10px 0;
    line-height: 1.3;
}

@media (max-width: 440px) {
    .footer-contact > .wp-block-group > p:has(a) {
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
    }
}
.vestita-footer-image {
    max-width: 100%;
}
.vestita-footer-image img {
    width: 100%;
    height: auto;
}

li.wp-social-link-facebook,
li.wp-social-link-instagram,
li.wp-social-link-linkedin {
    background: none !important;
}
.wp-social-link-facebook a,
.wp-social-link-instagram a,
.wp-social-link-linkedin a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
}
.wp-social-link-facebook a::before,
.wp-social-link-instagram a::before,
.wp-social-link-linkedin a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    background: url(images/fb-icon.svg) no-repeat center center;
    background-size: cover !important;
}
.wp-social-link-instagram a::before {
    background: url(images/insta-icon.svg) no-repeat center center !important;
    background-size: cover !important;
}
.wp-social-link-linkedin a::before {
    background: url(images/linkedin-icon.svg) no-repeat center center !important;
    background-size: cover !important;
}
.wp-social-link-facebook a svg,
.wp-social-link-instagram a svg,
.wp-social-link-linkedin a svg {
    display: none;
}

/* Typography labels (replaces typo_*.svg images) */
.vestita-typo,
.is-style-vestita-typo,
.is-style-vestita-typo-stack {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-style: normal;
    color: #c9b59d;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: none;
}

.vestita-typo,
.is-style-vestita-typo {
    font-size: clamp(2.8rem, 7.4vw, 6rem);
    margin-top: 0;
    margin-bottom: 0;
}

.vestita-typo--stack,
.is-style-vestita-typo-stack {
    font-size: clamp(3.6rem, 7vw, 6.5rem);
    line-height: 1.14;
}

.width-40-right:has(.vestita-typo--overlay) {
    overflow: visible;
}

.vestita-typo--overlay {
    display: block;
    width: auto;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
    font-size: clamp(2.4rem, 4.6vw, 5.75rem);
    line-height: 1.14;
}

@media (max-width: 640px) {
    .vestita-typo,
    .is-style-vestita-typo {
        font-size: clamp(2.1rem, 9vw, 3.1rem);
    }

    .vestita-typo--stack,
    .is-style-vestita-typo-stack {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
        line-height: 1.12;
    }

    .vestita-typo--overlay {
        margin-top: -48px !important;
        margin-left: 0 !important;
        font-size: clamp(2.4rem, 9vw, 3.2rem);
    }
}

@media (max-width: 781px) {
    .vestita-typo--overlay {
        margin-top: -48px !important;
        margin-left: 0 !important;
        max-width: 100%;
    }
}

/* Adventskalender */
.vestita-advent {
    margin: 2.5rem 0 4rem;
}

.vestita-advent__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1.25rem;
    margin: 0 0 1.25rem;
}

.vestita-advent__heading-label {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1;
    color: #c9b59d;
}

.vestita-advent__meta,
.vestita-advent__date {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #8a7b6a;
}

.vestita-advent__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(220px, 32%);
    gap: 1.25rem 2rem;
    align-items: start;
}

.vestita-advent__item--today {
    padding: 1.5rem;
    background: #f7f3ec;
}

.vestita-advent__item--past {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(32, 32, 30, 0.12);
}

.vestita-advent__section--past {
    margin-top: 3rem;
}

.vestita-advent__title {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

.vestita-advent__text > *:first-child {
    margin-top: 0;
}

.vestita-advent__text > *:last-child {
    margin-bottom: 0;
}

.vestita-advent__photo {
    margin: 0;
}

.vestita-advent__image {
    display: block;
    width: 100%;
    height: auto;
}

.vestita-advent__notice {
    margin: 0;
}

.vestita-advent__preview {
    margin: 0;
    padding: 0.7rem 1.25rem;
    background: #f7f3ec;
    border-bottom: 1px solid #c9b59d;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #3a332c;
    text-align: center;
}

@media (max-width: 700px) {
    .vestita-advent__item {
        grid-template-columns: 1fr;
    }

    .vestita-advent__photo {
        max-width: 220px;
    }
}