/* Global Styles */
body, button, input {
    font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;;
    color: #A8A47B;
    background-color: #000;
    margin: 0;
    padding: 0;
}

label, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;;
    color: #A8A47B;
    margin: 0;
    padding: 0;
}

.form-control select{
    padding:15px;
    padding-block-start: 5px;
    padding-block-end: 5px;
}

pre, #markdown-editor-input, .text-mono, .code-base {
    font-family: "Lucida Console", "DejaVu Sans Mono", "Ubuntu Mono", Monaco, monospace;
}

p {
    font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
    font-size: 11pt;
    line-height:1.6;
    font-weight: normal;
    font-style: normal;
    color: #A8A47B;
    text-decoration: none;
}

label {
    display:block;
}

hr {
    color: #555;
    border: 0;
    height: 1px;
    background: #555;
    margin-bottom: 24px;
    &.faded {
        background-image: linear-gradient(to right, #FFF, #e3e0e0 20%, #e3e0e0 80%, #FFF);
    }
    &.darker {
        background:#666;
    }
    &.margin-top, &.even {
        margin-top: 24px
    }
    clear: both;
}

h1 {
    font-size: 3em;
    line-height: 1.22222222em;
    margin-top: 0.48888889em;
    margin-bottom: 0.48888889em;
}
h2 {
    font-size: 2.5em;
    line-height: 1.294117647em;
    margin-top: 0.8627451em;
    margin-bottom: 0.43137255em;
}
h3 {
    font-size: 2em;
    line-height: 1.221428572em;
    margin-top: 0.78571429em;
    margin-bottom: 0.43137255em;
}
h4 {
    font-size: 1.5em;
    line-height: 1.375em;
    margin-top: 0.78571429em;
    margin-bottom: 0.43137255em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    position: relative;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

h5 {
    font-size: 1.25em;
}

h5, h6 {
    line-height: 1em;
    margin-top: 0;
    margin-bottom: 0;
}

b, b1 {
    font-family: "Times New Roman", Tahoma, Arial, Sans Serif;
    font-size: 11pt;
    font-weight: bold;
    font-style: normal;
    color: #A8A47B;
    text-decoration: none;
}

b2 {
    font-family: "Times New Roman", Tahoma, Arial, Sans Serif;
    font-size: 12pt;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    background-color: #A8A47B;
}

p, ul, ol, pre, table, blockquote {
    margin-top: 0.3em;
    margin-bottom: 1.375em;
}

strong, b, .bold, .strong {
    font-weight: bold;
    > strong, > b, > .bold, > .strong {
        font-weight: bolder;
    }
}

em, i, .italic {
    font-style: italic;
}

small, p.small, span.small, .text-small {
    font-size: 0.75rem;
}

sup, .superscript {
    vertical-align: super;
    font-size: 0.8em;
}

sub, .subscript {
    vertical-align: sub;
    font-size: 0.8em;
}

pre {
    font-size: 12px;
    border: 1px solid #111;
    background-color: #2B2B2B;
    border-radius: 4px;
    padding-inline-start: 26px;
    position: relative;
    padding-top: 3px;
    padding-bottom: 3px;
    &:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        width: 22.4px;
        inset-inline-start: 0;
        height: 100%;
        background-color:#313335;
        border-inline-end: none;
    }
}

blockquote {
    display: block;
    position: relative;
    border-left: 4px solid transparent;
    border-left-color: #5B86F7;
    background-color:#333;
    padding: 12px 16px 12px 32px;
    overflow: auto;
    &:before {
        content: "\201C";
        font-size: 2em;
        font-weight: bold;
        position: absolute;
        top: 12px;
        left: 12px;
        color: #777;
    }
}

a {
    color: #5B86F7;
    fill: currentColor;
    cursor: pointer;
    text-decoration: none;
    transition: filter ease-in-out 80ms;
    line-height: 1.6;
    &:hover {
        text-decoration: underline;
    }
    &.icon {
        display: inline-block;
    }
    svg {
        position: relative;
        display: inline-block;
    }
}

a:active {
    color: #c0c0c0;
}

a:hover {
    color: #c0c0c0;
}

details {
    border: 1px solid;
    border-color: #555;
    margin-bottom: 1em;
    padding: 12px;
}

table {
    min-width: 100px;
    max-width: 100%;
    thead {
        background-color: #333;
        font-weight: 500;
    }
    td, th {
        min-width: 10px;
        padding: 6px 8px;
        border: 1px solid #A8A47B;
        overflow: auto;
        line-height: 1.2;
        word-break: break-word;
    }
    td p, th p {
        margin: 0;
    }
}

table.table {
    width: 100%;
    tr td, tr th {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    th, td {
        text-align: start;
        border: none;
        padding: 12px 12px;
        vertical-align: middle;
        margin: 0;
        overflow: visible;
    }
    th {
        font-weight: bold;
    }
    tr:hover {
        background-color:#333;
    }
    .text-right {
        text-align: end;
    }
    .text-center {
        text-align: center;
    }
    td.actions {
        overflow: visible;
    }
    a {
        display: inline-block;
    }
    &.expand-to-padding {
        margin-left: 12px;
        margin-right: 12px;
        width: calc(100% + (2*12px));
        max-width: calc(100% + (2*12px));
    }
}

table.no-style {
    td {
        border: 0;
        padding: 0;
    }
}

table.list-table {
    td {
        border: 0;
        vertical-align: middle;
        padding: 6px;
    }
}

.mb-5 {
    margin-bottom:5px
}

.mb-10 {
    margin-bottom:10px
}

.mb-15 {
    margin-bottom:15px
}

.mb-20 {
    margin-bottom:20px
}

.mt-5 {
    margin-top:5px
}

.mt-10 {
    margin-top:10px
}

.mt-15 {
    margin-top:15px
}

.mt-20 {
    margin-top:20px
}

/* Margin Right (mr-*) */
.mr-5 {
    margin-right: 5px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-15 {
    margin-right: 15px;
}

.mr-20 {
    margin-right: 20px;
}

/* Margin Left (ml-*) */
.ml-5 {
    margin-left: 5px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-15 {
    margin-left: 15px;
}

.ml-20 {
    margin-left: 20px;
}


.guild-box .mb-5 {
    margin-bottom:5px
}

.guild-box .mb-10 {
    margin-bottom:10px
}

.guild-box .mb-15 {
    margin-bottom:15px
}

.guild-box .mb-20 {
    margin-bottom:20px
}

.guild-box .mt-5 {
    margin-top:5px
}

.guild-box .mt-10 {
    margin-top:10px
}

.guild-box .mt-15 {
    margin-top:15px
}

.guild-box .mt-20 {
    margin-top:20px
}

/* Specific Colors */
.gelbgold {
    color: #CC9933;
}

.gold {
    color: #A8A47B;
}

.blau {
    color: #5B86F7;
}

.weiss {
    color: #c0c0c0;
}

.rot {
    color: #FF0000;
}

.text-black {
    color: #000000;
}

.text-white {
    color: #ffffff;
}

.center { text-align: center; }

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    padding: 10px 20px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-logo {
    height: 80px;
    margin-right: 20px;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin:20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0; /* Standard: Links bündig */
}

.dropdown-content.right-align {
    right: 0; /* Menü rechts bündig ausrichten */
    left: auto; /* Standard-Linksbündigkeit aufheben */
}

.dropdown-content a {
    color: #A8A47B;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #575757;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #fff;
}

.dropbtn {
    color: #A8A47B;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

/* Hamburger Menü für kleine Bildschirme */
.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #A8A47B;
}

.navbar.mobile .navbar-links {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.navbar.mobile .navbar-links.show {
    display: flex;
}

/* Main Content */
.container {
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    background-color: #222;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.homepage-banner img {
    width: 100%; /* Passt sich der Breite des Containers an */
    height: auto; /* Beibehaltung der Proportionen */
    max-width: 350px; /* Optional: Maximalbreite */
    margin: 0 auto; /* Zentriert das Bild bei großen Bildschirmen */
    display: block; /* Entfernt unerwünschte Lücken */
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between; /* Abstand zwischen den Spalten */
    align-items: center; /* Zentriert den Inhalt vertikal */
    background-color: #222; /* Dunkler Hintergrund */
    color: #A8A47B; /* Weiße Schriftfarbe */
    padding: 10px 20px; /* Innenabstand */
    font-size: 14px;
    flex-wrap: wrap; /* Sorgt für Umbruch bei kleiner Bildschirmgröße */
}

.footer b {
    color:#5B86F7;
}

.footer-section {
    flex: 1; /* Alle Spalten nehmen gleich viel Platz ein */
    padding: 0 10px; /* Abstand zwischen den Spalten */
}

.footer-section.left {
    text-align: left; /* Linker Inhalt linksbündig */
}

.footer-section.center {
    text-align: center; /* Mittlerer Inhalt zentriert */
}

.footer-section.right {
    text-align: right; /* Rechter Inhalt rechtsbündig */
}

.footer-link:hover {
    text-decoration: underline; /* Unterstreichen beim Hover */
}

/* Additional Classes */
.image-section img {
    width: 100%;
    height: auto;
}

.cta-section .btn {
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    margin: 10px;
    text-align: center;
    display: inline-block;
    color: #000;
    background-color: #A8A47B;
    border: none;
    cursor: pointer;
}

.cta-section .btn:hover {
    background-color: #CC9933;
    color: #fff;
}

/* Status */
.map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

#world-map {
    width: 100%;
    height: auto;
    display: block;
}

.marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%); /* Zentriert den Marker */
}

.marker-group {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #d17b25;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%); /* Zentriert den Marker */
}

.overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Gildenlose Charaktere */
.gildenlose-container {
    display: flex;
    justify-content: space-between;
}

.gildenlose-column {
    flex: 1; /* Gleiche Breite wie die Gilden-Spalten */
    padding: 0 10px;
}

.gildenlose-column ul {
    list-style: none; /* Punkte entfernen */
    padding: 0;
    margin: 0;
}

.gildenlose-character {
    background-color: #555;
    color: #fff;
    margin: 10px 0;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.gildenlose-character:hover {
    background-color: #777; /* Helleres Grau */
    transform: scale(1.05); /* Leichtes Vergrößern */
    cursor: pointer;
}

/* Gildenarten (3-Spalten-Layout für Licht, Neutral, Dunkel) */
.gilden-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Sicherstellen, dass Spalten umbrechen bei kleinen Bildschirmen */
}

.gilden-column {
    flex: 0 0 32%; /* Drei gleichmäßige Spalten */
    max-width: 32%;
}

.gilden-column ul {
    list-style: none; /* Punkte entfernen */
    padding: 0;
    margin: 0;
}

/* Gildenboxen */
.guild-link {
    display: block; /* Macht den Link zu einem Block-Level-Element */
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    color: inherit; /* Erbt die Textfarbe vom Inhalt */
}


.guild-box {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.guild-box a {
    color:#ffffff;
}

/* Lichtgilden */
.guild-box.light {
    background-color: #054c05; /* Grün */
    border: 1px solid #087508;
}

/* Neutralgilden */
.guild-box.neutral {
    background-color: #383c40; /* Grau */
    border: 1px solid #6c757d;
}

/* Schattengilden */
.guild-box.dark {
    background-color: #552204; /* Rot */
    border: 1px solid #7e3205;
}

.tooltip-details {
    flex: 1;
}

.character-item:hover .character-tooltip {
    display: block; /* Overlay bei Hover anzeigen */
}

.character-tooltip {
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    color: #A8A47B;
    display: none;
    z-index: 10000;
    width: 350px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
    pointer-events: none; /* Tooltip nicht als Hover-Ziel behandeln */
    transition: opacity 0.2s ease-in-out; /* Sanftes Ein-/Ausblenden */
}

.character-header {
    background-color: #333;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    color: white;
}

.character-header.light {
    background-color: #054c05; /* Blau für Lichtgilden */
}

.character-header.neutral {
    background-color: #383c40; /* Gold für Neutralgilden */
}

.character-header.dark {
    background-color: #552204; /* Dunkelrot für Schattengilden */
}

.character-details {
    display: flex;
    padding: 10px;
}

.character-details img {
    width: 100%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #A8A47B; /* Goldener Rahmen um das Bild */
}

.character-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #A8A47B;
}

.tooltip-container {
    display: flex;
    align-items: flex-start;
}

.tooltip-details {
    flex: 1;
}

.tooltip-name {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.tooltip-content {
    text-align: center; /* Zentriert Bild und Text */
}

.tooltip-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    object-fit: cover;
}

/* Flexbox Layout für Spalten */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.col-md-1 {
    flex: 0 0 auto;
    max-width: 8.3333%;
    margin-bottom: 20px;
}

.col-md-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
    margin-bottom: 20px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    margin-bottom: 20px;
}

.col-md-4 {
    flex: 0 0 32%;
    max-width: 32%;
    margin-bottom: 20px;
}

.col-md-5 {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
    margin-bottom: 20px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
}

.col-md-7 {
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
    margin-bottom: 20px;
}

.col-md-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    margin-bottom: 20px;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
    margin-bottom: 20px;
}

.col-md-10 {
    flex: 0 0 83.3333%;
    max-width: 83.3333%;
    margin-bottom: 20px;
}

.col-md-11 {
    flex: 0 0 91.6667%;
    max-width: 91.6667%;
    margin-bottom: 20px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Hover-Effekt */
.guild-box:hover, .gildenlose-character:hover {
    transform: translateY(-5px); /* Leichtes Anheben */
    background-color: #333; /* Etwas helleres Grau */
}

.guild-box.light:hover {
    background-color: #087508;
}

.guild-box.neutral:hover {
    background-color: #6c757d;
}

.guild-box.dark:hover {
    background-color: #7e3205;
}

.guild-box {
    background-color: #222; /* Einheitliches dunkles Grau */
    border: 1px solid #444; /* Dezenter Rahmen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Schatteneffekt */
    margin: 10px 0 0 0;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.3s;
}

#statistik .gilden-column .guild-box {
    background-color: #222; /* Einheitliches dunkles Grau */
    border: 1px solid #444; /* Dezenter Rahmen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Schatteneffekt */
    margin: 10px 0 0 0;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.3s;
}

.gildenlose-container .guild-box {
    background-color: #222; /* Einheitliches dunkles Grau */
    border: 1px solid #444; /* Dezenter Rahmen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Schatteneffekt */
    margin: 0;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.3s;
}

/* Mobile Navigation Styles */
.hamburger-navigation {
    display: none; /* Standardmäßig ausgeblendet */
    flex-direction: column;
    gap: 10px;
    background-color: #111;
    padding: 10px;
    width: 100%;
}

.hamburger-navigation .mobile-dropdown-content {
    display: none; /* Standardmäßig geschlossen */
    flex-direction: column;
    background-color: #222;
    border: 1px solid #444;
    margin-top: 5px;
}

.hamburger-navigation .mobile-dropdown-content a {
    padding: 10px;
    color: #A8A47B;
    text-align: left;
    text-decoration: none;
}

.hamburger-navigation .mobile-dropdown-content a:hover {
    background-color: #444;
    color: #fff;
}

.hamburger-navigation .mobile-dropdown.open .mobile-dropdown-content {
    display: flex; /* Zeigt die Unterpunkte */
    max-width:95%
}

/* Hamburger Icon */
.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #A8A47B;
}

form input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

form button {
    padding: 10px 20px;
    font-size: 14px;
}

form input[type=checkbox]{
    width:15px;
}

.character-edit {
    background-color: #222; /* Passend zum Design */
    border: 1px solid #444; /* Dezente Umrandung */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: #A8A47B; /* Goldener Text */
}

/* Abschnittstitel */
.character-edit .section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #A8A47B;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

/* Bildvorschau */
.character-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #444; /* Rahmen für das Bild */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Formularfelder */
.form-control {
    padding:5px;
    background-color: #333; /* Dunkler Hintergrund */
    color: #A8A47B; /* Goldener Text */
    border: 1px solid #555; /* Dezente Umrandung */
    border-radius: 4px;
}

.form-control:focus {
    background-color: #444; /* Etwas helleres Grau */
    color: #ffffff;
    border-color: #A8A47B; /* Goldene Umrandung */
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.trix-editor {
    background-color: #333;
    color: #A8A47B;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
}

.trix-toolbar .trix-button--icon-bold {
    background-color: #A8A47B; /* Dunkler Hintergrund */
    border-radius: 5px; /* Abgerundete Ecken */
}

.trix-toolbar .trix-button--icon-bold:hover {
    background-color: #A8A47B; /* Hellere Farbe beim Hover */
}

/* Styling für die Grid-Anzeige der Inhalte */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.content-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content-link {
    text-decoration: none;
    color: #333;
}

.content-link h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.content-link p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.content-grid .guild-box {
    color: #A8A47B;
}

.content-grid .guild-box a{
    color: #5B86F7;
}

.content-grid .guild-box ul{
    list-style:none;
}

.character-container .container header input{
    max-width:80%
}

/* Listen */

/* Suchleiste */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #111;
    color: #A8A47B;
}

.search-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    background-color: #A8A47B;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #A8A47B;
    color: #fff;
}

/* Statistik und Charakterliste */

/* Charakterdatenbank spezifisch */


.character-container .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible Spalten */
    gap: 15px; /* Abstand zwischen den Spalten */
}

.character-container .col-md-4,
.character-container .col-sm-6 {
    flex: 0 0 33%; /* Dreispaltig */
    max-width: 33%; /* Dreispaltig */
    padding: 5px;
}

.character-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.character-container ul li {
    margin-bottom: 5px;
}

/* Gildendatenbank spezifisch */
.guild-container .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible Spalten */
    gap: 15px; /* Abstand zwischen den Spalten */
}

.guild-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guild-container ul li {
    margin-bottom: 5px;
}

/* Suchleiste */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dropdowns standardmäßig verstecken */
.mobile-dropdown {
    display: none; /* Versteckt die Dropdowns standardmäßig */
}

/* Desktop-Statistiken standardmäßig anzeigen */
.desktop-stats {
    display: block; /* Statistiken werden auf Desktop angezeigt */
}

/* Charakterseite: Hauptcontainer */
.character-page-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Flex-Elemente umbrechen */
}

/* Linke Spalte */
.character-main {
    flex: 2;
}

/* Rechte Spalte */
.guild-info {
    flex: 1;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

/* Charakter- und Gildenbilder */
.character-image, .guild-image {
    max-width: 500px;
    margin: 10px 10px 10px 0;
    border: 1px solid #A8A47B
}
/* Wiki */
.wiki-sidebar {
    padding: 20px;
    border-right: 1px solid #555;
    height: 100%;
    position: sticky;
    top: 0;
}

.wiki-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.wiki-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.wiki-sidebar ul ul {
    padding-left: 15px;
}

.wiki-sidebar li {
    margin-bottom: 10px;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.toggle-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #A8A47B;
    font-size: 1em;
    text-align: left;
    padding: 5px 0;
}

.toggle-button:hover {
    color: #fff;
}

.toggle-button::before {
    content: "▾";
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.toggle-button.active > a {
    font-weight: bold;
    color: #fff;
}

.chapter-pages li.active > a {
    font-weight: bold;
    color: #5B86F7;
}

.chapter-pages.active {
    display: block;
}

.hidden {
    display: none;
}

.chapter-pages {
    padding-left: 15px;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-size: 16px;
    text-align: center;
}

.img-fluid {
    max-width: 100%; /* Das Bild passt sich der Breite des Containers an */
    height: auto;    /* Die Höhe wird automatisch angepasst, um das Seitenverhältnis zu erhalten */
    display: block;  /* Entfernt Standard-Inline-Spaces */
}

/* Skills-Container */
.skills-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}

.skills-container ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Bis zu 4 Spalten */
    gap: 10px; /* Abstand zwischen den Elementen */
    list-style: none; /* Entfernt die Bullet-Points */
    padding: 0; /* Entfernt Standard-Abstände */
    margin: 0; /* Entfernt Standard-Abstände */
}

.skills-container li {
    background-color: #222; /* Dunkler Hintergrund für die Skills */
    color: #A8A47B; /* Goldener Text passend zum Design */
    padding: 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    text-align: center; /* Zentrierter Text */
    font-size: 14px; /* Schriftgröße */
    border: 1px solid #333; /* Dezente Umrandung */
}

/* Sichtbare Skills */
.skills-container.active {
    max-height: 100%; /* oder genug Platz für die Inhalte */
}

/* Button-Styling */
.toggle-skills {
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
}


/* Warnung (Orange) */
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Gefahr (Rot) */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* WIKI STYLES */

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

img.align-right, video.align-right {
    float: right !important;
    margin: 6px 0 0 10px;
}

/* Allgemeines Button-Styling */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1rem;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

/* Primärer Button: Gold */
.btn-primary {
    color: #A8A47B; /* Weißer Text */
    background-color: #222222; /* Dunkler Grauton */
    border: 1px solid #5e5c44;
}

.btn-primary:hover {
    background-color: #555555; /* Etwas helleres Grau beim Hover */
    border-color: #555555;
}

.btn-primary:active {
    background-color: #333333; /* Dunkleres Grau beim Klicken */
    border-color: #333333;
}

/* Sekundärer Button: Grau */
.btn-secondary {
    color: #ffffff; /* Weißer Text */
    background-color: #444444; /* Dunkler Grauton */
    border: 1px solid #444444;
}

.btn-secondary:hover {
    background-color: #555555; /* Etwas helleres Grau beim Hover */
    border-color: #555555;
}

.btn-secondary:active {
    background-color: #333333; /* Dunkleres Grau beim Klicken */
    border-color: #333333;
}

/* Deaktivierter Button */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Buttons mit unterschiedlichen Größen */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 14px;
    border-radius: 0.2rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 18px;
    border-radius: 0.3rem;
}

.account-info {
    background-color: #222; /* Dunkler Hintergrund passend zum Design */
    border: 1px solid #444; /* Dezente Umrandung */
    border-radius: 8px;
    color: #A8A47B; /* Goldener Text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.account-info .section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #A8A47B;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.table-borderless th {
    width: 40%; /* Breitere Spalte für Beschriftungen */
    text-align: left;
    font-weight: normal;
    color: #A8A47B;
}

.table-borderless td {
    text-align: left;
    color: #ffffff; /* Weißer Text für die Werte */
}

.form-control {
    background-color: #333; /* Dunkler Hintergrund */
    color: #A8A47B; /* Goldener Text */
    border: 1px solid #555; /* Dezente Umrandung */
    border-radius: 4px;
}

.form-control:focus {
    background-color: #444; /* Etwas helleres Grau */
    color: #ffffff;
    border-color: #A8A47B; /* Goldene Umrandung */
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.gap-3 {
    gap: 1rem; /* Abstand zwischen Form-Elementen */
}

.p-4 {
    padding: 4px;
}

.p-5 {
    padding: 5px;
}

.p-10 {
    padding: 10px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

/* Padding oben (Top) */
.pt-4 {
    padding-top: 4px;
}

.pt-5 {
    padding-top: 5px;
}

.pt-10 {
    padding-top: 10px;
}

.pt-15 {
    padding-top: 15px;
}

.pt-20 {
    padding-top: 20px;
}

/* Padding rechts (Right) */
.pr-4 {
    padding-right: 4px;
}

.pr-5 {
    padding-right: 5px;
}

.pr-10 {
    padding-right: 10px;
}

.pr-15 {
    padding-right: 15px;
}

.pr-20 {
    padding-right: 20px;
}

/* Padding unten (Bottom) */
.pb-4 {
    padding-bottom: 4px;
}

.pb-5 {
    padding-bottom: 5px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-15 {
    padding-bottom: 15px;
}

.pb-20 {
    padding-bottom: 20px;
}

/* Padding links (Left) */
.pl-4 {
    padding-left: 4px;
}

.pl-5 {
    padding-left: 5px;
}

.pl-10 {
    padding-left: 10px;
}

.pl-15 {
    padding-left: 15px;
}

.pl-20 {
    padding-left: 20px;
}

/* Padding horizontal (Left & Right) */
.px-4 {
    padding-left: 4px;
    padding-right: 4px;
}

.px-5 {
    padding-left: 5px;
    padding-right: 5px;
}

.px-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.px-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.px-20 {
    padding-left: 20px;
    padding-right: 20px;
}

/* Padding vertikal (Top & Bottom) */
.py-4 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.py-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.py-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.forum-login-card {
    max-width: 400px;
    width: 100%;
    background-color: #2d2d2d;
    border: none;
    border-radius: 8px;
}

#records .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#records .col {
    flex: 1;
    min-width: 200px; /* Mindestbreite für eine Spalte */
}

#records ul {
    list-style: none;
    padding: 0;
}

#records ul li {
    margin: 0.5rem 0;
}

.records ul {
    list-style: none;
}

.chart-container {
    width: 100%;
    height: 200px;
}

.text-danger{
    color: #e3172a;
}

.text-success{
    color:#155724;
}

input[type=text],input[type=number],input[type=email],input[type=date],input[type=search],input[type=url],input[type=color],input[type=password] {
    background-color: rgba(0, 0, 0, .2);
    border: 1px solid hsla(0, 0%, 100%, .2);
    border-radius: 40px;
    color: #eee;
    z-index: 2;
    height: auto;
    padding: 9px;
    width:250px;
}

textarea {
    background-color: rgba(0, 0, 0, .2);
    border: 1px solid hsla(0, 0%, 100%, .2);
    color: #eee;
    z-index: 2;
    height: auto;
    padding: 9px;
    width:250px;
}

header .search-box input {
    background-color: rgba(0, 0, 0, .2);
    border: 1px solid hsla(0, 0%, 100%, .2);
    border-radius: 40px;
    color: #eee;
    z-index: 2;
    height: auto;
    padding: 9px;
    padding-inline-start: 40px;
    width:95%;
}

.quest-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* Abstand zwischen Elementen */
    margin-bottom: 20px; /* Abstand zur Tabelle */
}

.quest-controls .form-group {
    margin: 0;
    min-width: 200px; /* Breite für Eingabefelder */
}

.quest-controls .btn {
    flex-shrink: 0; /* Verhindert, dass der Button schrumpft */
}


.btn-danger {
    border-color: #dc3545;
}

.btn-danger:hover {
    border-color: #bd2130;
}

.btn-success {
    border-color: #28a745;
}

.btn-success:hover {
    border-color: #1e7e34;
}

.btn-info {
    border-color: #17a2b8;
}

.btn-info:hover {
    border-color: #117a8b;
}

.btn-warning {
    border-color: #ffc107;
}

.btn-warning:hover {
    border-color: #d39e00;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 1000;
}

.cookie-content {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-button.secondary {
    background-color: #f44336;
}

.hidden {
    display: none;
}

.card {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 5px;
    min-height:200px;
}

.centered-card {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert vertikal */
    align-items: center;     /* Zentriert horizontal */
    padding: 1.5rem;
    height: 200px; /* Passe die Höhe nach Bedarf an */
}

.banner {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    color: white;
    text-align: center;
    z-index: 9999;
}
.warning { background-color: #d17b25; }
.downtime { background-color: #881828; }
.info { background-color: #253cd1; }

.discord_logo {
    height:30px
}

#bkmrk--1 img.align-left {
    float: left !important;
    margin: 6px 16px 16px 0;
}

#legend label {
    display:inline;
}

.gildenlose-container.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem; /* optional: Abstand zwischen den Spalten */
}

.gildenlose-container.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* optional: Abstand zwischen den Spalten */
}

.gildenlose-container.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem; /* optional: Abstand zwischen den Spalten */
}

.gildenlose-container.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem; /* optional: Abstand zwischen den Spalten */
}



body #bkmrk- img:not([data-mce-object]) {
    max-width: 100%;
    height: auto;
}

#global-tooltip .tooltip-content p {
    margin-top: .3em;
    margin-bottom: .3em;
}

body main table img, main table img:not([data-mce-object]) {
    max-width: 100%;
    height: auto;
}

.dropzone {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dropzone .dz-preview {
    width: 270px;
    margin: 0;
}

.dz-default{
    border: 1px dotted #A8A47B;
    width:100%;
    text-align:center;
}

.dz-error-mark, .dz-success-mark{
    display:none;
}

.character-header-split {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 36px;
}

.character-header-split .character-image-col {
    flex: 0 0 300px;
    max-width: 60%;
    min-width: 50%;
}

.character-header-split .guild-info-col {
    flex: 1 1 0;
    min-width: 250px;
    max-width: 540px;
    display: flex;
    justify-content: flex-end; /* Gildenbereich nach rechts schieben */
}

.character-main-content {
    width: 100%;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.6em;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.35rem;
    margin-left: 0.5rem;
}

/* Farbvarianten */
.bg-success {
    background-color: #28a745;
}

.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-secondary {
    background-color: #6c757d;
}

.discord-card {
    background-color: #1e1f22; /* Dunkles Grau wie Discord */
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-align: center;
}

.discord-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.discord-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #ccc;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    background-color: #5865F2; /* Discord Blurple */
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.discord-button:hover {
    background-color: #4752C4;
}

.discord-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: white;
}


@media (max-width: 900px) {
    .character-header-split {
        flex-direction: column;
        gap: 0;
    }
    .character-header-split .character-image-col,
    .character-header-split .guild-info-col {
        max-width: 100%;
        min-width: 0;
    }
}


@media (max-width: 768px) {
    .gildenlose-container.grid-6 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* optional: Abstand zwischen den Spalten */
    }

    .gilden-columns {
        flex-direction: column;
    }

    .gilden-column {
        flex: 0 0 100%; /* Volle Breite für kleine Bildschirme */
        max-width: 100%;
    }

    .gildenlose-container {
        flex-direction: column;
    }

    .gildenlose-container {
        display: block;
        gap: 25px;
    }

    footer-content {
        flex-direction: column; /* Spalten untereinander stapeln */
        text-align: center;
    }

    .footer-section {
        text-align: center; /* Zentriert Inhalt bei schmalem Bildschirm */
        margin: 10px 0; /* Abstand zwischen den Abschnitten */
    }

    .navbar-links {
        display: none;
    }

    .navbar .hamburger {
        display: flex;
    }

    hamburger-navigation {
        display: none; /* Navigation bleibt ausgeblendet */
    }

    .hamburger-navigation.show {
        display: flex; /* Navigation anzeigen */
    }

    .navbar-links {
        display: none; /* Desktop-Navigation ausblenden */
    }

    .navbar .hamburger {
        display: flex; /* Hamburger nur für Mobile sichtbar */
    }

    .character-container .col-md-4,
    .character-container .col-sm-6 {
        flex: 0 0 50%; /* Zweispaltig */
        max-width: 50%; /* Zweispaltig */
    }

    /* Dropdowns in Mobile anzeigen */
    .mobile-dropdown {
        display: block; /* Dropdowns werden in der mobilen Ansicht angezeigt */
    }

    /* Statistiken für Desktop in Mobile verstecken */
    .desktop-stats {
        display: none; /* Desktop-Statistiken werden in der mobilen Ansicht ausgeblendet */
    }

    .form-select {
        display: block;
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        color: #A8A47B;
        background-color: #111;
        border: 1px solid #444;
        border-radius: 4px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 80%;
        background-color: #222;
        color: white;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-sidebar ul {
        list-style: none;
        padding-left: 0;
    }

    .mobile-sidebar.open {
        transform: translateX(0);
    }

    .mobile-sidebar .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        margin-bottom: 20px;
    }

    .character-image, .guild-image {
        max-width: 100%;
        margin: 10px 10px 10px 0;
        border: 1px solid #A8A47B
    }
}

@media (max-width: 576px) {
    .character-container .col-md-4,
    .character-container .col-sm-6 {
        flex: 0 0 100%; /* Einspaltig */
        max-width: 100%; /* Einspaltig */
    }

    /* Statistiken für Desktop in Mobile verstecken */
    .desktop-stats {
        display: none; /* Desktop-Statistiken werden in der mobilen Ansicht ausgeblendet */
    }

    .character-page-container {
        flex-direction: column; /* Spalten untereinander anzeigen */
    }

    .guild-info {
        border-left: none;
        border-top: 1px solid #ccc; /* Trennlinie oben statt links */
        padding-left: 0;
        padding-top: 10px;
    }

    .character-page-container {
        display: block;
    }

    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Desktop Ansicht */
@media (min-width: 769px) {
    /* Dropdowns in Desktop verstecken */
    .mobile-dropdown {
        display: none; /* Dropdowns werden in der Desktop-Ansicht ausgeblendet */
    }

    /* Desktop-Statistiken anzeigen */
    .desktop-stats {
        display: block; /* Desktop-Statistiken werden angezeigt */
    }
}
