/*
Theme Name: Zu meiner Zeit
Theme URI: https://zumeinerzeit.at
Author: Zuzana Bodnarova
Description: Custom WordPress theme generated from the static landing page. All home sections are available as ACF Pro blocks and assets are kept lightweight and local.
Version: 1.0.0
*/
@charset "UTF-8";

/* ******************
 * CSS Variablen
 */

:root {
    --base-bg: #fffffe;
    --base: rgb(34, 34, 35);
    --base-rgb: 34, 34, 35;
    --accent: rgb(201, 171, 129);
}



/* ******************
 * LOCAL GOOGLE FONTS
*/

/* EB Garamond Regular (400) */
@font-face {
    font-family: 'EB Garamond';
    src: url('assets/fonts/EBGaramond-Regular.woff2') format('woff2'),
        url('assets/fonts/EBGaramond-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* EB Garamond Italic (400 italic) */
@font-face {
    font-family: 'EB Garamond';
    src: url('assets/fonts/EBGaramond-Italic.woff2') format('woff2'),
        url('assets/fonts/EBGaramond-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('assets/fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    /* full weight range */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('assets/fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('assets/fonts/AlegreyaSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}




/* ******************
 * BASE Styles
 */

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 17px;
    line-height: 1.4;
    scroll-behavior: smooth;
}



body {
    margin: 0;
    background-color: var(--base-bg);
    color: var(--base);
    font-family: "Alegreya Sans", sans-serif;
    font-weight: 400;
}

html,
body {
    overflow-x: hidden;
}



/* Headlines */
h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-family: "EB Garamond", serif;
    font-weight: 700;

}

h1 {
    font-size: clamp(1.765em, 5vw, 70px);
    line-height: 1.2;
    margin-top: 2em;
}

h2 {
    font-size: clamp(1.4em, 4vw, 40px);
    line-height: 1.1;
}

h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
}


/* Images/Figures */
figure {
    margin: 0;
}

img:not([src$=svg]) {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Override global img height so hero slides can fill the header */
.hero-header .hero-slide-image {
    height: 100%;
}


/* Anchor (Links) */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 300ms ease-in-out;
}

a:hover {
    color: var(--base);
}

a:active {
    color: var(--base);
}



/* ******************
 * LAYOUT
 */

/* Container */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}



/* Columns */
.columns>.column {
    margin-top: 15px;
}


.columns.reverse {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}


/* Actions */


section {
    margin-top: 4em;
    padding-top: 2em;
    padding-bottom: 2em;
}

/* Removed large bottom margin on last section to tighten footer spacing */
/* ******************
 * BUTTONS
 */

.btn {
    position: relative;
    display: inline-block;
    padding: 0.6em 2em;
    min-height: 42px;
    line-height: 42px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--base);
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}


.btn svg.btn-anim {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
}

.btn svg.btn-anim .btn-border {

    fill: none;
    stroke: rgba(255, 255, 255, 1);

    stroke-dasharray: 20 290;
    stroke-dashoffset: -60;
    stroke-width: 3px;
    transition: stroke-dashoffset 1.5s linear, stroke-dashoffset 1.5s cubic-bezier(0.4, 0.2, 0.3, 1);


}

.btn:hover svg.btn-anim .btn-border {
    stroke-dashoffset: -330;
}

.is-style-zumeinerzeit-button .wp-block-button__link {
    display: inline-block;
    padding: 0.6em 2em;
    min-height: 42px;
    line-height: 1.2;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--base);
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    box-shadow: none;
}

.is-style-zumeinerzeit-button .wp-block-button__link:hover,
.is-style-zumeinerzeit-button .wp-block-button__link:focus {
    color: var(--base-bg);
    border-color: var(--accent);
    background: var(--accent);
    text-decoration: none;
}

/* Base */
.wp-block-button.packages-order-button .wp-block-button__link.wp-element-button {
    background-color: #222223 !important;
    color: #ffffff !important;
    border: 2px solid #222223 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

/* Hover */
.wp-block-button.packages-order-button .wp-block-button__link.wp-element-button:hover,
.wp-block-button.packages-order-button .wp-block-button__link.wp-element-button:focus {
    background-color: transparent !important;
    color: #222223 !important;
    border-color: #222223 !important;
}



/* ******************
 * NAVIGATION
 */

/* Navbar */
#navbar.transparent,
#navbar.solid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    /* MATCH BOTH STATES */
    z-index: 1005;
    transition: background-color 100ms linear;
}

#navbar.transparent {
    background-color: transparent;
}

#navbar.solid {
    background-color: var(--base-bg);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    /* keep logo centered */
}


/* Logo container */
#brand {
    height: 45px;
    transition: none;
}

#brand img {
    height: 100%;
    width: auto;
    display: block;
}




/* Make logo container flexible (prevents stacking) */
#brand a {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Smooth color transition */
#brand img {
    height: 100%;
    width: auto;
    transition: filter 300ms ease-in-out;
}

#brand:hover {
    transform: scale(1.03);
}

/* Transparent navbar: turn logos white */
#navbar.transparent #brand img {
    filter: brightness(0) invert(1);
}

/* Solid navbar: black logos */
#navbar.solid #brand img {
    filter: none;
}

#brand .logo-text {
    padding: 0.9rem 0.5rem;
}






/* Main Menu */

.nav-menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


#nav-main {
    position: fixed;
    right: -100%;
    left: 100%;
    top: 80px;
    padding: 2rem 2rem 4rem;
    background-color: var(--base-bg);
    overflow-y: auto;
    text-align: center;
    transition: right 1s ease, left 1s ease, top 500ms linear;
}

/* Decorative line below mobile menu items */
#nav-main::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin: 2rem auto 0;
}


#nav-main a {
    display: inline-block;
    color: var(--base);
    margin-top: 0.3rem;
    padding: 0.3rem 2rem;
    transition: color 300ms ease-in-out;
    font-family: "EB Garamond", serif;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-weight: 500;
}

#nav-main a:hover {
    color: var(--accent);
}


#nav-main a.is-active span::before {
    transform: scaleX(1);
}


/* Menu Toggle */
#nav-button {
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}


#nav-button .nav-button-icon,
#nav-button .nav-button-icon::before,
#nav-button .nav-button-icon::after {
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--base-bg);
}

#navbar.solid .nav-button-icon,
#navbar.solid .nav-button-icon::before,
#navbar.solid .nav-button-icon::after {
    background-color: var(--base);
}

#nav-button .nav-button-icon {
    position: relative;
}

#nav-button .nav-button-icon::before,
#nav-button .nav-button-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: -webkit-transform 250ms ease-in-out;
    transition: -webkit-transform 250ms ease-in-out;
    transition: transform 250ms ease-in-out;
    transition: transform 250ms ease-in-out, -webkit-transform 250ms ease-in-out;
}

#nav-button .nav-button-icon::before {
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
}

#nav-button .nav-button-icon::after {
    -webkit-transform: translateY(12px);
    transform: translateY(12px);
}

#nav-toggle {
    display: none;
}

#nav-toggle:checked~#nav-button .nav-button-icon {
    background-color: transparent;
}


#nav-toggle:checked~#nav-button .nav-button-icon::before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-toggle:checked~#nav-button .nav-button-icon::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


#nav-toggle:checked~#nav-main {
    right: 0;
    left: 0;
}

/* adding additional css to pages without header in wordpress*/

.page-has-header #navbar {
    background-color: transparent;
}

.page-has-header #navbar.solid {
    background-color: var(--base-bg);
}

#navbar {
    background-color: var(--base-bg);
}

/* Improve anchor scrolling so subtitles stay visible */
section {
    scroll-margin-top: 120px;
}

@media screen and (max-width: 767px) {
    section {
        scroll-margin-top: 100px;
    }
}

body:not(.home) #content {
    padding-top: 80px;
    padding-bottom: 60px;
}


/* Hero Header */

.hero-header {
    position: relative;
    width: 100%;
    height: 100vh;
    /* full height, includes navbar area */
    margin-top: 0;
    /* very important */
    overflow: hidden;
}



/* Slides */

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 18s infinite ease-in-out;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Add your images */
.slide1 {
    background-image: url("assets/images/istockphoto-1792915335-1024x1024.jpg");
    animation-delay: 0s;
}


.slide2 {
    background-image: url("assets/images/istockphoto-2165513381-1024x1024.jpg");
    animation-delay: 6s;
    animation-name: crossfade-opposite;
}


.slide3 {
    background-image: url("assets/images/istockphoto-885515992-1024x1024.jpg");
    animation-delay: 12s;
}

/* Ken Burns + fade animation */

@keyframes crossfade {
    0% {
        opacity: 0;
        transform: scale(1.25) translate(40px, 40px);
        /* bigger scale + movement from bottom-right */
    }

    10% {
        opacity: 1;
    }

    45% {
        opacity: 1;
        transform: scale(1.35) translate(-40px, -40px);
        /* zoom + move toward top-left */
    }

    55% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}



@keyframes crossfade-opposite {
    0% {
        opacity: 0;
        transform: scale(1.25) translate(-40px, -40px);
        /* start top-left */
    }

    10% {
        opacity: 1;
    }

    45% {
        opacity: 1;
        transform: scale(1.35) translate(40px, 40px);
        /* end bottom-right */
    }

    55% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    /* sits above images, below text */

    background: linear-gradient(135deg,
            /* diagonal */
            rgba(var(--base-rgb), 0.75) 0%,
            /* top-left — darkest */
            rgba(var(--base-rgb), 0.45) 35%,
            /* nice fade */
            rgba(var(--base-rgb), 0.15) 70%,
            /* light fade to image */
            rgba(var(--base-rgb), 0.00) 100%
            /* bottom-right — pure image */
        );

}




/* HERO TEXT */
.hero-text {
    position: absolute;
    inset: 0;
    left: 5%;
    right: 5%;
    text-align: center;
    z-index: 5;
    color: var(--base-bg);
    pointer-events: none;
}

.hero-text-set {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: text-crossfade 12s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* the golden line */
.hero-text-set::before {
    content: "";
    display: block;
    height: 2px;
    background-color: var(--accent);
    width: 100px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    margin: 0 auto 1rem auto;
    animation: heroLine var(--hero-cycle, 12s) infinite ease-out;
    animation-delay: var(--hero-delay, 0s);
}


/* Headline */

.hero-text-set h1,
.hero-text-set h2 {
    opacity: 0;
    transform: translateY(40px);
    animation-duration: var(--hero-cycle, 12s);
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    animation-delay: var(--hero-delay, 0s);
}

/* different delays */
.hero-text-set h1 {
    animation-name: heroHeadline;
}

.hero-text-set h2 {
    animation-name: heroSubline;
}


/* KEYFRAMES – put these somewhere once (not inside a media query unless you want that) */
@keyframes heroLine {
    0%,
    8%,
    55%,
    100% {
        opacity: 0;
        transform: scaleX(0);
    }

    14%,
    45% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes text-crossfade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    26% {
        opacity: 1;
    }

    32% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes heroHeadline {
    0%,
    6%,
    32%,
    100% {
        opacity: 0;
        transform: translateY(22px);
    }

    12%,
    24% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubline {
    0%,
    10%,
    32%,
    100% {
        opacity: 0;
        transform: translateY(22px);
    }

    16%,
    24% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Headline */
.hero-text-set h1 {
    margin: 0 0 .4rem 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* Subline */
.hero-text-set h2.hero-subline {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    color: white;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section-subtitle {
    display: block;
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: "EB Garamond", serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.is-style-headline,
.is-style-zumeinerzeit-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--base);
    margin: 0;
}

.section-heading-wrapper {
    margin-bottom: 2rem;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding: 4rem 15px;
}

/* LEISTUNGEN SECTION */

.service-item {
    text-align: center;
    padding: 1.5rem;
}

.service-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.service-content {
    display: flex;
    flex-direction: column;
}

.service-button {
    margin-top: .5rem;
}

.services-footer-cta {
    margin-top: 2rem;
    text-align: center;
}

/* Forminator */

.invisible-price {
    display: none !important;
}

/* Forminator: Feldbeschreibungen kleiner */
.forminator-ui .forminator-description,
.forminator-ui .forminator-field-description,
.forminator-ui .forminator-description p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
}

/* VORLAGEN SECTION - dark theme */


/* Full-width dark background for Vorlagen section */
.templates-section {
    background-color: var(--base);
    color: var(--base-bg);
}

.templates-section .is-style-headline {
    color: var(--base-bg);
}

.templates-section .section-subtitle {
    color: var(--accent);
}

/* Template item layout */
.template-item {
    margin-bottom: 3rem;
    text-align: center;
}

/* More space between section title and first template item */
.templates-section .section-heading-wrapper {
    margin-bottom: 3rem;
}


.template-name {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--base-bg);
}

.template-description {
    font-size: 0.9em;
    margin-bottom: 1rem;
    color: var(--base-bg);
    opacity: 0.9;
}

.template-slogan {
    font-style: italic;
    margin-top: 0;
}

/* Slider images with book-like shadow */
.template-slider img {
    width: 100%;
    object-fit: cover;

    /* subtle book-page shadow */
    box-shadow: 0 12px 12px 3px rgba(0, 0, 0, 0.4);
}


/* PACKAGES SECTION */

.packages-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Grid layout */
.packages {
    display: grid;
    gap: 4rem;
}

/* Package card base style */
.package-card {
    border: 2px solid var(--accent);
    padding: 1.5rem;
    background-color: var(--base-bg);
    color: var(--base);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Popular (featured) package */
.package-card.popular {
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(255, 195, 50, 0.15);
    z-index: 2;
}

/* Popular tag */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-style: italic;
}

/* PACKAGE TITLES WITH FANTASY NAMES  ------------------------ */

.package-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.package-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--base);
}

.package-description {
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
    font-family: "EB Garamond", serif;
    opacity: 0.75;
}



/* Price */
.package-price {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.package-note {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2rem;
}

.package-note-star {
    font-weight: 400;
}

/* Features list */
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.package-features li {
    margin-bottom: 0.4rem;
    font-size: .9rem;
}

/* Included / excluded styling */
.package-features .included {
    color: var(--base);
}

.package-features .included::before {
    content: "✓ ";
    color: var(--accent);
}

.package-features .excluded {
    color: rgba(0, 0, 0, 0.4);
}

.package-features .excluded::before {
    content: "✖ ";
    color: rgba(0, 0, 0, 0.3);
}

/* Button */
.package-btn {
    margin-top: 1rem;
}

.package-btn .btn {
    width: 100%;
}


/* ===========================
   TIMELINE 
   =========================== */

.timeline {
    position: relative;
}


.timeline .timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: calc(100% + 1rem);
    background-color: var(--accent);
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.5s ease-out;
}


.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}


.timeline-connector {
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 25%;
    height: 2px;
    background-color: var(--accent);
}


@media (min-width: 768px) {

    .timeline {
        margin-left: 0;
    }

    .timeline .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-step {
        display: flex;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-step:nth-child(odd) .timeline-content {
        width: 45%;
        margin-left: 55%;
        text-align: left;
    }

    .timeline-step:nth-child(even) .timeline-content {
        width: 45%;
        margin-right: 55%;
        text-align: right;
    }

    .timeline-step:nth-child(odd) .timeline-connector {
        left: calc(50% - 1px);
        right: auto;
    }

    .timeline-step:nth-child(even) .timeline-connector {
        right: calc(50% - 1px);
        left: auto;
    }
}



/* SPLIDE */

.splide__pagination__page {
    background: var(--base) !important;
    min-height: 0 !important;
    line-height: 0 !important;
}

.splide__pagination__page.is-active {
    background: var(--accent) !important;

}


.splide__slide {
    padding-bottom: 2.5em;
}

.template-slide-media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.template-slider-image {
    display: block;
}

.template-zoom-button {
    position: absolute;
    right: 50px;
    bottom: 25px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 2;
}

.template-zoom-button:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* Lightbox for template slider images */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-image {
    max-width: 96vw;
    max-height: 92vh;
    transform-origin: 0 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
}

.image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    z-index: 2;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--base);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-open {
    overflow: hidden;
}

.image-lightbox.is-zoomed .image-lightbox-image {
    cursor: grab;
}

.image-lightbox.is-dragging .image-lightbox-image {
    cursor: grabbing;
}

/* Splide pagination styling on dark background */
.templates-section .splide__pagination__page {
    background: var(--base-bg) !important;
    /* white dots */
    opacity: .5 !important;
}

.templates-section .splide__pagination__page.is-active {
    opacity: 1 !important;
}



/* === Fixed Background Album Hero === */

.hero-album {
    position: relative;
    height: 500px;
    background-image: url("assets/images/istockphoto-2231151733-1024x1024.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}



/* Optional dark overlay for better text contrast */
.hero-album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Text on top */
.hero-album-text {
    position: relative;
    max-width: 600px;
    padding: 0 20px;
    z-index: 2;
}

.hero-album-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: "EB Garamond", serif;
}

.hero-album-text p {
    font-size: 1.2rem;
    font-family: "Alegreya Sans", sans-serif;
}

/* ===========================
   FAQ Section
=========================== */
.faq {
    max-width: 700px;
    margin: 4rem auto;
}

.faq-item {
    border-bottom: 1px solid var(--accent);
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question {
    display: flex;
    align-items: center;
    font-weight: 600;
    user-select: none;

}

.faq-question:focus {
    outline: none;
}

.faq-plus {
    font-size: 1.4rem;
    margin-right: 10px;
    transition: transform .3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .4s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    opacity: 1;
}

.faq-item.open .faq-plus {
    transform: rotate(45deg);
    /* turns + into an x */
}

.faq-more-button {
    margin-top: 2rem;
}

.faq-separator {
    margin-top: 1rem;
    margin-bottom: 2rem;
}


/* Kontakt Section */
.contact-section {
    max-width: 500px;
    margin: 4rem auto;
}

/* Form layout */
.contact-form .form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

/* Labels */
.contact-form label {
    margin-bottom: 0.4rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--base);
    background-color: var(--base-bg);
    transition: border-color .3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Button full width on mobile */
.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* Forminator: align inputs and button with theme */
.forminator-ui input[type="text"],
.forminator-ui input[type="email"],
.forminator-ui input[type="tel"],
.forminator-ui input[type="url"],
.forminator-ui textarea,
.forminator-ui select {
    font-family: "Alegreya Sans", sans-serif;
    color: var(--base);
    border: 1px solid rgba(var(--base-rgb), 0.2);
    background: var(--base-bg);
    padding: 0.8rem 0.9rem;
    box-sizing: border-box;
}

.forminator-ui input:focus,
.forminator-ui textarea:focus,
.forminator-ui select:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.forminator-ui .forminator-button {
    font-family: "Alegreya Sans", sans-serif;
    font-size: .95rem;
    padding: 0.6em 2em;
    min-height: 42px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--base);
    border-radius: 0;
    box-shadow: none;
    transition: all .2s ease;
}

.forminator-ui .forminator-button:hover,
.forminator-ui .forminator-button:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--base-bg);
}

/* Forminator: error messages */
.forminator-ui .forminator-error-message {
    font-size: 0.75rem;
    color: #b00020;
}

/* Forminator: pagination steps line + completed/current dots */
.forminator-ui .forminator-pagination-steps .forminator-break {
    height: 2px;
    background: rgba(var(--base-rgb), 0.25);
}

.forminator-ui .forminator-step-dot {
    border-color: var(--accent);
    background: var(--base-bg);
}

.forminator-ui .forminator-step.forminator-current .forminator-step-dot,
.forminator-ui .forminator-step[aria-selected="true"] .forminator-step-dot,
.forminator-ui .forminator-step.forminator-step--completed .forminator-step-dot,
.forminator-ui .forminator-step.forminator-step--done .forminator-step-dot,
.forminator-ui .forminator-step.forminator-step--active .forminator-step-dot {
    background: var(--accent);
}

/* Color completed steps and connecting lines before the current step */
.forminator-ui .forminator-step:has(~ .forminator-step[aria-selected="true"]) .forminator-step-dot {
    background: var(--accent);
}

.forminator-ui .forminator-break:has(~ .forminator-step[aria-selected="true"]) {
    background: var(--accent);
}

/* Forminator: larger image-radio thumbnails */
.forminator-ui .forminator-radio-image {
    width: 200px !important;
    height: 140px !important;
}

.forminator-ui .forminator-radio-image>span {
    display: block;
    width: 200px !important;
    height: 140px !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Forminator: mobile layout for image radios */
@media (max-width: 600px) {
    .forminator-ui .forminator-radio.forminator-has_image {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .forminator-ui .forminator-radio.forminator-has_image .forminator-radio-image {
        order: 0;
    }

    .forminator-ui .forminator-radio.forminator-has_image .forminator-radio-bullet {
        order: 1;
    }

    .forminator-ui .forminator-radio.forminator-has_image .forminator-radio-label {
        order: 2;
        max-width: 22rem;
    }
}

/* Forminator Select2 dropdown (rendered outside .forminator-ui) */
.forminator-select-dropdown,
.forminator-select-dropdown .select2-dropdown {
    background: var(--base-bg);
    color: var(--base);
    border: 1px solid rgba(var(--base-rgb), 0.2);
}

.forminator-select-dropdown .select2-results__options {
    background: var(--base-bg);
    color: var(--base);
}

.forminator-select-dropdown .select2-results__option {
    background: transparent;
    color: var(--base);
}

.forminator-select-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--accent);
    color: var(--base-bg);
}



/* ******************
 * FOOTER
 */


#footer-page {
    color: var(--base-bg);
    background-color: var(--base);
    padding-top: 1rem;
    padding-bottom: 2rem;
}



#footer-page a:hover {
    color: var(--base-bg);
    text-decoration: none;
}

.footer-cta {
    font-style: italic;
}

.footer-links,
.footer-companydata {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-links {
    text-align: right;
}

.footer-companydata {
    margin-bottom: 0;
}

.copyright {
    font-size: .8em;
}

/*
.nav-copyright-wrapper {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 25px;
}


#nav-footer {
    line-height: 1.8;
}



*/


/* ******************
 * MEDIA SCREEN SIZE larger than 768
 */


@media screen and (min-width: 768px) {

    html {
        font-size: 19px;
    }

    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .columns {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 15px;
    }

    .columns>.column {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }

    .alignfull {
        padding-left: 30px;
        padding-right: 30px;
    }

    .header-sections {
        padding: 100px;
    }

    .service-item {
        display: flex;
        align-items: center;
        gap: 40px;
        text-align: left;
    }

    /* Alternate L/R layout */
    .splide__slide:nth-child(odd) .service-item {
        flex-direction: row-reverse;
    }

    .splide__slide:nth-child(even) .service-item {
        flex-direction: row;
    }

    /* Header title */
    .hero-text {
        text-align: left;
    }

    .hero-text-set::before {
        margin: 0 0 1rem 0;
        /* left aligned */
    }

    /*Leistungen Section*/
    .service-image {
        width: 50%;
        max-height: 350px;
        object-fit: cover;
    }

    .service-content {
        width: 50%;
        justify-content: center;
    }

    .service-button {
        text-align: left;
    }

    /* Vorlagen section */
    .templates-section .section-heading-wrapper {
        margin-bottom: 4rem;
    }

    .template-item {
        margin-bottom: 4rem;
    }

    .template-description {
        max-width: 800px;
        margin: 0 auto 1.5rem auto;
    }

    /* Pakete section */
    .packages {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
        align-items: stretch;
    }

    .package-card.popular {
        transform: scale(1.05);
    }


}

@media screen and (min-width: 910px) {

    #brand {
        height: 50px;
    }

    #nav-main {
        position: static;
        display: flex;
        padding: 0;
        overflow: visible;
        pointer-events: auto;
        background-color: transparent;
        border-top: none;
    }

    #nav-main::after {
        display: none;
    }


    #nav-main a {
        position: relative;
        color: var(--base-bg);
    }

    #nav-main a span {
        position: relative;
        display: inline-block;
        line-height: 1;
    }

    #nav-main a span::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -.7em;
        width: 100%;
        height: 2px;
        background-color: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .4s cubic-bezier(.54, .32, .05, .96);
    }

    #nav-main a:hover span::before,
    #nav-main a.is-active span::before {
        transform: scaleX(1);
    }


    #nav-main>li {
        position: relative;
    }


    #nav-main>li>a {
        margin-top: 0;
        font-size: .7em;
        height: 80px;
        line-height: 80px;
        padding: 0.3rem 0 0.3rem 1rem;
    }

    #navbar.solid #nav-main>li>a {
        color: var(--base);
    }

    #nav-main>li>a:hover {
        color: var(--base-bg);
    }

    #navbar.solid #nav-main a:hover {
        color: var(--base);
    }


    #nav-button {
        display: none;
    }
}



/* ******************
 * MEDIA SCREEN SIZE 1200 and larger
 */

@media screen and (min-width: 1200px) {

    html {
        font-size: 21px;

    }

    .container {
        padding-right: 60px;
        padding-left: 60px;
    }

    .alignfull {
        padding-left: 60px;
        padding-right: 60px;
    }
}


/* ******************
 * SCREEN READER TEXT (WordPress Core Styles)
 */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
