@font-face {
    font-family: "Open Sans";
    src: url(/fonts/open-sans-400.woff2) format("woff2");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: "Open Sans";
    src: url(/fonts/open-sans-700.woff2) format("woff2");
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: "Open Sans";
    src: url(/fonts/open-sans-800.woff2) format("woff2");
    font-weight: 800;
    font-style: normal
}

@font-face {
    font-family: "Open Sans Condensed";
    src: url(/fonts/open-sans-condensed-400.woff2) format("woff2");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: "Open Sans Condensed";
    src: url(/fonts/open-sans-condensed-600.woff2) format("woff2");
    font-weight: 600;
    font-style: normal
}

@font-face {
    font-family: "Open Sans Condensed";
    src: url(/fonts/open-sans-condensed-700.woff2) format("woff2");
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: "Open Sans Condensed";
    src: url(/fonts/open-sans-condensed-800.woff2) format("woff2");
    font-weight: 800;
    font-style: normal
}


:root {
    --dynamo-yellow: #fdc300;
    --dynamo-black: #000000;
    --bg-grey: #f8f9fa;
    /* Spacing (px) */
    --space-0: 0;
    --space-2: 2px;
    --space-4: 4px;
    --space-5: 5px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-15: 15px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-60: 60px;

    /* Sizes (px) */
    --size-30: 30px;
    --size-32: 32px;
    --size-40: 40px;
    --size-24: 24px;
    --size-50: 50px;
    --size-70: 70px;
    --size-80: 80px;
    --size-85: 85px;
    --size-119: 119px;
    --size-120: 120px;
    --size-150: 150px;
    --size-200: 200px;
    --size-400: 400px;
    --size-500: 500px;

    /* Radii */
    --radius-s: 5px;
    --radius-m: 8px;

    /* Borders */
    --border-1: 1px;
    --border-2: 2px;
    --border-3: 3px;

    /* Fonts & Icons */
    --font-size-md: 1rem;
    --font-size-sm: 0.8rem;
    --font-size-xs: 0.7rem;
    --font-size-xxs: 0.6rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.8rem;
    --font-size-2xl: 2.5rem;
    --icon-nav-size: 1.5rem;
    --icon-section-size: 1.2em;

    /* Layout */
    --container-max: 1100px;
    --header-min-height: var(--size-500);
    --header-padding-top: var(--space-20);
    --header-padding-bottom: var(--space-60);
    --header-bar-offset: -100px;

    /* Motion */
    --transition-fast: 0.3s;
}

body {
    font-family: "Open Sans", sans-serif;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans Condensed", sans-serif;
}

html { scroll-behavior: smooth; }

/* --- Header Styles --- */
.header-bg {
    background-color: var(--dynamo-black);
    background-image: url('img/Header_01.jpg');
    background-size: cover;
    background-position: bottom;
    color: white;
    padding-top: var(--header-padding-top);
    padding-bottom: var(--header-padding-bottom);
    position: relative;
    min-height: var(--header-min-height);
    display: flex;
    align-items: center; /* vertikal mittig */
    justify-content: center; /* horizontal zentriert */
}

.fixed-header {
    background: var(--dynamo-yellow);
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fixed-header img {
    height: 40px;
}

/* Simulierter Zerreiß-Effekt am unteren Rand */
.torn-paper-bottom {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: white;
    /* In der Realität nutzt du hier ein PNG Bild mit transparentem Hintergrund */
    clip-path: polygon(0% 20%, 5% 0%, 10% 20%, 15% 0%, 20% 20%, 25% 0%, 30% 20%, 35% 0%, 40% 20%, 45% 0%, 50% 20%, 55% 0%, 60% 20%, 65% 0%, 70% 20%, 75% 0%, 80% 20%, 85% 0%, 90% 20%, 95% 0%, 100% 20%, 100% 100%, 0% 100%);
}

.jersey-icon {
    width: 100%;
    height: var(--size-80);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-15);
    position: relative;
}

.jersey-icon img {
    position: absolute;
    width: var(--size-120);
    height: var(--size-119);
    object-fit: cover;
}

.nav-icon-link {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: var(--font-size-sm);
    margin-left: var(--space-20);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.nav-icon-link i {
    display: block;
    font-size: var(--icon-nav-size);
    margin-bottom: var(--space-5);
}
.nav-icon-link img {
    display: block;
    height: var(--icon-nav-size);
    margin: 0 auto var(--space-5) auto; /* zentriert über dem Text */
}
.nav-icon-link:hover {
    color: var(--dynamo-yellow);
}

/* --- Content Styles --- */
.section-title {
    font-weight: 800;
    text-transform: uppercase;
    padding-bottom: var(--space-10);
    margin-bottom: var(--space-20);
    margin-top: var(--space-40);
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: var(--space-10);
}
/* Boxed heading icon */
.section-icon {
    width: var(--size-40);
    height: var(--size-30);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start; /* Bild linksbündig */
    margin-right: var(--space-10);
    flex-shrink: 0;
}
.section-icon img {
    height: 100%;
    max-width: 100%;
    width: auto;
    display: block;
}

.gray-box {
    background-color: #f4f4f4;
    padding: var(--space-15);
}

.action-btn {
    background-color: var(--dynamo-yellow);
    color: black;
    border: none;
    width: var(--size-85);
    height: var(--size-85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}
.action-btn:hover {
    background-color: #e5b600;
}

/* Switch Styling */
.form-switch .form-check-input:checked {
    background-color: black;
    border-color: black;
}

/* Image Grid Tiles */
/* Interest tiles as real checkboxes */
.interest-tile {
    display: block;
    cursor: pointer;
}
.interest-tile .interest-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tile-square {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #333;
    border: var(--border-3) solid rgba(255,255,255,0);
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.tile-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}
.tile-square .tile-text {
    position: absolute;
    bottom: var(--space-10);
    left: var(--space-10);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.tile-square .tile-check {
    position: absolute;
    top: var(--space-10);
    right: var(--space-12);
    width: var(--size-32);
    height: var(--size-32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: transparent; /* Haken unsichtbar im inaktiven Zustand */
    border: var(--border-1) solid #fff; /* Weißer Rahmen im inaktiven Zustand */
}
.interest-tile .interest-check:checked + .tile-square {
    border-color: var(--dynamo-yellow);
}
.interest-tile .interest-check:checked + .tile-square img {
    opacity: 1;
}
.interest-tile .interest-check:checked + .tile-square .tile-check {
    background: var(--dynamo-yellow);
    border-color: var(--dynamo-yellow);
    color: #000; /* Schwarzer Haken im aktiven Zustand */
}
.interest-tile .interest-check:focus-visible + .tile-square {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.35);
}

/* Schwarzer Balken im Header */
.header-bar {
    background: rgb(0, 0, 0);
    padding: var(--space-12) var(--space-16);
    width: 100%;
    margin-top: var(--header-bar-offset);
}

/* Extracted from inline styles */
.membership-card {
    width: calc(var(--size-200) * 1.5);
    height: var(--size-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    font-size: var(--font-size-xxs);
}

/* Content Sections */
.content-section {
    border-bottom: var(--border-2) solid var(--dynamo-yellow);
    padding-bottom: var(--space-24);
    margin-bottom: var(--space-32);
}
.content-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Accordion adjustments */

.accordion-item {
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
    padding: 8px 4px;
}

.accordion-button::after {
    display: none;
}
.accordion-header {
    display: flex;
    align-items: center;
}
.accordion-button {
    flex: 1 1 auto;
}
.accordion-button:focus {
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    color: var(--dynamo-black);
}
.acc-arrow {
    margin-right: var(--space-8);
    transition: transform var(--transition-fast);
}
.accordion-button:not(.collapsed) .acc-arrow {
    transform: rotate(90deg);
}
.acc-switch {
    margin-left: var(--space-16);
    font-size: var(--font-size-md);
    justify-content: end;
    width: var(--size-400);
}

.ticket-card img {
    width: var(--size-120);
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-m);
}

.login-page-body {
    background: url("img/dynamo_bg.jpg") no-repeat fixed center;
    background-size: cover;
}

.login-teaser {
    transform: rotate(-3deg);
}

.login-teaser-text {
    font-size: var(--font-size-xl);
    text-shadow: 3px 3px 3px rgba(0,0,0, 1);
}

.login-desc-text {
    opacity: 0.8;
}

.login-teaser-text, .login-desc-text {
    text-shadow: 3px 3px 3px rgba(0,0,0, 1);
}

.btn-dynamo-block {
    background: var(--dynamo-yellow);
    border-radius: 0;
}

.btn-dynamo-block:hover {
    background: var(--dynamo-black);
    color: var(--dynamo-yellow);
}

.login-divider {
    color: var(--dynamo-yellow);
    border-width: 1px;
    opacity: 1;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px)  {
    .jersey-icon {
        width: var(--size-80);
        height: 100%;
    }
}

@media (min-width: 768px) {
    .ticket-card img {
        width: auto;
        height: var(--size-200);
    }
}