/**
 * Startseite – fluid-first, responsive.
 * Desktop sieht wie Figma aus (878px), skaliert automatisch runter.
 */

/* ===== Layout Container ===== */
.ff-home.ff-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    font-family: 'Barlow Semi Condensed', sans-serif;
}
.ff-home a { color: inherit; text-decoration: none; }
.ff-home a:hover { color: inherit; }

.ff-home-wrap {
    max-width: 878px;
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}
.ff-home-inner { min-width: 0; }

/* ===== Subnav ===== */
.ff-home .ff-home-subnav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 20px !important;
    margin: 0 !important;
    border: none !important;
    width: 100%;
    box-sizing: border-box;
}
.ff-home .ff-home-subnav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 24px;
}
.ff-home .ff-home-subnav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}
.ff-home .ff-home-subnav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    min-height: 24px;
    line-height: 19px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}
.ff-home .ff-home-subnav-item:hover { color: #B43526; }
.ff-home .ff-home-subnav-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.ff-home .ff-home-subnav-chevron svg { display: block; width: 10.5px; height: 5px; }
.ff-home .ff-home-subnav-dropdown { position: relative; display: inline-flex; }
.ff-home .ff-home-subnav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin: 4px 0 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    z-index: 50;
    display: none;
}
.ff-home .ff-home-subnav-dropdown.is-open .ff-home-subnav-menu { display: block; }
.ff-home .ff-home-subnav-dropdown.is-open .ff-home-subnav-chevron { transform: rotate(180deg); }
.ff-home .ff-home-subnav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.ff-home .ff-home-subnav-menu a:hover { background: #f5f5f5; color: #B43526; }
.ff-home .ff-home-subnav-meinff-label {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #000;
}
.ff-home .ff-home-subnav-toggle-wrap { display: inline-flex; align-items: center; cursor: pointer; }
.ff-home .ff-home-subnav-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ff-home .ff-home-subnav-toggle-slider {
    display: block; width: 38px; height: 18px; background: #E0E0E3; border-radius: 9px; position: relative; transition: background 0.2s ease;
}
.ff-home .ff-home-subnav-toggle-slider::after {
    content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: #2B2B2B; border-radius: 50%; transition: transform 0.2s ease;
}
.ff-home .ff-home-subnav-toggle:checked + .ff-home-subnav-toggle-slider { background: #B43526; }
.ff-home .ff-home-subnav-toggle:checked + .ff-home-subnav-toggle-slider::after { transform: translateX(-20px); }
.ff-home .ff-home-subnav-toggle:focus-visible + .ff-home-subnav-toggle-slider { outline: 2px solid #B43526; outline-offset: 2px; }

/* ===== Slider – fluid height via aspect-ratio ===== */
.ff-home-hero {
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}
.ff-home-hero-slider {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 878 / 418;
    position: relative;
}
.ff-home-hero-track {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ff-home-hero-slide {
    flex: 0 0 16.6667%;
    width: 16.6667%;
    height: 100%;
    position: relative;
}
.ff-home-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    color: #fff !important;
    position: relative;
}
.ff-home-hero-link:hover,
.ff-home-hero-link:focus { color: #fff !important; text-decoration: none !important; }
.ff-home-hero-media { position: absolute; inset: 0; }
.ff-home-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-home-hero-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #2d2d2d, #1a1a1a); }
.ff-home-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.19);
    pointer-events: none;
}
.ff-home-hero-content {
    position: absolute;
    left: clamp(14px, 3.5%, 32px);
    right: clamp(14px, 3.5%, 32px);
    bottom: clamp(12px, 3%, 24px);
    z-index: 2;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(6px, 1.5vw, 15px);
}
.ff-home-hero .ff-home-hero-content,
.ff-home-hero .ff-home-hero-content *,
.ff-home-hero a.ff-home-hero-link,
.ff-home-hero a.ff-home-hero-link:hover { color: #fff !important; text-decoration: none !important; }

.ff-home-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-width: 100%;
}
.ff-home-hero-rubrik {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 400;
    line-height: 17px;
    color: #fff !important;
    margin: 0;
}
.ff-home-hero-heading {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: clamp(20px, 5.5vw, 50px) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #fff !important;
    max-width: 100%;
}
.ff-home-hero-excerpt {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(13px, 2vw, 19px);
    font-weight: 500;
    line-height: 1.2;
    color: #fff !important;
    margin: 0;
    max-width: 100%;
}
.ff-home-hero-details { display: none; }
.ff-home-hero-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 0;
}
.ff-home-hero-comment {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
}
.ff-home-hero-comment svg { flex-shrink: 0; width: 16px; height: 15px; display: block; overflow: visible; }
.ff-home-hero-cc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #fff !important;
}
.ff-home-hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}
.ff-home-hero-icon-pin { width: 11px; height: 15px; }
.ff-home-hero-icon-bookmark { width: 12px; height: 15px; }
.ff-home-hero-actions svg { overflow: visible; }

/* ===== Dots ===== */
.ff-home-hero-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 16px 0 0;
    margin: 0;
}
.ff-home-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #D9D9D9;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s;
    -webkit-appearance: none;
    appearance: none;
}
.ff-home-hero-dot:hover { background: #999; }
.ff-home-hero-dot.is-active { background: #B43526; }

/* ===== Beitrags-Kacheln – CSS Grid statt Flex mit festen Breiten ===== */
.ff-home-feed {
    margin-top: clamp(24px, 6vw, 80px);
    overflow: visible;
    padding-bottom: 24px;
}
.ff-home-feed-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 5vw, 60px);
    overflow: visible;
}
.ff-home-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
    width: 100%;
}
.ff-home-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.ff-home-card-link {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.ff-home-card-link:hover { color: inherit; }
.ff-home-card-link:focus { outline: none; }
.ff-home-card-link:focus-visible { outline: 2px solid #B43526; outline-offset: 2px; }

.ff-home-card-img {
    width: 100%;
    aspect-ratio: 262 / 181;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}
.ff-home-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-home-card-placeholder { width: 100%; height: 100%; background: #ccc; }

.ff-home-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    width: 100%;
    padding: 0;
    flex: 1;
    min-width: 0;
}
.ff-home-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex: 1;
    min-width: 0;
}
.ff-home-card-rubrik {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #B43526;
    margin: 0;
    text-transform: none;
}
.ff-home-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.ff-home-card-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
    color: #000;
    margin: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ff-home-card-excerpt {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #000;
    margin: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ff-home-card-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 17px;
}
.ff-home-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ff-home-card-comments svg { flex-shrink: 0; width: 16px; height: 15px; display: block; overflow: visible; }
.ff-home-card-cc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #000;
}
.ff-home-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ff-home-card-actions svg { display: block; flex-shrink: 0; overflow: visible; }
.ff-home-card-icon-pin { width: 11px; height: 15px; }
.ff-home-card-icon-bookmark { width: 12px; height: 15px; }

/* ===== Werbeplatzhalter ===== */
.ff-home-ad-slot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px solid #000;
    background: transparent;
}
.ff-home-ad-slot span {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.05em;
}

/* Mehr laden */
.ff-home-feed-load-more-wrap {
    margin-top: 40px;
    text-align: center;
}
.ff-home-feed-load-more {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #B43526;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.ff-home-feed-load-more:hover:not(:disabled) { background: #9a2d20; }
.ff-home-feed-load-more:disabled { opacity: 0.7; cursor: wait; }

/* ===== "weitere Beiträge" – Pfeil-Navigation ===== */
.ff-home-more {
    margin-top: clamp(32px, 5vw, 60px);
    padding: 15px 0 20px;
    background: #F5F5F5;
    position: relative;
}
.ff-home-more-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 0 clamp(16px, 3vw, 30px);
    padding: 0 clamp(12px, 2vw, 24px);
}
.ff-home-more-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
    color: #000;
    text-align: center;
    margin: 0;
}
.ff-home-more-arrows {
    position: absolute;
    right: clamp(12px, 2vw, 24px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ff-home-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid #5D5D5D;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.ff-home-more-arrow:hover,
.ff-home-more-arrow:focus,
.ff-home-more-arrow:active {
    border-color: #B43526 !important;
    background: #B43526 !important;
    outline: none;
}
.ff-home-more-arrow:hover svg path,
.ff-home-more-arrow:focus svg path,
.ff-home-more-arrow:active svg path { stroke: #fff !important; }
.ff-home-more-arrow svg { width: 10px; height: 10px; display: block; }
.ff-home-more-arrow.is-disabled {
    opacity: 0.3;
    cursor: default;
}
.ff-home-more-arrow.is-disabled,
.ff-home-more-arrow.is-disabled:hover,
.ff-home-more-arrow.is-disabled:focus,
.ff-home-more-arrow.is-disabled:active {
    background: #fff !important;
    border-color: #5D5D5D !important;
    outline: none !important;
}
.ff-home-more-arrow.is-disabled:hover svg path,
.ff-home-more-arrow.is-disabled:focus svg path,
.ff-home-more-arrow.is-disabled:active svg path {
    stroke: #5D5D5D !important;
}
.ff-home-more-viewport {
    position: relative;
    overflow: hidden;
    padding: 0 clamp(12px, 2vw, 24px);
}
.ff-home-more-scroll {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(14px, 2.5vw, 35px);
    transition: transform 0.4s ease;
}
.ff-home-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(110px, 15vw, 150px);
    flex: 0 0 clamp(110px, 15vw, 150px);
}
.ff-home-more-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.ff-home-more-card-link:hover { color: inherit; }
section.ff-home-more .ff-home-more-card a.ff-home-more-card-link:focus,
.ff-home-more .ff-home-more-card-link:focus,
a.ff-home-more-card-link:focus {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-color: transparent !important;
    color: inherit;
}
.ff-home-more .ff-home-more-card-link:focus-visible {
    outline: 2px solid #B43526 !important;
    outline-offset: 2px;
}
.ff-home-more-card-img {
    width: 100%;
    aspect-ratio: 150 / 110;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}
.ff-home-more-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-home-more-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    flex: 1;
    padding-top: 10px;
    min-width: 0;
}
.ff-home-more-card-rubrik {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: #B43526;
    flex-shrink: 0;
}
.ff-home-more-card-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    margin: 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ff-home-more-card-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 8px;
}
.ff-home-more-card-actions svg { display: block; flex-shrink: 0; overflow: visible; }
.ff-home-more-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ff-home-more-card-comments svg { flex-shrink: 0; width: 16px; height: 15px; display: block; overflow: visible; }
.ff-home-more-cc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #000;
}
.ff-home-more-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ff-home-more-card-actions svg { display: block; }

/* ===== Fotos & Video ===== */
.ff-home-card-rubrik-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}
.ff-home-card-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

/* ===== Responsive: nur Layout-Wechsel, keine Pixel-Overrides nötig ===== */

@media (max-width: 700px) {
    .ff-home-card-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .ff-home-hero-excerpt { display: none; }
    .ff-home-hero-bottom { display: none; }
}

@media (max-width: 480px) {
    .ff-home-card-row {
        grid-template-columns: 1fr;
    }
    .ff-home .ff-home-subnav-item { font-size: 14px; }
    .ff-home .ff-home-subnav-left { gap: 10px; }
}
