/* =============================================
   GRKN Footer — v1.4.0
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

.grkn-footer, .grkn-footer * { box-sizing: border-box; margin: 0; padding: 0; }

.grkn-footer {
    --grkn-bg:        #07102a;
    --grkn-accent:    #3b6bff;
    --grkn-border:    rgba(255,255,255,0.09);
    --grkn-font-head: 'Syne', sans-serif;
    --grkn-font-body: 'DM Sans', sans-serif;

    display: block !important;
    width: 100% !important;
    background: var(--grkn-bg);
    color: rgba(255,255,255,0.68);
    font-family: var(--grkn-font-body);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    padding: 26px 0 0;
    clear: both;
}

.grkn-footer::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(59,107,255,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.grkn-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* ── ROW 1: Impressum | Company+Nav | Socials ── */
.grkn-footer-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--grkn-border);
    flex-wrap: nowrap;   /* never wrap on desktop */
}

/* LEFT: Impressum — small, links if URL given */
.grkn-footer-heading {
    font-family: var(--grkn-font-head);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;  /* when it's a link */
}
a.grkn-footer-heading:hover { color: rgba(255,255,255,0.75); }

/* CENTER: company + nav */
.grkn-footer-center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.grkn-footer-company {
    font-size: 11.5px;
    color: rgba(255,255,255,0.50);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.grkn-footer-center .grkn-footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
}
.grkn-footer-center .grkn-footer-nav li a {
    font-size: 11.5px;
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    transition: color 0.2s;
}
.grkn-footer-center .grkn-footer-nav li a:hover { color: #fff; }

/* RIGHT: Socials */
.grkn-footer-socials {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.grkn-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.60);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
    flex-shrink: 0;
}
.grkn-social-icon:hover {
    background: var(--grkn-accent);
    border-color: var(--grkn-accent);
    color: #fff;
    transform: translateY(-2px);
}
.grkn-social-icon svg { display: block; width: 15px; height: 15px; pointer-events: none; }

.grkn-social-instagram:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.grkn-social-facebook:hover  { background: #1877f2; border-color: #1877f2; }
.grkn-social-twitter:hover   { background: #111; border-color: #444; }
.grkn-social-youtube:hover   { background: #ff0000; border-color: #ff0000; }
.grkn-social-tiktok:hover    { background: #010101; border-color: #69c9d0; }

/* ── ROW 2: Legal left | Copyright right ── */
.grkn-footer-row2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0 15px;
    flex-wrap: nowrap;   /* keep on one row */
}

.grkn-footer-legal {
    flex: 1 1 0;
    min-width: 0;
}

.grkn-footer-impressum-text {
    font-size: 10px;
    line-height: 1.8;
    color: rgba(255,255,255,0.28);
    margin-bottom: 5px;
    /* clamp to 2 lines max so it doesn't push layout */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grkn-footer-impressum-text a { color: rgba(255,255,255,0.38); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.grkn-footer-impressum-text a:hover { color: #fff; }

.grkn-footer-quicklinks {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.grkn-footer-quicklinks a { font-size: 10.5px; color: rgba(255,255,255,0.40); text-decoration: none; transition: color 0.2s; }
.grkn-footer-quicklinks a:hover { color: #fff; }
.grkn-footer-quicklinks .grkn-sep { color: rgba(255,255,255,0.18); font-size: 9px; user-select: none; }

/* RIGHT: copyright block — never shrinks below content */
.grkn-footer-right {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}
.grkn-footer-copyright { font-size: 11px; color: rgba(255,255,255,0.38); }
.grkn-footer-credit { font-size: 10px; color: rgba(255,255,255,0.18); margin-top: 2px; }
.grkn-footer-credit a { color: rgba(59,107,255,0.65); text-decoration: none; transition: color 0.2s; }
.grkn-footer-credit a:hover { color: var(--grkn-accent); }

/* ── TABLET 768px ── */
@media (max-width: 768px) {
    .grkn-footer-inner { padding: 0 24px; }

    .grkn-footer-row1 {
        flex-wrap: wrap;
        gap: 14px;
    }
    /* On tablet: heading + socials on same line, nav full-width below */
    .grkn-footer-heading { order: 1; }
    .grkn-footer-socials  { order: 2; margin-left: auto; }
    .grkn-footer-center   { order: 3; flex: 1 1 100%; text-align: left; align-items: flex-start; }

    .grkn-footer-row2 {
        flex-wrap: wrap;
        gap: 10px;
    }
    .grkn-footer-right {
        flex: 1 1 100%;
        text-align: left;
        white-space: normal;
    }
}

/* ── MOBILE 480px ── */
@media (max-width: 480px) {
    .grkn-footer { padding: 22px 0 0; }
    .grkn-footer-inner { padding: 0 16px; }

    .grkn-footer-row1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .grkn-footer-heading { order: unset; }
    .grkn-footer-socials  { order: unset; margin-left: 0; flex-wrap: wrap; }
    .grkn-footer-center   { order: unset; width: 100%; }
    .grkn-footer-center .grkn-footer-nav { justify-content: flex-start; }
    .grkn-footer-company { white-space: normal; overflow: visible; }

    .grkn-footer-impressum-text { -webkit-line-clamp: unset; }
}

/* ── Fix: hide theme's ghost footer that leaves whitespace ── */
.site-footer:not(.grkn-footer) {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* ── Fix: ensure no whitespace below grkn-footer ── */
.site > .grkn-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════
   STICKY FOOTER FIX
   Problem: html { min-height:100% } + wp-admin bar
   creates whitespace below footer on short pages.
   Solution: flex column layout on .site so footer
   always sits at the very bottom of the page.
   ═══════════════════════════════════════════════════ */

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* .site is the main wrapper — make it grow to fill body */
.site {
    flex: 1 0 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

/* Content area grows to push footer down */
.site-content,
.entry-content,
.elementor-section-wrap,
[data-elementor-type="wp-page"] {
    flex: 1 0 auto;
}

/* Footer never shrinks */
.site > .grkn-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Hide Twenty Twenty-One's ghost footer completely */
.site-footer:not(.grkn-footer) {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
