@charset "utf-8";
/* CSS Document */

/*********************************************************************************************************************/
/* 1.0 Header                                                                                                        */
/* 1.1 Navbar                                                                                                        */
/* 2.0 Footer                                                                                                        */
/* 3.0 Main Page                                                                                                     */
/* 3.1 Carousel                                                                                                      */
/* 3.2 News 																									     */
/* 3.2.1 Zeitung																									 */
/* 3.3 Scroll to top button                                                                                          */
/* 3.4 Formatierung Counter                                                                                          */
/* 4.0 Länderseite                                                                                                   */
/* 4.1 Font für Landname                                                                                             */
/* 4.2 Formatierung für die Landinfo                                                                                 */
/* 4.3 Formatierung Ligenlogo                                                                                        */
/* 4.4 Formatierung Teamwappen                                                                                       */
/* 4.5 Formatierung Tabelle Vereine der Liga                                                                         */
/* 4.6 Formatierung Freie Vereine (Neue Sektion für Flag & League Styling)                                           */
/* 5.0 Vereine - vereine.php                                                                                         */
/* 6.0 Tabellen - land_liga.php                                                                                      */
/* 6.1 Tabs haben die richtige Länge/Größe                                                                           */
/* 6.2 Spielplan formatieren                                                                                         */
/* 7.0 Uniform Card Layout in der Playercard																		 */
/* 8.0 Zeitung Schreiben Page 																						 */
/* 8.1 Scoped Styles for zeitung_schreiben.php         																 */
/* 9.0 Ligaleiter Cards                                                                                              */
/* 9.1 Styling for Ligaleiter Cards                                                                                  */
/* 10.0 Buttons                                                                                                      */
/* 10.1 Styling for Buttons on zeitung.php                                                                           */
/* 10.2 Newspaper-Style Buttons    																					 */
/* 11.0 Pokal				    																					 */
/* 11.1 Pokal - Gruppen		    																					 */
/* 12.0 Vereine				    																					 */
/* 12.1 Trainer Table		    																					 */
/* 12.2 Vereine - verein_detail.php                                                                                  */
/* 13.0 Admin Liga anlegen				    																		 */
/* 13.1 ZAT Tab				    																					 */
/*********************************************************************************************************************/

/* 1. Header */

/* 1.1 Navbar */

/* Die Höhe der Navbar festlegen */
.fixed-height-navbar {
    height: 60px; /* Stellt die Höhe der Navbar ein */
}

/* Mobile Styles */
@media (max-width: 768px) { /* This breakpoint can be adjusted based on where you see issues */
    
    /* Resetting Navbar Height */
    .fixed-height-navbar {
        height: auto;
    }

    /* Making Navbar Items More Touch-Friendly */
    .navbar-nav .nav-item {
        margin: 0;  /* Reset any margins to align items properly */
    }

    .navbar-nav .nav-link {
        padding: 10px 15px; /* Increase padding for better touch */
        font-size: 16px;   /* Increase font size for better visibility */
    }

    /* Adjusting logo size */
    .navbar-brand img {
        width: 100px;  /* You can adjust this value based on your needs */
        height: auto;
    }

    /* If the dropdown menus are too close to each other, you can give them a margin */
    .navbar .dropdown-menu {
        margin-top: 10px;
    }
}

/* 2. Footer */

/* 3. Main Page */

/* 3.1 Carousel */
/* Default height for larger screens */
.carousel-inner .carousel-item {
    height: 400px; /* Adjust this to your desired height */
    overflow: hidden; /* This will hide any part of the image that exceeds the container size */
}

/* Adjust height for medium-sized screens (tablets) */
@media (max-width: 992px) {
    .carousel-inner .carousel-item {
        height: 300px;
        overflow: hidden; /* This will hide any part of the image that exceeds the container size */
    }
}

/* Adjust height for small screens (phones) */
@media (max-width: 576px) {
    .carousel-inner .carousel-item {
        height: 200px;
        overflow: hidden; /* This will hide any part of the image that exceeds the container size */
    }
}

/* Adjust font size for medium-sized screens (tablets) */
@media (max-width: 992px) {
    .carousel-caption h5 {
        font-size: 1.5em;
    }
    .carousel-caption p {
        font-size: 1em;
    }
}

/* Adjust font size for small screens (phones) */
@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 1.2em;
    }
    .carousel-caption p {
        font-size: 0.8em;
    }
}

.carousel-inner img {
    height: 100%;        /* Image will take the full height of its parent container */
    width: 100%;         /* Image will take the full width of its parent container */
    object-fit: cover;   /* Image will be as large as possible to cover the container */
    display: block;      /* Image will be block-level, taking up the full width of its container */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);  /* Semi-transparent background for better readability */
    border-radius: 5px; /* Optional: to give rounded edges to the caption box */
}

.carousel-caption h5, 
.carousel-caption p {
    color: white;  /* Text color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);  /* Text shadow */
}

/* 3.2 News */
.news-item h2,
.zeitung-item h2 {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: Helvetica, sans-serif;
}

/* Sehr spezifischer Selektor */
.news-item p,
.zeitung-item p,
.container .row .col-md-6 .news-item p,
.container .row .col-md-6 .zeitung-item p {
    font-family: Helvetica, sans-serif !important;
    font-style: normal !important;
    color: #212529 !important;
    font-size: 14px !important;
    line-height: 14px !important;  /* Explizite 14px */
    letter-spacing: 0px !important;
}

/* Formatierung für Autor/Datum */
.news-item em,
.zeitung-item em {
    font-size: 12px;
    color: #666;
    font-family: Helvetica, sans-serif;
}

/* BB-Code Formatierung */
.news-item strong,
.zeitung-item strong {
    font-weight: bold;
    font-family: Helvetica, sans-serif;
}

/* 3.2.1 Zeitung */

/* Basis-Kartenformatierung */
.zeitung-item.card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Header-Bereich */
.zeitung-item .card-header {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    padding: 15px;
}

.zeitung-item .card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
}

/* Meta-Informationen Bereich */
.zeitung-item .card-meta {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
    border-bottom: 1px solid #dee2e6;
    padding: 8px 15px;
}

.zeitung-item .card-meta p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Hauptinhalt */
.zeitung-item .card-body {
    padding: 15px;
    background: #fff;
}

/* Wappen-Formatierung */
.zeitung-item .card-body img {
    max-width: 150px;
    height: auto;
    margin-right: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Text-Formatierung */
.zeitung-item .card-body p {
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    margin-bottom: 1em;
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    .zeitung-item .card-body img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }
    
    .zeitung-item .card-header h2 {
        font-size: 16px;
    }
}

/* Bestehende Zeitung-Stile bleiben erhalten */
.zeitung-page .card-text {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.zeitung-page .card-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.zeitung-page .float-start {
    width: auto;
    height: auto;
}

/* 3.3 Scroll to top button */
.scroll-top-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333; /* Dark background */
    color: #FFF; /* White text */
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 50%; /* Makes it round */
    font-size: 24px; /* Large arrow */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    transition: transform 0.2s, background 0.3s; /* Animation on hover */
}

.scroll-top-button:hover {
    background-color: #555; /* Slightly lighter on hover */
    transform: scale(1.1); /* Slightly scale the button */
}

/* Formatierung Counter */
.counter {
    background-color:#f5f5f5;
    padding: 20px 0;
    border-radius: 5px;
}

.count-title {
    font-size: 40px;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}

.count-text {
    font-size: 15px;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}

.fa-2x {
    margin: 0 auto;
    float: none;
    display: table;
    color: #3f51b5;
}

/* 4. Länderseite */

/* 4.1 Font für Landname */
.countryName-font {
    font-family: 'Teko', sans-serif;
    font-size: 36px;  /* Adjust this value to your preference */
}

/* 4.2 Formatierung für die Landinfo */
.land-info-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #f5f5f5; /* You can choose any background color */
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.land-info {
    font-size: 16px; /* Adjust size as needed */
}

/* 4.3 Formatierung Ligenlogo */
.league-logo-container {
    display: flex;        /* Enables Flexbox */
    justify-content: center; /* Centers content horizontally */
    align-items: center;  /* Centers content vertically */
    height: 100px;        /* Or whatever height you want; ensures there's space to center the image vertically */
}

.league-logo {
    max-height: 128px;     /* Restricts the image's height to a maximum of 128px */
    width: auto;          /* Keeps the aspect ratio of the image */
}

/* 4.4 Formatierung Teamwappen */
.team-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 10px;  /* You can adjust this value for spacing between team logos */
}

.team-logo-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;  /* Adjust for spacing between logos in a row */
}

.team-logo {
    max-height: 50px; 
    width: auto;
}

/* 4.5 Formatierung Tabelle Vereine der Liga */
.vereine-seite table,
.vereine-seite-frei table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* ... other shared properties ... */
}

/* Common styles for .vereine-seite and .vereine-seite-frei */
.vereine-seite table th,
.vereine-seite table td,
.vereine-seite-frei table th,
.vereine-seite-frei table td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.vereine-seite table th,
.vereine-seite-frei table th {
    background-color: #333;
    color: #fff;
}

.vereine-seite table tbody tr:nth-child(even),
.vereine-seite-frei table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.vereine-seite table tbody tr:hover,
.vereine-seite-frei table tbody tr:hover {
    background-color: #ddd;
}

.vereine-seite table img,
.vereine-seite-frei table img {
    max-width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.vereine-seite h2,
.vereine-seite-frei h2 {
    text-align: center;
}

/* Specific column widths for .vereine-seite */
.vereine-seite table th.column1,
.vereine-seite table td.column1 {
    width: 20%;
}

.vereine-seite table th.column2,
.vereine-seite table td.column2 {
    width: 40%;
}

.vereine-seite table th.column3,
.vereine-seite table td.column3 {
    width: 40%;
}

/* Specific column widths for .vereine-seite-frei */
.vereine-seite-frei table th.column1,
.vereine-seite-frei table td.column1 {
    width: 20%;
}

.vereine-seite-frei table th.column2,
.vereine-seite-frei table td.column2 {
    width: 80%;
}

/* As .vereine-seite-frei does not have a third column, no styles needed for column3 */


/* 4.6 Formatierung Freie Vereine (Neue Sektion für Flag & League Styling) */

/* Flag Image Styling */
.flag-img {
    max-width: 128px;
    max-height: 128px;
    object-fit: contain;
    /* Prevent stretching and maintain aspect ratio */
}

/* League Image Styling */
.league-img {
    max-width: 128px;
    max-height: 128px;
    object-fit: contain;
    /* Prevent stretching and maintain aspect ratio */
}

/* Image Block Styling */
.image-block {
    width: 128px;
    height: auto; /* Changed from fixed height to auto to accommodate name */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px; /* Adds space below each image block */
}

/* Image Name Styling */
.image-name {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Image Container Styling */
.card-img-container {
    height: auto; /* Changed from fixed height to auto */
    padding-top: 20px; /* Increased top padding for more space */
    padding-bottom: 20px; /* Added bottom padding for spacing */
    background-color: #ffffff; /* Optional: Set a background color */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Adds space between the flag and league logo */
}

/* Ensures that the image is centered if it's smaller than the container */
.card-img-container .flag-img,
.card-img-container .league-img {
    display: block;
}

/* Teams List Styling */
.teams-list {
    padding: 10px;
}

.team-logo {
    max-width: 40px; /* Adjust size as needed */
    max-height: 40px;
    object-fit: contain;
}

/* 7.0 Uniform Card Layout */

/* Target only cards with the 'uniform-card' class */
.uniform-card {
    display: flex;
    flex-direction: column;
}

/* Ensure the card body stretches to fill available space */
.uniform-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Optional: Adjust images within uniform cards to prevent overflow */
.uniform-card .card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 8.0 Zeitung Schreiben Page */
/*********************************************************************************************************************/
/* 8.1 Scoped Styles for zeitung_schreiben.php                                                                       */
/*********************************************************************************************************************/

/* Container Styling */
.zeitung_schreiben-page .zeitung-form-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Labels */
.zeitung_schreiben-page .zeitung-form-container .form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Article Title Input */
.zeitung_schreiben-page .zeitung-form-container #art_titel {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
}

/* CKEditor Container */
.zeitung_schreiben-page .zeitung-form-container #art_text {
    min-height: 300px;
}

/* Word Count Styling */
.zeitung_schreiben-page .zeitung-form-container #wordCount {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Buttons Styling */
.zeitung_schreiben-page .zeitung-form-container .btn {
    min-width: 120px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .zeitung_schreiben-page .zeitung-form-container {
        padding: 20px;
    }

    .zeitung_schreiben-page .zeitung-form-container .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .zeitung_schreiben-page .zeitung-form-container .d-flex.justify-content-end {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Erhöhe die Mindesthöhe des CKEditor-Bereichs */
.zeitung-schreiben-page .zeitung-form-container #art_text {
    min-height: 300px; /* Bereits vorhanden, kann angepasst werden */
    height: 300px; /* Feste Höhe für den Editor */
    /* Alternativ kannst du nur die Mindesthöhe erhöhen */
}

/* Optional: Anpassung des CKEditor-Containers für bessere Kontrolle */
.zeitung-schreiben-page .ck-editor__editable_inline {
    min-height: 300px; /* Stellt sicher, dass der Editor eine Mindesthöhe hat */
    height: auto; /* Ermöglicht dem Editor, sich bei Bedarf zu erweitern */
}

/*********************************************************************************************************************/
/* 9.0 Ligaleiter Cards                                                                                              */
/* 9.1 Styling for Ligaleiter Cards                                                                                  */
/*********************************************************************************************************************/

.ligaleiter-card {
    border: 1px solid #ddd;
    transition: transform 0.2s;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden;   /* Ensure child elements don't overflow the card */
    display: flex;
    flex-direction: column;
}

.ligaleiter-card:hover {
    transform: scale(1.05);
}

.ligaleiter-card .card-img-top-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.ligaleiter-card .card-img-top {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ligaleiter-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ligaleiter-card .card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    /* Adjust card size for smaller screens */
    .ligaleiter-card .card-title {
        font-size: 1.2em;
    }
}

/*********************************************************************************************************************/
/* 10.0 Buttons                                                                                                      */
/* 10.1 Styling for Buttons on zeitung.php                                                                           */
/* 10.2 Newspaper-Style Buttons - Enhanced                                                                          */
/*********************************************************************************************************************/

.newspaper-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfdfd 0%, #e0e0e0 100%);
    color: #333;
    border: 2px solid #333;
    font-family: 'Merriweather', serif; /* Elegant serif font */
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newspaper-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/white-paper.png') repeat;
    opacity: 0.05;
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
}

.newspaper-button:hover::before {
    opacity: 0.1;
}

.newspaper-button i {
    font-size: 20px;
}

.newspaper-button:hover {
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.newspaper-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .newspaper-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .newspaper-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
/*********************************************************************************************************************/
/* 11.0 Pokal				    																					 */
/* 11.1 Pokal - Gruppen		    																					 */
/*********************************************************************************************************************/

.knockout-table th {
    width: 25%;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}
.knockout-table td {
    padding: 12px;
    vertical-align: middle;
}
.knockout-round {
    margin-bottom: 2rem;
}

/*********************************************************************************************************************/
/* 12.0 Vereine				    																					 */
/* 12.1 Trainer Table		    																					 */
/*********************************************************************************************************************/
.trainer-table {
    width: 100%;
    margin-top: 20px;
}

.trainer-table th, .trainer-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* 12.2 Vereine - verein_detail.php                                                                                  */

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: help;
}

/*********************************************************************************************************************/
/* 13.0 Admin Liga anlegen				    																		 */
/* 13.1 ZAT Tab				    																					 */
/*********************************************************************************************************************/
.form-check-input {
    cursor: pointer;
    width: 3em;
}

.form-check.form-switch {
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.spieltag-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.spieltag-wrapper:hover {
    background: #f8f9fa;
}

.spieltag-wrapper:last-child {
    margin-bottom: 0;
}

/* Container für die Spieltagnummer */
.spieltag-number {
    flex: 1;
    font-size: 1rem;
    color: #495057;
}

/* Container für die Action-Buttons */
.spieltag-buttons {
    display: flex;
    gap: 4px;
    min-width: 80px;
    justify-content: flex-end;
}

/* Modern Button Design */
.btn-move {
    width: 34px;
    height: 28px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #4b5563;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    border-radius: 4px;
    cursor: pointer;
}

.btn-move:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-move:active {
    transform: translateY(0);
    background: #0b5ed7;
}

.btn-move i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-move:hover i {
    transform: scale(1.1);
}

/* Sorge für saubere Ausrichtung in der Tabelle */
.table td {
    vertical-align: middle;
}

/* Zusätzliche Anpassungen für besseren Kontrast */
.bg-light .spieltag-wrapper {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.bg-light .spieltag-wrapper:hover {
    background: #ffffff;
}