/* Veranstalter-Betreiber Modul Styles */

/* Einleitungstext */
.intro-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bgcolmid);
    border-radius: 8px;
    border: 1px solid var(--bgcoldark);
}

.intro-text {
    color: var(--textcol);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Suchbereich */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bgcoldark);
    border-radius: 4px;
    background: var(--bgcolmid);
    color: var(--textcol);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primcol);
    box-shadow: 0 0 0 2px rgba(255, 90, 174, 0.2);
}

.search-input::placeholder {
    color: var(--seccol);
}

.search-button {
    padding: 0.75rem 1rem;
    background: var(--primcol);
    color: var(--bgcolmid);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.search-button:hover {
    background: var(--accent);
}

.search-button:active {
    transform: translateY(1px);
}

/* Betreiber Sektion */
.betreiber-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bgcolmid);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--textcol);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primcol);
    display: inline-block;
}

/* Betreiber Container */
.betreiber-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Betreiber Karte */
.betreiber-card {
    background: var(--bgcolmid);
    border: 1px solid var(--bgcoldark);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    color: var(--textcol);
    cursor: pointer;
}

.betreiber-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: var(--bgcol);
}

/* Betreiber Header */
.betreiber-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.betreiber-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--textcol);
    margin: 0;
    flex: 1;
    word-wrap: break-word;
}

.betreiber-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--bgcoldark);
}

.status-badge.aktiv {
    background-color: var(--primcol);
}

.status-badge.inaktiv {
    background-color: var(--seccol);
}

/* Betreiber Details */
.betreiber-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.detail-label {
    font-weight: bold;
    color: var(--accent);
    min-width: 5rem;
    flex-shrink: 0;
}

.detail-value {
    color: var(--textcol);
    flex: 1;
    word-wrap: break-word;
}

/* Betreiber Statistiken */
.betreiber-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primcol);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--seccol);
    text-transform: uppercase;
    font-weight: 500;
}

/* Betreiber Info */
.betreiber-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--seccol);
    line-height: 1.4;
    border-left: 3px solid var(--accent);
}

/* Loading Indikator */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--textcol);
}

.spinner {
    border: 4px solid var(--bgcolmid);
    border-top: 4px solid var(--primcol);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Keine Daten Nachricht */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--textcol);
    background: var(--bgcolmid);
    border-radius: 8px;
    border: 1px solid var(--bgcoldark);
}

.no-data h3 {
    margin: 0 0 1rem 0;
    color: var(--accent);
}

.no-data p {
    margin: 0;
    color: var(--seccol);
}

/* Fehlermeldung */
.error-message {
    background-color: rgba(213, 86, 114, 0.2);
    color: var(--textcol);
    padding: 1rem;
    border: 1px solid var(--thirdcol);
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .betreiber-container {
        grid-template-columns: 1fr;
    }
    
    .betreiber-card {
        padding: 1rem;
    }
    
    .betreiber-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .betreiber-name {
        font-size: 1.1rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .search-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-input {
        margin-bottom: 0.5rem;
    }
    
    .betreiber-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .intro-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .betreiber-card {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .betreiber-name {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
    }
}

/* ===== BETREIBER-INFO SEITE STYLES ===== */

/* Betreiber Details Card */
.betreiber-details-card {
    background: var(--bgcolmid);
    border: 1px solid var(--bgcoldark);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.betreiber-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primcol), var(--accent));
}

.betreiber-main-info {
    flex: 1;
}

.betreiber-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--textcol);
    margin: 0 0 2rem 0;
    text-align: center;
    position: relative;
}

.betreiber-name::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primcol);
    border-radius: 2px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.info-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
}

.info-section h3 {
    color: var(--accent);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.info-row {
    display: flex;
    margin-bottom: 0.75rem;
    gap: 1rem;
    align-items: flex-start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
    color: var(--seccol);
    min-width: 7rem;
    flex-shrink: 0;
}

.info-value {
    color: var(--textcol);
    flex: 1;
    word-wrap: break-word;
}

/* Landingpage Section */
.landingpage-section {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primcol);
    margin-top: 1rem;
}

.landingpage-section h3 {
    color: var(--primcol);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.landingpage-text {
    color: var(--textcol);
    line-height: 1.6;
    font-size: 1rem;
}

/* Logo Section */
.betreiber-logo {
    text-align: center;
    margin-top: 1rem;
}

.logo-image {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Turniere Section */
.betreiber-turniere-section {
    margin-top: 1rem;
}

.betreiber-turniere-section h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--textcol);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.betreiber-turniere-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.turniere-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Kleine Turnier Cards */
.turnier-card-small {
    background: var(--bgcolmid);
    border: 1px solid var(--bgcoldark);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.turnier-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: var(--bgcol);
    border-left-color: var(--primcol);
}

.turnier-name-small {
    color: var(--textcol);
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.turnier-info-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.turnier-ort {
    color: var(--seccol);
    font-size: 0.9rem;
}

.turnier-datum {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Loading States */
.loading-small {
    text-align: center;
    padding: 2rem;
    color: var(--seccol);
}

.spinner-small {
    border: 3px solid var(--bgcolmid);
    border-top: 3px solid var(--primcol);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Status Messages */
.no-turniere, .error-turniere {
    text-align: center;
    padding: 2rem;
    color: var(--seccol);
    font-style: italic;
}

.error-turniere {
    color: var(--thirdcol);
}

/* Responsive Design für Betreiber-Info */
@media (max-width: 768px) {
    .betreiber-details-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .betreiber-name {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .turniere-container {
        grid-template-columns: 1fr;
    }
    
    .landingpage-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .betreiber-details-card {
        padding: 1rem;
    }
    
    .betreiber-name {
        font-size: 1.3rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .betreiber-turniere-section h3 {
        font-size: 1.3rem;
    }
    
    .turnier-card-small {
        padding: 0.75rem;
    }
}