﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #fdf6e3; /* helles Sandgelb */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    padding-bottom: 2rem;
}
.footer {
    width: 100%;
    white-space: nowrap;
    margin-top: 2rem;
    padding-top: 2rem;
}
.magic-icon {
    width: 24px;
    height: 25px;
}
.text-very-small {
    font-size: 0.75rem;
}
.section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.card {
    min-height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}


/* Hover-Schatten je nach Magieklasse */
.kunst-hover:hover {
    box-shadow: 0 4px 12px #f6c780;
}
.dunkel-hover:hover {
    box-shadow: 0 4px 12px #372334;
}

.luft-hover:hover {
    box-shadow: 0 4px 12px #abb8d4;
}

.wasser-hover:hover {
    box-shadow: 0 4px 12px #19879f;
}

.seele-hover:hover {
    box-shadow: 0 4px 12px #d46aab;
}
.flora-hover:hover {
    box-shadow: 0 4px 12px #226d22;
}
.fauna-hover:hover {
    box-shadow: 0 4px 12px #604136;
}
.licht-hover:hover {
    box-shadow: 0 4px 12px #f8ecd0;
}
.schmerz-hover:hover {
    box-shadow: 0 4px 12px #963742;
}
.geist-hover:hover {
    box-shadow: 0 4px 12px #431b92;
}
.feuer-hover:hover {
    box-shadow: 0 4px 12px #bb2929;
}
.zeit-hover:hover {
    box-shadow: 0 4px 12px #bd9a4c;
}
.mantik-hover:hover {
    box-shadow: 0 4px 12px #597476;
}
.daemmerung-hover:hover {
    box-shadow: 0 4px 12px #989693;
}

/* Lightcard je nach Magieklasse */
.kunst {
    background-color: #f6c780;
}
.dunkel {
    background-color: #372334;
}
.luft {
    background-color: #abb8d4;
}
.wasser {
    background-color: #19879f;
}
.seele {
    background-color: #d46aab;
}
.flora {
    background-color: #226d22;
}
.fauna {
    background-color: #604136;
}
.licht {
    background-color: #f8ecd0;
}
.schmerz {
    background-color: #963742;
}
.geist {
    background-color: #431b92;
}
.feuer {
    background-color: #bb2929;
}
.zeit {
    background-color: #bd9a4c;
}
.mantik {
    background-color: #597476;
}
.daemmerung {
    background-color: #989693;
}
.card-red {
    background-color: rgba(255, 80, 0, 0.4);
}
.card-blue {
    background-color: rgba(0, 150, 255, 0.4);
}
.card-violett {
    background-color: rgb(128, 0, 128, 0.4);
}
.card-green {
    background-color: rgba(0, 180, 90, 0.4);
}
.card-yellow {
    background-color: rgba(255, 215, 0, 0.8);
}
.card-brown {
    background-color: rgba(139, 69, 19, 0.4);
}
.card-shadow {
    background-color: rgba(20, 20, 20, 0.5);
}
/**
    * CSS für die Familienbaumdarstellung
 */
.family-tree {
    position: relative;
}

.family-card {
    margin-bottom: 15px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.root-card {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.parent-card {
    border-color: #28a745;
}

.sibling-card {
    border-color: #ffc107;
}

.descendant-card {
    border-color: #dc3545;
}

.family-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
/**
    * Dashboard Styles
    * erstmal Admin-Dashboard
*/
/* Card Styles */
.guild-card {
    border: 2px solid #198754;
    border-radius: 0.5rem;
}

    .guild-card .card-header {
        background-color: #198754;
        color: white;
        font-weight: 600;
        text-align: center;
        border-bottom: none;
    }

.character-detail-card {
    border: 2px solid #6f42c1;
    border-radius: 0.5rem;
}

    .character-detail-card .card-header {
        background-color: #6f42c1;
        color: white;
        font-weight: 600;
        text-align: center;
        border-bottom: none;
    }

#guildTable_wrapper, #characterTable_wrapper {
    font-size: 1em;
}
.magic-card {
    border: 2px solid #dc3545;
    border-radius: 0.5rem;
}

    .magic-card .card-header {
        background-color: #dc3545;
        color: white;
        font-weight: 600;
        text-align: center;
        border-bottom: none;
    }

/* Character Cards */
.character-card {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .character-card:hover {
        border-color: #0d6efd;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .character-card.active {
        border-color: #0d6efd;
        background-color: #e7f1ff;
    }

.character-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.character-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

/* Guild Options */
.guild-option {
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .guild-option:hover {
        background-color: #f8f9fa;
    }

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Magic Spells */
.magic-spell-list {
    max-height: 400px;
    overflow-y: auto;
}

.magic-spell {
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

    .magic-spell:hover {
        background-color: #e9ecef;
    }

.spell-level {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Character Grid Height */
.character-grid-section {
    min-height: 300px;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .character-grid-section {
        margin-top: 1rem;
    }
}
/* Admin Panel - Mittelalterliches Design */
.admin-container {
    background: linear-gradient(45deg, #f4f1e8, #e8dcc0);
    background-image: radial-gradient(circle at 20% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    font-family: 'MedievalSharp', cursive;
}

/* Pergament-Tabellen */
.pergament-table-card {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 3px solid #8b7355;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 24px rgba(93, 78, 55, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

    .pergament-table-card::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border: 1px solid #e8dcc0;
        border-radius: 17px;
        pointer-events: none;
    }

.pergament-header {
    font-family: 'Uncial Antiqua', serif;
    font-size: 1.8rem;
    color: #5d4e37;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(93, 78, 55, 0.3);
    position: relative;
}

/* DataTables mittelalterlich */
.dataTables_wrapper {
    padding: 0;
    background: transparent;
    
}

.medieval-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #8b7355;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-top: 20px !important;
    font-size: 15px;
}

    .medieval-table thead th {
        background: linear-gradient(135deg, #5d4e37, #8b7355);
        color: #f9f6f0;
        border: none;
        padding: 15px 20px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        font-family: 'MedievalSharp', cursive;
    }

    .medieval-table tbody td {
        padding: 15px 20px;
        border-bottom: 1px solid #e8dcc0;
        border-right: 1px solid #f4f1e8;
        background: #fefefe;
        transition: all 0.3s ease;
        font-family: 'MedievalSharp', cursive;
        color: #5d4e37;
    }

    .medieval-table tbody tr:nth-child(even) td {
        background: #f9f6f0;
    }

    .medieval-table tbody tr:hover td {
        background: linear-gradient(145deg, #f4f1e8, #e8dcc0);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(93, 78, 55, 0.2);
    }

/* Mittelalterliche Action Buttons */
.medieval-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.medieval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8b7355;
    background: linear-gradient(145deg, #f9f6f0, #e8dcc0);
    color: #5d4e37;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(93, 78, 55, 0.2);
    position: relative;
    overflow: hidden;
}

    .medieval-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
        transition: left 0.5s ease;
    }

    .medieval-btn:hover::before {
        left: 100%;
    }

    .medieval-btn:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 16px rgba(93, 78, 55, 0.4);
        border-color: #d4af37;
        color: #d4af37;
    }

    .medieval-btn.edit-btn {
        background: linear-gradient(145deg, #e3f2fd, #bbdefb);
        border-color: #2196f3;
        color: #1976d2;
    }

        .medieval-btn.edit-btn:hover {
            background: linear-gradient(145deg, #2196f3, #1976d2);
            color: white;
        }

    .medieval-btn.delete-btn {
        background: linear-gradient(145deg, #ffebee, #ffcdd2);
        border-color: #f44336;
        color: #d32f2f;
    }

        .medieval-btn.delete-btn:hover {
            background: linear-gradient(145deg, #f44336, #d32f2f);
            color: white;
        }

/* DataTables Controls mittelalterlich */
.dataTables_length select,
.dataTables_filter input {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 8px 12px;
    color: #5d4e37;
    font-family: 'MedievalSharp', cursive;
    transition: all 0.3s ease;
}

    .dataTables_length select:focus,
    .dataTables_filter input:focus {
        outline: none;
        border-color: #d4af37;
        box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    }

.dataTables_length label,
.dataTables_filter label {
    color: #5d4e37;
    font-family: 'MedievalSharp', cursive;
    font-weight: 600;
}

/* Pagination mittelalterlich */
.dataTables_paginate .paginate_button {
    background: linear-gradient(145deg, #f9f6f0, #e8dcc0);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    color: #5d4e37;
    font-family: 'MedievalSharp', cursive;
    font-weight: 600;
    padding: 8px 15px;
    margin: 0 3px;
    transition: all 0.3s ease;
    text-shadow: none;
}

    .dataTables_paginate .paginate_button:hover {
        background: linear-gradient(145deg, #d4af37, #b8941f);
        color: white;
        border-color: #d4af37;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(93, 78, 55, 0.3);
    }

    .dataTables_paginate .paginate_button.current {
        background: linear-gradient(145deg, #6e4b1f, #5d4e37);
        color: #f9f6f0;
        border-color: #6e4b1f;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    }

.dataTables_info {
    color: #8b7355;
    font-family: 'MedievalSharp', cursive;
    font-style: italic;
}

/* Character Grid mittelalterlich angepasst */
.character-grid-section {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 3px solid #8b7355;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(93, 78, 55, 0.3);
}

.character-card {
    background: linear-gradient(145deg, #f9f6f0, #e8dcc0);
    border: 2px solid #d4c4a8;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .character-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .character-card:hover::before {
        left: 100%;
    }

    .character-card:hover,
    .character-card.active {
        border-color: #d4af37;
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(93, 78, 55, 0.4);
    }

.magic-card {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 3px solid #8b7355;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(93, 78, 55, 0.3);
}

.magic-spell {
    background: linear-gradient(145deg, #f4f1e8, #e8dcc0);
    border: 1px solid #d4c4a8;
    border-radius: 8px;
    margin: 5px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.magic-spell:hover {
    background: linear-gradient(145deg, #d4af37, #b8941f);
    color: white;
    transform: translateX(5px);
}

/* Regiment Action Buttons */
.regiment-actions .btn {
    margin-left: 2px;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
}

    .regiment-actions .btn:hover {
        transform: scale(1.05);
    }

/* Card Header Flexbox für Regiment-Karten */
.card-header .btn-group-sm .btn {
    padding: 2px 8px;
    font-size: 11px;
}