/* ==========================================================
   AffiKSys - Shared Footer
   Template: cassiopeia_extended
   Datei: css/footer.css
   ========================================================== */

.affiksys-footer {
    --footer-bg: #0b0d12;
    --footer-surface: #12161d;
    --footer-text: #f4f6fb;
    --footer-muted: #aeb9cb;
    --footer-gold: #c59a52;
    --footer-blue: #2465f5;
    --footer-line: rgba(197, 154, 82, 0.42);

    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    color: var(--footer-text);
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-gold);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Schlosslandschaft: austauschbare Hintergrundgrafik */
.affiksys-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
           90deg,
           rgba(11,13,18,.15) 0%,
           rgba(11,13,18,.92) 42%,
           rgba(11,13,18,.84) 65%,
           rgba(11,13,18,.18) 100%
    ),
    url("/images/affiksys/affiksys-footer-affiliate.webp"),
    url("/images/affiksys/affiksys-footer-schloss.webp");

    background-position: center, left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: cover, auto 100%, auto 100%;
    opacity: 0.85;
}

/* Zentraler Inhaltscontainer */
.affiksys-footer__container {
    position: relative;
    width: min(100% - 48px, 1400px);
    margin-inline: auto;
}

/* Vier Spalten */
.affiksys-footer__grid {
    display: grid;
   grid-template-columns: 1.1fr 1.15fr 1.15fr 0.9fr;
    gap: 36px;
    padding-block: 44px 38px;
}

/* Logo / Branding */
.affiksys-footer__brand {
    min-width: 0;
}

.affiksys-footer__logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.affiksys-footer__brand-name {
    margin: 0 0 10px;
    color: var(--footer-text);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.affiksys-footer__description {
    max-width: 260px;
    margin: 14px 0 0;
    color: var(--footer-muted);
    font-size: 0.85rem;
}

/* Navigationsspalten */
.affiksys-footer__column {
    min-width: 0;
    padding-left: 26px;
    border-left: 1px solid rgba(174, 185, 203, 0.18);
}

.affiksys-footer__heading {
    margin: 0 0 16px;
    color: var(--footer-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.affiksys-footer__heading::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    margin-bottom: 12px;
    background-color: var(--footer-gold);
}

/* Links */
.affiksys-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.affiksys-footer__links li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(174, 185, 203, 0.12);
}

.affiksys-footer__links li:last-child {
    border-bottom: 0;
}

.affiksys-footer__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: var(--footer-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.affiksys-footer__links a::after {
    content: "›";
    flex-shrink: 0;
    color: var(--footer-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.affiksys-footer__links a:hover,
.affiksys-footer__links a:focus-visible {
    color: #ffffff;
}

.affiksys-footer a:focus-visible {
    outline: 2px solid var(--footer-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Optionale Social-Media-Links */
.affiksys-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.affiksys-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(174, 185, 203, 0.18);
    border-radius: 50%;
    color: var(--footer-text);
    background: rgba(26, 33, 44, 0.85);
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.affiksys-footer__social a:hover {
    background-color: var(--footer-blue);
    border-color: var(--footer-blue);
}

/* Copyright-Zeile */
.affiksys-footer__bottom {
    position: relative;
    border-top: 1px solid var(--footer-line);
    background: rgba(8, 10, 15, 0.70);
}

.affiksys-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 17px;
    color: var(--footer-muted);
    font-size: 0.78rem;
}

.affiksys-footer__bottom p {
    margin: 0;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1000px) {
    .affiksys-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .affiksys-footer__column {
        padding-left: 20px;
    }

    .affiksys-footer::before {
        background-size: cover, auto 100%;
        opacity: 0.65;
    }
}

/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width: 600px) {
    .affiksys-footer__container {
        width: min(100% - 32px, 1200px);
    }

    .affiksys-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-block: 32px;
    }

    .affiksys-footer__column {
        padding-left: 0;
        border-left: 0;
    }

    .affiksys-footer__logo {
        width: 135px;
    }

    .affiksys-footer__description {
        max-width: 100%;
    }

    .affiksys-footer::before {
        background-image:
            linear-gradient(
                180deg,
                rgba(11, 13, 18, 0.94),
                rgba(11, 13, 18, 0.97)
            ),
           url("/images/affiksys/affiksys-footer-schloss.webp");

        background-size: cover, auto 65%;
        background-position: center, right bottom;
        opacity: 0.55;
    }

    .affiksys-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Weniger Animation bei entsprechender Systemeinstellung */
@media (prefers-reduced-motion: reduce) {
    .affiksys-footer a {
        transition: none;
    }
}

/* ==========================================================
   AffiKSys Footer – Typografie und Linkdarstellung
   ========================================================== */

/* Grundschrift etwas größer */
.affiksys-footer {
    font-size: 1rem;
}

/* Beschreibung unter dem AKS-Logo */
.affiksys-footer .affiksys-footer__description {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Spaltenüberschriften */
.affiksys-footer .affiksys-footer__heading {
    font-size: 1.05rem;
}

/* Links: größere Schrift und keine Unterstreichung */
.affiksys-footer .affiksys-footer__links a,
.affiksys-footer .affiksys-footer__links a:link,
.affiksys-footer .affiksys-footer__links a:visited {
    font-size: 0.95rem;
    color: var(--footer-muted);
    text-decoration: none;
}

/* Hover und Tastaturfokus */
.affiksys-footer .affiksys-footer__links a:hover,
.affiksys-footer .affiksys-footer__links a:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

/* Platzhaltertexte ebenfalls anpassen */
.affiksys-footer .affiksys-footer__links span {
    font-size: 0.95rem;
    color: var(--footer-muted);
}

/* Copyright-Zeile */
.affiksys-footer .affiksys-footer__bottom-inner {
    font-size: 0.85rem;
}



/* ==========================================================
   Footer – Desktop-Ausrichtung
   ========================================================== */

@media (min-width: 1401px) {
    .affiksys-footer__grid {
        position: relative;
        left: -60px;
    }
}

@media (min-width: 1401px) {
    .affiksys-footer__bottom-inner {
        position: relative;
        left: -53px;
    }
}

