/* 1. Der Haupt-Container */
trix-editor {
    width: 100%;
    min-height: 200px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem; /* Bootstrap 5 Standard */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 2. Fokus-Zustand (Der blaue Bootstrap-Ring) */
trix-editor:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-emphasis-color);
    outline: 0;
    box-shadow: var(--bs-focus-ring-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25));
}


/* 3. Die Toolbar aufräumen */
trix-toolbar {
    margin-bottom: 0.5rem;
}

trix-toolbar .trix-button-row {
    gap: 2px;
}

trix-toolbar .trix-button-group {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #858383; /* Hellgrauer Hintergrund wie bei Input-Groups */
    margin-bottom: 5px;
}

trix-toolbar .trix-button {
    border: none;
    border-bottom: none;
    background: transparent;
}

trix-toolbar .trix-button:hover {
    background-color: #e9ecef;
}

trix-toolbar .trix-button--active {
    background-color: #dee2e6 !important;
}

/* 4. Platzhalter (Placeholder) Styling */
trix-editor:empty:not(:focus)::before {
    color: var(--bs-secondary-color) !important;
}

/* 5. Fehlerzustand (Optional, falls Symfony Form Error) */
.is-invalid + trix-editor {
    border-color: #dc3545;
}
.is-invalid + trix-editor:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/*
Die Toolbar-Buttons anpassen (Icons)
*/

trix-toolbar .trix-button::before {
    filter: grayscale(1) brightness(0.5); /* Macht die Icons dezenter */
}


/* validate */






/* Trix Dialoge (Link-Eingabe etc.) */
trix-toolbar .trix-dialogs {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    border-radius: 0.375rem;
}

trix-toolbar .trix-dialog {
    background-color: var(--bs-tertiary-bg); /* Dunkler Hintergrund wie Tooltips/Popovers */
    border: 1px solid var(--bs-border-color);
    border-top: none;
    color: var(--bs-body-color);
    padding: 1rem;
}


/* Die Input-Felder innerhalb der Dialoge */
trix-toolbar .trix-dialog .trix-input {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
}

/* Fokus-Effekt für Dialog-Inputs */
trix-toolbar .trix-dialog .trix-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}



/* Trix Error State / Validation Failed */




/* Spezifisches Styling für fehlgeschlagene Validierung in Trix-Dialogen */

/* Das Eingabefeld im Dialog bei Fehlern */
.trix-input.trix-input--dialog.trix-validate {
    border-color: var(--bs-form-invalid-border-color) !important;
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
    color: var(--bs-danger) !important; /* Textfarbe auf Rot setzen für bessere Sichtbarkeit */
}

/* Fokus-Zustand während der Validierung */
.trix-input.trix-input--dialog.trix-validate:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25) !important;
    outline: none;
}

/* Optional: Placeholder-Farbe bei Fehlern anpassen */
.trix-input.trix-input--dialog.trix-validate::placeholder {
    color: rgba(var(--bs-danger-rgb), 0.6);
}

/***************************************************************************/
/* ERWEITERUNGEN */
/***************************************************************************/


/* Die Klasse für deine Komponente */
.fade-in-component {
  /*animation: fadeIn 0.5s ease-in-out forwards;*/
    animation: softBounceIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Wende sie auf Bootstrap-Standardklassen an */
.card, .btn, .alert, .modal-content {
    animation: softBounceIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.form-control, trix-editor{
    animation: formBounceIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Die Definition der Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes softBounceIn {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.90);
  }
  60% {
    opacity: 1;
    /* Ein klein wenig über das Ziel hinaus (Bounce) */
    transform: translateY(-1px) scale(1.00);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@keyframes formBounceIn {
  0% {
    opacity: 0;
    transform: translateY(1px) scale(0.98);
  }
  60% {
    opacity: 1;
    /* Ein klein wenig über das Ziel hinaus (Bounce) */
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
 /* background-color: rgba(0, 0, 0, 0.4); /* Grauer Schatten */
  backdrop-filter: blur(2px);            /* Optional: Schicker Unschärfe-Effekt */
  z-index: 9999;                         /* Immer ganz oben */
}

.dom-object-as-link {
    cursor: pointer;
}

/* Special Text */

.app-text-color-card {
    color: #bdb9b9 !important;
}


/* APP Basisdesign */

body {
    /* Vertikaler Verlauf von oben nach unten */
    background: linear-gradient(
        180deg, 
        #272930 0%,
        #22242a 40%,
        #17181c 100%
    );
    
    /* WICHTIG: Damit der Verlauf nicht beim Scrollen "mitwandert" oder sich wiederholt */
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    
    /* Grundfarbe als Fallback */
    background-color: #22242a;
}


.navbar-glass-full {
    /* Volle Breite garantieren */
    width: 100%;
    margin: 0;
    
    /* Glas-Optik (Transparenz + Unschärfe) */
    background: rgba(33, 37, 41, 0.8) !important; /* Etwas deckender für bessere Lesbarkeit */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    
    /* Dezente Trennung nach unten */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-left: none;
    border-right: none;
    
    /* "Fliegender" Effekt durch Schatten statt Abstand */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    
    /* Fixierung oben */
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Damit der Text auf dem Glas gut lesbar bleibt */
.navbar-glass-full .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s;
}

.navbar-glass-full .nav-link:hover {
    color: #fff !important;
}


.main-glass-deprecated {
    /* Glas-Effekt */
    

    background: rgba(33, 37, 41, 0.65) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
 

    /* Rahmen & Abrundung für den "Floating"-Look */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* border-radius: 20px; */
    
    /* Schatten für die Tiefe */
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); */
    

/* Sehr weiche, asymmetrische Ränder für 3D-Tiefe */
    border-top: 1px solid rgba(255, 245, 235, 0.08);
    border-left: 1px solid rgba(255, 245, 235, 0.06);
    border-bottom: 1px solid rgba(255, 245, 235, 0.02);
    border-right: 1px solid rgba(255, 245, 235, 0.02);
    
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);


    /* Abstände */
    /*
    padding: 2rem;
    margin-top: 20px;
    margin-bottom: 40px;
    */
    
    /* Sicherstellen, dass der Content gut lesbar bleibt */
    color: #ffffff;
}

.bg-card {
    background-color: #1d2125;    
}

/* Überschriften-Farbe */
h1, card-title {
    color: #d4af37 !important;
}

:root, [data-bs-theme="dark"] {
    /* Deine neue hellere Primärfarbe */
    --bs-primary: #0e85cf;
    /* Die passenden RGB-Werte für diese Farbe */
    --bs-primary-rgb: 14, 133, 207;
    --bs-primary-hover-bg: #0e85cf;
    --bs-primary-hover-border-color: #0e85cf;
}