/* ==========================================================
   EFC CAPPELER ADLER
   FINALE STYLE.CSS – NUR STARTSEITE
   ========================================================== */


/* ==========================================================
   1. VARIABLEN
   ========================================================== */

:root {
    --red: #d71920;
    --red-light: #ef2430;
    --red-dark: #92070d;

    --black: #030303;
    --black-soft: #080808;
    --black-card: #111113;

    --white: #ffffff;

    --gray-100: #f3f3f3;
    --gray-200: #d8d8d8;
    --gray-300: #b8b8b8;
    --gray-400: #929292;
    --gray-500: #696969;
    --gray-600: #484848;
    --gray-700: #303030;

    --page-width: 1450px;
    --header-height: 86px;
    --footer-height: 128px;

    --border-color:
        rgba(255, 255, 255, 0.15);

    --shadow-strong:
        0 28px 80px
        rgba(0, 0, 0, 0.62);

    --transition-fast:
        0.2s ease;

    --transition-medium:
        0.35s ease;
}


/* ==========================================================
   2. RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scroll-padding-top:
        var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--white);
    background: var(--black);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.55;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

button,
a,
input {
    -webkit-tap-highlight-color:
        transparent;
}

::selection {
    color: var(--white);
    background: var(--red);
}


/* ==========================================================
   3. ALLGEMEINE KLASSEN
   ========================================================== */

.page-container {
    width: min(
        calc(100% - 48px),
        var(--page-width)
    );

    margin-right: auto;
    margin-left: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;

    padding: 10px 15px;

    color: var(--black);
    background: var(--white);

    transform:
        translateY(-150%);

    transition:
        transform
        var(--transition-fast);
}

.skip-link:focus {
    transform:
        translateY(0);
}

.noscript-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 9999;

    padding: 14px 18px;

    color: var(--white);
    background: var(--red-dark);

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    text-align: center;
}


/* ==========================================================
   4. HEADER
   ========================================================== */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;

    min-height:
        var(--header-height);

    background:
        rgba(3, 3, 3, 0.985);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.14);

    transition:
        box-shadow
        var(--transition-fast);
}

.site-header.scrolled {
    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.52);
}

.header-container {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-height:
        var(--header-height);
}

.header-logo {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 4;

    width: 305px;

    filter:
        drop-shadow(
            0 12px 22px
            rgba(0, 0, 0, 0.62)
        );

    transition: none;
}

.header-logo:hover {
    transform: none;
}

.header-logo img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 27px;

    margin-left: 320px;
}

.navigation-list {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navigation-link {
    position: relative;

    display: block;

    padding: 32px 0 29px;

    color: var(--gray-200);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.035em;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color
        var(--transition-fast);
}

.navigation-link::after {
    position: absolute;
    right: 100%;
    bottom: 10px;
    left: 0;

    height: 3px;

    background: var(--red);

    content: "";

    transition:
        right
        var(--transition-fast);
}

.navigation-link:hover,
.navigation-link.active {
    color: var(--red);
}

.navigation-link:hover::after,
.navigation-link.active::after {
    right: 0;
}

.member-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 46px;

    padding-right: 20px;
    padding-left: 20px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--red-light),
            var(--red-dark)
        );

    border: 0;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.88rem;
    font-weight: 400;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 10px 26px
        rgba(215, 25, 32, 0.25);

    transition:
        transform
        var(--transition-fast),
        box-shadow
        var(--transition-fast);
}

.member-login-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 15px 34px
        rgba(215, 25, 32, 0.4);
}

.mobile-menu-button {
    display: none;

    position: relative;
    z-index: 1100;

    width: 46px;
    height: 46px;

    padding: 8px;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 27px;
    height: 2px;

    margin: 6px auto;

    background: var(--white);

    transition:
        transform
        var(--transition-fast),
        opacity
        var(--transition-fast);
}

.mobile-menu-button[aria-expanded="true"]
span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"]
span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"]
span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* ==========================================================
   5. BUTTONS
   ========================================================== */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;

    padding-right: 23px;
    padding-left: 23px;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.94rem;
    font-weight: 400;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform
        var(--transition-fast),
        box-shadow
        var(--transition-fast),
        color
        var(--transition-fast),
        background
        var(--transition-fast),
        border-color
        var(--transition-fast);
}

.primary-button {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--red-light),
            var(--red-dark)
        );

    border:
        1px solid
        var(--red);

    box-shadow:
        0 11px 28px
        rgba(215, 25, 32, 0.27);
}

.primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 15px 35px
        rgba(215, 25, 32, 0.42);
}

.secondary-button {
    color: var(--white);

    background:
        rgba(0, 0, 0, 0.28);

    border:
        1px solid
        rgba(255, 255, 255, 0.62);
}

.secondary-button:hover {
    color: var(--red);
    border-color: var(--red);

    transform:
        translateY(-2px);
}


/* ==========================================================
   6. STARTSEITE
   ========================================================== */

body.home-page {
    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;
}

.home-main {
    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        auto;

    height: calc(
        100vh -
        var(--header-height) -
        var(--footer-height)
    );

    height: calc(
        100svh -
        var(--header-height) -
        var(--footer-height)
    );

    margin-top:
        var(--header-height);

    overflow: hidden;
}


/* ==========================================================
   7. HERO
   ========================================================== */

.hero-section {
    position: relative;

    min-height: 0;

    overflow: hidden;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -5;

    background-image:
        url("../img/hero-stadion.png");

    background-position:
        center 42%;

    background-repeat: no-repeat;
    background-size: cover;

    transform:
        scale(1.015);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.75) 35%,
            rgba(0, 0, 0, 0.28) 67%,
            rgba(0, 0, 0, 0.58) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.08) 55%,
            rgba(0, 0, 0, 0.9) 100%
        );
}

.hero-texture {
    position: absolute;
    inset: 0;
    z-index: -3;

    opacity: 0.08;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 3px
        );

    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;

    height: 100%;

    padding-top: 20px;
    padding-bottom: 18px;
}

.hero-content {
    max-width: 730px;

    margin-left: 350px;
}

.hero-kicker,
.hero-title,
.hero-divider,
.hero-description,
.hero-buttons {
    animation:
        home-content-reveal
        0.7s
        ease
        both;
}

.hero-title {
    animation-delay: 0.06s;
}

.hero-divider {
    animation-delay: 0.12s;
}

.hero-description {
    animation-delay: 0.18s;
}

.hero-buttons {
    animation-delay: 0.24s;
}

.hero-kicker {
    margin-bottom: 12px;

    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1.43rem;
    line-height: 1;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 9px;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-weight: 400;
    line-height: 0.9;

    text-transform: uppercase;
}

.hero-title-white {
    display: block;

    color: var(--white);

    font-size:
        clamp(
            4.45rem,
            6.3vw,
            6.8rem
        );

    text-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.75);
}

.hero-title-red {
    display: block;

    margin-top: 7px;

    color: var(--red);

    font-family:
        "Arial Black",
        Impact,
        sans-serif;

    font-size:
        clamp(
            3.65rem,
            5.35vw,
            5.75rem
        );

    font-style: italic;

    letter-spacing: -0.055em;

    transform:
        skewX(-8deg);

    text-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.72);
}

.hero-divider {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        46px
        minmax(0, 1fr);

    align-items: center;
    gap: 10px;

    width: 520px;
    max-width: 100%;

    margin-top: 11px;
    margin-bottom: 16px;
}

.hero-divider::before,
.hero-divider::after {
    display: block;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red)
        );
    content: "";
}

.hero-divider::after {
    background:
        linear-gradient(
            90deg,
            var(--red),
            transparent
        );
}

/* Leere Spans können durch Joomla-Editorfilter entfernt werden.
   Die Linien werden deshalb robust über Pseudoelemente erzeugt. */
.hero-divider > span {
    display: none;
}

.hero-divider img {
    width: 36px;
    height: 36px;

    margin: 0 auto;

    object-fit: contain;
}

.hero-description {
    max-width: 585px;

    margin-bottom: 21px;

    color: var(--gray-100);

    font-size: 1.08rem;
    line-height: 1.5;

    text-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.78);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ==========================================================
   8. DASHBOARD
   ========================================================== */

.dashboard-section {
    position: relative;
    z-index: 5;

    padding-bottom: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.94),
            var(--black)
        );
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        0.92fr
        1.05fr
        1.28fr;

    gap: 16px;
}

.dashboard-card {
    position: relative;

    min-height: 214px;

    padding:
        20px
        22px
        18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            rgba(0, 0, 0, 0.18)
        );

    border:
        1px solid
        var(--border-color);

    transition:
        transform
        var(--transition-fast),
        border-color
        var(--transition-fast),
        box-shadow
        var(--transition-fast),
        background
        var(--transition-fast);
}

.dashboard-card:hover {
    border-color:
        rgba(215, 25, 32, 0.55);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.026),
            rgba(215, 25, 32, 0.025)
        );

    box-shadow:
        0 13px 32px
        rgba(0, 0, 0, 0.3);

    transform:
        translateY(-2px);
}

.dashboard-title {
    margin-bottom: 13px;

    color: var(--gray-100);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1.17rem;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.84rem;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        color
        var(--transition-fast),
        transform
        var(--transition-fast);
}

.dashboard-link:hover {
    color: var(--white);

    transform:
        translateX(3px);
}


/* ==========================================================
   9. NÄCHSTES SPIEL
   ========================================================== */

.next-match-teams-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    margin:
        18px
        0
        20px;

    text-align: center;
}

.team-home,
.team-away {
    color: var(--white);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.15;

    text-transform: uppercase;
}

.next-match-versus {
    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1.7rem;
    line-height: 1;
}

.next-match-information {
    margin-bottom: 10px;
}

.next-match-date,
.next-match-location {
    margin-bottom: 5px;

    color: var(--gray-200);

    font-size: 0.78rem;
    line-height: 1.35;

    text-transform: uppercase;
}

.next-match-date {
    display: flex;
    align-items: center;
    gap: 7px;
}

.next-match-location {
    padding-left: 24px;
}


/* ==========================================================
   10. COUNTDOWN
   ========================================================== */

.countdown-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    height: 100%;
}

.countdown-card .dashboard-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.countdown-competition {
    margin-top: 0;
    margin-bottom: 34px;

    color: var(--gray-400);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    width: 100%;
    margin: 0;
}

.countdown-item {
    position: relative;

    min-width: 70px;

    text-align: center;
}

.countdown-item:not(:last-child)::after {
    position: absolute;
    top: -10px;
    right: -22px;

    width: 1px;
    height: 78px;

    background:
        rgba(255, 255, 255, 0.15);

    content: "";
}

.countdown-number {
    display: block;

    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
}

.countdown-label {
    display: block;

    margin-top: 7px;

    color: var(--gray-200);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.68rem;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ==========================================================
   11. NEWS
   ========================================================== */

.latest-news-list {
    display: grid;
    gap: 6px;

    margin-top: 5px;
    margin-bottom: 8px;
}

.latest-news-item {
    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr);

    align-items: center;
    gap: 12px;

    min-height: 45px;

    padding-bottom: 6px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.latest-news-image {
    display: block;

    width: 80px;
    height: 45px;

    overflow: hidden;
}

.latest-news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        var(--transition-medium);
}

.latest-news-image:hover img {
    transform:
        scale(1.08);
}

.latest-news-content h3 {
    margin:
        0
        0
        3px;

    color: var(--gray-100);

    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.25;
}

.latest-news-content h3 a:hover {
    color: var(--red);
}

.latest-news-content time {
    display: block;

    color: var(--gray-500);

    font-size: 0.61rem;
}

.news-overview-link {
    display: flex;
    justify-content: flex-end;

    width: 100%;

    font-size: 0.72rem;
}


/* ==========================================================
   12. FOOTER
   ========================================================== */

.site-footer {
    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        30px;

    height:
        var(--footer-height);

    min-height:
        var(--footer-height);

    background:
        linear-gradient(
            180deg,
            #050505,
            #020202
        );

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);

    overflow: hidden;
}

.footer-container {
    display: grid;

    grid-template-columns:
        1.15fr
        0.6fr
        0.95fr
        1fr;

    align-items: center;
    gap: 55px;

    min-height: 0;

    padding-top: 8px;
    padding-bottom: 6px;
}

.footer-block {
    min-width: 0;
}

.footer-title {
    margin-bottom: 6px;

    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1rem;
    font-weight: 400;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-club p {
    margin-bottom: 1px;

    color: var(--gray-200);

    font-family:
        "Arial Narrow",
        Arial,
        sans-serif;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social-link {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--gray-200);

    font-size: 1.5rem;
    font-weight: 700;

    transition:
        color
        var(--transition-fast),
        transform
        var(--transition-fast);
}

.footer-social-link:hover {
    color: var(--red);

    transform:
        translateY(-3px);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--gray-200);

    font-size: 0.75rem;

    transition:
        color
        var(--transition-fast);
}

.footer-email:hover {
    color: var(--red);
}

.footer-slogan {
    text-align: center;
}

.footer-slogan > p {
    margin-bottom: 7px;

    color: var(--gray-200);

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size: 1.65rem;
    line-height: 1;

    transform:
        rotate(-2deg);
}

.footer-slogan-divider {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        34px
        minmax(0, 1fr);

    align-items: center;
    gap: 9px;

    width: 90%;

    margin: 0 auto;
}

.footer-slogan-divider span {
    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red)
        );
}

.footer-slogan-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            var(--red),
            transparent
        );
}

.footer-slogan-divider img {
    width: 29px;
    height: 29px;

    margin: 0 auto;

    object-fit: contain;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 30px;

    padding-top: 5px;
    padding-bottom: 5px;

    color: var(--gray-500);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    font-size: 0.62rem;
    line-height: 1.2;
}

.footer-copyright {
    margin: 0;

    white-space: nowrap;
}

.footer-legal-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-legal-navigation a {
    position: relative;

    color: var(--gray-400);

    transition:
        color
        var(--transition-fast);
}

.footer-legal-navigation a + a::before {
    position: absolute;
    top: 50%;
    left: -10px;

    color: var(--gray-700);

    content: "•";

    transform:
        translateY(-50%);
}

.footer-legal-navigation a:hover,
.footer-legal-navigation a:focus-visible {
    color: var(--red);
}


/* ==========================================================
   13. LOGIN-DIALOG
   ========================================================== */

.login-dialog {
    position: relative;

    width: min(
        92vw,
        450px
    );

    padding: 34px;

    color: var(--white);

    background:
        linear-gradient(
            160deg,
            #151515,
            #070707
        );

    border:
        1px solid
        rgba(215, 25, 32, 0.62);

    border-radius: 0;

    box-shadow:
        var(--shadow-strong);
}

.login-dialog::backdrop {
    background:
        rgba(0, 0, 0, 0.86);

    backdrop-filter:
        blur(8px);
}

.login-dialog-close {
    position: absolute;
    top: 10px;
    right: 14px;

    padding: 0;

    color: var(--gray-300);
    background: transparent;

    border: 0;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.login-dialog-close:hover {
    color: var(--red);
}

.login-header {
    text-align: center;
}

.login-header img {
    width: 105px;
    height: 105px;

    margin:
        0
        auto
        15px;

    object-fit: contain;
}

.login-kicker {
    margin-bottom: 7px;

    color: var(--red);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 0.85rem;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-header h2 {
    margin-bottom: 8px;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 1.9rem;
    font-weight: 400;

    text-transform: uppercase;
}

.login-header p:last-child {
    color: var(--gray-300);

    font-size: 0.83rem;
}

.login-form {
    display: grid;
    gap: 15px;

    margin-top: 22px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: var(--gray-200);

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    height: 45px;

    padding:
        0
        13px;

    color: var(--white);
    background: var(--black);

    border:
        1px solid
        var(--gray-600);

    border-radius: 0;
    outline: none;
}

.form-group input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px
        rgba(215, 25, 32, 0.14);
}

.remember-login {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--gray-300);

    font-size: 0.73rem;
}

.remember-login input {
    accent-color: var(--red);
}

.login-submit {
    width: 100%;
}

.form-status {
    min-height: 20px;
    margin-bottom: 0;

    color: var(--gray-300);

    font-size: 0.74rem;
    text-align: center;
}

.login-note {
    margin:
        17px
        0
        0;

    padding-top: 15px;

    color: var(--gray-500);

    border-top:
        1px solid
        var(--gray-700);

    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
}


/* ==========================================================
   14. FOKUS
   ========================================================== */

.navigation-link:focus-visible,
.member-login-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.dashboard-link:focus-visible,
.footer-social-link:focus-visible,
.footer-email:focus-visible,
.footer-legal-navigation a:focus-visible {
    outline:
        2px solid
        var(--red);

    outline-offset: 4px;
}


/* ==========================================================
   15. ANIMATION
   ========================================================== */

@keyframes home-content-reveal {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* ==========================================================
   16. NIEDRIGE DESKTOP-BILDSCHIRME
   ========================================================== */

@media
    (min-width: 981px)
    and (max-height: 850px) {

    :root {
        --footer-height: 104px;
    }

    .site-footer {
        grid-template-rows:
            minmax(0, 1fr)
            25px;
    }

    .footer-container {
        padding-top: 5px;
        padding-bottom: 3px;
    }

    .footer-bottom {
        min-height: 25px;

        padding-top: 3px;
        padding-bottom: 3px;

        font-size: 0.56rem;
    }

    .hero-content {
        transform:
            scale(0.9);

        transform-origin:
            left center;
    }

    .dashboard-card {
        min-height: 185px;

        padding-top: 16px;
        padding-bottom: 14px;
    }

    .countdown-competition {
        margin-bottom: 22px;
    }

    .countdown-number {
        font-size: 2rem;
    }

}


/* ==========================================================
   17. LAPTOP
   ========================================================== */

@media (max-width: 1220px) {

    .header-logo {
        width: 250px;
    }

    .navigation-list {
        gap: 19px;
    }

    .navigation-link {
        font-size: 0.82rem;
    }

    .main-navigation {
        gap: 18px;

        margin-left: 265px;
    }

    .member-login-button {
        padding-right: 14px;
        padding-left: 14px;

        font-size: 0.77rem;
    }

    .hero-content {
        margin-left: 290px;
    }

    .footer-container {
        gap: 30px;
    }

}


/* ==========================================================
   18. TABLET
   ========================================================== */

@media (max-width: 980px) {

    :root {
        --header-height: 76px;
        --footer-height: auto;
    }

    body.home-page {
        min-height: 100%;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .header-logo {
        top: 5px;

        width: 105px;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: fixed;
        inset: 0;
        z-index: 1050;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 28px;

        margin-left: 0;

        background:
            rgba(3, 3, 3, 0.985);

        opacity: 0;
        visibility: hidden;

        transform:
            translateX(100%);

        transition:
            opacity
            var(--transition-medium),
            visibility
            var(--transition-medium),
            transform
            var(--transition-medium);
    }

    .main-navigation.open {
        opacity: 1;
        visibility: visible;

        transform:
            translateX(0);
    }

    .navigation-list {
        flex-direction: column;
        gap: 4px;

        text-align: center;
    }

    .navigation-link {
        padding: 10px 0;

        font-size: 1.12rem;
    }

    .member-login-button {
        min-height: 44px;

        padding-right: 18px;
        padding-left: 18px;

        font-size: 0.9rem;
    }

    .home-main {
        display: block;

        height: auto;
        min-height: 100vh;

        margin-top:
            var(--header-height);

        overflow: visible;
    }

    .hero-section,
    .hero-container {
        min-height: 650px;
    }

    .hero-content {
        margin-left: 0;

        transform: none;
    }

    .dashboard-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .latest-news-card {
        grid-column:
            1 / -1;
    }

    .site-footer {
        display: block;

        height: auto;
        min-height: 0;

        overflow: visible;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);

        min-height: 180px;

        padding-top: 28px;
        padding-bottom: 24px;
    }

    .footer-bottom {
        min-height: 40px;

        padding-top: 10px;
        padding-bottom: 10px;

        font-size: 0.68rem;
    }

    .dashboard-card:hover {
        transform: none;
    }

}


/* ==========================================================
   19. SMARTPHONE
   ========================================================== */

@media (max-width: 700px) {

    .page-container {
        width:
            calc(100% - 26px);
    }

    .hero-section,
    .hero-container {
        min-height: 690px;
    }

    .hero-container {
        padding-top: 45px;
        padding-bottom: 40px;
    }

    .hero-background {
        background-position:
            63% center;
    }

    .hero-kicker {
        font-size: 1rem;
    }

    .hero-title-white {
        font-size:
            clamp(
                3.1rem,
                15vw,
                4.9rem
            );
    }

    .hero-title-red {
        font-size:
            clamp(
                2.65rem,
                13vw,
                4.2rem
            );
    }

    .hero-divider {
        width: 100%;

        grid-template-columns:
            minmax(0, 1fr)
            40px
            minmax(0, 1fr);
    }

    .hero-description {
        max-width: 400px;

        font-size: 0.96rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns:
            1fr;
    }

    .latest-news-card {
        grid-column: auto;
    }

    .dashboard-card {
        min-height: auto;

        padding:
            24px
            22px;
    }

    .countdown-grid {
        gap: 15px;
    }

    .countdown-item {
        min-width: 55px;
    }

    .countdown-item:not(:last-child)::after {
        right: -8px;
    }

    .footer-container {
        grid-template-columns:
            1fr;

        gap: 26px;

        min-height: 0;
    }

    .footer-slogan {
        text-align: left;
    }

    .footer-slogan-divider {
        width: 100%;
        max-width: 280px;

        margin-left: 0;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;

        min-height: 0;

        padding-top: 14px;
        padding-bottom: 16px;
    }

    .footer-legal-navigation {
        gap: 20px;
    }

}


/* ==========================================================
   20. KLEINE SMARTPHONES
   ========================================================== */

@media (max-width: 430px) {

    .header-logo {
        width: 90px;
    }

    .hero-title-white {
        font-size: 2.8rem;
    }

    .hero-title-red {
        font-size: 2.35rem;
    }

    .team-home,
    .team-away {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 1.65rem;
    }

    .countdown-grid {
        gap: 9px;
    }

    .countdown-item {
        min-width: 48px;
    }

    .countdown-item:not(:last-child)::after {
        right: -5px;

        height: 65px;
    }

}


/* ==========================================================
   21. REDUZIERTE BEWEGUNG
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }

    .dashboard-card:hover {
        transform: none;
    }

}

/* ==========================================================
   22. JOOMLA-INTEGRATION
   ========================================================== */

.efc-site .joomla-main,
.efc-site .item-page,
.efc-site .com-content-article {
    margin: 0;
    padding: 0;
}

/* Die Joomla-Beitragsumhüllung darf das ursprüngliche
   Startseitenraster aus Hero und Informationskarten nicht unterbrechen. */
.efc-site.home-page .joomla-main {
    height: calc(100svh - var(--header-height) - var(--footer-height));
    margin-top: var(--header-height);
    overflow: hidden;
}

.efc-site.home-page .joomla-main .item-page,
.efc-site.home-page .joomla-main .com-content-article {
    height: 100%;
    overflow: hidden;
}

.efc-site.home-page .joomla-main .com-content-article__body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 980px), (max-height: 760px) {
    .efc-site.home-page .joomla-main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .efc-site.home-page .joomla-main .item-page,
    .efc-site.home-page .joomla-main .com-content-article,
    .efc-site.home-page .joomla-main .com-content-article__body {
        display: block;
        height: auto;
        overflow: visible;
    }
}

.efc-site .joomla-main > .alert,
.efc-site .joomla-main > .system-message-container {
    position: relative;
    z-index: 20;
    width: min(92%, var(--page-width));
    margin: calc(var(--header-height) + 18px) auto 0;
}

.efc-site .main-navigation .mod-menu,
.efc-site .main-navigation .mod-custom {
    display: contents;
}

.efc-site .navigation-item {
    display: flex;
}

.efc-site .member-login-button {
    text-decoration: none;
}

.efc-site .article-info,
.efc-site .icons,
.efc-site .page-header:empty {
    display: none;
}

.component-window {
    padding: 24px;
    color: #111;
    background: #fff;
}

.efc-error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
    background: #050505;
}

.efc-error-card {
    width: min(100%, 720px);
    padding: 52px;
    border-top: 5px solid var(--red);
    background: #111;
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.efc-error-card img {
    width: clamp(220px, 30vw, 270px);
    height: auto;
    margin: -12px auto 18px;
}

.efc-error-card h1 {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 400;
    text-transform: uppercase;
}

/* ==========================================================
   MOBILE 2026 – echte Smartphone-Darstellung
   ========================================================== */

@media (max-width: 700px) {
    :root {
        --header-height: 72px;
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
    }

    .page-container {
        width: min(100% - 32px, var(--page-width));
    }

    .site-header,
    .header-container {
        min-height: var(--header-height);
    }

    .header-logo {
        top: 4px;
        left: 16px;
        width: 92px;
        max-height: 108px;
        object-fit: contain;
    }

    .mobile-menu-button {
        right: 16px;
        width: 46px;
        height: 46px;
        padding: 11px;
    }

    .main-navigation {
        justify-content: flex-start;
        gap: 22px;
        padding: max(110px, env(safe-area-inset-top)) 28px 42px;
        overflow-y: auto;
    }

    .navigation-list {
        width: 100%;
        gap: 2px;
    }

    .navigation-link {
        display: block;
        min-height: 48px;
        padding: 13px 10px;
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .member-login-button {
        width: min(100%, 290px);
        min-height: 50px;
        justify-content: center;
        font-size: 1rem;
    }

    .hero-section,
    .hero-container {
        min-height: 600px;
    }

    .hero-container {
        align-items: center;
        padding-top: 74px;
        padding-bottom: 42px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .hero-kicker {
        font-size: .88rem;
        letter-spacing: .14em;
    }

    .hero-title-white {
        font-size: clamp(3rem, 14vw, 4.25rem);
        line-height: .94;
    }

    .hero-title-red {
        font-size: clamp(2.5rem, 12vw, 3.7rem);
        line-height: .96;
    }

    .hero-description {
        max-width: 34rem;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .primary-button,
    .secondary-button {
        min-height: 50px;
        font-size: .98rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-card {
        min-width: 0;
        padding: 24px 20px;
        border-radius: 4px;
    }

    .dashboard-card-title {
        font-size: 1.65rem;
        line-height: 1.05;
    }

    .match-card,
    .latest-news-card {
        min-height: 0;
    }

    .countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .countdown-item {
        min-width: 0;
    }

    .countdown-number {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .latest-news-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    .latest-news-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    .site-footer {
        margin-top: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 34px;
        padding-bottom: 28px;
    }

    .footer-heading {
        font-size: 1.1rem;
    }

    .footer-slogan {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 0 24px;
    }

    .pagenavigation,
    .pager,
    .pagination__wrapper {
        display: none !important;
    }
}

/* ==========================================================
   22. RESPONSIVE DESKTOP-SKALIERUNG 1.0.78
   Passt die Startseite kontrolliert an kleinere Desktopfenster
   und geringere Bildschirmhoehen an, ohne Browser-Zoom/scale.
   ========================================================== */
@media (min-width: 981px) and (max-width: 1599px) {
    .efc-site.home-page .page-container {
        width: min(calc(100% - clamp(32px, 3vw, 48px)), var(--page-width));
    }

    .efc-site.home-page .header-logo {
        width: clamp(220px, 17vw, 285px);
    }

    .efc-site.home-page .main-navigation {
        margin-left: clamp(235px, 18vw, 300px);
        gap: clamp(14px, 1.45vw, 24px);
    }

    .efc-site.home-page .navigation-list {
        gap: clamp(14px, 1.45vw, 24px);
    }

    .efc-site.home-page .navigation-link {
        font-size: clamp(.78rem, .72vw, .9rem);
    }

    .efc-site.home-page .member-login-button {
        padding-left: clamp(12px, 1vw, 17px);
        padding-right: clamp(12px, 1vw, 17px);
        font-size: clamp(.74rem, .68vw, .84rem);
    }

    .efc-site.home-page .hero-container {
        padding-top: clamp(12px, 1.3vh, 20px);
        padding-bottom: clamp(12px, 1.3vh, 18px);
    }

    .efc-site.home-page .hero-content {
        max-width: clamp(610px, 47vw, 710px);
        margin-left: clamp(245px, 20vw, 330px);
        transform: none;
    }

    .efc-site.home-page .hero-kicker {
        margin-bottom: clamp(8px, 1vh, 12px);
        font-size: clamp(1.08rem, 1.15vw, 1.36rem);
    }

    .efc-site.home-page .hero-title-white {
        font-size: clamp(3.75rem, 5.35vw, 5.8rem);
    }

    .efc-site.home-page .hero-title-red {
        margin-top: clamp(3px, .55vh, 7px);
        font-size: clamp(3.1rem, 4.55vw, 4.9rem);
    }

    .efc-site.home-page .hero-divider {
        width: clamp(420px, 38vw, 510px);
        margin-top: clamp(7px, .9vh, 11px);
        margin-bottom: clamp(10px, 1.3vh, 16px);
    }

    .efc-site.home-page .hero-description {
        max-width: 560px;
        margin-bottom: clamp(14px, 1.7vh, 21px);
        font-size: clamp(.96rem, .9vw, 1.06rem);
        line-height: 1.45;
    }

    .efc-site.home-page .dashboard-grid {
        gap: clamp(12px, 1vw, 16px);
    }

    .efc-site.home-page .dashboard-card {
        min-height: clamp(184px, 20vh, 210px);
        padding: clamp(15px, 1.4vw, 20px) clamp(17px, 1.55vw, 22px) clamp(14px, 1.3vw, 18px);
    }
}

@media (min-width: 981px) and (max-height: 820px) {
    .efc-site.home-page .hero-content {
        transform: none;
    }

    .efc-site.home-page .hero-kicker {
        margin-bottom: 7px;
        font-size: clamp(1rem, 1.05vw, 1.25rem);
    }

    .efc-site.home-page .hero-title-white {
        font-size: clamp(3.45rem, 4.9vw, 5.35rem);
    }

    .efc-site.home-page .hero-title-red {
        font-size: clamp(2.85rem, 4.15vw, 4.5rem);
    }

    .efc-site.home-page .hero-divider {
        margin-top: 6px;
        margin-bottom: 9px;
    }

    .efc-site.home-page .hero-description {
        margin-bottom: 12px;
        font-size: .96rem;
        line-height: 1.4;
    }

    .efc-site.home-page .dashboard-card {
        min-height: 178px;
        padding-top: 14px;
        padding-bottom: 12px;
    }
}

/* ==========================================================
   23. DIFFERENZIERTE DESKTOP-ANPASSUNG 1.0.79
   Referenz: luftige 27-Zoll-Darstellung. Bei niedrigerer
   Viewport-Hoehe wird nur der Hero kompakter; die Karten
   werden nicht pauschal mitskaliert. Auf hohen Desktop-
   Viewports erhalten die Karten etwas mehr Praesenz.
   ========================================================== */

/* Typischer Full-HD-/22-Zoll-Fall: breite, aber relativ niedrige
   Browserflaeche. Hero und Logo sparen Hoehe, Karten bleiben lesbar. */
@media (min-width: 981px) and (max-height: 950px) {
    .efc-site.home-page .header-logo {
        width: clamp(205px, 15.5vw, 255px);
    }

    .efc-site.home-page .hero-container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .efc-site.home-page .hero-content {
        max-width: clamp(600px, 46vw, 690px);
        margin-left: clamp(230px, 18.5vw, 305px);
    }

    .efc-site.home-page .hero-kicker {
        margin-bottom: 6px;
        font-size: clamp(.98rem, 1vw, 1.18rem);
    }

    .efc-site.home-page .hero-title-white {
        font-size: clamp(3.35rem, 4.65vw, 5.05rem);
    }

    .efc-site.home-page .hero-title-red {
        margin-top: 2px;
        font-size: clamp(2.8rem, 3.95vw, 4.25rem);
    }

    .efc-site.home-page .hero-divider {
        width: clamp(390px, 35vw, 475px);
        margin-top: 5px;
        margin-bottom: 7px;
    }

    .efc-site.home-page .hero-divider img {
        width: 31px;
        height: 31px;
    }

    .efc-site.home-page .hero-description {
        margin-bottom: 10px;
        font-size: .94rem;
        line-height: 1.35;
    }

    /* 1.0.78 verkleinerte bei geringer Hoehe auch die Karten.
       Das wird bewusst aufgehoben: Karten bleiben stabil. */
    .efc-site.home-page .dashboard-card {
        min-height: 190px;
        padding: 16px 18px 15px;
    }
}

/* Hohe Desktop-Viewports (typisch groesserer Monitor): Karten etwas
   groesser, ohne den luftigen Abstand des Hero-Bereichs zu verlieren. */
@media (min-width: 981px) and (min-height: 951px) {
    .efc-site.home-page .dashboard-grid {
        gap: clamp(14px, 1.15vw, 18px);
    }

    .efc-site.home-page .dashboard-card {
        min-height: clamp(205px, 21vh, 228px);
        padding: clamp(18px, 1.45vw, 22px) clamp(20px, 1.65vw, 24px) clamp(16px, 1.35vw, 20px);
    }
}
