/* ================================================================
   HFP Post & Archive Styles
   Matches hfp.at tp theme framework
   ================================================================ */

/* === BREADCRUMB HERO === */
.hfp-breadcrumb {
    position: relative;
    min-height: 400px;
    padding: 150px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
/* Subtle dark overlay only for text readability */
.hfp-breadcrumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
}
.hfp-breadcrumb__inner { position: relative; z-index: 2; }
.hfp-breadcrumb .hfp-breadcrumb__title,
.hfp-breadcrumb h1.hfp-breadcrumb__title {
    font-family: var(--hfp-font);
    font-size: 60px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hfp-breadcrumb__path {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.hfp-breadcrumb__path a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color .3s;
}
.hfp-breadcrumb__path a:hover { color: #fff; }
.hfp-breadcrumb__sep { margin: 0 8px; opacity: .5; }
.hfp-breadcrumb__current { color: #fff; font-weight: 500; }

@media (max-width: 767px) {
    .hfp-breadcrumb { min-height: 220px; padding: 80px 0; }
    .hfp-breadcrumb__title,
    .hfp-breadcrumb .hfp-breadcrumb__title,
    .hfp-breadcrumb h1.hfp-breadcrumb__title { font-size: 35px !important; }
    .hfp-breadcrumb__current { display: none; }
    .hfp-breadcrumb__path { font-size: 12px; }
}

@media (min-width: 576px) and (max-width: 767px) {
    .hfp-breadcrumb__title,
    .hfp-breadcrumb .hfp-breadcrumb__title,
    .hfp-breadcrumb h1.hfp-breadcrumb__title { font-size: 40px !important; }
}

/* === LAYOUT: Article + Sidebar === */
.hfp-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}
@media (max-width: 991px) {
    .hfp-post-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* === ARTICLE META === */
.hfp-post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--hfp-text);
}
.hfp-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hfp-post-meta svg { opacity: .5; }
.hfp-post-meta a { color: var(--hfp-accent); text-decoration: none; font-weight: 500; }
.hfp-post-meta a:hover { text-decoration: underline; }

/* === POST TITLE (single view) === */
.hfp-post-title {
    font-family: var(--hfp-font);
    font-size: 38px;
    font-weight: 900;
    color: var(--hfp-heading);
    line-height: 1.1;
    margin-bottom: 25px;
}
@media (max-width: 767px) { .hfp-post-title { font-size: 25px !important; } }
@media (min-width: 576px) and (max-width: 767px) { .hfp-post-title { font-size: 30px !important; } }
@media (min-width: 768px) and (max-width: 991px) { .hfp-post-title { font-size: 33px !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .hfp-post-title { font-size: 28px !important; } }

/* ================================================================
   ARCHIVE CARDS
   ================================================================ */
.hfp-archive-card {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(135,135,135,0.12);
}
.hfp-archive-card:last-child { border-bottom: none; }

/* Archive title: BLACK, not crimson — high specificity to beat .elementor-kit-N a */
.hfp-archive-card__title {
    font-family: var(--hfp-font);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hfp-archive-main .hfp-archive-card__title a,
h3.hfp-archive-card__title a {
    color: var(--hfp-heading);
    text-decoration: none;
    transition: color .3s;
}
.hfp-archive-main .hfp-archive-card__title a:hover,
h3.hfp-archive-card__title a:hover {
    color: var(--hfp-accent);
}

@media (max-width: 767px) { .hfp-archive-card__title { font-size: 25px !important; } }
@media (min-width: 576px) and (max-width: 767px) { .hfp-archive-card__title { font-size: 30px !important; } }
@media (min-width: 768px) and (max-width: 991px) { .hfp-archive-card__title { font-size: 33px !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .hfp-archive-card__title { font-size: 28px !important; } }

.hfp-archive-card__excerpt {
    color: var(--hfp-text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.hfp-archive-card__excerpt p { margin: 0; }

/* "erfahren Sie mehr" button with animated arrow (matching hfp.at tp-btn-border) */
.hfp-btn-arrow {
    display: inline-block;
    font-family: var(--hfp-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 22px;
    color: var(--hfp-accent);
    border: 1px solid rgba(135, 135, 135, 0.25);
    padding: 20px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hfp-btn-arrow:hover {
    background: var(--hfp-accent);
    color: #fff;
}

/* Arrow icon container (holds 2 SVGs for the slide animation) */
.hfp-btn-arrow__icon {
    margin-left: 10px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.hfp-btn-arrow__icon--left {
    margin-left: 0;
    margin-right: 10px;
}
.hfp-btn-arrow__icon svg {
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
/* First SVG: hidden, slides in from left on hover */
.hfp-btn-arrow__icon svg:first-child {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(-20px);
}
/* Second SVG: visible, slides out to right on hover */
.hfp-btn-arrow__icon svg:last-child {
    opacity: 1;
    transform: translateX(0);
}
/* Hover: first appears, second exits */
.hfp-btn-arrow:hover .hfp-btn-arrow__icon svg:first-child,
.hfp-postnav__item:hover .hfp-btn-arrow__icon svg:first-child {
    opacity: 1;
    transform: translateX(0);
}
.hfp-btn-arrow:hover .hfp-btn-arrow__icon svg:last-child,
.hfp-postnav__item:hover .hfp-btn-arrow__icon svg:last-child {
    opacity: 0;
    transform: translateX(30px);
}
/* Left arrow variant: reverse the slide direction */
.hfp-btn-arrow__icon--left svg:first-child {
    transform: translateX(20px);
}
.hfp-postnav__item:hover .hfp-btn-arrow__icon--left svg:first-child {
    transform: translateX(0);
}
.hfp-btn-arrow__icon--left svg:last-child {
    transform: translateX(0);
}
.hfp-postnav__item:hover .hfp-btn-arrow__icon--left svg:last-child {
    transform: translateX(-30px);
}

/* Pagination */
.hfp-pagination { margin-top: 20px; }
.hfp-pagination .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.hfp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(135,135,135,0.2);
    color: var(--hfp-heading);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s;
}
.hfp-pagination .page-numbers:hover,
.hfp-pagination .page-numbers.current {
    background: var(--hfp-accent);
    border-color: var(--hfp-accent);
    color: #fff;
}

.hfp-archive-empty { padding: 60px 0; text-align: center; }
.hfp-archive-empty h3 { font-size: 24px; color: var(--hfp-heading); margin-bottom: 12px; }
.hfp-archive-empty p { color: var(--hfp-text); }

/* ================================================================
   ARTICLE CONTENT (single post body)
   ================================================================ */
.hfp-article-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--hfp-text);
}
.hfp-article-content p { margin-bottom: 16px; }
.hfp-article-content strong, .hfp-article-content b { color: var(--hfp-heading); font-weight: 700; }
.hfp-article-content h2 { font-size: 28px; font-weight: 900; color: var(--hfp-heading); margin: 40px 0 20px; line-height: 1.2; }
.hfp-article-content h3 { font-size: 22px; font-weight: 900; color: var(--hfp-heading); margin: 32px 0 16px; line-height: 1.3; }
.hfp-article-content h4 { font-size: 18px; font-weight: 700; color: var(--hfp-heading); margin: 24px 0 12px; }

/* Crimson square bullets */
.hfp-article-content ul { list-style: none; padding-left: 0; margin-bottom: 24px; }
.hfp-article-content ul li { padding-left: 20px; position: relative; font-size: 16px; padding-bottom: 20px; line-height: 26px; }
.hfp-article-content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    height: 8px; width: 8px;
    background: var(--hfp-accent);
}
.hfp-article-content ol { padding-left: 24px; margin-bottom: 24px; }
.hfp-article-content ol li { padding-bottom: 12px; line-height: 26px; }
.hfp-article-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.hfp-article-content th, .hfp-article-content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(135,135,135,0.2); }
.hfp-article-content th { color: var(--hfp-heading); font-weight: 700; }
.hfp-article-content blockquote { border-left: 4px solid var(--hfp-accent); padding: 16px 24px; margin: 24px 0; background: var(--hfp-off-white); color: var(--hfp-heading); font-style: italic; }
.hfp-article-content a { color: var(--hfp-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.hfp-article-content a:hover { text-decoration-thickness: 2px; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.hfp-sidebar { position: relative; }
.single .hfp-sidebar { position: sticky; top: 100px; }
.hfp-sidebar__widget { margin-bottom: 40px; }
.hfp-sidebar__title {
    font-family: var(--hfp-font);
    font-size: 24px;
    font-weight: 900;
    color: var(--hfp-heading);
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}
.hfp-sidebar__title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--hfp-accent);
}

/* --- Search --- */
.hfp-sidebar__search {
    display: flex;
    border: 1px solid rgba(135,135,135,0.25);
    border-radius: 2px;
    overflow: hidden;
}
.hfp-sidebar__search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-family: var(--hfp-font);
    font-size: 14px;
    color: var(--hfp-heading);
    background: #fff;
    outline: none;
}
.hfp-sidebar__search-input::placeholder { color: #adadad; }
.hfp-sidebar__search-input:focus { box-shadow: inset 0 0 0 1px var(--hfp-accent); }
.hfp-sidebar__search-btn {
    background: var(--hfp-accent);
    border: none;
    color: #fff;
    padding: 14px 18px;
    cursor: pointer;
    transition: opacity .3s;
    display: flex;
    align-items: center;
}
.hfp-sidebar__search-btn:hover { opacity: .8; }

/* --- Category List (vertical, bordered, with counts) --- */
.hfp-sidebar__catlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hfp-sidebar__catlist li {
    border: 1px solid #f3f3f3;
    margin-top: -1px; /* collapse borders */
}
.hfp-sidebar__catlist li.active {
    background: var(--hfp-accent);
}
.hfp-sidebar__catlist li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #adadad;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s;
}
.hfp-sidebar__catlist li a:hover {
    background: var(--hfp-accent);
    color: #fff;
}
.hfp-sidebar__catlist li.active a {
    color: #fff;
}
.hfp-sidebar__catname { flex: 1; }
.hfp-sidebar__catcount {
    font-size: 12px;
    font-weight: 400;
    opacity: .6;
    min-width: 30px;
    text-align: right;
}
.hfp-sidebar__catlist li a:hover .hfp-sidebar__catcount,
.hfp-sidebar__catlist li.active .hfp-sidebar__catcount {
    opacity: .8;
}

/* --- Quick Links (Informationen) --- */
.hfp-sidebar__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hfp-sidebar__links li a {
    display: block;
    padding: 10px 0 10px 15px;
    color: #adadad;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all .25s;
}
.hfp-sidebar__links li a::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--hfp-accent);
}
.hfp-sidebar__links li a:hover {
    color: var(--hfp-accent);
    padding-left: 20px;
}

/* --- Recent Posts (Letzte News) --- */
.hfp-sidebar__recent {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hfp-sidebar__recent-item {
    margin-bottom: 20px;
}
.hfp-sidebar__recent-item a { display: block; text-decoration: none; }
.hfp-sidebar__recent-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--hfp-heading);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color .3s;
}
.hfp-sidebar__recent-item a:hover .hfp-sidebar__recent-title { color: var(--hfp-accent); }
.hfp-sidebar__recent-date { font-size: 13px; color: #adadad; }

/* ================================================================
   POST NAVIGATION (single view — prev/next cards with arrow animation)
   ================================================================ */
.hfp-postnav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(135, 135, 135, 0.15);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.hfp-postnav__item {
    flex: 1;
    max-width: 48%;
    display: block;
    padding: 24px 28px;
    border: 1px solid rgba(135, 135, 135, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hfp-postnav__item:hover {
    border-color: var(--hfp-accent);
    background: var(--hfp-off-white);
}
.hfp-postnav__next {
    text-align: right;
    margin-left: auto;
}
.hfp-postnav__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hfp-accent);
    margin-bottom: 8px;
}
.hfp-postnav__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--hfp-heading);
    line-height: 1.4;
    transition: color 0.3s ease;
}
.hfp-postnav__item:hover .hfp-postnav__title {
    color: var(--hfp-accent);
}
@media (max-width: 600px) {
    .hfp-postnav { flex-direction: column; }
    .hfp-postnav__item { max-width: 100%; text-align: left; }
}

/* ================================================================
   HFP BUTTON ANIMATIONS (matching hfp.at tp-slider-btn)
   ================================================================ */

/* --- Animated Arrow Button ("Erfahren Sie mehr") --- */
.hfp-btn-arrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--hfp-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hfp-heading);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 22px;
}

/* White variant (on dark/hero sections) */
.hfp-btn-arrow--white { color: #fff; }
.hfp-btn-arrow--white .hfp-btn-arrow__icon svg { stroke: #fff; }
.hfp-btn-arrow--white:hover { color: #fff; }

/* Arrow container */
.hfp-btn-arrow__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 53px;
    height: 8px;
    margin-right: 20px;
    overflow: hidden;
}

.hfp-btn-arrow__icon svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* First arrow: hidden, waiting to slide in */
.hfp-btn-arrow__icon svg:first-child {
    opacity: 0;
    transform: translateX(-30px);
}

/* Second arrow: visible, will slide out */
.hfp-btn-arrow__icon svg:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* Hover: first slides in, second slides out */
.hfp-btn-arrow:hover .hfp-btn-arrow__icon svg:first-child {
    opacity: 1;
    transform: translateX(0);
}
.hfp-btn-arrow:hover .hfp-btn-arrow__icon svg:last-child {
    opacity: 0;
    transform: translateX(30px);
}

/* --- Round Arrow Button (circle with arrow) --- */
.hfp-btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--hfp-heading);
    background: transparent;
    color: var(--hfp-heading);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    overflow: hidden;
}

.hfp-btn-round svg {
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    z-index: 1;
}

/* Crimson fill on hover */
.hfp-btn-round::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--hfp-accent);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.hfp-btn-round:hover {
    border-color: var(--hfp-accent);
    color: #fff;
}

.hfp-btn-round:hover::before {
    transform: scale(1);
}

.hfp-btn-round:hover svg {
    transform: translateX(3px);
    stroke: #fff;
}

/* Sizes */
.hfp-btn-round--sm { width: 44px; height: 44px; }
.hfp-btn-round--lg { width: 80px; height: 80px; }

/* White variant */
.hfp-btn-round--white {
    border-color: #fff;
    color: #fff;
}
.hfp-btn-round--white svg { stroke: #fff; }

/* ================================================================
   HFP "erfahren Sie mehr" BORDER BUTTON (exact match of hfp.at)
   Structure: [Text] [Arrow→]
   ================================================================ */
.hfp-btn-border {
    display: inline-block;
    font-family: var(--hfp-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 22px;
    color: var(--hfp-accent);
    padding: 20px 40px;
    border: 1px solid rgba(135, 135, 135, 0.25);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.hfp-btn-border:hover {
    background-color: var(--hfp-accent);
    color: #fff;
    border-color: var(--hfp-accent);
}

/* Arrow span (sits AFTER the text, margin-left: 10px) */
.hfp-btn-border span {
    margin-left: 10px;
    display: inline-block;
    position: relative;
    width: 22px;
    height: 8px;
    vertical-align: middle;
    overflow: hidden;
}

.hfp-btn-border span svg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* First SVG: hidden off-screen left, will slide in on hover */
.hfp-btn-border span svg:first-child {
    opacity: 0;
    transform: translateX(-22px);
}

/* Second SVG: visible at rest, will slide out right on hover */
.hfp-btn-border span svg:last-child {
    opacity: 1;
    transform: translateX(0);
}

.hfp-btn-border:hover span svg:first-child {
    opacity: 1;
    transform: translateX(0);
}

.hfp-btn-border:hover span svg:last-child {
    opacity: 0;
    transform: translateX(22px);
}

/* White variant for dark backgrounds */
.hfp-btn-border--white {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.hfp-btn-border--white:hover {
    background-color: #fff;
    color: var(--hfp-accent);
    border-color: #fff;
}
.hfp-btn-border--white span svg { fill: #fff; }
.hfp-btn-border--white:hover span svg { fill: var(--hfp-accent); }

/* ================================================================
   ELEMENTOR KIT OVERRIDES — ALL !important
   Elementor generates .elementor-kit-N a / h1 / h2 etc. that load
   AFTER theme CSS. Only !important guarantees our colors win.
   ================================================================ */

/* Breadcrumb hero: WHITE text */
.hfp-breadcrumb__title,
.hfp-breadcrumb h1,
section.hfp-breadcrumb h1,
.hfp-main .hfp-breadcrumb__title {
    color: #fff !important;
}
.hfp-breadcrumb__path a {
    color: rgba(255,255,255,0.85) !important;
}
.hfp-breadcrumb__path a:hover {
    color: #fff !important;
}
.hfp-breadcrumb__current {
    color: #fff !important;
}

/* Archive card titles: BLACK, crimson on hover */
.hfp-archive-card__title a {
    color: #171717 !important;
}
.hfp-archive-card__title a:hover {
    color: #c71748 !important;
}

/* Single post title: BLACK */
.hfp-post-title,
h3.hfp-post-title {
    color: #171717 !important;
}

/* Sidebar category links: GRAY */
.hfp-sidebar__catlist a {
    color: #adadad !important;
}
.hfp-sidebar__catlist a:hover,
.hfp-sidebar__catlist li.active a {
    color: #fff !important;
}

/* Sidebar info links: GRAY */
.hfp-sidebar__links a {
    color: #adadad !important;
}
.hfp-sidebar__links a:hover {
    color: #c71748 !important;
}

/* Sidebar recent posts */
.hfp-sidebar__recent-title {
    color: #171717 !important;
}
.hfp-sidebar__recent-item a:hover .hfp-sidebar__recent-title {
    color: #c71748 !important;
}
.hfp-sidebar__recent-date {
    color: #adadad !important;
}

/* Post navigation: BLACK */
.post-navigation a {
    color: #171717 !important;
}

/* Article content links: CRIMSON (intentional) */
.hfp-article-content a {
    color: #c71748 !important;
}

/* "erfahren Sie mehr" button */
a.hfp-btn-border {
    color: #c71748 !important;
}
a.hfp-btn-border:hover {
    color: #fff !important;
    background-color: #c71748 !important;
}

/* Category meta in post cards */
.hfp-post-meta a {
    color: #c71748 !important;
}

/* Sidebar search input */
.hfp-sidebar__search-input {
    color: #171717 !important;
}

/* Sidebar widget titles: BLACK */
.hfp-sidebar__title {
    color: #171717 !important;
}
