html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: system-ui, sans-serif;
    background: #f3f6fb;
    color: #111827;
}

* {
    box-sizing: border-box;
}

.public-body {
    background: #f3f6fb;
    color: #111827;
}

/* Header */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #dbe4f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.public-navbar {
    min-height: 108px;
    padding-top: 0;
    padding-bottom: 0;
}

.public-navbar .container {
    gap: 16px;
}

.club-logo.public-logo,
.public-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.club-logo.public-logo img,
.public-logo img,
.public-logo-img {
    display: block;
    height: 72px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.navbar-brand.public-logo,
.navbar-brand.public-logo-wrap {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 88px !important;
}

/* Desktop-Menü */

.public-header .navbar-nav {
    gap: 6px;
}

.public-header .nav-link {
    color: #334155;
    font-weight: 600;
    padding: 10px 16px !important;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.public-header .nav-link:hover {
    background: #eaf2ff;
    color: #1d4ed8;
}

.public-header .nav-link.active {
    background: #dbeafe;
    color: #1d4ed8 !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* Dropdown */

.public-header .dropdown-menu {
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    padding: 8px;
    margin-top: 8px;
}

.public-header .dropdown-item {
    border-radius: 12px;
    padding: 10px 14px;
    color: #334155;
    font-weight: 500;
}

.public-header .dropdown-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.public-header .dropdown-item.active {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Toggler */

.public-header .navbar-toggler {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 8px 10px;
    background: #ffffff;
}

.public-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Header-Buttons */

.public-header .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 999px;
    padding-left: 16px;
    padding-right: 16px;
    font-weight: 600;
}

.public-header .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.public-header .btn-outline-primary {
    border-radius: 999px;
    padding-left: 16px;
    padding-right: 16px;
    font-weight: 600;
}

/* Main */

.public-main {
    min-height: calc(100vh - 88px);
    padding: 24px 0 32px;
    background: #dee2e6;
}

/* Hero */

.public-hero {
    margin-bottom: 24px;
}

.public-hero-box {
    background: linear-gradient(180deg, #8fbde9 0%, #eef3f8 100%);
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 32px 28px;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.06);
}

.public-hero-box h1,
.public-hero-box h2,
.public-hero-box h3,
.public-hero-box p {
    color: inherit;
}

.public-hero-box .lead {
    color: #050505;
}

.hero-badge {
    background: #ffffff;
    color: #334155;
    border: 1px solid #dbe3ec;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.hero-facts .hero-chip {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    color: #475569;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.hero-side-card {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
}

/* Allgemeine Cards */

.public-main .card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.public-main .card .card-body {
    padding: 24px;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
}

/* Einstiegskacheln */

.chess-entry-grid .entry-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    isolation: isolate;
}

.chess-entry-grid .entry-card .card-body {
    position: relative;
    z-index: 1;
}

.chess-entry-grid .entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

/* Standard / XL: 1 hell, 2 dunkel, 3 hell, 4 dunkel */
.chess-entry-grid > div:nth-child(odd) .entry-card {
    background: #f8f9fa;
    color: #212529;
}

.chess-entry-grid > div:nth-child(even) .entry-card {
    background: #16325c;
    color: #ffffff;
}

/* Textfarben */
.chess-entry-grid > div:nth-child(odd) .entry-card .text-muted {
    color: #475569 !important;
}

.chess-entry-grid > div:nth-child(even) .entry-card .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Buttons auf dunklen Kacheln */
.chess-entry-grid > div:nth-child(even) .entry-card .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.chess-entry-grid > div:nth-child(even) .entry-card .btn-outline-primary:hover,
.chess-entry-grid > div:nth-child(even) .entry-card .btn-outline-primary:focus {
    background: #ffffff;
    color: #212529;
    border-color: #ffffff;
}

/* Icons */
.entry-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    font-size: 1.35rem;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.05);
}

.chess-entry-grid > div:nth-child(odd) .entry-card .entry-icon {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
}

.chess-entry-grid > div:nth-child(even) .entry-card .entry-icon {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Schachmuster nur oben rechts, horizontal/vertikal ausgerichtet */
.chess-entry-grid .entry-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 108px;
    height: 108px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.14;
    background-size: 18px 18px;
    background-position: top right;
    background-repeat: repeat;
    border-top-right-radius: 1rem;
    -webkit-mask-image: linear-gradient(
        to bottom left,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.96) 48%,
        rgba(0, 0, 0, 0.18) 100%
    );
    mask-image: linear-gradient(
        to bottom left,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.96) 48%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

/* Muster auf hellen Kacheln dunkler */
.chess-entry-grid > div:nth-child(odd) .entry-card::after {
    background-image: repeating-conic-gradient(
        from 0deg,
        rgba(33, 37, 41, 0.48) 0deg 90deg,
        transparent 90deg 180deg
    );
}

/* Muster auf dunklen Kacheln heller */
.chess-entry-grid > div:nth-child(even) .entry-card::after {
    background-image: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.78) 0deg 90deg,
        transparent 90deg 180deg
    );
}

/* Tablet: echtes 2x2-Schachbrett
   1 hell | 2 dunkel
   3 dunkel | 4 hell
*/
@media (min-width: 768px) and (max-width: 1199.98px) {
    .chess-entry-grid > div:nth-child(3) .entry-card {
        background: #16325c;
        color: #ffffff;
    }

    .chess-entry-grid > div:nth-child(4) .entry-card {
        background: #f8f9fa;
        color: #212529;
    }

    .chess-entry-grid > div:nth-child(3) .entry-card .text-muted {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .chess-entry-grid > div:nth-child(4) .entry-card .text-muted {
        color: #475569 !important;
    }

    .chess-entry-grid > div:nth-child(3) .entry-card .btn-outline-primary {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.72);
    }

    .chess-entry-grid > div:nth-child(3) .entry-card .btn-outline-primary:hover,
    .chess-entry-grid > div:nth-child(3) .entry-card .btn-outline-primary:focus {
        background: #ffffff;
        color: #212529;
        border-color: #ffffff;
    }

    .chess-entry-grid > div:nth-child(3) .entry-card .entry-icon {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .chess-entry-grid > div:nth-child(4) .entry-card .entry-icon {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e2e8f0;
    }

    .chess-entry-grid > div:nth-child(3) .entry-card::after {
        background-image: repeating-conic-gradient(
            from 0deg,
            rgba(255, 255, 255, 0.78) 0deg 90deg,
            transparent 90deg 180deg
        );
    }

    .chess-entry-grid > div:nth-child(4) .entry-card::after {
        background-image: repeating-conic-gradient(
            from 0deg,
            rgba(33, 37, 41, 0.48) 0deg 90deg,
            transparent 90deg 180deg
        );
    }
}

/* Footer */

.public-footer {
    padding: 18px 24px 24px;
    font-size: 0.9rem;
    color: #6b7280;
}

.public-footer a {
    color: inherit;
    text-decoration: none;
}

.public-footer a:hover {
    text-decoration: underline;
}

/* Login */

.login-logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* Responsive */

@media (max-width: 991.98px) {
    .public-navbar {
        min-height: 76px;
    }

    .navbar-brand.public-logo,
    .navbar-brand.public-logo-wrap {
        height: 76px !important;
    }

    .club-logo.public-logo img,
    .public-logo img,
    .public-logo-img {
        height: 56px;
    }

    .public-main {
        min-height: calc(100vh - 76px);
        padding: 16px 0 24px;
    }

    .public-hero-box {
        padding: 24px 20px;
    }

    .public-header .navbar-collapse {
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid #e5e7eb;
    }

    .public-header .nav-link {
        border-radius: 14px;
        padding: 14px 14px !important;
        font-size: 1.05rem;
    }

    .public-header .dropdown-menu {
        margin-top: 6px;
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .club-logo.public-logo img,
    .public-logo img,
    .public-logo-img {
        height: 48px;
    }

    .public-main {
        padding: 12px 0 20px;
    }

    .public-main .card .card-body {
        padding: 18px;
    }

    .chess-entry-grid .entry-card::after {
        width: 84px;
        height: 84px;
        background-size: 14px 14px;
    }
}
.btn-hero-secondary {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
    background: #bfdbfe;
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.18);
}
/* Vorstand */

.board-grid .board-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-grid .board-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.board-grid > div:nth-child(odd) .board-card {
    background: #f8f9fa;
    color: #212529;
}

.board-grid > div:nth-child(even) .board-card {
    background: #16325c;
    color: #ffffff;
}

.board-role {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.board-grid > div:nth-child(odd) .board-role {
    color: #475569;
}

.board-grid > div:nth-child(even) .board-role {
    color: rgba(255, 255, 255, 0.72);
}

.board-mail {
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
}

.board-grid > div:nth-child(odd) .board-mail {
    color: #1d4ed8;
}

.board-grid > div:nth-child(even) .board-mail {
    color: #bfdbfe;
}

.board-grid > div:nth-child(odd) .board-mail:hover {
    color: #1e40af;
    text-decoration: underline;
}

.board-grid > div:nth-child(even) .board-mail:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.page-intro-card {
    background: linear-gradient(180deg, #8fbde9 0%, #eef3f8 100%);
    border: 1px solid #d7dee8;
    border-radius: 1rem;
}

/* Intro-Kachel unter dem Menü */


.page-intro-card .text-muted {
    color: #475569 !important;
}

/* Spiellokal */

.location-grid .location-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-grid .location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.location-grid > div:nth-child(odd) .location-card {
    background: #f8f9fa;
    color: #212529;
}

.location-grid > div:nth-child(even) .location-card {
    background: #16325c;
    color: #ffffff;
}

.location-grid > div:nth-child(odd) .location-card .text-muted,
.location-grid > div:nth-child(odd) .location-card__footer {
    color: #475569 !important;
}

.location-grid > div:nth-child(even) .location-card .text-muted,
.location-grid > div:nth-child(even) .location-card__footer {
    color: rgba(255, 255, 255, 0.75) !important;
}

.location-card__content p:last-child {
    margin-bottom: 0;
}

.location-card__footer {
    font-size: 0.95rem;
}

.location-grid > div:nth-child(even) .location-card .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.location-grid > div:nth-child(even) .location-card .btn-outline-primary:hover,
.location-grid > div:nth-child(even) .location-card .btn-outline-primary:focus {
    background: #ffffff;
    color: #212529;
    border-color: #ffffff;
}

/* Tablet: echtes 2x2-Wechselmuster im sichtbaren Fluss */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .location-grid > div:nth-child(3) .location-card,
    .location-grid > div:nth-child(4) .location-card {
        background: #16325c;
        color: #ffffff;
    }

    .location-grid > div:nth-child(4) .location-card,
    .location-grid > div:nth-child(5) .location-card {
        background: #f8f9fa;
        color: #212529;
    }

    .location-grid > div:nth-child(3) .location-card__footer {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .location-grid > div:nth-child(4) .location-card__footer,
    .location-grid > div:nth-child(5) .location-card__footer {
        color: #475569 !important;
    }

    .location-grid > div:nth-child(3) .location-card .btn-outline-primary {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.72);
    }

    .location-grid > div:nth-child(3) .location-card .btn-outline-primary:hover,
    .location-grid > div:nth-child(3) .location-card .btn-outline-primary:focus {
        background: #ffffff;
        color: #212529;
        border-color: #ffffff;
    }
}
/* Kontakt */

.contact-form-card {
    background: #f8f9fa;
    border-radius: 1rem;
}

.contact-form-card .text-muted {
    color: #475569 !important;
}

.contact-form .form-label {
    font-weight: 600;
    color: #334155;
}

.contact-form .form-control {
    border-radius: 0.85rem;
    border: 1px solid #d7dee8;
    padding: 0.85rem 1rem;
    background: #ffffff;
    color: #111827;
    box-shadow: none;
}

.contact-form .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.contact-form .form-check-label {
    color: #475569;
}

.contact-submit-btn {
    border-radius: 999px;
    font-weight: 600;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.info-grid .contact-info-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-grid .contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.info-grid > div:nth-child(odd) .contact-info-card {
    background: #f8f9fa;
    color: #212529;
}

.info-grid > div:nth-child(even) .contact-info-card {
    background: #16325c;
    color: #ffffff;
}

.info-grid > div:nth-child(odd) .contact-info-card__content p:last-child,
.info-grid > div:nth-child(even) .contact-info-card__content p:last-child {
    margin-bottom: 0;
}

.info-grid > div:nth-child(odd) .contact-info-card__footer {
    color: #475569 !important;
}

.info-grid > div:nth-child(even) .contact-info-card__footer {
    color: rgba(255, 255, 255, 0.75) !important;
}

.info-grid > div:nth-child(even) .contact-info-card .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.info-grid > div:nth-child(even) .contact-info-card .btn-outline-primary:hover,
.info-grid > div:nth-child(even) .contact-info-card .btn-outline-primary:focus {
    background: #ffffff;
    color: #16325c;
    border-color: #ffffff;
}

@media (max-width: 1199.98px) {
    .contact-layout {
        align-items: stretch;
    }
}