/*
Theme Name: FC SH Child
Theme URI: https://www.webamax.de/
Description: Child Theme von Hello Elementor – mit eigenem Header & Footer (responsive, ohne Elementor-Abhängigkeit).
Author: Webamax Digitalagentur
Author URI: https://www.webamax.de/
Template: hello-elementor
Version: 1.0.0
Text Domain: fc-sh-child
*/

/* ==========================================================================
   GRUNDLAGEN
   ========================================================================== */

:root {
    --fc-blue: #00348B;
    --fc-green: #2E7D32;
    --fc-green-dark: #1B5E20;
    --fc-white: #FFFFFF;
    --fc-text: #444444;
    --fc-muted: #A0A8C0;
    --fc-border: #DDDDDD;
    --fc-header-height: 80px;
    --fc-content-max: 1300px;
}

/* Sticky-Footer-Pattern: Body als Flex-Spalte, Main füllt den Rest */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.fc-header,
.fc-footer {
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.fc-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--fc-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 6em;
}

.fc-header__inner {
    max-width: var(--fc-content-max);
    margin: 0 auto;
    min-height: var(--fc-header-height);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Menü rechts; Logo absolut */
    position: relative;
    padding: 0 20px;
}

/* Logo-Container: das Logo-BILD soll links bündig zum Content (1300px) sein.
   Da der <a> innen 16px Padding hat, sitzt der Container 16px weiter links
   (left: 4px statt 20px) – damit landet die Bildkante exakt auf dem
   Content-Padding-Edge bei (viewport-1300)/2 + 20. */
.fc-header__logo {
    position: absolute;
    top: 0;
    left: 4px;
    width: 160px;
    background: var(--fc-white);
    border-radius: 0 0 50% 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform .25s ease, box-shadow .25s ease;
    box-sizing: border-box;
}

.fc-header__logo:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Symmetrisches Padding → Container bleibt quadratisch → Halbkreis bleibt rund */
.fc-header__logo a {
    display: block;
    padding: 16px;
}

.fc-header__logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   HAUPT-NAVIGATION (Desktop)
   ========================================================================== */

.fc-nav {
    display: flex;
    align-items: center;
}

.fc-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.fc-nav__list a {
    position: relative;
    display: inline-block;
    padding: 12px 18px;
    font-family: "Teko", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 20px;
    color: var(--fc-blue);
    text-decoration: none;
    text-transform: uppercase;
    z-index: 1;
}

.fc-nav__list a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fc-green);
    transform: skew(-8deg);
    opacity: 0;
    z-index: -1;
    transition: opacity .25s ease;
}

.fc-nav__list a:hover,
.fc-nav__list .current-menu-item > a,
.fc-nav__list .current_page_item > a {
    color: var(--fc-white);
}

.fc-nav__list a:hover::before,
.fc-nav__list .current-menu-item > a::before,
.fc-nav__list .current_page_item > a::before {
    opacity: 1;
}

/* ==========================================================================
   BURGER-MENÜ (Mobile / Tablet)
   ========================================================================== */

.fc-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    color: var(--fc-blue);
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    transition: color .25s ease;
}

.fc-burger:active,
.fc-nav-mobile__close:active {
    background: transparent;
}

.fc-burger:hover,
.fc-burger:focus {
    color: var(--fc-green);
    outline: none;
}

.fc-burger:focus-visible {
    outline: 2px solid var(--fc-green);
    outline-offset: 4px;
    border-radius: 6px;
}

.fc-burger__lines {
    position: relative;
    display: block;
    width: 30px;
    height: 22px;
}

.fc-burger__lines span {
    position: absolute;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 3px;
    transition: width .3s ease, transform .3s ease, background .25s ease;
}

.fc-burger__lines span:nth-child(1) { top: 0; }
.fc-burger__lines span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 65%;
}
.fc-burger__lines span:nth-child(3) { bottom: 0; width: 80%; }

.fc-burger:hover .fc-burger__lines span:nth-child(2),
.fc-burger:focus .fc-burger__lines span:nth-child(2) {
    width: 100%;
}

.fc-burger:hover .fc-burger__lines span:nth-child(3),
.fc-burger:focus .fc-burger__lines span:nth-child(3) {
    width: 100%;
}

/* Mobile Overlay-Menü (Vollbild, animiert) */
.fc-nav-mobile {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--fc-blue) 0%, #001f5c 100%);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fc-header-height) 24px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
    overflow-y: auto;
}

.fc-nav-mobile[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s;
}

.fc-nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.fc-nav-mobile li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}

.fc-nav-mobile[aria-hidden="false"] li {
    opacity: 1;
    transform: translateY(0);
}

.fc-nav-mobile[aria-hidden="false"] li:nth-child(1) { transition-delay: .12s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(2) { transition-delay: .18s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(3) { transition-delay: .24s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(4) { transition-delay: .30s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(5) { transition-delay: .36s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(6) { transition-delay: .42s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(7) { transition-delay: .48s; }
.fc-nav-mobile[aria-hidden="false"] li:nth-child(8) { transition-delay: .54s; }

.fc-nav-mobile a {
    position: relative;
    display: block;
    padding: 18px 24px;
    font-family: "Teko", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--fc-white);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color .25s ease, transform .25s ease, letter-spacing .25s ease;
}

.fc-nav-mobile a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fc-green);
    transform: skew(-8deg) scaleX(0);
    transform-origin: left;
    opacity: 0;
    z-index: -1;
    transition: transform .3s ease, opacity .3s ease;
}

.fc-nav-mobile a:hover,
.fc-nav-mobile a:focus,
.fc-nav-mobile .current-menu-item > a,
.fc-nav-mobile .current_page_item > a {
    color: var(--fc-white);
    letter-spacing: 2px;
}

.fc-nav-mobile a:hover::before,
.fc-nav-mobile a:focus::before,
.fc-nav-mobile .current-menu-item > a::before,
.fc-nav-mobile .current_page_item > a::before {
    transform: skew(-8deg) scaleX(1);
    opacity: 1;
}

/* X-Button im Overlay (oben rechts, fixed über allem) */
.fc-nav-mobile__close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--fc-white);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: scale(.6) rotate(-90deg);
    transition:
        opacity .3s ease,
        transform .35s ease,
        background .25s ease,
        border-color .25s ease,
        visibility 0s linear .3s;
}

.fc-nav-mobile__close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.fc-nav-mobile[aria-hidden="false"] ~ .fc-nav-mobile__close,
.fc-nav-mobile[aria-hidden="false"] .fc-nav-mobile__close {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0);
    transition:
        opacity .3s ease .15s,
        transform .35s ease .15s,
        background .25s ease,
        border-color .25s ease,
        visibility 0s linear 0s;
}

.fc-nav-mobile__close:hover,
.fc-nav-mobile__close:focus {
    background: var(--fc-green);
    border-color: var(--fc-green);
    transform: scale(1) rotate(90deg);
}

/* Body scroll-lock, wenn Overlay offen ist */
body.fc-no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE: Header
   ========================================================================== */

@media (max-width: 1024px) {
    .fc-nav-desktop {
        display: none;
    }

    .fc-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile: Logo verlässt den Halbkreis, sitzt einfach links im Header.
       Header-Höhe definiert die Logo-Höhe – kein Rausragen mehr. */
    .fc-header__inner {
        justify-content: space-between;
        min-height: 96px;
        padding: 0 28px;
    }

    .fc-header__logo {
        position: static;
        width: auto;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .fc-header__logo:hover {
        transform: none;
        box-shadow: none;
    }

    .fc-header__logo a {
        padding: 0;
        display: flex;
        align-items: center;
    }

    .fc-header__logo img {
        height: 80px;
        width: auto;
    }

    .fc-header {
        margin-bottom: 0;
    }

    /* Burger verstecken, sobald das Overlay offen ist – das X im Overlay übernimmt */
    .fc-burger[aria-expanded="true"] {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 600px) {
    .fc-header__logo img {
        height: 64px;
    }

    .fc-header__inner {
        min-height: 86px;
        padding: 0 22px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.fc-footer {
    background: var(--fc-blue);
    color: var(--fc-white);
    padding: 2em 20px 0;
    margin-top: 3em;
}

.fc-footer__inner {
    max-width: var(--fc-content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3em;
}

.fc-footer__col {
    min-width: 0;
}

.fc-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1em;
}

.fc-footer__logo {
    width: 72px;
    height: auto;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.fc-footer__sitename {
    font-family: "Teko", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--fc-white);
}

.fc-footer__intro {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 26px;
    color: var(--fc-white);
    margin: 0;
}

.fc-footer__heading {
    font-family: "Teko", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 30px;
    color: var(--fc-white);
    margin: 0 0 1em;
    padding-bottom: 1px;
    border-bottom: 2px solid var(--fc-green);
    display: inline-block;
}

.fc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-footer__list li {
    margin: 0;
    padding: 5px 0;
    transition: transform .25s ease;
}

.fc-footer__list li:hover {
    transform: translateX(8px);
}

.fc-footer__list a {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 24px;
    color: var(--fc-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .25s ease;
}

.fc-footer__list a:hover {
    color: var(--fc-green);
}

.fc-footer__list a svg {
    width: 14px;
    height: 14px;
    fill: var(--fc-green);
    flex-shrink: 0;
}

/* Copyright-Bar */
.fc-footer__bottom {
    max-width: var(--fc-content-max);
    margin: 0 auto;
    padding: 1em 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 2em;
}

.fc-footer__copy {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 24px;
    color: var(--fc-white);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE: Footer
   ========================================================================== */

@media (max-width: 1024px) {
    .fc-footer__inner {
        grid-template-columns: 1fr;
        gap: 2em;
        text-align: center;
    }

    .fc-footer__col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fc-footer__brand {
        justify-content: center;
    }

    .fc-footer__logo {
        margin-left: 0;
        margin-right: 0;
    }

    .fc-footer__list a {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .fc-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.8em;
    }

    .fc-footer__logo {
        width: 60px;
    }

    .fc-footer__sitename {
        font-size: 1.4rem;
    }

    .fc-footer__brand {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   404 – „Abseits!"
   ========================================================================== */

.fc-404 {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    max-width: var(--fc-content-max);
    width: 100%;
    margin: 0 auto;
}

.fc-404__inner {
    max-width: 720px;
    width: 100%;
}

.fc-404__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: "Teko", sans-serif;
    font-size: clamp(6rem, 16vw, 12rem);
    font-weight: 700;
    line-height: .9;
    color: var(--fc-blue);
    margin: 0 0 16px;
}

.fc-404__digit {
    display: inline-block;
    animation: fc-404-pop .6s ease both;
}

.fc-404__digit:last-child {
    animation-delay: .2s;
}

@keyframes fc-404-pop {
    0%   { opacity: 0; transform: translateY(20px) scale(.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fc-404__ball {
    display: inline-block;
    width: .85em;
    height: .85em;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12));
}

.fc-404__ball svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fc-404__title {
    font-family: "Teko", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--fc-green);
    margin: 0 0 14px;
    animation: fc-404-pop .6s ease .35s both;
}

.fc-404__text {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    color: var(--fc-text);
    margin: 0 auto 32px;
    max-width: 560px;
    animation: fc-404-pop .6s ease .5s both;
}

/* Skewed Parallelogramm-Button (passend zum Site-Stil) */
.fc-404__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    margin-top: 8px;
    font-family: "Teko", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fc-white);
    background: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    z-index: 0;
    animation: fc-404-pop .6s ease .65s both;
    transition: transform .25s ease, color .25s ease;
}

.fc-404__btn,
.fc-404__btn:link,
.fc-404__btn:visited,
.fc-404__btn:active {
    color: var(--fc-white);
}

.fc-404__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fc-green);
    transform: skew(-8deg);
    z-index: -1;
    transition: background .25s ease, box-shadow .25s ease;
}

.fc-404__btn:hover,
.fc-404__btn:focus {
    color: var(--fc-white);
    transform: translateY(-2px);
}

.fc-404__btn:hover::before,
.fc-404__btn:focus::before {
    background: var(--fc-green-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}

.fc-404__btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

/* Mini-Spiel */
.fc-404__game {
    margin: 2.5em auto 0;
    width: 100%;
    max-width: 800px;
    animation: fc-404-pop .6s ease .9s both;
}

#fc-404-game {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(180deg, #F0F4FA 0%, #E3EAF3 100%);
    border: 2px solid var(--fc-blue);
    border-radius: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

#fc-404-game:focus-visible {
    box-shadow: 0 0 0 4px rgba(46, 125, 50, .35);
}

.fc-404__game-hint {
    text-align: center;
    color: var(--fc-muted);
    font-size: .9rem;
    margin: .8em 0 0;
    font-family: "Open Sans", sans-serif;
}

@media (max-width: 600px) {
    .fc-404 {
        padding: 40px 18px 60px;
    }

    .fc-404__code {
        gap: 8px;
    }

    .fc-404__title {
        letter-spacing: 2px;
    }

    .fc-404__btn {
        width: 100%;
    }
}

