/* 
 * SPEEDRUNS.DE Custom Styles
 */

/* Global Styles */
:root {
    --primary: #3c1a65;
    --secondary: #532f7d;
    --light-purple: #9980bd;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

@font-face {
    font-family: 'chairdrobeblack';
    src: url('fonts/chairdrobe_black-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_black-webfont.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobeblack';
    src: url('fonts/chairdrobe_black_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_black_italic-webfont.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobebold';
    src: url('fonts/chairdrobe_bold-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobebold';
    src: url('fonts/chairdrobe_bold_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_bold_italic-webfont.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobeextrabold';
    src: url('fonts/chairdrobe_extrabold-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_extrabold-webfont.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobeextrabold';
    src: url('fonts/chairdrobe_extrabold_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_extrabold_italic-webfont.woff') format('woff');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobe';
    src: url('fonts/chairdrobe_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobelight';
    src: url('fonts/chairdrobe_light-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobelight';
    src: url('fonts/chairdrobe_light_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_light_italic-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobemedium';
    src: url('fonts/chairdrobe_medium-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobemedium';
    src: url('fonts/chairdrobe_medium_italic-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_medium_italic-webfont.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'chairdrobe';
    src: url('fonts/chairdrobe_regular-webfont.woff2') format('woff2'),
    url('fonts/chairdrobe_regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    background-color: #333333;
}
body {
    color: var(--dark-gray);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: auto;
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

.container {
    max-width: 90%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h5 {
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'chairdrobebold', 'Chairdrobe', Arial, Helvetica, sans-serif;
    color: var(--primary)!important;
}

.badge {

    border-radius: 0.25rem;
    font-size: 0.8rem!important;
}


.btn-primary {
    background-color: #3c1a65;
    border-color: #3c1a65;
    padding: 10px 20px;
    border-radius: 0;
}

.btn-outline-secondary {
    padding: 10px 20px;
    border-radius: 0;

}

.btn-primary:hover {
    background-color: #532f7d;
    border-color: #532f7d;
    text-decoration: none;
}

.btn-outline-primary {
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    border-color: #3c1a65;
    background-color: #3c1a65;
}

.btn-outline-primary:hover {
    background-color: #532f7d;
    border-color: #532f7d;
    text-decoration: none;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ddd;

    top: 100%;
    z-index: -1;
}

.section-title span {
    background-color: var(--white);
    padding: 0 15px;
}

/* Header-specific styles */
header {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: none;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 60px;
}

.main-nav .nav-link {
    color: #333333;
    font-weight: 500;
    padding: 10px 15px;
}

.main-nav .nav-link:hover {
    color: #3c1a65;
}

.btn-purple {
    background-color: #3c1a65;
    color: white !important;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
}

.btn-purple:hover {
    background-color: #532f7d;
    text-decoration: none;
}

/* Run submit button style */
.btn-run-einreichen {
    background-color: #3c1a65 !important;
    color: white !important;
    border-radius: 0;
    padding: 10px 20px !important;
    font-weight: 600;
}

.btn-run-einreichen.small {
    padding: 5px 10px !important;
    font-size: 0.9rem;
}

.btn-run-einreichen:hover {
    background-color: #532f7d !important;
    text-decoration: none;
}

/* Banner Slider Styles */
.banner-slider {
    margin-bottom: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.banner-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: white;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 2;
}

/*.banner-text {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 35%;*/
/*    height: 100%;*/
/*    padding: 25px 25px 25px 40px;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: center;*/
/*}*/

.banner-text {
    position: absolute;
    top: 0;
    right: -470px;
    width: 85%;
    height: 100%;
    padding: 25px 25px 25px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-text h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.banner-text p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.banner-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border-radius: 0;
    opacity: 1;
    z-index: 100;
}

.carousel-control-next-icon, .carousel-control-prev-icon  {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border-radius: 0;
    background-size: 60%;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .banner-slider {
        display: none;
    }

    .banner-wrapper {
        height: auto;
    }

    .banner-image-container {
        position: relative;
        height: 280px;
    }

    .banner-overlay {
        display: none;
    }

    .banner-text {
        position: relative;
        width: 100%;
        padding: 20px;
        background-color: white;
    }
}

/* Welcome Section */
.welcome h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.welcome p {
    max-width: 800px;
    margin: 0 auto 15px;
}

/* News Section */
.news-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: var(--primary);
    margin-bottom: 0;
}

.news-item .subtitle {
    font-family: 'chairdrobe', 'Chairdrobe', Arial, Helvetica, sans-serif;
    font-style: italic;
    margin-bottom: 10px;
    color: #666;
    font-size: 1.2rem;
}

.news-item .content {
    font-size: 1.1rem;
    line-height: 1.4;
    max-height: 100px;
    overflow: hidden;
}

/* Events Section */
.event-item {
    background-color: var(--light-gray);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.event-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.event-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-actions {
    display: flex;
    justify-content: space-between;
}

.btn-tickets {
    background-color: var(--light-purple);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
}

.btn-tickets:hover {
    background-color: var(--secondary);
    text-decoration: none;
}

/* Video Gallery */
.video-gallery {
    position: relative;
    margin: 30px 0;
}

.video-item {
    padding: 10px;
    transition: transform 0.3s;
    position: relative;
    display: block;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(60, 26, 101, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.video-play-icon i {
    color: white;
    font-size: 1.5rem;
}

.video-title {
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 0 10px;
}

.video-slider {
    position: relative;
}

.btn-alle-anzeigen {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    display: inline-block;
}

.btn-alle-anzeigen:hover {
    background-color: var(--secondary);
    text-decoration: none;
    color: var(--white);
}

/* Footer-specific styles */
footer {
    background-color: white;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.social-links {
    margin-bottom: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 10px;
    border-radius: 50%;
    color: white;
    background-color: #3c1a65;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #532f7d;
    text-decoration: none;
}

.social-icon .fab {
    font-size: 18px;
}

.fa-twitch, .fa-youtube, .fa-twitter, .fa-instagram, .fa-discord {
    color: white;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    margin: 0 12px;
    color: #333333;
    font-size: 16px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #3c1a65;
}

.copyright {
    font-size: 18px;
    color: #777777;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-item .col-4 {
        width: 30%;
    }

    .news-item .col-8 {
        width: 70%;
    }

    .news-item .content {
        display: none;
    }

    .event-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* News Page Styles */
.news-article .meta {
    margin-bottom: 1.5rem;
}

.news-article .featured-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.article-content {
    line-height: 1.8;
}

.social-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Events Page Styles */
.event-description {
    max-height: 80px;
    overflow: hidden;
}

.tab-content .table {
    margin-bottom: 0;
}

/* Videos Page Styles */
.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(60, 26, 101, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.video-play-button:hover {
    background: rgba(60, 26, 101, 1);
    color: white;
}

.badge.bg-purple {
    background-color: #6441a5;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Search Styles */
.search-highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 2px;
}

/* 404 Page Styles */
.error-image img {
    opacity: 0.8;
}

/* Event Pages Styles - NEW */
.event-card {
    transition: transform 0.2s;
    margin-bottom: 2rem;
    border-radius: 5px;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card img {
    height: 180px;
    object-fit: contain;
    width: 100%;
}

.event-card .card-body {
    padding: 1.5rem;
}

/* Event Detail Styles */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive .d-flex {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text purple helper class */
.text-purple {
    color: var(--primary) !important;
}

/* Event Schedule Tabs */
.nav-tabs .nav-link {
    color: var(--dark-gray);
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

/* Section Titles with Bottom Border */
h2.border-bottom,
.border-bottom.pb-2 {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.event-breakline:after,
.event-breakline.pb-2:after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background-color: #3c1a6545;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

/* Table styles for event schedule */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-dark {
    background-color: #343a40;
    color: white;
}

/* Event detail page card headers */
.card-header.bg-primary {
    background-color: var(--primary) !important;
}

.card-header h2, .card-header h5 {
    margin-bottom: 0;
    color: white!important;
}

/* Responsive iframe container */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Charity and Partner sections */
.charity-logo, .partner-logo {
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 1rem;
}

/* Address styling */
address {
    font-style: normal;
    line-height: 1.6;
}


/* Event page title styling */
.display-4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.lead.border-bottom {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Offline stream display */
.offline-stream {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0.25rem;
}

.offline-stream h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Responsive adjustments for event pages */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-card img {
        height: 200px;
    }

    .embed-responsive::before {
        padding-top: 75%; /* 4:3 Aspect Ratio for mobile */
    }

    .display-4 {
        font-size: 2rem;
    }

    .card-header h5, .card-header h2 {
        font-size: 1rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }
}

.srde-breakline {
    height: 4px;
    border: var(--primary);
    background-color: var(--primary);
    width: 50%;
    margin: 0 auto;
}

/* Language Dropdown fixes */
.dropdown {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1050 !important;
    display: none !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0.125rem 0 0 !important;
    font-size: 0.875rem !important;
    color: #212529 !important;
    text-align: left !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175) !important;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.25rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 ;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
}

.navbar {
    font-family: 'chairdrobe', 'Chairdrobe', Arial, Helvetica, sans-serif;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.75rem 0;
    width: 100%;
    font-size: 1.6rem;
}

/* Container für komplette Breite */
.navbar .container-fluid {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1400px) {
    .navbar .container-fluid {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Logo Styles */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Submit button styles */
/* Dark mode toggle */
#darkModeToggle {
    border-color: #dee2e6;
    color: #6c757d;
}

#darkModeToggle:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Language dropdown */
.dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.dropdown-item[aria-current="true"] {
    background-color: var(--primary);

}

.dropdown-item[aria-current="true"]:hover {
    background-color: var(--secondary);
    color: white;
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-logo {
        max-height: 40px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e5e5;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .btn-purple {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }

    /* Mobile buttons container */
    .navbar-nav.ms-auto {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e5e5;
    }

    .navbar-nav.ms-auto .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav.ms-auto .btn,
    .navbar-nav.ms-auto .dropdown-toggle {
        width: 100%;
        text-align: left;
    }
}


/* Team */
.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.team-name {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-position {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.team-bio {
    color: #666;
    line-height: 1.5;
}

.team-social .btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 2px;
}

.team-social .btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    text-decoration: none;
}

/* Basis-Styles für quadratische Zellen */
.calendar-table {
    table-layout: fixed;
    width: 100%;
}

.calendar-table td {
    width: 14.28%; /* 100% / 7 Tage */
    position: relative;
    padding: 0 !important;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

/* Trick für quadratische Zellen: Padding-Bottom = Width */
.calendar-table td::before {
    content: '';
    display: block;
    padding-bottom: 100%; /* Macht die Zelle quadratisch */
}

/* Inhalt der Zelle absolut positionieren */
.calendar-cell-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    overflow: hidden;
}

/* Tag-Nummer */
.calendar-day-number {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    padding: 1px 10px;
}

.calendar-day-number.has-events {
    background-color: #3c1a65;
    color: white;
    padding: 1px 10px;
    border-radius: 3px;
}

/* Events Container */
.calendar-events {
    position: absolute;
    top: 20px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile-spezifische Anpassungen */
@media (max-width: 768px) {
    .calendar-table {
        font-size: 0.7rem;
    }

    .calendar-day-number {
        font-size: 0.65rem;
        padding: 0 2px;
    }

    .calendar-event {
        font-size: 0.6rem !important;
        padding: 1px 2px !important;
        margin-bottom: 1px !important;
        line-height: 1.1;
        border-left-width: 2px !important;
    }

    /* Verhindere zu lange Event-Titel */
    .calendar-event {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    /* Events als farbige Balken unten in der Zelle */
    .calendar-events {
        top: auto;
        bottom: 0;
        height: 20px;
        display: flex;
        gap: 1px;
        align-items: flex-end;
        overflow: visible;
    }

    .calendar-event {
        width: 4px !important;
        height: 100%;
        padding: 0 !important;
        margin: 0 !important;
        border-left: none !important;
        text-indent: -9999px;
        flex-shrink: 0;
    }

    /* Unterschiedliche Höhen für verschiedene Event-Typen */
    .calendar-event[data-event-type="internal"] {
        background-color: #3c1a65 !important;
        height: 100%;
    }

    .calendar-event[data-event-type="external"] {
        background-color: #ffc107 !important;
        height: 60%;
    }

    /* Event-Anzahl anzeigen wenn mehr als 5 Events */
    .event-overflow-indicator {
        position: absolute;
        bottom: 2px;
        left: 2px;
        font-size: 0.5rem;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 1px 3px;
        border-radius: 2px;
    }
}

/* Hover-Effekt für Desktop */
@media (hover: hover) {
    .calendar-table td:hover {
        background-color: rgba(60, 26, 101, 0.05);
        cursor: pointer;
    }
}

/* Heute hervorheben */
.calendar-today {
    background-color: rgba(60, 26, 101, 0.1) !important;
}

/* Leere Zellen */
.calendar-empty-cell {
    background-color: #f8f9fa;
}

/* Verstecke Monatsansicht-Button auf Mobile */
@media (max-width: 768px) {
    #view-month {
        display: none !important;
    }

    /* Verstecke auch den aktiven Zustand des Listen-Buttons */
    #view-list {
        pointer-events: none;
        opacity: 1 !important;
    }
}